Home
last modified time | relevance | path

Searched refs:digest_size (Results 1 – 10 of 10) sorted by relevance

/optee_os-3.20.0/core/drivers/crypto/crypto_api/acipher/
A Drsamgf.c29 lastBlock_size = mgf_data->mask.length % mgf_data->digest_size; in drvcrypt_rsa_mgf1()
32 tmpdigest = malloc(mgf_data->digest_size); in drvcrypt_rsa_mgf1()
43 mgf_data->digest_size; in drvcrypt_rsa_mgf1()
46 mgf_data->digest_size, nbBlock, lastBlock_size); in drvcrypt_rsa_mgf1()
49 counter++, cur_mask += mgf_data->digest_size) { in drvcrypt_rsa_mgf1()
66 ret = crypto_hash_final(ctx, cur_mask, mgf_data->digest_size); in drvcrypt_rsa_mgf1()
90 ret = crypto_hash_final(ctx, tmpdigest, mgf_data->digest_size); in drvcrypt_rsa_mgf1()
A Drsassa.c49 ps_size -= ssa_data->digest_size; in emsa_pkcs1_v1_5_encode()
106 *buf++ = ssa_data->digest_size; in emsa_pkcs1_v1_5_encode()
109 memcpy(buf, ssa_data->message.data, ssa_data->digest_size); in emsa_pkcs1_v1_5_encode()
352 db_size = EM->length - ssa_data->digest_size - 1; in emsa_pss_encode()
353 msg_size = 8 + ssa_data->digest_size + ssa_data->salt_len; in emsa_pss_encode()
404 hash.length = ssa_data->digest_size; in emsa_pss_encode()
445 mgf_data.digest_size = ssa_data->digest_size; in emsa_pss_encode()
543 db_size = EM->length - ssa_data->digest_size - 1; in emsa_pss_verify()
579 hash.length = ssa_data->digest_size; in emsa_pss_verify()
588 mgf_data.digest_size = ssa_data->digest_size; in emsa_pss_verify()
[all …]
A Drsa.c230 &rsa_data.digest_size); in crypto_acipher_rsaes_decrypt()
314 &rsa_data.digest_size); in crypto_acipher_rsaes_encrypt()
322 rsa_data.key.n_size - 2 * rsa_data.digest_size - 2) in crypto_acipher_rsaes_encrypt()
367 &rsa_ssa.digest_size); in crypto_acipher_rsassa_sign()
371 if (msg_len != rsa_ssa.digest_size) { in crypto_acipher_rsassa_sign()
373 rsa_ssa.digest_size); in crypto_acipher_rsassa_sign()
378 rsa_ssa.digest_size = 0; in crypto_acipher_rsassa_sign()
449 &rsa_ssa.digest_size); in crypto_acipher_rsassa_verify()
453 if (msg_len != rsa_ssa.digest_size) { in crypto_acipher_rsassa_verify()
455 msg_len, rsa_ssa.digest_size); in crypto_acipher_rsassa_verify()
[all …]
/optee_os-3.20.0/core/tee/
A Dtee_cryp_utl.c22 size_t digest_size = TEE_ALG_GET_DIGEST_SIZE(algo); in tee_alg_get_digest_size() local
24 if (!digest_size) in tee_alg_get_digest_size()
27 *size = digest_size; in tee_alg_get_digest_size()
/optee_os-3.20.0/core/drivers/crypto/crypto_api/include/
A Ddrvcrypt_acipher.h38 size_t digest_size; /* Hash Digest Size */ member
49 size_t digest_size; /* Hash Digest Size */ member
66 size_t digest_size; /* Hash Digest Size */ member
/optee_os-3.20.0/core/drivers/crypto/caam/acipher/
A Dcaam_rsa.c750 db_size = rsa_data->key.n_size - rsa_data->digest_size - 1; in do_oaep_decoding()
812 maskedSeed.length = rsa_data->digest_size; in do_oaep_decoding()
815 maskedDB.data = &EM.data[1 + rsa_data->digest_size]; in do_oaep_decoding()
827 mgf_data.digest_size = rsa_data->digest_size; in do_oaep_decoding()
910 for (b01_idx = rsa_data->digest_size; in do_oaep_decoding()
982 db_size = rsa_data->key.n_size - rsa_data->digest_size - 1; in do_oaep_encoding()
996 lHash.length = rsa_data->digest_size; in do_oaep_encoding()
1014 2 * rsa_data->digest_size - 2; in do_oaep_encoding()
1060 mgf_data.digest_size = rsa_data->digest_size; in do_oaep_encoding()
1080 maskedDB.data = &EM.data[1 + rsa_data->digest_size]; in do_oaep_encoding()
[all …]
/optee_os-3.20.0/core/include/kernel/
A Dtcg.h64 uint16_t digest_size; member
/optee_os-3.20.0/core/include/drivers/imx/
A Ddcp.h178 size_t digest_size);
/optee_os-3.20.0/core/drivers/imx/dcp/
A Ddcp.c585 size_t digest_size) in dcp_sha_do_final() argument
600 if (digest_size < hash_alg[hashdata->alg].size) { in dcp_sha_do_final()
/optee_os-3.20.0/scripts/
A Dsign_encrypt.py362 self.hash_size = self.chosen_hash.digest_size

Completed in 14 milliseconds