return "gcrypt";
}
-static unsigned long gnu_encrypt(void *key, int keylen, void *iv,
- void *pt, void *ct, int tlen)
+static unsigned long gnu_encrypt(const void *key, const size_t keylen, void *iv,
+ const void *pt, void *ct, const size_t tlen)
{
gcry_error_t err;
gcry_cipher_hd_t hd;
return 0UL;
}
-static unsigned long gnu_decrypt(void *key, int keylen, void *iv,
- void *ct, void *pt, int tlen)
+static unsigned long gnu_decrypt(const void *key, const size_t keylen, void *iv,
+ const void *ct, void *pt, const size_t tlen)
{
gcry_error_t err;
gcry_cipher_hd_t hd;
return 0UL;
}
-static unsigned long gnu_hash(void *pt, int tlen, void *tag, int *taglen)
+static unsigned long gnu_hash(const void *pt, const size_t tlen,
+ void *tag, size_t *taglen)
{
gcry_error_t err;
gcry_md_hd_t hd;
return 0UL;
}
-static unsigned long gnu_hmac(void *key, int keylen, void *pt, int tlen,
- void *tag, int *taglen)
+static unsigned long gnu_hmac(const void *key, const size_t keylen,
+ const void *pt, const size_t tlen,
+ void *tag, size_t *taglen)
{
gcry_error_t err;
gcry_md_hd_t hd;
return 0UL;
}
-static const char *gnu_errstr(unsigned long err)
+static const char *gnu_errstr(const unsigned long err)
{
return gcry_strerror((gcry_error_t)err);
}