/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/hkdf/ |
A D | hkdf.c | 35 unsigned long hashsize; in hkdf_expand() local 48 hashsize = hash_descriptor[hash_idx]->hashsize; in hkdf_expand() 51 if (inlen < hashsize || outlen > hashsize * 255) { in hkdf_expand() 59 Tlen = hashsize + infolen + 1; in hkdf_expand() 69 dat = T + hashsize; in hkdf_expand() 70 datlen = Tlen - hashsize; in hkdf_expand() 90 XMEMCPY(T, out + hashsize * (N-1), hashsize); in hkdf_expand() 107 unsigned long hashsize; in hkdf() local 116 hashsize = hash_descriptor[hash_idx]->hashsize; in hkdf() 123 zeromem(extracted, hashsize); in hkdf() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/hmac/ |
A D | hmac_done.c | 24 unsigned long hashsize, i; in hmac_done() local 37 hashsize = hash_descriptor[hash]->hashsize; in hmac_done() 41 isha = XMALLOC(hashsize); in hmac_done() 69 if ((err = hash_descriptor[hash]->process(&hmac->md, isha, hashsize)) != CRYPT_OK) { in hmac_done() 77 for (i = 0; i < hashsize && i < *outlen; i++) { in hmac_done() 85 zeromem(isha, hashsize); in hmac_done() 86 zeromem(buf, hashsize); in hmac_done()
|
A D | hmac_init.c | 25 unsigned long hashsize; in hmac_init() local 37 hashsize = hash_descriptor[hash]->hashsize; in hmac_init() 62 keylen = hashsize; in hmac_init()
|
A D | hmac_test.c | 602 …tvector(digest, outlen, cases[i].digest, (size_t)hash_descriptor[hash]->hashsize, cases[i].num, i)… in hmac_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/crypt/ |
A D | crypt_find_hash_any.c | 30 … if ((int)hash_descriptor[x]->hashsize >= digestlen && (int)hash_descriptor[x]->hashsize < y) { in find_hash_any() 32 y = hash_descriptor[x]->hashsize; in find_hash_any()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/pkcs5/ |
A D | pkcs_5_1.c | 75 while(block * hash_descriptor[hash_idx]->hashsize < *outlen) { in s_pkcs_5_alg1_common() 83 … = hash_descriptor[hash_idx]->process(md, buf, hash_descriptor[hash_idx]->hashsize)) != CRYPT_OK) { in s_pkcs_5_alg1_common() 101 …if ((err = hash_memory(hash_idx, buf, hash_descriptor[hash_idx]->hashsize, buf, &x)) != CRYPT_OK) { in s_pkcs_5_alg1_common() 108 outidx = block*hash_descriptor[hash_idx]->hashsize; in s_pkcs_5_alg1_common() 109 nb = hash_descriptor[hash_idx]->hashsize; in s_pkcs_5_alg1_common() 125 *outlen = hash_descriptor[hash_idx]->hashsize; in s_pkcs_5_alg1_common()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/helper/ |
A D | hash_memory.c | 33 if (*outlen < hash_descriptor[hash]->hashsize) { in hash_memory() 34 *outlen = hash_descriptor[hash]->hashsize; in hash_memory() 50 *outlen = hash_descriptor[hash]->hashsize; in hash_memory()
|
A D | hash_filehandle.c | 38 if (*outlen < hash_descriptor[hash]->hashsize) { in hash_filehandle() 39 *outlen = hash_descriptor[hash]->hashsize; in hash_filehandle() 54 *outlen = hash_descriptor[hash]->hashsize; in hash_filehandle()
|
A D | hash_memory_multi.c | 39 if (*outlen < hash_descriptor[hash]->hashsize) { in hash_memory_multi() 40 *outlen = hash_descriptor[hash]->hashsize; in hash_memory_multi() 69 *outlen = hash_descriptor[hash]->hashsize; in hash_memory_multi()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/ |
A D | rsa_sign_saltlen_get.c | 30 ret -= (hash_descriptor[hash_idx]->hashsize + 2); in rsa_sign_saltlen_get_max_ex()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/pkcs1/ |
A D | pkcs_1_mgf1.c | 40 hLen = hash_descriptor[hash_idx]->hashsize; in pkcs_1_mgf1()
|
A D | pkcs_1_oaep_decode.c | 47 hLen = hash_descriptor[hash_idx]->hashsize; in pkcs_1_oaep_decode()
|
A D | pkcs_1_oaep_encode.c | 50 hLen = hash_descriptor[hash_idx]->hashsize; in pkcs_1_oaep_encode()
|
A D | pkcs_1_pss_decode.c | 46 hLen = hash_descriptor[hash_idx]->hashsize; in pkcs_1_pss_decode()
|
A D | pkcs_1_pss_encode.c | 48 hLen = hash_descriptor[hash_idx]->hashsize; in pkcs_1_pss_encode()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_encrypt_key.c | 48 if (inlen > hash_descriptor[hash]->hashsize) { in dsa_encrypt_key()
|
A D | dsa_generate_pqg.c | 99 if (N > hash_descriptor[hash]->hashsize * 8) { in s_dsa_make_params() 104 outbytes = hash_descriptor[hash]->hashsize; in s_dsa_make_params()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ecc_encrypt_key.c | 44 if (inlen > hash_descriptor[hash]->hashsize) { in ecc_encrypt_key()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/pkcs12/ |
A D | pkcs12_kdf.c | 14 unsigned long u = hash_descriptor[hash_id]->hashsize; in pkcs12_kdf()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/prngs/ |
A D | yarrow.c | 150 … hash_descriptor[prng->u.yarrow.hash]->hashsize)) != CRYPT_OK) { in yarrow_add_entropy() 189 ks = (int)hash_descriptor[prng->u.yarrow.hash]->hashsize; in yarrow_ready()
|
/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | hash.c | 61 size_t hash_size = hc->descr->hashsize; in ltc_hash_final()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/chc/ |
A D | chc.c | 65 hash_descriptor[idx]->hashsize = in chc_register()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_hash.h | 205 unsigned long hashsize; member
|