Home
last modified time | relevance | path

Searched refs:mp_unsigned_bin_size (Results 1 – 25 of 43) sorted by relevance

12

/optee_os-3.20.0/core/lib/libtomcrypt/
A Ddsa.c66 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 Dsm2-pke.c208 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 Ddsa_decrypt_key.c61 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 Ddsa_shared_secret.c44 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 Ddsa_encrypt_key.c57 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 Ddsa_set_pqg_dsaparam.c39 key->qord = mp_unsigned_bin_size(key->q); in dsa_set_pqg_dsaparam()
A Ddsa_verify_key.c55 (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 Decc_shared_secret.c50 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 Dltc_ecc_export_point.c15 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 Decc_sign_hash.c129 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 Decc_export_openssl.c56 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 Decc_sizes.c27 size = mp_unsigned_bin_size(prime); in ecc_sizes()
A Decc_get_key.c38 …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 Drsa_exptmod.c143 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 Drsa_get_size.c24 ret = mp_unsigned_bin_size(key->N); in rsa_get_size()
A Drsa_sign_hash.c66 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 Dpkcs_1_i2osp.c27 size = mp_unsigned_bin_size(n); in pkcs_1_i2osp()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/fp/
A Dltc_ecc_fp_mulmod.c679 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 Ddh.c224 return mp_unsigned_bin_size(key->prime); in dh_get_groupsize()
A Ddh_make_key.c75 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 Ddh_export_key.c26 len = mp_unsigned_bin_size(k); in dh_export_key()
A Ddh_shared_secret.c53 x = (unsigned long)mp_unsigned_bin_size(tmp); in dh_shared_secret()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/ssh/
A Dssh_encode_sequence_multi.c64 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 Dradix_to_bin.c40 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 Dder_length_integer.c37 len = leading_zero + mp_unsigned_bin_size(num); in der_length_integer()

Completed in 20 milliseconds

12