Documentation ¶
Overview ¶
package x509 provides utilities for working with x509 types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SignatureAlgorithmDetailsForOid ¶
func SignatureAlgorithmDetailsForOid(oid asn1.ObjectIdentifier) (x509.SignatureAlgorithm, crypto.Hash, error)
SignatureAlgorithmDetailsForOid returns a matching SignatureAlgorithm and crypto.Hash function from a provided oid.
func SigningParamsForPublicKey ¶
func SigningParamsForPublicKey(pub interface{}, requestedSigAlgo x509.SignatureAlgorithm) (hashFunc crypto.Hash, sigAlgo pkix.AlgorithmIdentifier, err error)
SigningParamsForPublicKey returns the parameters to use for signing. If requestedSigAlgo is not zero then it overrides the default signature algorithm.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.