]> www.average.org Git - pam_pcsc_cr.git/commitdiff
add crypto.h
authorEugene Crosser <Eugene.Crosser@ru.ibm.com>
Tue, 29 Oct 2013 16:50:18 +0000 (20:50 +0400)
committerEugene Crosser <Eugene.Crosser@ru.ibm.com>
Tue, 29 Oct 2013 16:50:18 +0000 (20:50 +0400)
crypto.h [new file with mode: 0644]

diff --git a/crypto.h b/crypto.h
new file mode 100644 (file)
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