]> www.average.org Git - pam_pcsc_cr.git/blobdiff - crypto_if.h
configure.ac: remove sanitizer by default
[pam_pcsc_cr.git] / crypto_if.h
index f569596ff354c46c9ae25ef463b6a9893b4ce2c2..037ef05a911485ccfe9c95676f4698f1ca7bf1c9 100644 (file)
@@ -26,14 +26,16 @@ freely, subject to the following restrictions:
 
 struct crypto_interface {
        const char *(*init)(void);
-       unsigned long (*encrypt)(void *key, int keylen, void *iv,
-                               void *pt, void *ct, int tlen);
-       unsigned long (*decrypt)(void *key, int keylen, void *iv,
-                               void *ct, void *pt, int tlen);
-       unsigned long (*hash)(void *pt, int tlen, void *tag, int *taglen);
-       unsigned long (*hmac)(void *key, int keylen,
-                               void *pt, int tlen, void *tag, int *taglen);
-       const char *(*errstr)(unsigned long err);
+       unsigned long (*encrypt)(const void *key, const size_t keylen, void *iv,
+                               const void *pt, void *ct, const size_t tlen);
+       unsigned long (*decrypt)(const void *key, const size_t keylen, void *iv,
+                               const void *ct, void *pt, const size_t tlen);
+       unsigned long (*hash)(const void *pt, const size_t tlen,
+                               void *tag, size_t *taglen);
+       unsigned long (*hmac)(const void *key, const size_t keylen,
+                               const void *pt, const size_t tlen,
+                               void *tag, size_t *taglen);
+       const char *(*errstr)(const unsigned long err);
 };
 
 #endif