Home | History | Annotate | Download | only in hmac

Lines Matching full:hash

20 #define HMAC_BLOCKSIZE hash_descriptor[hash].blocksize
33 int hash, err;
38 /* test hash */
39 hash = hmac->hash;
40 if((err = hash_is_valid(hash)) != CRYPT_OK) {
44 /* get the hash message digest size */
45 hashsize = hash_descriptor[hash].hashsize;
60 /* Get the hash of the first HMAC vector plus the data */
61 if ((err = hash_descriptor[hash].done(&hmac->md, isha)) != CRYPT_OK) {
70 /* Now calculate the "outer" hash for step (5), (6), and (7) */
71 if ((err = hash_descriptor[hash].init(&hmac->md)) != CRYPT_OK) {
74 if ((err = hash_descriptor[hash].process(&hmac->md, buf, HMAC_BLOCKSIZE)) != CRYPT_OK) {
77 if ((err = hash_descriptor[hash].process(&hmac->md, isha, hashsize)) != CRYPT_OK) {
80 if ((err = hash_descriptor[hash].done(&hmac->md, buf)) != CRYPT_OK) {