Mercurial > hg > octave-shane > gnulib-hg
comparison lib/hmac.h @ 6344:88273adcbaf6
Add hmac-md5 module.
author | Simon Josefsson <simon@josefsson.org> |
---|---|
date | Thu, 06 Oct 2005 15:58:26 +0000 |
parents | |
children | fb852f022f3f |
comparison
equal
deleted
inserted
replaced
6343:0a6f1dc4ec01 | 6344:88273adcbaf6 |
---|---|
1 /* hmac.h -- hashed message authentication codes | |
2 Copyright (C) 2005 Free Software Foundation, Inc. | |
3 | |
4 This program is free software; you can redistribute it and/or modify | |
5 it under the terms of the GNU General Public License as published by | |
6 the Free Software Foundation; either version 2, or (at your option) | |
7 any later version. | |
8 | |
9 This program is distributed in the hope that it will be useful, | |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 GNU General Public License for more details. | |
13 | |
14 You should have received a copy of the GNU General Public License | |
15 along with this program; if not, write to the Free Software Foundation, | |
16 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ | |
17 | |
18 /* Written by Simon Josefsson. */ | |
19 | |
20 #ifndef HMAC_H | |
21 # define HMAC_H 1 | |
22 | |
23 #include <stddef.h> | |
24 | |
25 /* Compute Hashed Message Authentication Code with MD5, as described | |
26 in RFC 2104, over BUFFER data of BUFLEN bytes using the KEY of | |
27 KEYLEN bytes, writing the output to pre-allocated 16 byte minimum | |
28 RESBUF buffer. Return 0 on success. */ | |
29 int | |
30 hmac_md5 (const void *key, size_t keylen, | |
31 const void *buffer, size_t buflen, void *resbuf); | |
32 | |
33 #endif /* HMAC_H */ |