Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/hmac/
A Dhmac_init.c12 #define LTC_HMAC_BLOCKSIZE hash_descriptor[hash]->blocksize macro
45 buf = XMALLOC(LTC_HMAC_BLOCKSIZE); in hmac_init()
51 if (sizeof(hmac->key) < LTC_HMAC_BLOCKSIZE) { in hmac_init()
57 if(keylen > LTC_HMAC_BLOCKSIZE) { in hmac_init()
58 z = LTC_HMAC_BLOCKSIZE; in hmac_init()
67 if(keylen < LTC_HMAC_BLOCKSIZE) { in hmac_init()
68 zeromem((hmac->key) + keylen, (size_t)(LTC_HMAC_BLOCKSIZE - keylen)); in hmac_init()
72 for(i=0; i < LTC_HMAC_BLOCKSIZE; i++) { in hmac_init()
81 if ((err = hash_descriptor[hash]->process(&hmac->md, buf, LTC_HMAC_BLOCKSIZE)) != CRYPT_OK) { in hmac_init()
87 zeromem(buf, LTC_HMAC_BLOCKSIZE); in hmac_init()
A Dhmac_done.c12 #define LTC_HMAC_BLOCKSIZE hash_descriptor[hash]->blocksize macro
40 buf = XMALLOC(LTC_HMAC_BLOCKSIZE); in hmac_done()
58 for(i=0; i < LTC_HMAC_BLOCKSIZE; i++) { in hmac_done()
66 if ((err = hash_descriptor[hash]->process(&hmac->md, buf, LTC_HMAC_BLOCKSIZE)) != CRYPT_OK) { in hmac_done()

Completed in 2 milliseconds