- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for P224Element (0.28 sec)
-
src/crypto/internal/nistec/fiat/p224.go
func (e *P224Element) Sub(t1, t2 *P224Element) *P224Element { p224Sub(&e.x, &t1.x, &t2.x) return e } // Mul sets e = t1 * t2, and returns e. func (e *P224Element) Mul(t1, t2 *P224Element) *P224Element { p224Mul(&e.x, &t1.x, &t2.x) return e } // Square sets e = t * t, and returns e. func (e *P224Element) Square(t *P224Element) *P224Element { p224Square(&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/p224_invert.go
// x48 = x31 << 17 + x17 // x96 = x48 << 48 + x48 // x127 = x96 << 31 + x31 // return x127 << 97 + x96 // var z = new(P224Element).Set(e) var t0 = new(P224Element) var t1 = new(P224Element) var t2 = new(P224Element) z.Square(x) t0.Mul(x, z) z.Square(t0) z.Mul(x, z) t1.Square(z) for s := 1; s < 3; s++ { t1.Square(t1) } t1.Mul(z, t1) t2.Square(t1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 12 00:04:29 UTC 2022 - 1.8K bytes - Viewed (0) -
src/crypto/internal/nistec/p224_sqrt.go
// v = x^(2^127-1)^2 * x v := new(fiat.P224Element).Square(r) v.Mul(v, x) // r = x^(2^127-1) * x r.Mul(r, x) // for i = n-1 down to 1: // w = v^(2^(i-1)) // if w == -1 then: // v <- v*GG[n-i] // r <- r*GG[n-i-1] var p224MinusOne = new(fiat.P224Element).Sub( new(fiat.P224Element), new(fiat.P224Element).One()) for i := 96 - 1; i >= 1; i-- {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 12 00:04:29 UTC 2022 - 3.1K bytes - Viewed (1) -
src/crypto/internal/nistec/fiat/fiat_test.go
package fiat_test import ( "crypto/internal/nistec/fiat" "testing" ) func BenchmarkMul(b *testing.B) { b.Run("P224", func(b *testing.B) { 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()
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
"io" "log" "os" "os/exec" "text/template" ) var curves = []struct { Element string Prime string Prefix string FiatType string BytesLen int }{ { Element: "P224Element", Prime: "2^224 - 2^96 + 1", Prefix: "p224", FiatType: "[4]uint64", BytesLen: 28, }, // The P-256 fiat implementation is used only on 32-bit architectures, but
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 12 00:04:29 UTC 2022 - 9.1K bytes - Viewed (0)