Documentation ¶
Index ¶
- Constants
- func Scheme() *dhNIKE
- type PrivateKey
- func (p *PrivateKey) Bytes() []byte
- func (p *PrivateKey) CyclicInt() *cyclic.Int
- func (p *PrivateKey) DeriveSecret(pubKey nike.PublicKey) []byte
- func (p *PrivateKey) FromBytes(data []byte) error
- func (p *PrivateKey) MarshalBinary() ([]byte, error)
- func (p *PrivateKey) MarshalText() ([]byte, error)
- func (p *PrivateKey) Public() nike.PublicKey
- func (p *PrivateKey) Reset()
- func (p *PrivateKey) Scheme() nike.Scheme
- func (p *PrivateKey) UnmarshalBinary(data []byte) error
- func (p *PrivateKey) UnmarshalText(data []byte) error
- type PublicKey
- func (p *PublicKey) Blind(blindingFactor nike.PrivateKey) error
- func (p *PublicKey) Bytes() []byte
- func (p *PublicKey) CyclicInt() *cyclic.Int
- func (p *PublicKey) FromBytes(data []byte) error
- func (p *PublicKey) MarshalBinary() ([]byte, error)
- func (p *PublicKey) MarshalText() ([]byte, error)
- func (p *PublicKey) Reset()
- func (p *PublicKey) Scheme() nike.Scheme
- func (p *PublicKey) UnmarshalBinary(data []byte) error
- func (p *PublicKey) UnmarshalText(data []byte) error
Constants ¶
View Source
const MODP4096 = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" +
"29024E088A67CC74020BBEA63B139B22514A08798E3404DD" +
"EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" +
"E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" +
"EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" +
"C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" +
"83655D23DCA3AD961C62F356208552BB9ED529077096966D" +
"670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" +
"E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" +
"DE2BCBF6955817183995497CEA956AE515D2261898FA0510" +
"15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64" +
"ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7" +
"ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B" +
"F12FFA06D98A0864D87602733EC86A64521F2B18177B200C" +
"BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31" +
"43DB5BFCE0FD108E4B82D120A92108011A723C12A787E6D7" +
"88719A10BDBA5B2699C327186AF4E23C1A946834B6150BDA" +
"2583E9CA2AD44CE8DBBBC2DB04DE8EF92E8EFC141FBECAA6" +
"287C59474E6BC05D99B2964FA090C3A2233BA186515BE7ED" +
"1F612970CEE2D7AFB81BDD762170481CD0069127D5B05AA9" +
"93B4EA988D8FDDC186FFB7DC90A6C08F4DF435C934063199" +
"FFFFFFFFFFFFFFFF"
MODP4096 is taken from RFC 3526 This prime is: 2^4096 - 2^4032 - 1 + 2^64 * { [2^3966 pi] + 240904 }
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func (*PrivateKey) Bytes ¶
func (p *PrivateKey) Bytes() []byte
func (*PrivateKey) CyclicInt ¶
func (p *PrivateKey) CyclicInt() *cyclic.Int
func (*PrivateKey) DeriveSecret ¶
func (p *PrivateKey) DeriveSecret(pubKey nike.PublicKey) []byte
func (*PrivateKey) FromBytes ¶
func (p *PrivateKey) FromBytes(data []byte) error
func (*PrivateKey) MarshalBinary ¶
func (p *PrivateKey) MarshalBinary() ([]byte, error)
func (*PrivateKey) MarshalText ¶
func (p *PrivateKey) MarshalText() ([]byte, error)
func (*PrivateKey) Public ¶
func (p *PrivateKey) Public() nike.PublicKey
func (*PrivateKey) Reset ¶
func (p *PrivateKey) Reset()
func (*PrivateKey) Scheme ¶
func (p *PrivateKey) Scheme() nike.Scheme
func (*PrivateKey) UnmarshalBinary ¶
func (p *PrivateKey) UnmarshalBinary(data []byte) error
func (*PrivateKey) UnmarshalText ¶
func (p *PrivateKey) UnmarshalText(data []byte) error
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func (*PublicKey) MarshalBinary ¶
func (*PublicKey) MarshalText ¶
func (*PublicKey) UnmarshalBinary ¶
func (*PublicKey) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.