type crypto/internal/fips140/rsa.PublicKey
22 uses
crypto/internal/fips140/rsa (current package)
cast.go#L170: pub: PublicKey{
largeexponent.go#L86: expected, err := pkcs1v15ConstructEM(&PublicKey{N: pub.N}, hash, hashed)
pkcs1v15.go#L66: func pkcs1v15ConstructEM(pub *PublicKey, hash string, hashed []byte) ([]byte, error) {
pkcs1v15.go#L99: func VerifyPKCS1v15(pub *PublicKey, hash string, hashed []byte, sig []byte) error {
pkcs1v15.go#L107: func verifyPKCS1v15(pub *PublicKey, hash string, hashed []byte, sig []byte) error {
pkcs1v22.go#L255: func PSSMaxSaltLength(pub *PublicKey, hash hash.Hash) (int, error) {
pkcs1v22.go#L316: func VerifyPSS(pub *PublicKey, hash hash.Hash, digest []byte, sig []byte) error {
pkcs1v22.go#L321: func VerifyPSSWithSaltLength(pub *PublicKey, hash hash.Hash, digest []byte, sig []byte, saltLength int) error {
pkcs1v22.go#L328: func verifyPSS(pub *PublicKey, hash hash.Hash, digest []byte, sig []byte, saltLength int) error {
pkcs1v22.go#L373: func EncryptOAEP(hash, mgfHash hash.Hash, random io.Reader, pub *PublicKey, msg []byte, label []byte) ([]byte, error) {
rsa.go#L14: type PublicKey struct {
rsa.go#L21: func (pub *PublicKey) Size() int {
rsa.go#L27: pub PublicKey
rsa.go#L44: func (priv *PrivateKey) PublicKey() *PublicKey {
rsa.go#L98: pub: PublicKey{
rsa.go#L135: pub: PublicKey{
rsa.go#L160: pub: PublicKey{
rsa.go#L326: func checkPublicKey(pub *PublicKey) (fipsApproved bool, err error) {
rsa.go#L367: func Encrypt(pub *PublicKey, plaintext []byte) ([]byte, error) {
rsa.go#L375: func encrypt(pub *PublicKey, plaintext []byte) ([]byte, error) {
crypto/rsa
rsa.go#L684: func fipsPublicKey(pub *PublicKey) (*rsa.PublicKey, error) {
rsa.go#L689: return &rsa.PublicKey{N: N, E: pub.E}, nil