type crypto/elliptic/internal/fiat.P224Element
71 uses
crypto/elliptic/internal/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#L40: var p224ZeroEncoding = new(P224Element).Bytes()
p224.go#L43: func (e *P224Element) IsZero() int {
p224.go#L49: func (e *P224Element) Set(t *P224Element) *P224Element {
p224.go#L55: func (e *P224Element) Bytes() []byte {
p224.go#L62: func (e *P224Element) bytes(out *[p224ElementLen]byte) []byte {
p224.go#L73: var p224MinusOneEncoding = new(P224Element).Sub(
p224.go#L74: new(P224Element), new(P224Element).One()).Bytes()
p224.go#L79: func (e *P224Element) SetBytes(v []byte) (*P224Element, error) {
p224.go#L101: func (e *P224Element) Add(t1, t2 *P224Element) *P224Element {
p224.go#L107: func (e *P224Element) Sub(t1, t2 *P224Element) *P224Element {
p224.go#L113: func (e *P224Element) Mul(t1, t2 *P224Element) *P224Element {
p224.go#L119: func (e *P224Element) Square(t *P224Element) *P224Element {
p224.go#L125: 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/elliptic/internal/nistec
p224.go#L13: var p224B, _ = new(fiat.P224Element).SetBytes([]byte{0xb4, 0x05, 0x0a, 0x85,
p224.go#L30: x, y, z *fiat.P224Element
p224.go#L36: x: new(fiat.P224Element),
p224.go#L37: y: new(fiat.P224Element).One(),
p224.go#L38: z: new(fiat.P224Element),
p224.go#L45: x: new(fiat.P224Element),
p224.go#L46: y: new(fiat.P224Element),
p224.go#L47: z: new(fiat.P224Element),
p224.go#L71: x, err := new(fiat.P224Element).SetBytes(b[1 : 1+p224ElementLength])
p224.go#L75: y, err := new(fiat.P224Element).SetBytes(b[1+p224ElementLength:])
p224.go#L96: func p224CheckOnCurve(x, y *fiat.P224Element) error {
p224.go#L98: x3 := new(fiat.P224Element).Square(x)
p224.go#L101: threeX := new(fiat.P224Element).Add(x, x)
p224.go#L108: y2 := new(fiat.P224Element).Square(y)
p224.go#L131: zinv := new(fiat.P224Element).Invert(p.z)
p224.go#L132: xx := new(fiat.P224Element).Mul(p.x, zinv)
p224.go#L133: yy := new(fiat.P224Element).Mul(p.y, zinv)
p224.go#L146: t0 := new(fiat.P224Element).Mul(p1.x, p2.x) // t0 := X1 * X2
p224.go#L147: t1 := new(fiat.P224Element).Mul(p1.y, p2.y) // t1 := Y1 * Y2
p224.go#L148: t2 := new(fiat.P224Element).Mul(p1.z, p2.z) // t2 := Z1 * Z2
p224.go#L149: t3 := new(fiat.P224Element).Add(p1.x, p1.y) // t3 := X1 + Y1
p224.go#L150: t4 := new(fiat.P224Element).Add(p2.x, p2.y) // t4 := X2 + Y2
p224.go#L155: x3 := new(fiat.P224Element).Add(p2.y, p2.z) // X3 := Y2 + Z2
p224.go#L160: y3 := new(fiat.P224Element).Add(p2.x, p2.z) // Y3 := X2 + Z2
p224.go#L164: z3 := new(fiat.P224Element).Mul(p224B, t2) // Z3 := b * t2
p224.go#L201: t0 := new(fiat.P224Element).Square(p.x) // t0 := X ^ 2
p224.go#L202: t1 := new(fiat.P224Element).Square(p.y) // t1 := Y ^ 2
p224.go#L203: t2 := new(fiat.P224Element).Square(p.z) // t2 := Z ^ 2
p224.go#L204: t3 := new(fiat.P224Element).Mul(p.x, p.y) // t3 := X * Y
p224.go#L206: z3 := new(fiat.P224Element).Mul(p.x, p.z) // Z3 := X * Z
p224.go#L208: y3 := new(fiat.P224Element).Mul(p224B, t2) // Y3 := b * t2
p224.go#L210: x3 := new(fiat.P224Element).Add(y3, y3) // X3 := Y3 + Y3