type crypto/rsa.PrivateKey
33 uses
crypto/rsa (current package)
fips.go#L65: func SignPSS(random io.Reader, priv *PrivateKey, hash crypto.Hash, digest []byte, opts *PSSOptions) ([]byte, error) {
fips.go#L262: func DecryptOAEP(hash hash.Hash, random io.Reader, priv *PrivateKey, ciphertext []byte, label []byte) ([]byte, error) {
fips.go#L267: func decryptOAEP(hash, mgfHash hash.Hash, priv *PrivateKey, ciphertext []byte, label []byte) ([]byte, error) {
fips.go#L321: func SignPKCS1v15(random io.Reader, priv *PrivateKey, hash crypto.Hash, hashed []byte) ([]byte, error) {
fips.go#L440: func checkFIPS140OnlyPrivateKey(priv *PrivateKey) error {
notboring.go#L14: func boringPrivateKey(*PrivateKey) (*boring.PrivateKeyRSA, error) {
pkcs1v15.go#L113: func DecryptPKCS1v15(random io.Reader, priv *PrivateKey, ciphertext []byte) ([]byte, error) {
pkcs1v15.go#L181: func DecryptPKCS1v15SessionKey(random io.Reader, priv *PrivateKey, ciphertext []byte, key []byte) error {
pkcs1v15.go#L213: func decryptPKCS1v15(priv *PrivateKey, ciphertext []byte) (valid int, em []byte, index int, err error) {
rsa.go#L110: type PrivateKey struct {
rsa.go#L122: func (priv *PrivateKey) Public() crypto.PublicKey {
rsa.go#L128: func (priv *PrivateKey) Equal(x crypto.PrivateKey) bool {
rsa.go#L129: xx, ok := x.(*PrivateKey)
rsa.go#L161: func (priv *PrivateKey) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error) {
rsa.go#L172: func (priv *PrivateKey) Decrypt(rand io.Reader, ciphertext []byte, opts crypto.DecrypterOpts) (plaintext []byte, err error) {
rsa.go#L233: func (priv *PrivateKey) Validate() error {
rsa.go#L252: func (priv *PrivateKey) precomputedIsConsistent() bool {
rsa.go#L312: func GenerateKey(random io.Reader, bits int) (*PrivateKey, error) {
rsa.go#L336: key := &PrivateKey{
rsa.go#L385: key := &PrivateKey{
rsa.go#L429: func GenerateMultiPrimeKey(random io.Reader, nprimes int, bits int) (*PrivateKey, error) {
rsa.go#L439: priv := new(PrivateKey)
rsa.go#L547: func (priv *PrivateKey) Precompute() {
rsa.go#L562: func (priv *PrivateKey) precompute() (PrecomputedValues, error) {
rsa.go#L610: func (priv *PrivateKey) precomputeLegacy() (PrecomputedValues, error) {
rsa.go#L673: func fipsPrivateKey(priv *PrivateKey) (*rsa.PrivateKey, error) {
crypto/tls
auth.go#L275: case rsa.PrivateKey, ecdsa.PrivateKey:
tls.go#L333: priv, ok := cert.PrivateKey.(*rsa.PrivateKey)
tls.go#L372: case *rsa.PrivateKey, *ecdsa.PrivateKey, ed25519.PrivateKey:
crypto/x509
pkcs1.go#L54: func ParsePKCS1PrivateKey(der []byte) (*rsa.PrivateKey, error) {
pkcs1.go#L81: key := new(rsa.PrivateKey)
pkcs1.go#L133: func MarshalPKCS1PrivateKey(key *rsa.PrivateKey) []byte {
pkcs8.go#L110: case *rsa.PrivateKey: