Searched refs:P256_LIMBS (Results 1 – 3 of 3) sorted by relevance
/external/boringssl/src/crypto/fipsmodule/ec/ |
D | p256-x86_64.h | 38 #define P256_LIMBS (256 / BN_BITS2) macro 41 void ecp_nistz256_neg(BN_ULONG res[P256_LIMBS], const BN_ULONG a[P256_LIMBS]); 44 void ecp_nistz256_mul_mont(BN_ULONG res[P256_LIMBS], 45 const BN_ULONG a[P256_LIMBS], 46 const BN_ULONG b[P256_LIMBS]); 49 void ecp_nistz256_sqr_mont(BN_ULONG res[P256_LIMBS], 50 const BN_ULONG a[P256_LIMBS]); 54 static inline void ecp_nistz256_from_mont(BN_ULONG res[P256_LIMBS], in ecp_nistz256_from_mont() argument 55 const BN_ULONG in[P256_LIMBS]) { in ecp_nistz256_from_mont() argument 56 static const BN_ULONG ONE[P256_LIMBS] = { 1 }; in ecp_nistz256_from_mont() [all …]
|
D | p256-x86_64_test.cc | 89 static bool GetFieldElement(FileTest *t, BN_ULONG out[P256_LIMBS], in GetFieldElement() argument 96 if (bytes.size() != BN_BYTES * P256_LIMBS) { in GetFieldElement() 103 OPENSSL_memset(out, 0, P256_LIMBS * sizeof(BN_ULONG)); in GetFieldElement() 105 out[P256_LIMBS - 1 - (i / BN_BYTES)] <<= 8; in GetFieldElement() 106 out[P256_LIMBS - 1 - (i / BN_BYTES)] |= bytes[i]; in GetFieldElement() 112 static std::string FieldElementToString(const BN_ULONG a[P256_LIMBS]) { in FieldElementToString() argument 114 for (size_t i = P256_LIMBS-1; i < P256_LIMBS; i--) { in FieldElementToString() 124 const BN_ULONG expected[P256_LIMBS], const BN_ULONG actual[P256_LIMBS]) { in ExpectFieldElementsEqual() argument 125 if (OPENSSL_memcmp(expected, actual, sizeof(BN_ULONG) * P256_LIMBS) == 0) { in ExpectFieldElementsEqual() 149 !bn_set_words(x.get(), in->X, P256_LIMBS) || in PointToAffine() [all …]
|
D | p256-x86_64.c | 46 static const BN_ULONG ONE[P256_LIMBS] = { 82 static void copy_conditional(BN_ULONG dst[P256_LIMBS], in copy_conditional() argument 83 const BN_ULONG src[P256_LIMBS], BN_ULONG move) { in copy_conditional() argument 91 if (P256_LIMBS == 8) { in copy_conditional() 125 static void ecp_nistz256_mod_inverse_mont(BN_ULONG r[P256_LIMBS], in ecp_nistz256_mod_inverse_mont() argument 126 const BN_ULONG in[P256_LIMBS]) { in ecp_nistz256_mod_inverse_mont() argument 130 BN_ULONG p2[P256_LIMBS]; in ecp_nistz256_mod_inverse_mont() 131 BN_ULONG p4[P256_LIMBS]; in ecp_nistz256_mod_inverse_mont() 132 BN_ULONG p8[P256_LIMBS]; in ecp_nistz256_mod_inverse_mont() 133 BN_ULONG p16[P256_LIMBS]; in ecp_nistz256_mod_inverse_mont() [all …]
|