]>
git.ipfire.org Git - people/ms/strongswan.git/blob - src/libfreeswan/libcrypto/libsha2/hmac_sha2.h
2 sha256_context ictx
,octx
;
5 sha512_context ictx
,octx
;
7 #define SHA256_BLOCKSIZE 64
8 #define SHA256_HASHLEN 32
9 #define SHA384_BLOCKSIZE 128 /* XXX ok? */
10 #define SHA384_HASHLEN 48
11 #define SHA512_BLOCKSIZE 128
12 #define SHA512_HASHLEN 64
14 void sha256_hmac_hash(sha256_hmac_context
*hctx
, const u_int8_t
* dat
, int len
, u_int8_t
* hash
, int hashlen
);
15 void sha256_hmac_set_key(sha256_hmac_context
*hctx
, const u_int8_t
* key
, int keylen
);
16 void sha512_hmac_hash(sha512_hmac_context
*hctx
, const u_int8_t
* dat
, int len
, u_int8_t
* hash
, int hashlen
);
17 void sha512_hmac_set_key(sha512_hmac_context
*hctx
, const u_int8_t
* key
, int keylen
);