Home | History | Annotate | Download | only in x509

Lines Matching defs:RSA

18 	"crypto/rsa"
50 // Supported key types include RSA, DSA, and ECDSA. Unknown key
53 // On success, pub will be of type *rsa.PublicKey, *dsa.PublicKey,
71 case *rsa.PublicKey:
97 return nil, pkix.AlgorithmIdentifier{}, errors.New("x509: only RSA and ECDSA public keys supported")
216 RSA
222 RSA: "RSA",
240 // RFC 3279 2.2.1 RSA Signature Algorithms
318 {MD2WithRSA, "MD2-RSA", oidSignatureMD2WithRSA, RSA, crypto.Hash(0) /* no value for MD2 */},
319 {MD5WithRSA, "MD5-RSA", oidSignatureMD5WithRSA, RSA, crypto.MD5},
320 {SHA1WithRSA, "SHA1-RSA", oidSignatureSHA1WithRSA, RSA, crypto.SHA1},
321 {SHA1WithRSA, "SHA1-RSA", oidISOSignatureSHA1WithRSA, RSA, crypto.SHA1},
322 {SHA256WithRSA, "SHA256-RSA", oidSignatureSHA256WithRSA, RSA, crypto.SHA256},
323 {SHA384WithRSA, "SHA384-RSA", oidSignatureSHA384WithRSA, RSA, crypto.SHA384},
324 {SHA512WithRSA, "SHA512-RSA", oidSignatureSHA512WithRSA, RSA, crypto.SHA512},
325 {SHA256WithRSAPSS, "SHA256-RSAPSS", oidSignatureRSAPSS, RSA, crypto.SHA256},
326 {SHA384WithRSAPSS, "SHA384-RSAPSS", oidSignatureRSAPSS, RSA, crypto.SHA384},
327 {SHA512WithRSAPSS, "SHA512-RSAPSS", oidSignatureRSAPSS, RSA, crypto.SHA512},
337 // specifies RSA PSS. See https://tools.ietf.org/html/rfc3447#appendix-A.2.3
349 // in an AlgorithmIdentifier that specifies RSA PSS.
403 // RSA PSS is special because it encodes important parameters
466 return RSA
896 case *rsa.PublicKey:
897 if pubKeyAlgo != RSA {
901 return rsa.VerifyPSS(pub, hashType, digest, signature, &rsa.PSSOptions{SaltLength: rsa.PSSSaltLengthEqualsHash})
903 return rsa.VerifyPKCS1v15(pub, hashType, digest, signature)
994 case RSA:
995 // RSA public keys must have a NULL in the parameters
998 return nil, errors.New("x509: RSA key missing NULL parameters")
1007 return nil, errors.New("x509: trailing data after RSA public key")
1011 return nil, errors.New("x509: RSA modulus is not a positive number")
1014 return nil, errors.New("x509: RSA public exponent is not a positive number")
1017 pub := &rsa.PublicKey{
1981 case *rsa.PublicKey:
1982 pubType = RSA
2005 err = errors.New("x509: only RSA and ECDSA keys supported")
2061 // includes *rsa.PublicKey and *ecdsa.PublicKey.)
2132 signerOpts = &rsa.PSSOptions{
2133 SaltLength: rsa.PSSSaltLengthEqualsHash,
2381 // includes *rsa.PublicKey and *ecdsa.PublicKey.)