]> www.average.org Git - pam_pcsc_cr.git/blobdiff - crypto.h
add convenience defines
[pam_pcsc_cr.git] / crypto.h
index 06d7cd5be72f9001e227f5e47da10bad54b554c6..ad4cf63d2e00cb577bea3171c6072346742edf31 100644 (file)
--- a/crypto.h
+++ b/crypto.h
@@ -2,6 +2,7 @@
 #define _CRYPTO_H
 
 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);
@@ -9,4 +10,7 @@ unsigned long hmac(void *key, int keylen, void *pt, int tlen,
                        void *tag, int *taglen);
 const char *crypto_errstr(unsigned long err);
 
+#define HASHSIZE 20
+#define CBLKSIZE 16
+
 #endif