Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for marshalPublicKey (0.63 sec)

  1. src/crypto/x509/x509.go

    		}
    		return nil, err
    	} else if len(rest) != 0 {
    		return nil, errors.New("x509: trailing data after ASN.1 of public-key")
    	}
    	return parsePublicKey(&pki)
    }
    
    func marshalPublicKey(pub any) (publicKeyBytes []byte, publicKeyAlgorithm pkix.AlgorithmIdentifier, err error) {
    	switch pub := pub.(type) {
    	case *rsa.PublicKey:
    		publicKeyBytes, err = asn1.Marshal(pkcs1PublicKey{
    			N: pub.N,
    			E: pub.E,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
Back to top