X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=crypto.h;h=06d7cd5be72f9001e227f5e47da10bad54b554c6;hp=8eaf939e5f5b022dcbe352332099b35c9bfde4e0;hb=740b870a7a4d1936991d856f5427e4c10c2c849a;hpb=5209d095d51e534ca1ca5fc47d637662df9a1eae;ds=sidebyside diff --git a/crypto.h b/crypto.h index 8eaf939..06d7cd5 100644 --- a/crypto.h +++ b/crypto.h @@ -1,9 +1,12 @@ #ifndef _CRYPTO_H #define _CRYPTO_H -int encrypt(void *pt, int ptlen, void *key, int keylen, void *ct, int *ctlen); -int decrypt(void *ct, int ctlen, void *key, int keylen, void *pt, int *ptlen); -int hash(void *pt, int ptlen, void *tag, int *taglen); -int hmac(void *pt, int ptlen, void *key, int keylen, void *tag, int *taglen); +int select_crypto_if(int ifno); +unsigned long encrypt(void *key, int keylen, void *pt, void *ct, int tlen); +unsigned long decrypt(void *key, int keylen, 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 *crypto_errstr(unsigned long err); #endif