Go to the documentation of this file.
20 #include "../bn/internal.h"
21 #include "../../internal.h"
37 group->order.width *
sizeof(BN_ULONG)) == 0;
42 for (
int i = 0;
i <
group->order.width;
i++) {
49 const uint8_t additional_data[32]) {
57 for (
size_t i = 0;
i <
len;
i++) {
72 for (
size_t i = 0;
i <
len;
i++) {
174 return group->meth->scalar_to_montgomery_inv_vartime(
group,
r,
a);
int ec_scalar_to_montgomery_inv_vartime(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a)
static int OPENSSL_memcmp(const void *s1, const void *s2, size_t n)
void ec_scalar_inv0_montgomery(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a)
#define bn_mod_inverse0_prime_mont_small
#define bn_from_montgomery_small
void ec_simple_scalar_inv0_montgomery(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a)
#define bn_rand_range_words
#define OPENSSL_PUT_ERROR(library, reason)
void ec_scalar_reduce(const EC_GROUP *group, EC_SCALAR *out, const BN_ULONG *words, size_t num)
void ec_scalar_to_bytes(const EC_GROUP *group, uint8_t *out, size_t *out_len, const EC_SCALAR *in)
std::vector< std::string > words
int ec_scalar_from_bytes(const EC_GROUP *group, EC_SCALAR *out, const uint8_t *in, size_t len)
void ec_scalar_select(const EC_GROUP *group, EC_SCALAR *out, BN_ULONG mask, const EC_SCALAR *a, const EC_SCALAR *b)
void ec_scalar_neg(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a)
static void * OPENSSL_memset(void *dst, int c, size_t n)
int ec_random_nonzero_scalar(const EC_GROUP *group, EC_SCALAR *out, const uint8_t additional_data[32])
void ec_scalar_to_montgomery(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a)
void ec_scalar_sub(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a, const EC_SCALAR *b)
void ec_scalar_from_montgomery(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a)
int ec_simple_scalar_to_montgomery_inv_vartime(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a)
int ec_bignum_to_scalar(const EC_GROUP *group, EC_SCALAR *out, const BIGNUM *in)
int ec_scalar_is_zero(const EC_GROUP *group, const EC_SCALAR *a)
#define bn_mod_mul_montgomery_small
int ec_scalar_equal_vartime(const EC_GROUP *group, const EC_SCALAR *a, const EC_SCALAR *b)
void ec_scalar_mul_montgomery(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a, const EC_SCALAR *b)
#define bn_less_than_words
#define EC_R_INVALID_SCALAR
#define bn_to_montgomery_small
void ec_scalar_add(const EC_GROUP *group, EC_SCALAR *r, const EC_SCALAR *a, const EC_SCALAR *b)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:15