type crypto/rsa.PublicKey
40 uses
crypto/rsa (current package)
fips.go#L131: func VerifyPSS(pub *PublicKey, hash crypto.Hash, digest []byte, sig []byte, opts *PSSOptions) error {
fips.go#L193: func EncryptOAEP(hash hash.Hash, random io.Reader, pub *PublicKey, msg []byte, label []byte) ([]byte, error) {
fips.go#L345: func VerifyPKCS1v15(pub *PublicKey, hash crypto.Hash, hashed []byte, sig []byte) error {
fips.go#L399: func checkFIPS140OnlyPublicKey(pub *PublicKey) error {
notboring.go#L11: func boringPublicKey(*PublicKey) (*boring.PublicKeyRSA, error) {
pkcs1v15.go#L42: func EncryptPKCS1v15(random io.Reader, pub *PublicKey, msg []byte) ([]byte, error) {
rsa.go#L68: type PublicKey struct {
rsa.go#L78: func (pub *PublicKey) Size() int {
rsa.go#L83: func (pub *PublicKey) Equal(x crypto.PublicKey) bool {
rsa.go#L84: xx, ok := x.(*PublicKey)
rsa.go#L108: PublicKey // public part.
rsa.go#L261: func checkPublicKeySize(k *PublicKey) error {
rsa.go#L303: PublicKey: PublicKey{
rsa.go#L350: PublicKey: PublicKey{
rsa.go#L624: func fipsPublicKey(pub *PublicKey) (*rsa.PublicKey, error) {
crypto/tls
auth.go#L42: pubKey, ok := pubkey.(*rsa.PublicKey)
auth.go#L50: pubKey, ok := pubkey.(*rsa.PublicKey)
auth.go#L134: case *rsa.PublicKey:
auth.go#L189: case *rsa.PublicKey:
auth.go#L273: case *rsa.PublicKey:
common.go#L1360: if _, ok := priv.Public().(*rsa.PublicKey); !ok {
common.go#L1438: case *rsa.PublicKey:
defaults_fips140.go#L67: case *rsa.PublicKey:
handshake_client.go#L1121: n := cert.PublicKey.(*rsa.PublicKey).N.BitLen()
handshake_client.go#L1185: case *rsa.PublicKey, *ecdsa.PublicKey, ed25519.PublicKey:
handshake_server.go#L311: case *rsa.PublicKey:
handshake_server.go#L320: case *rsa.PublicKey:
handshake_server.go#L937: n := certs[i].PublicKey.(*rsa.PublicKey).N.BitLen()
handshake_server.go#L992: case *ecdsa.PublicKey, *rsa.PublicKey, ed25519.PublicKey:
handshake_server_tls13.go#L889: if rsaKey, ok := public.(*rsa.PublicKey); ok && sigType == signatureRSAPSS &&
key_agreement.go#L91: rsaKey, ok := cert.PublicKey.(*rsa.PublicKey)
tls.go#L333: case *rsa.PublicKey:
crypto/x509
parser.go#L280: pub := &rsa.PublicKey{
pkcs1.go#L82: key.PublicKey = rsa.PublicKey{
pkcs1.go#L167: func ParsePKCS1PublicKey(der []byte) (*rsa.PublicKey, error) {
pkcs1.go#L187: return &rsa.PublicKey{
pkcs1.go#L196: func MarshalPKCS1PublicKey(key *rsa.PublicKey) []byte {
x509.go#L87: case *rsa.PublicKey:
x509.go#L998: case *rsa.PublicKey:
x509.go#L1523: case *rsa.PublicKey: