return "openssl";
}
-static unsigned long ossl_encrypt(const void *key, const int keylen, void *iv,
- const void *pt, void *ct, const int tlen)
+static unsigned long ossl_encrypt(const void *key, const size_t keylen, void *iv,
+ const void *pt, void *ct, const size_t tlen)
{
AES_KEY akey;
return 0UL;
}
-static unsigned long ossl_decrypt(const void *key, const int keylen, void *iv,
- const void *ct, void *pt, const int tlen)
+static unsigned long ossl_decrypt(const void *key, const size_t keylen, void *iv,
+ const void *ct, void *pt, const size_t tlen)
{
AES_KEY akey;
return 0UL;
}
-static unsigned long ossl_hash(const void *pt, const int tlen,
- void *tag, int *taglen)
+static unsigned long ossl_hash(const void *pt, const size_t tlen,
+ void *tag, size_t *taglen)
{
SHA_CTX sctx;
return 0UL;
}
-static unsigned long ossl_hmac(const void *key, int const keylen,
- const void *pt, const int tlen,
- void *tag, int *taglen)
+static unsigned long ossl_hmac(const void *key, size_t const keylen,
+ const void *pt, const size_t tlen,
+ void *tag, size_t *taglen)
{
-#if 1
+#if 0
HMAC_CTX hctx;
HMAC_CTX_init(&hctx);