Home
last modified time | relevance | path

Searched refs:P256_LIMBS (Results 1 – 3 of 3) sorted by relevance

/external/boringssl/src/crypto/fipsmodule/ec/
Dp256-x86_64.h44 #define P256_LIMBS (256 / BN_BITS2) macro
47 void ecp_nistz256_neg(BN_ULONG res[P256_LIMBS], const BN_ULONG a[P256_LIMBS]);
50 void ecp_nistz256_mul_mont(BN_ULONG res[P256_LIMBS],
51 const BN_ULONG a[P256_LIMBS],
52 const BN_ULONG b[P256_LIMBS]);
55 void ecp_nistz256_sqr_mont(BN_ULONG res[P256_LIMBS],
56 const BN_ULONG a[P256_LIMBS]);
60 static inline void ecp_nistz256_from_mont(BN_ULONG res[P256_LIMBS], in ecp_nistz256_from_mont() argument
61 const BN_ULONG in[P256_LIMBS]) { in ecp_nistz256_from_mont() argument
62 static const BN_ULONG ONE[P256_LIMBS] = { 1 }; in ecp_nistz256_from_mont()
[all …]
Dp256-x86_64.c43 static const BN_ULONG ONE[P256_LIMBS] = {
79 static void copy_conditional(BN_ULONG dst[P256_LIMBS], in copy_conditional() argument
80 const BN_ULONG src[P256_LIMBS], BN_ULONG move) { in copy_conditional() argument
88 if (P256_LIMBS == 8) { in copy_conditional()
122 static void ecp_nistz256_mod_inverse_mont(BN_ULONG r[P256_LIMBS], in ecp_nistz256_mod_inverse_mont() argument
123 const BN_ULONG in[P256_LIMBS]) { in ecp_nistz256_mod_inverse_mont() argument
127 BN_ULONG p2[P256_LIMBS]; in ecp_nistz256_mod_inverse_mont()
128 BN_ULONG p4[P256_LIMBS]; in ecp_nistz256_mod_inverse_mont()
129 BN_ULONG p8[P256_LIMBS]; in ecp_nistz256_mod_inverse_mont()
130 BN_ULONG p16[P256_LIMBS]; in ecp_nistz256_mod_inverse_mont()
[all …]
Dp256-x86_64_test.cc111 BN_ULONG order_words[P256_LIMBS]; in TEST()
113 bn_copy_words(order_words, P256_LIMBS, EC_GROUP_get0_order(group.get()))); in TEST()
115 BN_ULONG in[P256_LIMBS], out[P256_LIMBS]; in TEST()
126 static const BN_ULONG kOneMont[P256_LIMBS] = { in TEST()
145 EXPECT_TRUE(bn_less_than_words(in, order_words, P256_LIMBS)); in TEST()
147 EXPECT_TRUE(bn_less_than_words(out, order_words, P256_LIMBS)); in TEST()
168 static bool GetFieldElement(FileTest *t, BN_ULONG out[P256_LIMBS], in GetFieldElement() argument
175 if (bytes.size() != BN_BYTES * P256_LIMBS) { in GetFieldElement()
182 OPENSSL_memset(out, 0, P256_LIMBS * sizeof(BN_ULONG)); in GetFieldElement()
184 out[P256_LIMBS - 1 - (i / BN_BYTES)] <<= 8; in GetFieldElement()
[all …]