X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=crypto_if.h;h=e2c7579794fc707a383b19b917c9ab8430acb001;hp=f569596ff354c46c9ae25ef463b6a9893b4ce2c2;hb=b4bd8dfd5d7780bc00f820c3dec7b2a06f47b514;hpb=ee0824354abef3e422c32e931f52b4396263cab1 diff --git a/crypto_if.h b/crypto_if.h index f569596..e2c7579 100644 --- a/crypto_if.h +++ b/crypto_if.h @@ -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 int keylen, void *iv, + const void *pt, void *ct, const int tlen); + unsigned long (*decrypt)(const void *key, const int keylen, void *iv, + const void *ct, void *pt, const int tlen); + unsigned long (*hash)(const void *pt, const int tlen, + void *tag, int *taglen); + unsigned long (*hmac)(const void *key, const int keylen, + const void *pt, const int tlen, + void *tag, int *taglen); + const char *(*errstr)(const unsigned long err); }; #endif