]> www.average.org Git - pam_pcsc_cr.git/blob - crypto.h
06d7cd5be72f9001e227f5e47da10bad54b554c6
[pam_pcsc_cr.git] / crypto.h
1 #ifndef _CRYPTO_H
2 #define _CRYPTO_H
3
4 int select_crypto_if(int ifno);
5 unsigned long encrypt(void *key, int keylen, void *pt, void *ct, int tlen);
6 unsigned long decrypt(void *key, int keylen, void *ct, void *pt, int tlen);
7 unsigned long hash(void *pt, int tlen, void *tag, int *taglen);
8 unsigned long hmac(void *key, int keylen, void *pt, int tlen,
9                         void *tag, int *taglen);
10 const char *crypto_errstr(unsigned long err);
11
12 #endif