Documentation ¶
Index ¶
Constants ¶
View Source
const WITNESS_COUNT = 20
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrMessageTooLong ¶
type ErrMessageTooLong struct{}
ErrMessageTooLong Error returned when attempting to encrypt a message which is too large for the public key.
func (ErrMessageTooLong) Error ¶
func (e ErrMessageTooLong) Error() string
type PrivateKey ¶
type PrivateKey struct { // Pointer to the public key which holds the modulus Public *PublicKey // contains filtered or unexported fields }
func ReadPrivateKey ¶
func ReadPrivateKey(r io.Reader) *PrivateKey
func (*PrivateKey) Save ¶
func (private *PrivateKey) Save(w io.Writer)
Save the private key to the writer
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func ReadPublicKey ¶
Click to show internal directories.
Click to hide internal directories.