X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgcrypt%2Fcipher.c;h=ee3856add941a941421da0f35fa983407046c360;hb=a0fbaf0889fda3788943baec80671ecc870a2925;hp=2813da6b5d0079564041fbe038dae7d45a79b3af;hpb=d93d4f9dbd09bc5e53a9b5eeb1cc94939fee32bc;p=tinc diff --git a/src/gcrypt/cipher.c b/src/gcrypt/cipher.c index 2813da6b..ee3856ad 100644 --- a/src/gcrypt/cipher.c +++ b/src/gcrypt/cipher.c @@ -208,7 +208,7 @@ bool cipher_set_key_from_rsa(cipher_t *cipher, void *key, size_t len, bool encry bool cipher_encrypt(cipher_t *cipher, const void *indata, size_t inlen, void *outdata, size_t *outlen, bool oneshot) { gcry_error_t err; - uint8_t pad[cipher->blklen]; + uint8_t *pad = alloca(cipher->blklen); if(cipher->padding) { if(!oneshot) {