Home
last modified time | relevance | path

Searched refs:pbits (Results 1 – 13 of 13) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
H A Decc_sign_hash.c35 unsigned long pbits, pbytes, i, shift_right; in ecc_sign_hash_ex() local
55 pbits = mp_count_bits(p); in ecc_sign_hash_ex()
56 pbytes = (pbits+7) >> 3; in ecc_sign_hash_ex()
57 if (pbits > inlen*8) { in ecc_sign_hash_ex()
60 else if (pbits % 8 == 0) { in ecc_sign_hash_ex()
64 shift_right = 8 - pbits % 8; in ecc_sign_hash_ex()
H A Decc_verify_hash.c33 unsigned long pbits, pbytes, i, shift_right; in ecc_verify_hash_ex() local
130 pbits = mp_count_bits(p); in ecc_verify_hash_ex()
131 pbytes = (pbits+7) >> 3; in ecc_verify_hash_ex()
132 if (pbits > hashlen*8) { in ecc_verify_hash_ex()
135 else if (pbits % 8 == 0) { in ecc_verify_hash_ex()
139 shift_right = 8 - pbits % 8; in ecc_verify_hash_ex()
H A Decc_recover_key.c36 unsigned long pbits, pbytes, i, shift_right; in ecc_recover_key() local
150 pbits = mp_count_bits(p); in ecc_recover_key()
151 pbytes = (pbits+7) >> 3; in ecc_recover_key()
152 if (pbits > hashlen*8) { in ecc_recover_key()
155 else if (pbits % 8 == 0) { in ecc_recover_key()
159 shift_right = 8 - pbits % 8; in ecc_recover_key()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Decdh.c288 if (ctx->grp.pbits == 0) { in ecdh_make_params_internal()
506 if (ctx->grp.pbits == 0) { in ecdh_make_public_internal()
624 if (ctx == NULL || ctx->grp.pbits == 0) { in ecdh_calc_secret_internal()
653 *olen = ctx->grp.pbits / 8 + ((ctx->grp.pbits % 8) != 0); in ecdh_calc_secret_internal()
H A Dpsa_crypto_ecp.c384 curve_bytes = PSA_BITS_TO_BYTES(ecp->grp.pbits); in mbedtls_psa_ecdsa_sign_hash()
471 curve_bytes = PSA_BITS_TO_BYTES(ecp->grp.pbits); in mbedtls_psa_ecdsa_verify_hash()
H A Dpkparse.c164 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in pk_group_from_specified()
274 if (grp->pbits == ref.pbits && grp->nbits == ref.nbits && in pk_group_id_from_group()
H A Dpk_wrap.c531 return ecp->grp.pbits; in eckey_get_bitlen()
890 if (rs->ecdsa_ctx.grp.pbits == 0) { in eckey_verify_rs_wrap()
917 if (rs->ecdsa_ctx.grp.pbits == 0) { in eckey_sign_rs_wrap()
H A Dpkwrite.c211 byte_length = (ec->grp.pbits + 7) / 8; in pk_write_ec_private()
H A Decp.c253 if (grp->pbits >= 512) { in mbedtls_ecp_check_budget()
255 } else if (grp->pbits >= 384) { in mbedtls_ecp_check_budget()
524 grp->pbits = 0; in mbedtls_ecp_group_init()
1013 mbedtls_mpi_bitlen(N) > 2 * grp->pbits) { in ecp_modp()
H A Decjpake.c782 x_bytes = (ctx->grp.pbits + 7) / 8; in mbedtls_ecjpake_derive_secret()
H A Decp_curves.c4576 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in ecp_group_load()
4675 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in ecp_use_curve25519()
4729 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in ecp_use_curve448()
H A Decp_curves_new.c4544 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in ecp_group_load()
4673 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in ecp_use_curve25519()
4734 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in ecp_use_curve448()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Decp.h247 size_t pbits; /*!< The number of bits in \p P.*/ member