type crypto/rsa.PrivateKey
39 uses
crypto/rsa (current package)
notboring.go#L14: func boringPrivateKey(*PrivateKey) (*boring.PrivateKeyRSA, error) {
pkcs1v15.go#L93: func DecryptPKCS1v15(random io.Reader, priv *PrivateKey, ciphertext []byte) ([]byte, error) {
pkcs1v15.go#L154: func DecryptPKCS1v15SessionKey(random io.Reader, priv *PrivateKey, ciphertext []byte, key []byte) error {
pkcs1v15.go#L185: func decryptPKCS1v15(priv *PrivateKey, ciphertext []byte) (valid int, em []byte, index int, err error) {
pkcs1v15.go#L288: func SignPKCS1v15(random io.Reader, priv *PrivateKey, hash crypto.Hash, hashed []byte) ([]byte, error) {
pss.go#L210: func signPSSWithSalt(priv *PrivateKey, hash crypto.Hash, hashed, salt []byte) ([]byte, error) {
pss.go#L292: func SignPSS(rand io.Reader, priv *PrivateKey, hash crypto.Hash, digest []byte, opts *PSSOptions) ([]byte, error) {
rsa.go#L112: type PrivateKey struct {
rsa.go#L124: func (priv *PrivateKey) Public() crypto.PublicKey {
rsa.go#L130: func (priv *PrivateKey) Equal(x crypto.PrivateKey) bool {
rsa.go#L131: xx, ok := x.(*PrivateKey)
rsa.go#L163: func (priv *PrivateKey) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error) {
rsa.go#L174: 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#L274: func GenerateKey(random io.Reader, bits int) (*PrivateKey, error) {
rsa.go#L297: func GenerateMultiPrimeKey(random io.Reader, nprimes int, bits int) (*PrivateKey, error) {
rsa.go#L332: key := &PrivateKey{
rsa.go#L352: priv := new(PrivateKey)
rsa.go#L582: func (priv *PrivateKey) Precompute() {
rsa.go#L640: func decrypt(priv *PrivateKey, ciphertext []byte, check bool) ([]byte, error) {
rsa.go#L707: func DecryptOAEP(hash hash.Hash, random io.Reader, priv *PrivateKey, ciphertext []byte, label []byte) ([]byte, error) {
rsa.go#L711: func decryptOAEP(hash, mgfHash hash.Hash, random io.Reader, priv *PrivateKey, ciphertext []byte, label []byte) ([]byte, error) {
crypto/tls
auth.go#L259: 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#L47: func ParsePKCS1PrivateKey(der []byte) (*rsa.PrivateKey, error) {
pkcs1.go#L71: key := new(rsa.PrivateKey)
pkcs1.go#L104: func MarshalPKCS1PrivateKey(key *rsa.PrivateKey) []byte {
pkcs8.go#L105: case *rsa.PrivateKey:
github.com/golang-jwt/jwt/v5
rsa.go#L71: var rsaKey *rsa.PrivateKey
rsa.go#L75: if rsaKey, ok = key.(*rsa.PrivateKey); !ok {
rsa_pss.go#L112: var rsaKey *rsa.PrivateKey
rsa_pss.go#L115: case *rsa.PrivateKey:
rsa_utils.go#L17: func ParseRSAPrivateKeyFromPEM(key []byte) (*rsa.PrivateKey, error) {
rsa_utils.go#L33: var pkey *rsa.PrivateKey
rsa_utils.go#L35: if pkey, ok = parsedKey.(*rsa.PrivateKey); !ok {
rsa_utils.go#L47: func ParseRSAPrivateKeyFromPEMWithPassword(key []byte, password string) (*rsa.PrivateKey, error) {
rsa_utils.go#L69: var pkey *rsa.PrivateKey
rsa_utils.go#L71: if pkey, ok = parsedKey.(*rsa.PrivateKey); !ok {
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |