]> www.average.org Git - pam_pcsc_cr.git/blobdiff - crypto.h
introduce getserial op
[pam_pcsc_cr.git] / crypto.h
index 8eaf939e5f5b022dcbe352332099b35c9bfde4e0..c24cce07a76f7a6d910d675baeccff6b49bcc2ed 100644 (file)
--- a/crypto.h
+++ b/crypto.h
@@ -1,9 +1,13 @@
 #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);
+const char *crypto_init(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