type crypto/internal/nistec/fiat.P224Element
92 uses
crypto/internal/nistec/fiat (current package)
p224.go#L17: type P224Element struct {
p224.go#L28: func (e *P224Element) One() *P224Element {
p224.go#L34: func (e *P224Element) Equal(t *P224Element) int {
p224.go#L41: func (e *P224Element) IsZero() int {
p224.go#L48: func (e *P224Element) Set(t *P224Element) *P224Element {
p224.go#L54: func (e *P224Element) Bytes() []byte {
p224.go#L61: func (e *P224Element) bytes(out *[p224ElementLen]byte) []byte {
p224.go#L72: func (e *P224Element) SetBytes(v []byte) (*P224Element, error) {
p224.go#L79: var minusOneEncoding = new(P224Element).Sub(
p224.go#L80: new(P224Element), new(P224Element).One()).Bytes()
p224.go#L100: func (e *P224Element) Add(t1, t2 *P224Element) *P224Element {
p224.go#L106: func (e *P224Element) Sub(t1, t2 *P224Element) *P224Element {
p224.go#L112: func (e *P224Element) Mul(t1, t2 *P224Element) *P224Element {
p224.go#L118: func (e *P224Element) Square(t *P224Element) *P224Element {
p224.go#L124: func (v *P224Element) Select(a, b *P224Element, cond int) *P224Element {
p224_invert.go#L12: func (e *P224Element) Invert(x *P224Element) *P224Element {
p224_invert.go#L33: var z = new(P224Element).Set(e)
p224_invert.go#L34: var t0 = new(P224Element)
p224_invert.go#L35: var t1 = new(P224Element)
p224_invert.go#L36: var t2 = new(P224Element)
crypto/internal/nistec
p224.go#L24: x, y, z *fiat.P224Element
p224.go#L30: x: new(fiat.P224Element),
p224.go#L31: y: new(fiat.P224Element).One(),
p224.go#L32: z: new(fiat.P224Element),
p224.go#L64: x, err := new(fiat.P224Element).SetBytes(b[1 : 1+p224ElementLength])
p224.go#L68: y, err := new(fiat.P224Element).SetBytes(b[1+p224ElementLength:])
p224.go#L82: x, err := new(fiat.P224Element).SetBytes(b[1:])
p224.go#L88: y := p224Polynomial(new(fiat.P224Element), x)
p224.go#L95: otherRoot := new(fiat.P224Element)
p224.go#L110: var _p224B *fiat.P224Element
p224.go#L113: func p224B() *fiat.P224Element {
p224.go#L115: _p224B, _ = new(fiat.P224Element).SetBytes([]byte{0xb4, 0x5, 0xa, 0x85, 0xc, 0x4, 0xb3, 0xab, 0xf5, 0x41, 0x32, 0x56, 0x50, 0x44, 0xb0, 0xb7, 0xd7, 0xbf, 0xd8, 0xba, 0x27, 0xb, 0x39, 0x43, 0x23, 0x55, 0xff, 0xb4})
p224.go#L121: func p224Polynomial(y2, x *fiat.P224Element) *fiat.P224Element {
p224.go#L125: threeX := new(fiat.P224Element).Add(x, x)
p224.go#L132: func p224CheckOnCurve(x, y *fiat.P224Element) error {
p224.go#L134: rhs := p224Polynomial(new(fiat.P224Element), x)
p224.go#L135: lhs := new(fiat.P224Element).Square(y)
p224.go#L157: zinv := new(fiat.P224Element).Invert(p.z)
p224.go#L158: x := new(fiat.P224Element).Mul(p.x, zinv)
p224.go#L159: y := new(fiat.P224Element).Mul(p.y, zinv)
p224.go#L181: zinv := new(fiat.P224Element).Invert(p.z)
p224.go#L182: x := new(fiat.P224Element).Mul(p.x, zinv)
p224.go#L202: zinv := new(fiat.P224Element).Invert(p.z)
p224.go#L203: x := new(fiat.P224Element).Mul(p.x, zinv)
p224.go#L204: y := new(fiat.P224Element).Mul(p.y, zinv)
p224.go#L219: t0 := new(fiat.P224Element).Mul(p1.x, p2.x) // t0 := X1 * X2
p224.go#L220: t1 := new(fiat.P224Element).Mul(p1.y, p2.y) // t1 := Y1 * Y2
p224.go#L221: t2 := new(fiat.P224Element).Mul(p1.z, p2.z) // t2 := Z1 * Z2
p224.go#L222: t3 := new(fiat.P224Element).Add(p1.x, p1.y) // t3 := X1 + Y1
p224.go#L223: t4 := new(fiat.P224Element).Add(p2.x, p2.y) // t4 := X2 + Y2
p224.go#L228: x3 := new(fiat.P224Element).Add(p2.y, p2.z) // X3 := Y2 + Z2
p224.go#L233: y3 := new(fiat.P224Element).Add(p2.x, p2.z) // Y3 := X2 + Z2
p224.go#L237: z3 := new(fiat.P224Element).Mul(p224B(), t2) // Z3 := b * t2
p224.go#L274: t0 := new(fiat.P224Element).Square(p.x) // t0 := X ^ 2
p224.go#L275: t1 := new(fiat.P224Element).Square(p.y) // t1 := Y ^ 2
p224.go#L276: t2 := new(fiat.P224Element).Square(p.z) // t2 := Z ^ 2
p224.go#L277: t3 := new(fiat.P224Element).Mul(p.x, p.y) // t3 := X * Y
p224.go#L279: z3 := new(fiat.P224Element).Mul(p.x, p.z) // Z3 := X * Z
p224.go#L281: y3 := new(fiat.P224Element).Mul(p224B(), t2) // Y3 := b * t2
p224.go#L283: x3 := new(fiat.P224Element).Add(y3, y3) // X3 := Y3 + Y3
p224.go#L444: func p224Sqrt(e, x *fiat.P224Element) (isSquare bool) {
p224.go#L445: candidate := new(fiat.P224Element)
p224.go#L447: square := new(fiat.P224Element).Square(candidate)
p224_sqrt.go#L12: var p224GG *[96]fiat.P224Element
p224_sqrt.go#L16: func p224SqrtCandidate(r, x *fiat.P224Element) {
p224_sqrt.go#L28: p224GG = new([96]fiat.P224Element)
p224_sqrt.go#L65: var t0 = new(fiat.P224Element)
p224_sqrt.go#L66: var t1 = new(fiat.P224Element)
p224_sqrt.go#L108: v := new(fiat.P224Element).Square(r)
p224_sqrt.go#L120: var p224MinusOne = new(fiat.P224Element).Sub(
p224_sqrt.go#L121: new(fiat.P224Element), new(fiat.P224Element).One())
p224_sqrt.go#L124: w := new(fiat.P224Element).Set(v)
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |