Documentation ¶
Index ¶
- type ObjID
- type X25519
- func (x *X25519) PEMPublicKey() string
- func (x *X25519) ParsePEMPrivateKey(privatePEMKey string) error
- func (x *X25519) ParsePrivateKey(privateKey []byte) error
- func (x *X25519) ParseRandomPrivateKey() error
- func (x *X25519) PublicKey() []byte
- func (x *X25519) SharedKey(peerPublicKey []byte) (sharedKey []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjID ¶
type ObjID struct {
ObjID asn1.ObjectIdentifier
}
ObjID is a asn1.ObjectIdentifier place holder
type X25519 ¶
type X25519 struct {
// contains filtered or unexported fields
}
X25519 is curve25519 storage item
func (*X25519) PEMPublicKey ¶
PEMPublicKey return a string public key
func (*X25519) ParsePEMPrivateKey ¶
ParsePEMPrivateKey parse a private key from string
func (*X25519) ParsePrivateKey ¶
ParsePrivateKey parse private form a byte array
func (*X25519) ParseRandomPrivateKey ¶
ParseRandomPrivateKey user an random . which from /dev/urandom on Unix-like system
Click to show internal directories.
Click to hide internal directories.