Home
last modified time | relevance | path

Searched refs:hashsize (Results 1 – 23 of 23) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/hkdf/
A Dhkdf.c35 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 Dhmac_done.c24 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 Dhmac_init.c25 unsigned long hashsize; in hmac_init() local
37 hashsize = hash_descriptor[hash]->hashsize; in hmac_init()
62 keylen = hashsize; in hmac_init()
A Dhmac_test.c602 …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 Dcrypt_find_hash_any.c30 … 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 Dpkcs_5_1.c75 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 Dhash_memory.c33 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 Dhash_filehandle.c38 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 Dhash_memory_multi.c39 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 Drsa_sign_saltlen_get.c30 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 Dpkcs_1_mgf1.c40 hLen = hash_descriptor[hash_idx]->hashsize; in pkcs_1_mgf1()
A Dpkcs_1_oaep_decode.c47 hLen = hash_descriptor[hash_idx]->hashsize; in pkcs_1_oaep_decode()
A Dpkcs_1_oaep_encode.c50 hLen = hash_descriptor[hash_idx]->hashsize; in pkcs_1_oaep_encode()
A Dpkcs_1_pss_decode.c46 hLen = hash_descriptor[hash_idx]->hashsize; in pkcs_1_pss_decode()
A Dpkcs_1_pss_encode.c48 hLen = hash_descriptor[hash_idx]->hashsize; in pkcs_1_pss_encode()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_encrypt_key.c48 if (inlen > hash_descriptor[hash]->hashsize) { in dsa_encrypt_key()
A Ddsa_generate_pqg.c99 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 Decc_encrypt_key.c44 if (inlen > hash_descriptor[hash]->hashsize) { in ecc_encrypt_key()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/pkcs12/
A Dpkcs12_kdf.c14 unsigned long u = hash_descriptor[hash_id]->hashsize; in pkcs12_kdf()
/optee_os-3.20.0/core/lib/libtomcrypt/src/prngs/
A Dyarrow.c150 … 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 Dhash.c61 size_t hash_size = hc->descr->hashsize; in ltc_hash_final()
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/chc/
A Dchc.c65 hash_descriptor[idx]->hashsize = in chc_register()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_hash.h205 unsigned long hashsize; member

Completed in 19 milliseconds