X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgcrypt%2Fcipher.c;h=ee3856add941a941421da0f35fa983407046c360;hb=c45a3fd7319d03bd147448a017f5aaed3b46fdfe;hp=2813da6b5d0079564041fbe038dae7d45a79b3af;hpb=c44b08613508c993e7fd9f625e0b1b4775efffed;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) {