/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | dsa.c | 66 if (key_size != 8 * mp_unsigned_bin_size(key->p)) in crypto_acipher_gen_dsa_key() 105 .qord = mp_unsigned_bin_size(key->q), in crypto_acipher_dsa_sign() 124 if (mp_unsigned_bin_size(ltc_key.q) < hash_size) in crypto_acipher_dsa_sign() 125 hash_size = mp_unsigned_bin_size(ltc_key.q); in crypto_acipher_dsa_sign() 131 if (*sig_len < 2 * mp_unsigned_bin_size(ltc_key.q)) { in crypto_acipher_dsa_sign() 132 *sig_len = 2 * mp_unsigned_bin_size(ltc_key.q); in crypto_acipher_dsa_sign() 147 *sig_len = 2 * mp_unsigned_bin_size(ltc_key.q); in crypto_acipher_dsa_sign() 150 mp_unsigned_bin_size(r)); in crypto_acipher_dsa_sign() 152 mp_unsigned_bin_size(s)); in crypto_acipher_dsa_sign() 173 .qord = mp_unsigned_bin_size(key->q), in crypto_acipher_dsa_verify()
|
A D | sm2-pke.c | 208 if (mp_unsigned_bin_size(x2y2p->x) > SM2_INT_SIZE_BYTES || in sm2_ltc_pke_decrypt() 209 mp_unsigned_bin_size(x2y2p->y) > SM2_INT_SIZE_BYTES) { in sm2_ltc_pke_decrypt() 309 size_t xsize = mp_unsigned_bin_size(p->x); in sm2_point_to_bytes() 310 size_t ysize = mp_unsigned_bin_size(p->y); in sm2_point_to_bytes() 434 if (mp_unsigned_bin_size(x2y2p->x) > SM2_INT_SIZE_BYTES || in sm2_ltc_pke_encrypt() 435 mp_unsigned_bin_size(x2y2p->y) > SM2_INT_SIZE_BYTES) { in sm2_ltc_pke_encrypt()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_decrypt_key.c | 61 expt = XMALLOC(mp_unsigned_bin_size(key->p) + 1); in dsa_decrypt_key() 83 x = mp_unsigned_bin_size(key->p) + 1; in dsa_decrypt_key() 88 y = mp_unsigned_bin_size(key->p) + 1; in dsa_decrypt_key() 116 zeromem(expt, mp_unsigned_bin_size(key->p) + 1); in dsa_decrypt_key()
|
A D | dsa_shared_secret.c | 44 x = (unsigned long)mp_unsigned_bin_size(res); in dsa_shared_secret() 51 …if ((err = mp_to_unsigned_bin(res, out + (x - mp_unsigned_bin_size(res)))) != CRYPT_OK) … in dsa_shared_secret()
|
A D | dsa_encrypt_key.c | 57 expt = XMALLOC(mp_unsigned_bin_size(key->p) + 1); in dsa_encrypt_key() 83 x = mp_unsigned_bin_size(key->p) + 1; in dsa_encrypt_key() 107 zeromem(expt, mp_unsigned_bin_size(key->p) + 1); in dsa_encrypt_key()
|
A D | dsa_set_pqg_dsaparam.c | 39 key->qord = mp_unsigned_bin_size(key->q); in dsa_set_pqg_dsaparam()
|
A D | dsa_verify_key.c | 55 (unsigned long)key->qord >= mp_unsigned_bin_size(key->p) || in dsa_int_validate_pqg() 56 (mp_unsigned_bin_size(key->p) - key->qord) >= LTC_MDSA_DELTA ) { in dsa_int_validate_pqg()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ecc_shared_secret.c | 50 x = (unsigned long)mp_unsigned_bin_size(prime); in ecc_shared_secret() 57 …if ((err = mp_to_unsigned_bin(result->x, out + (x - mp_unsigned_bin_size(result->x)))) != CRYPT_… in ecc_shared_secret()
|
A D | ltc_ecc_export_point.c | 15 if ((xsize = mp_unsigned_bin_size(x)) > size) return CRYPT_BUFFER_OVERFLOW; in ltc_ecc_export_point() 16 if ((ysize = mp_unsigned_bin_size(y)) > size) return CRYPT_BUFFER_OVERFLOW; in ltc_ecc_export_point()
|
A D | ecc_sign_hash.c | 129 i = mp_unsigned_bin_size(r); in ecc_sign_hash_ex() 131 i = mp_unsigned_bin_size(s); in ecc_sign_hash_ex() 144 i = mp_unsigned_bin_size(r); in ecc_sign_hash_ex() 146 i = mp_unsigned_bin_size(s); in ecc_sign_hash_ex()
|
A D | ecc_export_openssl.c | 56 len_a = mp_unsigned_bin_size(a); in ecc_export_openssl() 62 len_b = mp_unsigned_bin_size(b); in ecc_export_openssl() 137 len_k = mp_unsigned_bin_size(key->k); in ecc_export_openssl()
|
A D | ecc_sizes.c | 27 size = mp_unsigned_bin_size(prime); in ecc_sizes()
|
A D | ecc_get_key.c | 38 …if ((ksize = mp_unsigned_bin_size(key->k)) > size) return CRYPT_BUFFER_OV… in ecc_get_key()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/ |
A D | rsa_exptmod.c | 143 x = (unsigned long)mp_unsigned_bin_size(key->N); in rsa_exptmod() 151 if (mp_unsigned_bin_size(tmp) > mp_unsigned_bin_size(key->N)) { in rsa_exptmod() 159 …if ((err = mp_to_unsigned_bin(tmp, out+(x-mp_unsigned_bin_size(tmp)))) != CRYPT_OK) … in rsa_exptmod()
|
A D | rsa_get_size.c | 24 ret = mp_unsigned_bin_size(key->N); in rsa_get_size()
|
A D | rsa_sign_hash.c | 66 modulus_bytelen = mp_unsigned_bin_size((key->N)); in rsa_sign_hash_ex() 104 y = mp_unsigned_bin_size(key->N); in rsa_sign_hash_ex()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/pkcs1/ |
A D | pkcs_1_i2osp.c | 27 size = mp_unsigned_bin_size(n); in pkcs_1_i2osp()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/fp/ |
A D | ltc_ecc_fp_mulmod.c | 679 bitlen = mp_unsigned_bin_size(modulus) << 3; in s_build_lut() 780 if (mp_unsigned_bin_size(k) > mp_unsigned_bin_size(modulus)) { in s_accel_fp_mul() 782 y = mp_unsigned_bin_size(modulus); in s_accel_fp_mul() 844 y = mp_unsigned_bin_size(tk) - 1; in s_accel_fp_mul() 905 if (mp_unsigned_bin_size(kA) > mp_unsigned_bin_size(modulus)) { in ss_accel_fp_mul2add() 907 y = mp_unsigned_bin_size(modulus); in ss_accel_fp_mul2add() 943 if (mp_unsigned_bin_size(kB) > mp_unsigned_bin_size(modulus)) { in ss_accel_fp_mul2add() 945 y = mp_unsigned_bin_size(modulus); in ss_accel_fp_mul2add() 989 …if ((mp_unsigned_bin_size(tka) > (sizeof(kb[0]) - 2)) || (mp_unsigned_bin_size(tkb) > (sizeof(kb[0… in ss_accel_fp_mul2add() 1013 y = mp_unsigned_bin_size(tka) - 1; in ss_accel_fp_mul2add() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dh/ |
A D | dh.c | 224 return mp_unsigned_bin_size(key->prime); in dh_get_groupsize()
|
A D | dh_make_key.c | 75 key_size_p = mp_unsigned_bin_size(key->prime); in dh_make_key() 77 key_size_q = mp_unsigned_bin_size(q); in dh_make_key()
|
A D | dh_export_key.c | 26 len = mp_unsigned_bin_size(k); in dh_export_key()
|
A D | dh_shared_secret.c | 53 x = (unsigned long)mp_unsigned_bin_size(tmp); in dh_shared_secret()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/ssh/ |
A D | ssh_encode_sequence_multi.c | 64 size += mp_unsigned_bin_size(vdata); in ssh_encode_sequence_multi() 128 size = mp_unsigned_bin_size(vdata); in ssh_encode_sequence_multi()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/ |
A D | radix_to_bin.c | 40 if ((l = mp_unsigned_bin_size(mpi)) > *len) { in radix_to_bin()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/integer/ |
A D | der_length_integer.c | 37 len = leading_zero + mp_unsigned_bin_size(num); in der_length_integer()
|