Versions in this module Expand all Collapse all v0 v0.55.0 May 4, 2024 v0.54.0 Apr 4, 2024 Changes in this version + var ErrEmptyPassphrase = errors.New(`empty passphrase`) + var ErrStdinPassphrase = errors.New(`cannot read passhprase from stdin`) + func DecryptOaep(hash hash.Hash, random io.Reader, pkey *rsa.PrivateKey, cipher, label []byte) (plain []byte, err error) + func EncryptOaep(hash hash.Hash, random io.Reader, pub *rsa.PublicKey, msg, label []byte) (cipher []byte, err error) + func LoadPrivateKey(file string, passphrase []byte) (pkey crypto.PrivateKey, err error) + func LoadPrivateKeyInteractive(termrw io.ReadWriter, file string) (pkey crypto.PrivateKey, err error)