Home | History | Annotate | Download | only in x509

Lines Matching refs:tbsCertificate

112 	TBSCertificate     tbsCertificate
117 type tbsCertificate struct {
892 out.RawTBSCertificate = in.TBSCertificate.Raw
893 out.RawSubjectPublicKeyInfo = in.TBSCertificate.PublicKey.Raw
894 out.RawSubject = in.TBSCertificate.Subject.FullBytes
895 out.RawIssuer = in.TBSCertificate.Issuer.FullBytes
899 getSignatureAlgorithmFromOID(in.TBSCertificate.SignatureAlgorithm.Algorithm)
902 getPublicKeyAlgorithmFromOID(in.TBSCertificate.PublicKey.Algorithm.Algorithm)
904 out.PublicKey, err = parsePublicKey(out.PublicKeyAlgorithm, &in.TBSCertificate.PublicKey)
909 if in.TBSCertificate.SerialNumber.Sign() < 0 {
913 out.Version = in.TBSCertificate.Version + 1
914 out.SerialNumber = in.TBSCertificate.SerialNumber
917 if rest, err := asn1.Unmarshal(in.TBSCertificate.Subject.FullBytes, &subject); err != nil {
922 if rest, err := asn1.Unmarshal(in.TBSCertificate.Issuer.FullBytes, &issuer); err != nil {
931 out.NotBefore = in.TBSCertificate.Validity.NotBefore
932 out.NotAfter = in.TBSCertificate.Validity.NotAfter
934 for _, e := range in.TBSCertificate.Extensions {
1568 c := tbsCertificate{