X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgcrypt%2Fcipher.c;h=8920a706aef88a642668de3fbeeeb0c0ca5c3318;hb=1fd1d5bd9330e02ab5dc32ad027f654ff2620099;hp=e1f1e057463977c13bd4b5af6a411fdcf5081593;hpb=35d865a6348cd62d2992bb3d353e37471d902889;p=tinc diff --git a/src/gcrypt/cipher.c b/src/gcrypt/cipher.c index e1f1e057..8920a706 100644 --- a/src/gcrypt/cipher.c +++ b/src/gcrypt/cipher.c @@ -227,7 +227,7 @@ static bool cipher_remove_padding(cipher_t *cipher, void *indata, size_t inlen, return true; } -bool cipher_encrypt(cipher_t *cipher, void *indata, size_t inlen, void *outdata, size_t *outlen, bool oneshot) { +bool cipher_encrypt(cipher_t *cipher, const void *indata, size_t inlen, void *outdata, size_t *outlen, bool oneshot) { gcry_error_t err; // To be fixed @@ -240,7 +240,7 @@ bool cipher_encrypt(cipher_t *cipher, void *indata, size_t inlen, void *outdata, return true; } -bool cipher_decrypt(cipher_t *cipher, void *indata, size_t inlen, void *outdata, size_t *outlen, bool oneshot) { +bool cipher_decrypt(cipher_t *cipher, const void *indata, size_t inlen, void *outdata, size_t *outlen, bool oneshot) { gcry_error_t err; // To be fixed