Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTooShort = errors.New("SealedSecret data is too short")
ErrTooShort indicates the provided data is too short to be valid
Functions ¶
func HybridDecrypt ¶
func HybridDecrypt(rnd io.Reader, privKeys map[string]*rsa.PrivateKey, ciphertext, label []byte) ([]byte, error)
HybridDecrypt performs a regular AES-GCM + RSA-OAEP decryption. The private keys map has a fingerprint of each public key as the map key.
func HybridEncrypt ¶
HybridEncrypt performs a regular AES-GCM + RSA-OAEP encryption. The output bytestring is:
RSA ciphertext length || RSA ciphertext || AES ciphertext
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.