- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for P384Element (0.41 sec)
-
src/crypto/internal/nistec/p384.go
y2.Square(x) y2.Mul(y2, x) threeX := new(fiat.P384Element).Add(x, x) threeX.Add(threeX, x) y2.Sub(y2, threeX) return y2.Add(y2, p384B()) } func p384CheckOnCurve(x, y *fiat.P384Element) error { // y² = x³ - 3x + b rhs := p384Polynomial(new(fiat.P384Element), x) lhs := new(fiat.P384Element).Square(y) if rhs.Equal(lhs) != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 12 00:04:29 UTC 2022 - 18K bytes - Viewed (0) -
src/crypto/internal/nistec/fiat/p384.go
func (e *P384Element) Sub(t1, t2 *P384Element) *P384Element { p384Sub(&e.x, &t1.x, &t2.x) return e } // Mul sets e = t1 * t2, and returns e. func (e *P384Element) Mul(t1, t2 *P384Element) *P384Element { p384Mul(&e.x, &t1.x, &t2.x) return e } // Square sets e = t * t, and returns e. func (e *P384Element) Square(t *P384Element) *P384Element { p384Square(&e.x, &t.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/p384_invert.go
// x255 = x252 << 3 + _111 // i397 = ((x255 << 33 + x32) << 94 + x30) << 2 // return 1 + i397 // var z = new(P384Element).Set(e) var t0 = new(P384Element) var t1 = new(P384Element) var t2 = new(P384Element) var t3 = new(P384Element) z.Square(x) z.Mul(x, z) z.Square(z) t1.Mul(x, z) z.Square(t1) for s := 1; s < 3; s++ { z.Square(z) } z.Mul(t1, z)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 12 00:04:29 UTC 2022 - 2.1K bytes - Viewed (0) -
src/crypto/internal/nistec/fiat/fiat_test.go
v := new(fiat.P224Element).One() b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.Mul(v, v) } }) b.Run("P384", func(b *testing.B) { v := new(fiat.P384Element).One() b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.Mul(v, v) } }) b.Run("P521", func(b *testing.B) { v := new(fiat.P521Element).One() b.ReportAllocs() b.ResetTimer()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 05 21:53:03 UTC 2022 - 1.2K bytes - Viewed (0) -
src/crypto/internal/nistec/fiat/generate.go
{ Element: "P256Element", Prime: "2^256 - 2^224 + 2^192 + 2^96 - 1", Prefix: "p256", FiatType: "[4]uint64", BytesLen: 32, }, { Element: "P384Element", Prime: "2^384 - 2^128 - 2^96 + 2^32 - 1", Prefix: "p384", FiatType: "[6]uint64", BytesLen: 48, }, // Note that unsaturated_solinas would be about 2x faster than
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 12 00:04:29 UTC 2022 - 9.1K bytes - Viewed (0) -
src/crypto/internal/nistec/generate.go
{ P: "P256", Element: "fiat.P256Element", Params: elliptic.P256().Params(), BuildTags: "(!amd64 && !arm64 && !ppc64le && !s390x) || purego", }, { P: "P384", Element: "fiat.P384Element", Params: elliptic.P384().Params(), }, { P: "P521", Element: "fiat.P521Element", Params: elliptic.P521().Params(), }, } func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 19.7K bytes - Viewed (0)