func (r *RSAOAEPCipher) OAEPHashAlg() HashAlgorithm {
	return r.oaepHashAlg
}
OAEPHashAlg returns the hash algorithm used for the OAEP padding for this cipher.
package encryption
import (
	"crypto/rand"
	"crypto/rsa"
	"crypto/sha1"
	"crypto/sha256"
	"fmt"
	"hash"
)
type HashAlgorithm string
const (
	SHA1   = HashAlgorithm("SHA-1")
	SHA256 = HashAlgorithm("SHA-256")
)
func (a HashAlgorithm) Hash() hash.Hash {
	switch a {
	case "SHA-1":
		return sha1.New()
	case "SHA-256":
		return sha256.New()
	default:
		panic(fmt.Errorf("unrecognized HashAlgorithm: %s", a))
	}
}
type RSAOAEPCipher struct {
	oaepHashAlg HashAlgorithm
	mdf1HashAlg HashAlgorithm
}