From: Eugene Crosser Date: Tue, 29 Oct 2013 16:50:18 +0000 (+0400) Subject: add crypto.h X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=commitdiff_plain;h=f0b0ce450776d2b8501aa48509191215800e820e add crypto.h --- diff --git a/crypto.h b/crypto.h new file mode 100644 index 0000000..8eaf939 --- /dev/null +++ b/crypto.h @@ -0,0 +1,9 @@ +#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); + +#endif