Golang crypto/x509/pkix.AlgorithmIdentifier type example

package crypto/x509/pkix

AlgorithmIdentifier represents the ASN.1 structure of the same name. See RFC 5280, section 4.1.1.2.

Golang crypto/x509/pkix.AlgorithmIdentifier type usage example

 type Response struct {
  SignatureAlgorithm pkix.AlgorithmIdentifier
  Signature asn1.BitString
 }

or

 type certID struct {
  HashAlgorithm pkix.AlgorithmIdentifier
  NameHash []byte
  IssuerKeyHash []byte
  SerialNumber  *big.Int
 }

Reference :

http://golang.org/pkg/crypto/x509/pkix/#AlgorithmIdentifier

Advertisement