Documentation
¶
Index ¶
- func BigEEA(ri_, rj_ *big.Int) (*big.Int, *big.Int, *big.Int)
- func BinaryPolynomialEEA(ri, rj *BinaryPolynomial) (*BinaryPolynomial, *BinaryPolynomial, *BinaryPolynomial)
- func CodeBlock(s string) string
- func EEA(ri, rj int) (int, int, int)
- func FermatTest(p *big.Int, s int, rnd *rand.Rand) bool
- func PolynomialEEA(ri, rj *Polynomial) (*Polynomial, *Polynomial, *Polynomial)
- type AESCipher
- type AffinePoint
- func (p AffinePoint) Clone() AffinePoint
- func (p AffinePoint) Equals(q AffinePoint) bool
- func (p AffinePoint) GetX() *big.Int
- func (p AffinePoint) GetY() *big.Int
- func (p AffinePoint) IsZero() bool
- func (p *AffinePoint) Set(q AffinePoint)
- func (p *AffinePoint) SetX(x *big.Int)
- func (p *AffinePoint) SetY(y *big.Int)
- func (p *AffinePoint) SetZero()
- func (p AffinePoint) String() string
- type AsciiAlphabet
- type Base64
- type BigPrimeField
- func (f BigPrimeField) Add(r, a, b *big.Int) *big.Int
- func (f BigPrimeField) Div(r, a, b *big.Int) *big.Int
- func (f BigPrimeField) IsOne(a *big.Int) bool
- func (f BigPrimeField) IsZero(a *big.Int) bool
- func (f BigPrimeField) Modp(r, a *big.Int) *big.Int
- func (f BigPrimeField) Mul(r, a, b *big.Int) *big.Int
- func (f BigPrimeField) Neg(r, a *big.Int) *big.Int
- func (f BigPrimeField) Sub(r, a, b *big.Int) *big.Int
- type BinaryExtensionField
- func (f BinaryExtensionField) Add(r, a, b *BinaryPolynomial) *BinaryPolynomial
- func (f BinaryExtensionField) Div(r, a, b *BinaryPolynomial) *BinaryPolynomial
- func (f BinaryExtensionField) IsOne(a *BinaryPolynomial) bool
- func (f BinaryExtensionField) IsZero(a *BinaryPolynomial) bool
- func (f BinaryExtensionField) Mul(r, a, b *BinaryPolynomial) *BinaryPolynomial
- func (f BinaryExtensionField) One() *BinaryPolynomial
- func (f BinaryExtensionField) Sub(r, a, b *BinaryPolynomial) *BinaryPolynomial
- func (f BinaryExtensionField) Zero() *BinaryPolynomial
- type BinaryPolynomial
- func (r *BinaryPolynomial) Add(a, b *BinaryPolynomial)
- func (r *BinaryPolynomial) AddTerm(c, e int)
- func (r *BinaryPolynomial) Clone() *BinaryPolynomial
- func (r *BinaryPolynomial) Degree() int
- func (r *BinaryPolynomial) Div(a, b *BinaryPolynomial)
- func (r *BinaryPolynomial) Equals(a *BinaryPolynomial) bool
- func (r *BinaryPolynomial) Exponents() []int
- func (r *BinaryPolynomial) Lead() (int, int)
- func (r *BinaryPolynomial) Mod(a, b *BinaryPolynomial)
- func (r *BinaryPolynomial) Mul(a, b *BinaryPolynomial)
- func (r *BinaryPolynomial) Neg(a *BinaryPolynomial)
- func (r *BinaryPolynomial) Realloc(n int)
- func (r *BinaryPolynomial) Resize(n int)
- func (r *BinaryPolynomial) Set(a *BinaryPolynomial)
- func (r *BinaryPolynomial) SetZero()
- func (r *BinaryPolynomial) Shrink()
- func (r *BinaryPolynomial) String() string
- func (r *BinaryPolynomial) Sub(a, b *BinaryPolynomial)
- type Bits
- func (x Bits) Clear()
- func (x Bits) Clr(i int)
- func (x Bits) Dec()
- func (y Bits) Equals(x []byte) bool
- func (bits Bits) Hex() string
- func (x Bits) Inc()
- func (output Bits) Map(input []byte, table [][]int)
- func (output Bits) MapInjective(input []byte, table []int)
- func (output Bits) MapSurjective(input []byte, table []int)
- func (Bits) Read(str string) Bits
- func (y Bits) Reverse(x []byte)
- func (y Bits) ReverseEndian(x []byte)
- func (y Bits) Rotate(x []byte, n int)
- func (y Bits) RotateLeft(x []byte, n uint)
- func (y Bits) RotateRight(x []byte, n uint)
- func (x Bits) Set(i int)
- func (bits Bits) String() string
- func (x Bits) Swap(i, j int)
- func (z Bits) Xor(x, y []byte)
- type BlockCipher
- type ByteMatrix
- type ByteVector
- type CBCCipher
- type CTRCipher
- type Cipher
- type DESCipher
- func (cipher DESCipher) Decrypt(input, output []byte) error
- func (cipher DESCipher) Encrypt(input, output []byte) error
- func (cipher *DESCipher) GenerateSubkeys(key []byte) error
- func (des DESCipher) RotateKey(key []byte, n int)
- func (des DESCipher) RoundFunction(key, input, output []byte)
- func (DESCipher) Sbox(input, output []byte)
- type ECBCipher
- type ECC
- type EllipticCurve
- func (ec EllipticCurve) AddAffine(p, q AffinePoint) AffinePoint
- func (ec EllipticCurve) AddMixed(p ProjectivePoint, q AffinePoint) ProjectivePoint
- func (ec EllipticCurve) AffineFromProjective(p ProjectivePoint) AffinePoint
- func (ec EllipticCurve) DoubleProjective(p ProjectivePoint) ProjectivePoint
- func (ec EllipticCurve) FeasibleAffinePoint(p AffinePoint) bool
- func (ec EllipticCurve) MulIntAffine(p AffinePoint, n *big.Int) AffinePoint
- func (ec EllipticCurve) MulIntProjective(q AffinePoint, n *big.Int) AffinePoint
- func (ec EllipticCurve) NegAffine(p AffinePoint) AffinePoint
- func (ec EllipticCurve) NegProjective(p ProjectivePoint) ProjectivePoint
- type ExtensionField
- func (f ExtensionField) Add(a, b *Polynomial) *Polynomial
- func (f ExtensionField) Div(a, b *Polynomial) *Polynomial
- func (f ExtensionField) IsOne(a *Polynomial) bool
- func (f ExtensionField) IsZero(a *Polynomial) bool
- func (f ExtensionField) Mul(a, b *Polynomial) *Polynomial
- func (f ExtensionField) One() *Polynomial
- func (f ExtensionField) Sub(a, b *Polynomial) *Polynomial
- func (f ExtensionField) Zero() *Polynomial
- type FeistelNetwork
- type FieldFloat
- type FieldInt
- type FieldPolynomial
- type Key
- type Message
- type PermutationCipher
- type Polynomial
- func (r *Polynomial) Add(a, b *Polynomial)
- func (r *Polynomial) AddTerm(c, e int)
- func (r *Polynomial) Clone() *Polynomial
- func (r *Polynomial) Degree() int
- func (r *Polynomial) Div(a, b *Polynomial)
- func (r *Polynomial) Equals(a *Polynomial) bool
- func (r *Polynomial) Exponents() []int
- func (r *Polynomial) Lead() (int, int)
- func (r *Polynomial) Mod(a, b *Polynomial)
- func (r *Polynomial) Mul(a, b *Polynomial)
- func (r *Polynomial) Neg(a *Polynomial)
- func (r *Polynomial) Set(a *Polynomial)
- func (r *Polynomial) SetZero()
- func (r *Polynomial) String() string
- func (r *Polynomial) Sub(a, b *Polynomial)
- type PrimeField
- func (p PrimeField) Add(a, b int) int
- func (p PrimeField) Div(a, b int) int
- func (p PrimeField) IsOne(a int) bool
- func (p PrimeField) IsZero(a int) bool
- func (p PrimeField) Modp(a int) int
- func (p PrimeField) Mul(a, b int) int
- func (p PrimeField) Neg(a int) int
- func (p PrimeField) One() int
- func (p PrimeField) Sub(a, b int) int
- func (p PrimeField) Zero() int
- type ProjectivePoint
- func (p ProjectivePoint) Clone() ProjectivePoint
- func (p ProjectivePoint) Equals(q ProjectivePoint) bool
- func (p ProjectivePoint) GetX() *big.Int
- func (p ProjectivePoint) GetY() *big.Int
- func (p ProjectivePoint) GetZ() *big.Int
- func (p ProjectivePoint) IsZero() bool
- func (p *ProjectivePoint) Set(q ProjectivePoint)
- func (p *ProjectivePoint) SetAffine(q AffinePoint)
- func (p *ProjectivePoint) SetX(x *big.Int)
- func (p *ProjectivePoint) SetY(y *big.Int)
- func (p *ProjectivePoint) SetZ(z *big.Int)
- func (p *ProjectivePoint) SetZero()
- func (p ProjectivePoint) String() string
- type RealField
- func (f RealField) Add(a, b float64) float64
- func (f RealField) Div(a, b float64) float64
- func (f RealField) IsOne(a float64) bool
- func (f RealField) IsZero(a float64) bool
- func (f RealField) Mul(a, b float64) float64
- func (f RealField) Neg(a float64) float64
- func (f RealField) One() float64
- func (f RealField) Sub(a, b float64) float64
- func (f RealField) Zero() float64
- type RoundFunction
- type TripleDESCipher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinaryPolynomialEEA ¶
func BinaryPolynomialEEA(ri, rj *BinaryPolynomial) (*BinaryPolynomial, *BinaryPolynomial, *BinaryPolynomial)
func PolynomialEEA ¶
func PolynomialEEA(ri, rj *Polynomial) (*Polynomial, *Polynomial, *Polynomial)
Types ¶
type AffinePoint ¶
type AffinePoint struct {
// contains filtered or unexported fields
}
func NewAffinePoint ¶
func NewAffinePoint(x_, y_ *big.Int) AffinePoint
func NullAffinePoint ¶
func NullAffinePoint() AffinePoint
func (AffinePoint) Clone ¶
func (p AffinePoint) Clone() AffinePoint
func (AffinePoint) Equals ¶
func (p AffinePoint) Equals(q AffinePoint) bool
func (AffinePoint) GetX ¶
func (p AffinePoint) GetX() *big.Int
func (AffinePoint) GetY ¶
func (p AffinePoint) GetY() *big.Int
func (AffinePoint) IsZero ¶
func (p AffinePoint) IsZero() bool
func (*AffinePoint) Set ¶
func (p *AffinePoint) Set(q AffinePoint)
func (*AffinePoint) SetX ¶
func (p *AffinePoint) SetX(x *big.Int)
func (*AffinePoint) SetY ¶
func (p *AffinePoint) SetY(y *big.Int)
func (*AffinePoint) SetZero ¶
func (p *AffinePoint) SetZero()
func (AffinePoint) String ¶
func (p AffinePoint) String() string
type AsciiAlphabet ¶
type AsciiAlphabet struct {
// contains filtered or unexported fields
}
var RstAsciiAlphabet AsciiAlphabet = AsciiAlphabet{65, 122}
var StdAsciiAlphabet AsciiAlphabet = AsciiAlphabet{32, 126}
func (AsciiAlphabet) Geti ¶
func (alphabet AsciiAlphabet) Geti() int
func (AsciiAlphabet) Getj ¶
func (alphabet AsciiAlphabet) Getj() int
type BigPrimeField ¶
type BigPrimeField struct {
// contains filtered or unexported fields
}
func NewBigPrimeField ¶
func NewBigPrimeField(p_ *big.Int) BigPrimeField
type BinaryExtensionField ¶
type BinaryExtensionField struct {
IP *BinaryPolynomial
}
func NewBinaryExtensionField ¶
func NewBinaryExtensionField(ip *BinaryPolynomial) BinaryExtensionField
func (BinaryExtensionField) Add ¶
func (f BinaryExtensionField) Add(r, a, b *BinaryPolynomial) *BinaryPolynomial
func (BinaryExtensionField) Div ¶
func (f BinaryExtensionField) Div(r, a, b *BinaryPolynomial) *BinaryPolynomial
func (BinaryExtensionField) IsOne ¶
func (f BinaryExtensionField) IsOne(a *BinaryPolynomial) bool
func (BinaryExtensionField) IsZero ¶
func (f BinaryExtensionField) IsZero(a *BinaryPolynomial) bool
func (BinaryExtensionField) Mul ¶
func (f BinaryExtensionField) Mul(r, a, b *BinaryPolynomial) *BinaryPolynomial
func (BinaryExtensionField) One ¶
func (f BinaryExtensionField) One() *BinaryPolynomial
func (BinaryExtensionField) Sub ¶
func (f BinaryExtensionField) Sub(r, a, b *BinaryPolynomial) *BinaryPolynomial
func (BinaryExtensionField) Zero ¶
func (f BinaryExtensionField) Zero() *BinaryPolynomial
type BinaryPolynomial ¶
type BinaryPolynomial struct {
Terms []byte
}
func NewBinaryPolynomial ¶
func NewBinaryPolynomial(n int) *BinaryPolynomial
func (*BinaryPolynomial) Add ¶
func (r *BinaryPolynomial) Add(a, b *BinaryPolynomial)
func (*BinaryPolynomial) AddTerm ¶
func (r *BinaryPolynomial) AddTerm(c, e int)
func (*BinaryPolynomial) Clone ¶
func (r *BinaryPolynomial) Clone() *BinaryPolynomial
func (*BinaryPolynomial) Degree ¶
func (r *BinaryPolynomial) Degree() int
func (*BinaryPolynomial) Div ¶
func (r *BinaryPolynomial) Div(a, b *BinaryPolynomial)
func (*BinaryPolynomial) Equals ¶
func (r *BinaryPolynomial) Equals(a *BinaryPolynomial) bool
func (*BinaryPolynomial) Exponents ¶
func (r *BinaryPolynomial) Exponents() []int
func (*BinaryPolynomial) Lead ¶
func (r *BinaryPolynomial) Lead() (int, int)
func (*BinaryPolynomial) Mod ¶
func (r *BinaryPolynomial) Mod(a, b *BinaryPolynomial)
func (*BinaryPolynomial) Mul ¶
func (r *BinaryPolynomial) Mul(a, b *BinaryPolynomial)
func (*BinaryPolynomial) Neg ¶
func (r *BinaryPolynomial) Neg(a *BinaryPolynomial)
func (*BinaryPolynomial) Realloc ¶
func (r *BinaryPolynomial) Realloc(n int)
func (*BinaryPolynomial) Resize ¶
func (r *BinaryPolynomial) Resize(n int)
func (*BinaryPolynomial) Set ¶
func (r *BinaryPolynomial) Set(a *BinaryPolynomial)
func (*BinaryPolynomial) SetZero ¶
func (r *BinaryPolynomial) SetZero()
func (*BinaryPolynomial) Shrink ¶
func (r *BinaryPolynomial) Shrink()
func (*BinaryPolynomial) String ¶
func (r *BinaryPolynomial) String() string
func (*BinaryPolynomial) Sub ¶
func (r *BinaryPolynomial) Sub(a, b *BinaryPolynomial)
type Bits ¶
type Bits []byte
func (Bits) MapInjective ¶
Injective mapping of input bits to output bits. The mapping is defined by the table. The jth bit in the output slice is copied from position i = table[j] in the input. (Input and output may NOT point to the same array.)
func (Bits) MapSurjective ¶
Surjective mapping of input bits to output bits. The mapping is defined by the table. The ith bit in the input slice is mapped to position j = table[i] in the output. (Input and output may NOT point to the same array!)
func (Bits) ReverseEndian ¶
func (Bits) RotateLeft ¶
func (Bits) RotateRight ¶
type BlockCipher ¶
type ByteMatrix ¶
type ByteMatrix []byte
func NewByteMatrix ¶
func NewByteMatrix(a []byte) ByteMatrix
type ByteVector ¶
type ByteVector byte
func ByteMmulV ¶
func ByteMmulV(a ByteMatrix, b ByteVector) ByteVector
func ByteVaddV ¶
func ByteVaddV(a ByteVector, b ByteVector) ByteVector
func NewByteVector ¶
func NewByteVector(a byte) ByteVector
type CBCCipher ¶
type CBCCipher struct { BlockCipher // contains filtered or unexported fields }
func NewCBCCipher ¶
func NewCBCCipher(cipher BlockCipher, iv []byte) (*CBCCipher, error)
type CTRCipher ¶
type CTRCipher struct { BlockCipher // contains filtered or unexported fields }
func NewCTRCipher ¶
func NewCTRCipher(cipher BlockCipher, iv []byte) (*CTRCipher, error)
type DESCipher ¶
type DESCipher struct {
FeistelNetwork
}
func NewDESCipher ¶
func (*DESCipher) GenerateSubkeys ¶
func (DESCipher) RoundFunction ¶
type ECBCipher ¶
type ECBCipher struct {
BlockCipher
}
func NewECBCipher ¶
func NewECBCipher(cipher BlockCipher) *ECBCipher
type ECC ¶
type ECC struct { Curve EllipticCurve G AffinePoint N, H *big.Int }
var Secp192k1 ECC
var Secp192r1 ECC
var Secp224k1 ECC
var Secp224r1 ECC
var Secp256k1 ECC
var Secp256r1 ECC
var Secp384r1 ECC
var Secp521r1 ECC
func (ECC) Base ¶
func (ecc ECC) Base() AffinePoint
func (ECC) Eval ¶
func (ecc ECC) Eval(a AffinePoint, b *big.Int) AffinePoint
type EllipticCurve ¶
type EllipticCurve struct {
// contains filtered or unexported fields
}
func NewEllipticCurve ¶
func NewEllipticCurve(a_, b_, p *big.Int) EllipticCurve
func (EllipticCurve) AddAffine ¶
func (ec EllipticCurve) AddAffine(p, q AffinePoint) AffinePoint
func (EllipticCurve) AddMixed ¶
func (ec EllipticCurve) AddMixed(p ProjectivePoint, q AffinePoint) ProjectivePoint
func (EllipticCurve) AffineFromProjective ¶
func (ec EllipticCurve) AffineFromProjective(p ProjectivePoint) AffinePoint
func (EllipticCurve) DoubleProjective ¶
func (ec EllipticCurve) DoubleProjective(p ProjectivePoint) ProjectivePoint
func (EllipticCurve) FeasibleAffinePoint ¶
func (ec EllipticCurve) FeasibleAffinePoint(p AffinePoint) bool
func (EllipticCurve) MulIntAffine ¶
func (ec EllipticCurve) MulIntAffine(p AffinePoint, n *big.Int) AffinePoint
func (EllipticCurve) MulIntProjective ¶
func (ec EllipticCurve) MulIntProjective(q AffinePoint, n *big.Int) AffinePoint
func (EllipticCurve) NegAffine ¶
func (ec EllipticCurve) NegAffine(p AffinePoint) AffinePoint
func (EllipticCurve) NegProjective ¶
func (ec EllipticCurve) NegProjective(p ProjectivePoint) ProjectivePoint
type ExtensionField ¶
type ExtensionField struct {
IP *Polynomial
}
func NewExtensionField ¶
func NewExtensionField(ip *Polynomial) ExtensionField
func (ExtensionField) Add ¶
func (f ExtensionField) Add(a, b *Polynomial) *Polynomial
func (ExtensionField) Div ¶
func (f ExtensionField) Div(a, b *Polynomial) *Polynomial
func (ExtensionField) IsOne ¶
func (f ExtensionField) IsOne(a *Polynomial) bool
func (ExtensionField) IsZero ¶
func (f ExtensionField) IsZero(a *Polynomial) bool
func (ExtensionField) Mul ¶
func (f ExtensionField) Mul(a, b *Polynomial) *Polynomial
func (ExtensionField) One ¶
func (f ExtensionField) One() *Polynomial
func (ExtensionField) Sub ¶
func (f ExtensionField) Sub(a, b *Polynomial) *Polynomial
func (ExtensionField) Zero ¶
func (f ExtensionField) Zero() *Polynomial
type FeistelNetwork ¶
type FeistelNetwork struct { BlockLength int // block length in bytes Keys [][]byte F RoundFunction }
func NewFeistelNetwork ¶
func NewFeistelNetwork(blockLength int, keys [][]byte, f RoundFunction) FeistelNetwork
func (FeistelNetwork) Decrypt ¶
func (network FeistelNetwork) Decrypt(input, output []byte) error
func (FeistelNetwork) Encrypt ¶
func (network FeistelNetwork) Encrypt(input, output []byte) error
func (FeistelNetwork) GetBlockLength ¶
func (network FeistelNetwork) GetBlockLength() int
type FieldFloat ¶
type FieldPolynomial ¶
type FieldPolynomial interface { Neg(a *Polynomial) *Polynomial Add(a, b *Polynomial) *Polynomial Sub(a, b *Polynomial) *Polynomial Mul(a, b *Polynomial) *Polynomial Div(a, b *Polynomial) *Polynomial IsZero(a *Polynomial) bool IsOne(a *Polynomial) bool Zero() *Polynomial One() *Polynomial }
type Message ¶
type Message []byte
func NewMessage ¶
func NullMessage ¶
func (Message) Base64String ¶
type PermutationCipher ¶
type PermutationCipher struct {
// contains filtered or unexported fields
}
func NewAsciiPermutationCipher ¶
func NewAsciiPermutationCipher(alphabet AsciiAlphabet) PermutationCipher
func NewPermutationCipher ¶
func NewPermutationCipher() PermutationCipher
func (*PermutationCipher) Decrypt ¶
func (cipher *PermutationCipher) Decrypt(m Message) Message
func (*PermutationCipher) Encrypt ¶
func (cipher *PermutationCipher) Encrypt(m Message) Message
func (*PermutationCipher) Generate ¶
func (cipher *PermutationCipher) Generate(args ...interface{})
func (*PermutationCipher) GetKey ¶
func (cipher *PermutationCipher) GetKey() Key
func (*PermutationCipher) Swap ¶
func (cipher *PermutationCipher) Swap(j1, j2 int)
type Polynomial ¶
func NewPolynomial ¶
func NewPolynomial(field FieldInt) *Polynomial
func (*Polynomial) Add ¶
func (r *Polynomial) Add(a, b *Polynomial)
func (*Polynomial) AddTerm ¶
func (r *Polynomial) AddTerm(c, e int)
func (*Polynomial) Clone ¶
func (r *Polynomial) Clone() *Polynomial
func (*Polynomial) Degree ¶
func (r *Polynomial) Degree() int
func (*Polynomial) Div ¶
func (r *Polynomial) Div(a, b *Polynomial)
func (*Polynomial) Equals ¶
func (r *Polynomial) Equals(a *Polynomial) bool
func (*Polynomial) Exponents ¶
func (r *Polynomial) Exponents() []int
func (*Polynomial) Lead ¶
func (r *Polynomial) Lead() (int, int)
func (*Polynomial) Mod ¶
func (r *Polynomial) Mod(a, b *Polynomial)
func (*Polynomial) Mul ¶
func (r *Polynomial) Mul(a, b *Polynomial)
func (*Polynomial) Neg ¶
func (r *Polynomial) Neg(a *Polynomial)
func (*Polynomial) Set ¶
func (r *Polynomial) Set(a *Polynomial)
func (*Polynomial) SetZero ¶
func (r *Polynomial) SetZero()
func (*Polynomial) String ¶
func (r *Polynomial) String() string
func (*Polynomial) Sub ¶
func (r *Polynomial) Sub(a, b *Polynomial)
type PrimeField ¶
type PrimeField int
func NewPrimeField ¶
func NewPrimeField(p int) PrimeField
func (PrimeField) Add ¶
func (p PrimeField) Add(a, b int) int
func (PrimeField) Div ¶
func (p PrimeField) Div(a, b int) int
func (PrimeField) IsOne ¶
func (p PrimeField) IsOne(a int) bool
func (PrimeField) IsZero ¶
func (p PrimeField) IsZero(a int) bool
func (PrimeField) Modp ¶
func (p PrimeField) Modp(a int) int
func (PrimeField) Mul ¶
func (p PrimeField) Mul(a, b int) int
func (PrimeField) Neg ¶
func (p PrimeField) Neg(a int) int
func (PrimeField) One ¶
func (p PrimeField) One() int
func (PrimeField) Sub ¶
func (p PrimeField) Sub(a, b int) int
func (PrimeField) Zero ¶
func (p PrimeField) Zero() int
type ProjectivePoint ¶
type ProjectivePoint struct {
// contains filtered or unexported fields
}
func NewProjectivePoint ¶
func NewProjectivePoint(x_, y_, z_ *big.Int) ProjectivePoint
func NullProjectivePoint ¶
func NullProjectivePoint() ProjectivePoint
func (ProjectivePoint) Clone ¶
func (p ProjectivePoint) Clone() ProjectivePoint
func (ProjectivePoint) Equals ¶
func (p ProjectivePoint) Equals(q ProjectivePoint) bool
func (ProjectivePoint) GetX ¶
func (p ProjectivePoint) GetX() *big.Int
func (ProjectivePoint) GetY ¶
func (p ProjectivePoint) GetY() *big.Int
func (ProjectivePoint) GetZ ¶
func (p ProjectivePoint) GetZ() *big.Int
func (ProjectivePoint) IsZero ¶
func (p ProjectivePoint) IsZero() bool
func (*ProjectivePoint) Set ¶
func (p *ProjectivePoint) Set(q ProjectivePoint)
func (*ProjectivePoint) SetAffine ¶
func (p *ProjectivePoint) SetAffine(q AffinePoint)
func (*ProjectivePoint) SetX ¶
func (p *ProjectivePoint) SetX(x *big.Int)
func (*ProjectivePoint) SetY ¶
func (p *ProjectivePoint) SetY(y *big.Int)
func (*ProjectivePoint) SetZ ¶
func (p *ProjectivePoint) SetZ(z *big.Int)
func (*ProjectivePoint) SetZero ¶
func (p *ProjectivePoint) SetZero()
func (ProjectivePoint) String ¶
func (p ProjectivePoint) String() string
type TripleDESCipher ¶
type TripleDESCipher struct {
// contains filtered or unexported fields
}
func NewTripleDESCipher ¶
func NewTripleDESCipher(key Key) (*TripleDESCipher, error)
func (TripleDESCipher) Decrypt ¶
func (cipher TripleDESCipher) Decrypt(input, output []byte) error
func (TripleDESCipher) Encrypt ¶
func (cipher TripleDESCipher) Encrypt(input, output []byte) error
func (TripleDESCipher) GetBlockLength ¶
func (cipher TripleDESCipher) GetBlockLength() int
Source Files
¶
- aes.go
- aes_key.go
- aes_tables.go
- alphabet.go
- base64.go
- bits.go
- block_cipher.go
- block_modes.go
- bytealgebra.go
- cipher.go
- des.go
- eea.go
- elliptic_curve.go
- elliptic_curve_cryptography.go
- elliptic_curve_point.go
- feistel.go
- field.go
- field_extension.go
- field_extension_binary.go
- field_prime.go
- field_prime_big.go
- field_real.go
- io.go
- key.go
- message.go
- permutation.go
- polynomial.go
- polynomial_binary.go
- prime.go
- triple_des.go
- utility.go
Click to show internal directories.
Click to hide internal directories.