Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for AlgorithmIdentifier (0.95 sec)

  1. src/crypto/x509/x509.go

    // pssParameters reflects the parameters in an AlgorithmIdentifier that
    // specifies RSA PSS. See RFC 3447, Appendix A.2.3.
    type pssParameters struct {
    	// The following three fields are not marked as
    	// optional because the default values specify SHA-1,
    	// which is no longer suitable for use in signatures.
    	Hash         pkix.AlgorithmIdentifier `asn1:"explicit,tag:0"`
    	MGF          pkix.AlgorithmIdentifier `asn1:"explicit,tag:1"`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  2. src/crypto/rsa/pkcs1v15.go

    			// this to break the loop.
    			s[i] ^= 0x42
    		}
    	}
    
    	return
    }
    
    // These are ASN1 DER structures:
    //
    //	DigestInfo ::= SEQUENCE {
    //	  digestAlgorithm AlgorithmIdentifier,
    //	  digest OCTET STRING
    //	}
    //
    // For performance, we don't use the generic ASN1 encoder. Rather, we
    // precompute a prefix of the digest value that makes a valid ASN1 DER string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:21 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. src/crypto/x509/parser.go

    			}
    			rdnSet = append(rdnSet, attr)
    		}
    
    		rdnSeq = append(rdnSeq, rdnSet)
    	}
    
    	return &rdnSeq, nil
    }
    
    func parseAI(der cryptobyte.String) (pkix.AlgorithmIdentifier, error) {
    	ai := pkix.AlgorithmIdentifier{}
    	if !der.ReadASN1ObjectIdentifier(&ai.Algorithm) {
    		return ai, errors.New("x509: malformed OID")
    	}
    	if der.Empty() {
    		return ai, nil
    	}
    	var params cryptobyte.String
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  4. src/crypto/x509/x509_test.go

    		}
    
    		params := pssParameters{
    			Hash: pkix.AlgorithmIdentifier{
    				Algorithm:  hashOID,
    				Parameters: asn1.NullRawValue,
    			},
    			MGF: pkix.AlgorithmIdentifier{
    				Algorithm: oidMGF1,
    			},
    			SaltLength:   hashFunc.Size(),
    			TrailerField: 1,
    		}
    
    		mgf1Params := pkix.AlgorithmIdentifier{
    			Algorithm:  hashOID,
    			Parameters: asn1.NullRawValue,
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Name).FillFromRDNSequence", Method, 0},
    		{"(Name).String", Method, 10},
    		{"(Name).ToRDNSequence", Method, 0},
    		{"(RDNSequence).String", Method, 10},
    		{"AlgorithmIdentifier", Type, 0},
    		{"AlgorithmIdentifier.Algorithm", Field, 0},
    		{"AlgorithmIdentifier.Parameters", Field, 0},
    		{"AttributeTypeAndValue", Type, 0},
    		{"AttributeTypeAndValue.Type", Field, 0},
    		{"AttributeTypeAndValue.Value", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top