Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Asymmetric = &asymmetricLocker{ Overhead: Symmetric.Overhead, }
View Source
var (
ErrBadSignature = errors.New("bad signature")
)
View Source
var (
ErrInvalidSize = errors.New("invalid ciphertext size")
)
View Source
var Noop = &noopLocker{}
View Source
var ScrambleSigned = &scrambleSignedLocker{
Overhead: aeadOverhead + signatureSize,
MaxPaddingLength: defaultMaxPaddingLength,
}
View Source
var Symmetric = &symmetricLocker{
Overhead: aeadOverhead,
MaxPaddingLength: defaultMaxPaddingLength,
}
Functions ¶
This section is empty.
Types ¶
type Locker ¶
type Locker interface { SealOpener GenerateKey(r io.Reader) (publicKey, privateKey []byte, err error) }
type SealOpener ¶
Click to show internal directories.
Click to hide internal directories.