Documentation ¶
Index ¶
- Variables
- func HMAC(result, secret, seed []byte)
- type Decrypter
- type Encrypter
- type HMACReader
- type HMACWriter
- type Key
- func (k *Key) Decrypt(data []byte) ([]byte, error)
- func (k *Key) Generate() error
- func (k *Key) MarshalDER() ([]byte, error)
- func (k *Key) MarshalPEM() ([]byte, error)
- func (k *Key) Public() (*PubKey, error)
- func (k *Key) Sign(data []byte) ([]byte, error)
- func (k *Key) Size() int
- func (k *Key) UnmarshalDER(data []byte) error
- func (k *Key) UnmarshalPEM(data []byte) error
- type PubKey
- func (k *PubKey) Encrypt(data []byte) ([]byte, error)
- func (k *PubKey) Fingerprint() [32]byte
- func (k *PubKey) FingerprintString() string
- func (k *PubKey) MarshalDER() []byte
- func (k *PubKey) MarshalPEM() ([]byte, error)
- func (k *PubKey) MaxPayload() int
- func (k *PubKey) Size() int
- func (k *PubKey) UnmarshalDER(data []byte) error
- func (k *PubKey) UnmarshalPEM(data []byte) error
- func (k *PubKey) Verify(data, sig []byte) error
- type ReadWriter
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type HMACReader ¶
type HMACReader struct {
// contains filtered or unexported fields
}
func NewHMACReader ¶
func NewSHA1HMACReader ¶
func NewSHA1HMACReader(r io.Reader, secret []byte) *HMACReader
type HMACWriter ¶
type HMACWriter struct {
// contains filtered or unexported fields
}
func NewHMACWriter ¶
func NewSHA1HMACWriter ¶
func NewSHA1HMACWriter(w io.Writer, secret []byte, buffer uint16) *HMACWriter
func (*HMACWriter) Flush ¶
func (h *HMACWriter) Flush() error
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func (*Key) MarshalDER ¶
func (*Key) MarshalPEM ¶
func (*Key) UnmarshalDER ¶
func (*Key) UnmarshalPEM ¶
type PubKey ¶
type PubKey struct {
// contains filtered or unexported fields
}
func (*PubKey) Fingerprint ¶
func (*PubKey) FingerprintString ¶
func (*PubKey) MarshalDER ¶
func (*PubKey) MarshalPEM ¶
func (*PubKey) MaxPayload ¶
func (*PubKey) UnmarshalDER ¶
func (*PubKey) UnmarshalPEM ¶
type ReadWriter ¶
Click to show internal directories.
Click to hide internal directories.