Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomKey ¶
GenerateRandomKey generates a random key of a given size
Types ¶
type CipherSigner ¶
type CipherSigner struct {
// contains filtered or unexported fields
}
func NewCipherSigner ¶
func NewCipherSigner(cipher Cipher, signer Signer) *CipherSigner
func (*CipherSigner) DecryptAndVerify ¶
func (cs *CipherSigner) DecryptAndVerify(ciphertext []byte) ([]byte, error)
func (*CipherSigner) EncryptAndSign ¶
func (cs *CipherSigner) EncryptAndSign(plaintext []byte) ([]byte, error)
func (*CipherSigner) SignAndEncrypt ¶
func (cs *CipherSigner) SignAndEncrypt(plaintext []byte) ([]byte, error)
func (*CipherSigner) VerifyAndDecrypt ¶
func (cs *CipherSigner) VerifyAndDecrypt(ciphertext []byte) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.