Home
last modified time | relevance | path

Searched refs:LTC_HMAC_BLOCKSIZE (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/mac/hmac/
A Dhmac_init.c19 #define LTC_HMAC_BLOCKSIZE hash_descriptor[hash]->blocksize macro
52 buf = XMALLOC(LTC_HMAC_BLOCKSIZE); in hmac_init()
58 if (sizeof(hmac->key) < LTC_HMAC_BLOCKSIZE) { in hmac_init()
64 if(keylen > LTC_HMAC_BLOCKSIZE) { in hmac_init()
65 z = LTC_HMAC_BLOCKSIZE; in hmac_init()
74 if(keylen < LTC_HMAC_BLOCKSIZE) { in hmac_init()
75 zeromem((hmac->key) + keylen, (size_t)(LTC_HMAC_BLOCKSIZE - keylen)); in hmac_init()
79 for(i=0; i < LTC_HMAC_BLOCKSIZE; i++) { in hmac_init()
88 if ((err = hash_descriptor[hash]->process(&hmac->md, buf, LTC_HMAC_BLOCKSIZE)) != CRYPT_OK) { in hmac_init()
94 zeromem(buf, LTC_HMAC_BLOCKSIZE); in hmac_init()
A Dhmac_done.c19 #define LTC_HMAC_BLOCKSIZE hash_descriptor[hash]->blocksize macro
47 buf = XMALLOC(LTC_HMAC_BLOCKSIZE); in hmac_done()
65 for(i=0; i < LTC_HMAC_BLOCKSIZE; i++) { in hmac_done()
73 if ((err = hash_descriptor[hash]->process(&hmac->md, buf, LTC_HMAC_BLOCKSIZE)) != CRYPT_OK) { in hmac_done()

Completed in 2 milliseconds