Home
last modified time | relevance | path

Searched refs:tbsCert (Results 1 – 19 of 19) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DCertificate.java25 TBSCertificate tbsCert; field in Certificate
61 tbsCert = TBSCertificate.getInstance(seq.getObjectAt(0)); in Certificate()
74 return tbsCert; in getTBSCertificate()
79 return tbsCert.getVersion(); in getVersion()
84 return tbsCert.getVersionNumber(); in getVersionNumber()
89 return tbsCert.getSerialNumber(); in getSerialNumber()
94 return tbsCert.getIssuer(); in getIssuer()
99 return tbsCert.getStartDate(); in getStartDate()
104 return tbsCert.getEndDate(); in getEndDate()
109 return tbsCert.getSubject(); in getSubject()
[all …]
DX509CertificateStructure.java28 TBSCertificateStructure tbsCert; field in X509CertificateStructure
64 tbsCert = TBSCertificateStructure.getInstance(seq.getObjectAt(0)); in X509CertificateStructure()
77 return tbsCert; in getTBSCertificate()
82 return tbsCert.getVersion(); in getVersion()
87 return tbsCert.getSerialNumber(); in getSerialNumber()
92 return tbsCert.getIssuer(); in getIssuer()
97 return tbsCert.getStartDate(); in getStartDate()
102 return tbsCert.getEndDate(); in getEndDate()
107 return tbsCert.getSubject(); in getSubject()
112 return tbsCert.getSubjectPublicKeyInfo(); in getSubjectPublicKeyInfo()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/x509/
DCertificate.java27 TBSCertificate tbsCert; field in Certificate
63 tbsCert = TBSCertificate.getInstance(seq.getObjectAt(0)); in Certificate()
76 return tbsCert; in getTBSCertificate()
81 return tbsCert.getVersion(); in getVersion()
86 return tbsCert.getVersionNumber(); in getVersionNumber()
91 return tbsCert.getSerialNumber(); in getSerialNumber()
96 return tbsCert.getIssuer(); in getIssuer()
101 return tbsCert.getStartDate(); in getStartDate()
106 return tbsCert.getEndDate(); in getEndDate()
111 return tbsCert.getSubject(); in getSubject()
[all …]
DX509CertificateStructure.java30 TBSCertificateStructure tbsCert; field in X509CertificateStructure
66 tbsCert = TBSCertificateStructure.getInstance(seq.getObjectAt(0)); in X509CertificateStructure()
79 return tbsCert; in getTBSCertificate()
84 return tbsCert.getVersion(); in getVersion()
89 return tbsCert.getSerialNumber(); in getSerialNumber()
94 return tbsCert.getIssuer(); in getIssuer()
99 return tbsCert.getStartDate(); in getStartDate()
104 return tbsCert.getEndDate(); in getEndDate()
109 return tbsCert.getSubject(); in getSubject()
114 return tbsCert.getSubjectPublicKeyInfo(); in getSubjectPublicKeyInfo()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
DCertificate.java27 TBSCertificate tbsCert; field in Certificate
64 tbsCert = TBSCertificate.getInstance(seq.getObjectAt(0)); in Certificate()
77 return tbsCert; in getTBSCertificate()
82 return tbsCert.getVersion(); in getVersion()
87 return tbsCert.getVersionNumber(); in getVersionNumber()
92 return tbsCert.getSerialNumber(); in getSerialNumber()
97 return tbsCert.getIssuer(); in getIssuer()
102 return tbsCert.getStartDate(); in getStartDate()
107 return tbsCert.getEndDate(); in getEndDate()
112 return tbsCert.getSubject(); in getSubject()
[all …]
DX509CertificateStructure.java30 TBSCertificateStructure tbsCert; field in X509CertificateStructure
66 tbsCert = TBSCertificateStructure.getInstance(seq.getObjectAt(0)); in X509CertificateStructure()
79 return tbsCert; in getTBSCertificate()
84 return tbsCert.getVersion(); in getVersion()
89 return tbsCert.getSerialNumber(); in getSerialNumber()
94 return tbsCert.getIssuer(); in getIssuer()
99 return tbsCert.getStartDate(); in getStartDate()
104 return tbsCert.getEndDate(); in getEndDate()
109 return tbsCert.getSubject(); in getSubject()
114 return tbsCert.getSubjectPublicKeyInfo(); in getSubjectPublicKeyInfo()
/external/scapy/scapy/layers/tls/
Dcert.py245 tbsCert = cert.tbsCertificate
246 sigAlg = tbsCert.signature
249 return self.verify(raw(tbsCert), sigVal, h=h, t='pkcs')
406 def signTBSCert(self, tbsCert, h="sha256"): argument
420 sigAlg = tbsCert.signature
422 sigVal = self.sign(raw(tbsCert), h=h, t='pkcs')
424 c.tbsCertificate = tbsCert
435 tbsCert = cert.tbsCertificate
436 sigAlg = tbsCert.signature
439 return self.verify(raw(tbsCert), sigVal, h=h, t='pkcs')
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/
DPrincipalUtil.java32 TBSCertificateStructure tbsCert = TBSCertificateStructure.getInstance( in getIssuerX509Principal() local
35 return new X509Principal(X509Name.getInstance(tbsCert.getIssuer())); in getIssuerX509Principal()
52 TBSCertificateStructure tbsCert = TBSCertificateStructure.getInstance( in getSubjectX509Principal() local
54 return new X509Principal(X509Name.getInstance(tbsCert.getSubject())); in getSubjectX509Principal()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
DX509V1CertificateGenerator.java296 TBSCertificate tbsCert = tbsGen.generateTBSCertificate(); in generate() local
301 … signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, key, random, tbsCert); in generate()
308 return generateJcaObject(tbsCert, signature); in generate()
335 TBSCertificate tbsCert = tbsGen.generateTBSCertificate(); in generate() local
340 …ignature = X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, tbsCert); in generate()
347 return generateJcaObject(tbsCert, signature); in generate()
350 private X509Certificate generateJcaObject(TBSCertificate tbsCert, byte[] signature) in generateJcaObject() argument
355 v.add(tbsCert); in generateJcaObject()
DX509V3CertificateGenerator.java434 TBSCertificate tbsCert = generateTbsCert(); in generate() local
439 … signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, key, random, tbsCert); in generate()
448 return generateJcaObject(tbsCert, signature); in generate()
479 TBSCertificate tbsCert = generateTbsCert(); in generate() local
484 …ignature = X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, tbsCert); in generate()
493 return generateJcaObject(tbsCert, signature); in generate()
511 private X509Certificate generateJcaObject(TBSCertificate tbsCert, byte[] signature) in generateJcaObject() argument
516 v.add(tbsCert); in generateJcaObject()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jce/
DPrincipalUtil.java34 TBSCertificateStructure tbsCert = TBSCertificateStructure.getInstance( in getIssuerX509Principal() local
37 return new X509Principal(X509Name.getInstance(tbsCert.getIssuer())); in getIssuerX509Principal()
54 TBSCertificateStructure tbsCert = TBSCertificateStructure.getInstance( in getSubjectX509Principal() local
56 return new X509Principal(X509Name.getInstance(tbsCert.getSubject())); in getSubjectX509Principal()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/
DPrincipalUtil.java34 TBSCertificateStructure tbsCert = TBSCertificateStructure.getInstance( in getIssuerX509Principal() local
37 return new X509Principal(X509Name.getInstance(tbsCert.getIssuer())); in getIssuerX509Principal()
54 TBSCertificateStructure tbsCert = TBSCertificateStructure.getInstance( in getSubjectX509Principal() local
56 return new X509Principal(X509Name.getInstance(tbsCert.getSubject())); in getSubjectX509Principal()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/x509/
DX509V1CertificateGenerator.java298 TBSCertificate tbsCert = tbsGen.generateTBSCertificate(); in generate() local
303 … signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, key, random, tbsCert); in generate()
310 return generateJcaObject(tbsCert, signature); in generate()
337 TBSCertificate tbsCert = tbsGen.generateTBSCertificate(); in generate() local
342 …ignature = X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, tbsCert); in generate()
349 return generateJcaObject(tbsCert, signature); in generate()
352 private X509Certificate generateJcaObject(TBSCertificate tbsCert, byte[] signature) in generateJcaObject() argument
357 v.add(tbsCert); in generateJcaObject()
DX509V3CertificateGenerator.java447 TBSCertificate tbsCert = generateTbsCert(); in generate() local
452 … signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, key, random, tbsCert); in generate()
461 return generateJcaObject(tbsCert, signature); in generate()
492 TBSCertificate tbsCert = generateTbsCert(); in generate() local
497 …ignature = X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, tbsCert); in generate()
506 return generateJcaObject(tbsCert, signature); in generate()
524 private X509Certificate generateJcaObject(TBSCertificate tbsCert, byte[] signature) in generateJcaObject() argument
529 v.add(tbsCert); in generateJcaObject()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/x509/
DX509V1CertificateGenerator.java298 TBSCertificate tbsCert = tbsGen.generateTBSCertificate(); in generate() local
303 … signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, key, random, tbsCert); in generate()
310 return generateJcaObject(tbsCert, signature); in generate()
337 TBSCertificate tbsCert = tbsGen.generateTBSCertificate(); in generate() local
342 …ignature = X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, tbsCert); in generate()
349 return generateJcaObject(tbsCert, signature); in generate()
352 private X509Certificate generateJcaObject(TBSCertificate tbsCert, byte[] signature) in generateJcaObject() argument
357 v.add(tbsCert); in generateJcaObject()
DX509V3CertificateGenerator.java436 TBSCertificate tbsCert = generateTbsCert(); in generate() local
441 … signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, key, random, tbsCert); in generate()
450 return generateJcaObject(tbsCert, signature); in generate()
481 TBSCertificate tbsCert = generateTbsCert(); in generate() local
486 …ignature = X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, tbsCert); in generate()
495 return generateJcaObject(tbsCert, signature); in generate()
513 private X509Certificate generateJcaObject(TBSCertificate tbsCert, byte[] signature) in generateJcaObject() argument
518 v.add(tbsCert); in generateJcaObject()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/
DX509CertificateHolder.java276 TBSCertificate tbsCert = x509Certificate.getTBSCertificate(); in isSignatureValid() local
278 … if (!CertUtils.isAlgIdEqual(tbsCert.getSignature(), x509Certificate.getSignatureAlgorithm())) in isSignatureValid()
287 verifier = verifierProvider.get((tbsCert.getSignature())); in isSignatureValid()
290 tbsCert.encodeTo(sOut, ASN1Encoding.DER); in isSignatureValid()
DX509v3CertificateBuilder.java371 TBSCertificate tbsCert = tbsGen.generateTBSCertificate(); in build() local
372 …w X509CertificateHolder(generateStructure(tbsCert, signer.getAlgorithmIdentifier(), generateSig(si… in build()
390 …private static Certificate generateStructure(TBSCertificate tbsCert, AlgorithmIdentifier sigAlgId,… in generateStructure() argument
394 v.add(tbsCert); in generateStructure()
DCertUtils.java56 static X509CertificateHolder generateFullCert(ContentSigner signer, TBSCertificate tbsCert) in generateFullCert() argument
60 …w X509CertificateHolder(generateStructure(tbsCert, signer.getAlgorithmIdentifier(), generateSig(si… in generateFullCert()
102 …private static Certificate generateStructure(TBSCertificate tbsCert, AlgorithmIdentifier sigAlgId,… in generateStructure() argument
106 v.add(tbsCert); in generateStructure()