X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=crypto.h;fp=crypto.h;h=8eaf939e5f5b022dcbe352332099b35c9bfde4e0;hp=0000000000000000000000000000000000000000;hb=f0b0ce450776d2b8501aa48509191215800e820e;hpb=5a0ef35c9d77bedabd249fb7f47d94a6f54b5082 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