Home
last modified time | relevance | path

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

/third_party/boringssl/src/crypto/fipsmodule/ec/
Dec.c878 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx) { in EC_POINT_mul() argument
882 if ((g_scalar == NULL && p_scalar == NULL) || in EC_POINT_mul()
883 (p == NULL) != (p_scalar == NULL)) { in EC_POINT_mul()
923 if (p_scalar != NULL) { in EC_POINT_mul()
926 if (!arbitrary_bignum_to_scalar(group, &scalar, p_scalar, ctx) || in EC_POINT_mul()
946 const EC_SCALAR *p_scalar) { in ec_point_mul_scalar_public() argument
947 if (g_scalar == NULL || p_scalar == NULL || p == NULL) { in ec_point_mul_scalar_public()
952 group->meth->mul_public(group, r, g_scalar, p, p_scalar); in ec_point_mul_scalar_public()
Dwnaf.c179 const EC_SCALAR *p_scalar) { in ec_GFp_mont_mul_public() argument
193 ec_compute_wNAF(group, p_wNAF, p_scalar, bits, EC_WNAF_WINDOW_BITS); in ec_GFp_mont_mul_public()
Dinternal.h154 const EC_SCALAR *p_scalar);
344 const EC_SCALAR *p_scalar);
391 const EC_SCALAR *p_scalar);
Dp256-x86_64.c205 const EC_SCALAR *p_scalar) { in ecp_nistz256_windowed_mul() argument
207 assert(p_scalar != NULL); in ecp_nistz256_windowed_mul()
218 OPENSSL_memcpy(p_str, p_scalar->bytes, 32); in ecp_nistz256_windowed_mul()
377 const EC_SCALAR *p_scalar) { in ecp_nistz256_points_mul_public() argument
378 assert(p_ != NULL && p_scalar != NULL && g_scalar != NULL); in ecp_nistz256_points_mul_public()
425 ecp_nistz256_windowed_mul(group, &t.p, p_, p_scalar); in ecp_nistz256_points_mul_public()
Dp224-64.c1061 const EC_SCALAR *p_scalar) { in ec_GFp_nistp224_point_mul_public() argument
1105 uint64_t bits = p224_get_bit(p_scalar->bytes, i + 4) << 5; in ec_GFp_nistp224_point_mul_public()
1106 bits |= p224_get_bit(p_scalar->bytes, i + 3) << 4; in ec_GFp_nistp224_point_mul_public()
1107 bits |= p224_get_bit(p_scalar->bytes, i + 2) << 3; in ec_GFp_nistp224_point_mul_public()
1108 bits |= p224_get_bit(p_scalar->bytes, i + 1) << 2; in ec_GFp_nistp224_point_mul_public()
1109 bits |= p224_get_bit(p_scalar->bytes, i) << 1; in ec_GFp_nistp224_point_mul_public()
1110 bits |= p224_get_bit(p_scalar->bytes, i - 1); in ec_GFp_nistp224_point_mul_public()
/third_party/openssl/crypto/ec/
Decp_nistp224.c1427 const BIGNUM *p_scalar = NULL;
1497 p_scalar = scalar;
1501 p_scalar = scalars[i];
1503 if ((p_scalar != NULL) && (p != NULL)) {
1505 if ((BN_num_bits(p_scalar) > 224)
1506 || (BN_is_negative(p_scalar))) {
1511 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) {
1518 num_bytes = BN_bn2lebinpad(p_scalar,
Decp_nistp521.c1883 const BIGNUM *p_scalar = NULL;
1956 p_scalar = scalar;
1960 p_scalar = scalars[i];
1962 if ((p_scalar != NULL) && (p != NULL)) {
1964 if ((BN_num_bits(p_scalar) > 521)
1965 || (BN_is_negative(p_scalar))) {
1970 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) {
1977 num_bytes = BN_bn2lebinpad(p_scalar,
Decp_nistp256.c2043 const BIGNUM *p_scalar = NULL;
2117 p_scalar = scalar;
2121 p_scalar = scalars[i];
2123 if ((p_scalar != NULL) && (p != NULL)) {
2125 if ((BN_num_bits(p_scalar) > 256)
2126 || (BN_is_negative(p_scalar))) {
2131 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) {
2138 num_bytes = BN_bn2lebinpad(p_scalar,
Dec_lib.c1042 const EC_POINT *point, const BIGNUM *p_scalar, BN_CTX *ctx) in EC_POINT_mul() argument
1050 scalars[0] = p_scalar; in EC_POINT_mul()
1054 && p_scalar != NULL), points, scalars, ctx); in EC_POINT_mul()
/third_party/boringssl/src/third_party/fiat/
Dp256.c920 const EC_SCALAR *p_scalar) { in ec_GFp_nistp256_point_mul_public() argument
938 ec_compute_wNAF(group, p_wNAF, p_scalar, 256, P256_WSIZE_PUBLIC); in ec_GFp_nistp256_point_mul_public()