crypto/x509/pkix.AlgorithmIdentifier.Algorithm (field)

36 uses

	crypto/x509/pkix (current package)
		pkix.go#L20: 	Algorithm  asn1.ObjectIdentifier

	crypto/x509
		parser.go#L153: 	if !der.ReadASN1ObjectIdentifier(&ai.Algorithm) {
		parser.go#L218: 	oid := keyData.Algorithm.Algorithm
		parser.go#L917: 	cert.PublicKeyAlgorithm = getPublicKeyAlgorithmFromOID(pkAI.Algorithm)
		pkcs8.go#L47: 	case privKey.Algo.Algorithm.Equal(oidPublicKeyRSA):
		pkcs8.go#L54: 	case privKey.Algo.Algorithm.Equal(oidPublicKeyECDSA):
		pkcs8.go#L66: 	case privKey.Algo.Algorithm.Equal(oidPublicKeyEd25519):
		pkcs8.go#L79: 	case privKey.Algo.Algorithm.Equal(oidPublicKeyX25519):
		pkcs8.go#L90: 		return nil, fmt.Errorf("x509: PKCS#8 wrapping contained private key with unknown algorithm: %v", privKey.Algo.Algorithm)
		pkcs8.go#L107: 			Algorithm:  oidPublicKeyRSA,
		pkcs8.go#L122: 			Algorithm: oidPublicKeyECDSA,
		pkcs8.go#L133: 			Algorithm: oidPublicKeyEd25519,
		pkcs8.go#L144: 				Algorithm: oidPublicKeyX25519,
		pkcs8.go#L160: 				Algorithm: oidPublicKeyECDSA,
		x509.go#L94: 		publicKeyAlgorithm.Algorithm = oidPublicKeyRSA
		x509.go#L107: 		publicKeyAlgorithm.Algorithm = oidPublicKeyECDSA
		x509.go#L116: 		publicKeyAlgorithm.Algorithm = oidPublicKeyEd25519
		x509.go#L120: 			publicKeyAlgorithm.Algorithm = oidPublicKeyX25519
		x509.go#L126: 			publicKeyAlgorithm.Algorithm = oidPublicKeyECDSA
		x509.go#L407: 	if ai.Algorithm.Equal(oidSignatureEd25519) {
		x509.go#L415: 	if !ai.Algorithm.Equal(oidSignatureRSAPSS) {
		x509.go#L417: 			if ai.Algorithm.Equal(details.oid) {
		x509.go#L443: 		!params.MGF.Algorithm.Equal(oidMGF1) ||
		x509.go#L444: 		!mgf1HashFunc.Algorithm.Equal(params.Hash.Algorithm) ||
		x509.go#L451: 	case params.Hash.Algorithm.Equal(oidSHA256) && params.SaltLength == 32:
		x509.go#L453: 	case params.Hash.Algorithm.Equal(oidSHA384) && params.SaltLength == 48:
		x509.go#L455: 	case params.Hash.Algorithm.Equal(oidSHA512) && params.SaltLength == 64:
		x509.go#L1415: 		sigAlgo.Algorithm = oidSignatureSHA256WithRSA
		x509.go#L1424: 			sigAlgo.Algorithm = oidSignatureECDSAWithSHA256
		x509.go#L1427: 			sigAlgo.Algorithm = oidSignatureECDSAWithSHA384
		x509.go#L1430: 			sigAlgo.Algorithm = oidSignatureECDSAWithSHA512
		x509.go#L1437: 		sigAlgo.Algorithm = oidSignatureEd25519
		x509.go#L1458: 			sigAlgo.Algorithm, hashFunc = details.oid, details.hash
		x509.go#L1570: 	if getPublicKeyAlgorithmFromOID(publicKeyAlgorithm.Algorithm) == UnknownPublicKeyAlgorithm {
		x509.go#L2113: 		PublicKeyAlgorithm: getPublicKeyAlgorithmFromOID(in.TBSCSR.PublicKey.Algorithm.Algorithm),