- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for p521ToMontgomery (0.15 sec)
-
src/crypto/internal/nistec/fiat/p521.go
} } var in [p521ElementLen]byte copy(in[:], v) p521InvertEndianness(in[:]) var tmp p521NonMontgomeryDomainFieldElement p521FromBytes((*p521UntypedFieldElement)(&tmp), &in) p521ToMontgomery(&e.x, &tmp) return e, nil } // Add sets e = t1 + t2, and returns e. func (e *P521Element) Add(t1, t2 *P521Element) *P521Element { p521Add(&e.x, &t1.x, &t2.x) return e }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 12 00:04:29 UTC 2022 - 3.6K bytes - Viewed (0) -
src/crypto/internal/nistec/fiat/p521_fiat64.go
out1[6] = x625 out1[7] = x626 out1[8] = x627 } // p521ToMontgomery translates a field element into the Montgomery domain. // // Preconditions: // // 0 ≤ eval arg1 < m // // Postconditions: // // eval (from_montgomery out1) mod m = eval arg1 mod m // 0 ≤ eval out1 < m func p521ToMontgomery(out1 *p521MontgomeryDomainFieldElement, arg1 *p521NonMontgomeryDomainFieldElement) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 05 21:53:03 UTC 2022 - 167K bytes - Viewed (0)