Home
last modified time | relevance | path

Searched refs:HMAC_BLOCKSIZE (Results 1 – 3 of 3) sorted by relevance

/external/dropbear/libtomcrypt/src/mac/hmac/
Dhmac_init.c20 #define HMAC_BLOCKSIZE hash_descriptor[hash].blocksize macro
53 buf = XMALLOC(HMAC_BLOCKSIZE); in hmac_init()
59 hmac->key = XMALLOC(HMAC_BLOCKSIZE); in hmac_init()
66 if(keylen > HMAC_BLOCKSIZE) { in hmac_init()
67 z = HMAC_BLOCKSIZE; in hmac_init()
71 if(hashsize < HMAC_BLOCKSIZE) { in hmac_init()
72 zeromem((hmac->key) + hashsize, (size_t)(HMAC_BLOCKSIZE - hashsize)); in hmac_init()
77 if(keylen < HMAC_BLOCKSIZE) { in hmac_init()
78 zeromem((hmac->key) + keylen, (size_t)(HMAC_BLOCKSIZE - keylen)); in hmac_init()
83 for(i=0; i < HMAC_BLOCKSIZE; i++) { in hmac_init()
[all …]
Dhmac_done.c20 #define HMAC_BLOCKSIZE hash_descriptor[hash].blocksize macro
48 buf = XMALLOC(HMAC_BLOCKSIZE); in hmac_done()
66 for(i=0; i < HMAC_BLOCKSIZE; i++) { in hmac_done()
74 if ((err = hash_descriptor[hash].process(&hmac->md, buf, HMAC_BLOCKSIZE)) != CRYPT_OK) { in hmac_done()
Dhmac_test.c20 #define HMAC_BLOCKSIZE hash_descriptor[hash].blocksize macro