]> www.average.org Git - pam_pcsc_cr.git/blob - authobj.h
introduce authobj
[pam_pcsc_cr.git] / authobj.h
1 #ifndef _AUTHOBJ_H
2 #define _AUTHOBJ_H
3
4 int make_authobj(const char *id, const char *pass, const char *nonce,
5                 const unsigned char *secret, const int secsize,
6                 const unsigned char *payload, const int paysize,
7                 unsigned char *buffer, int *bufsize);
8 int parse_authobj(const unsigned char *hmacdata, const int hmacdatasize,
9                 const unsigned char *buffer, const int bufsize,
10                 unsigned char *secret, int *secsize,
11                 unsigned char *payload, int *paysize);
12
13 #endif