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