type crypto/rsa.PrivateKey
32 uses
crypto/rsa (current package)
fips.go#L64: func SignPSS(rand io.Reader, priv *PrivateKey, hash crypto.Hash, digest []byte, opts *PSSOptions) ([]byte, error) {
fips.go#L243: func DecryptOAEP(hash hash.Hash, random io.Reader, priv *PrivateKey, ciphertext []byte, label []byte) ([]byte, error) {
fips.go#L248: func decryptOAEP(hash, mgfHash hash.Hash, priv *PrivateKey, ciphertext []byte, label []byte) ([]byte, error) {
fips.go#L302: func SignPKCS1v15(random io.Reader, priv *PrivateKey, hash crypto.Hash, hashed []byte) ([]byte, error) {
fips.go#L421: func checkFIPS140OnlyPrivateKey(priv *PrivateKey) error {
notboring.go#L14: func boringPrivateKey(*PrivateKey) (*boring.PrivateKeyRSA, error) {
pkcs1v15.go#L102: func DecryptPKCS1v15(random io.Reader, priv *PrivateKey, ciphertext []byte) ([]byte, error) {
pkcs1v15.go#L163: func DecryptPKCS1v15SessionKey(random io.Reader, priv *PrivateKey, ciphertext []byte, key []byte) error {
pkcs1v15.go#L195: func decryptPKCS1v15(priv *PrivateKey, ciphertext []byte) (valid int, em []byte, index int, err error) {
rsa.go#L107: type PrivateKey struct {
rsa.go#L119: func (priv *PrivateKey) Public() crypto.PublicKey {
rsa.go#L125: func (priv *PrivateKey) Equal(x crypto.PrivateKey) bool {
rsa.go#L126: xx, ok := x.(*PrivateKey)
rsa.go#L158: func (priv *PrivateKey) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error) {
rsa.go#L169: func (priv *PrivateKey) Decrypt(rand io.Reader, ciphertext []byte, opts crypto.DecrypterOpts) (plaintext []byte, err error) {
rsa.go#L230: func (priv *PrivateKey) Validate() error {
rsa.go#L278: func GenerateKey(random io.Reader, bits int) (*PrivateKey, error) {
rsa.go#L302: key := &PrivateKey{
rsa.go#L349: key := &PrivateKey{
rsa.go#L389: func GenerateMultiPrimeKey(random io.Reader, nprimes int, bits int) (*PrivateKey, error) {
rsa.go#L399: priv := new(PrivateKey)
rsa.go#L507: func (priv *PrivateKey) Precompute() {
rsa.go#L521: func (priv *PrivateKey) precompute() (PrecomputedValues, error) {
rsa.go#L569: func (priv *PrivateKey) precomputeLegacy() (PrecomputedValues, error) {
rsa.go#L632: func fipsPrivateKey(priv *PrivateKey) (*rsa.PrivateKey, error) {
crypto/tls
auth.go#L260: case rsa.PrivateKey, ecdsa.PrivateKey:
tls.go#L322: priv, ok := cert.PrivateKey.(*rsa.PrivateKey)
tls.go#L361: 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: