Lines Matching full:hash
20 #define HMAC_BLOCKSIZE hash_descriptor[hash].blocksize
25 @param hash The index of the hash you want to use
30 int hmac_init(hmac_state *hmac, int hash, const unsigned char *key, unsigned long keylen)
40 /* valid hash? */
41 if ((err = hash_is_valid(hash)) != CRYPT_OK) {
44 hmac->hash = hash;
45 hashsize = hash_descriptor[hash].hashsize;
68 if ((err = hash_memory(hash, key, keylen, hmac->key, &z)) != CRYPT_OK) {
87 /* Pre-pend that to the hash data */
88 if ((err = hash_descriptor[hash].init(&hmac->md)) != CRYPT_OK) {
92 if ((err = hash_descriptor[hash].process(&hmac->md, buf, HMAC_BLOCKSIZE)) != CRYPT_OK) {