Home
last modified time | relevance | path

Searched refs:DerValue (Results 1 – 25 of 117) sorted by relevance

12345

/libcore/ojluni/src/main/java/sun/security/util/
DDerInputStream.java192 if (buffer.read() != DerValue.tag_Integer) { in getInteger()
204 if (buffer.read() != DerValue.tag_Integer) { in getBigInteger()
218 if (buffer.read() != DerValue.tag_Integer) { in getPositiveBigInteger()
230 if (buffer.read() != DerValue.tag_Enumerated) { in getEnumerated()
241 if (buffer.read() != DerValue.tag_BitString) in getBitString()
252 if (buffer.read() != DerValue.tag_BitString) in getUnalignedBitString()
283 if (buffer.read() != DerValue.tag_OctetString) in getOctetString()
307 if (buffer.read() != DerValue.tag_Null || buffer.read() != 0) in getNull()
329 public DerValue[] getSequence(int startLen, in getSequence()
332 if (tag != DerValue.tag_Sequence) in getSequence()
[all …]
DDerOutputStream.java124 public void putDerValue(DerValue val) throws IOException { in putDerValue()
140 write(DerValue.tag_Boolean); in putBoolean()
154 write(DerValue.tag_Enumerated); in putEnumerated()
164 write(DerValue.tag_Integer); in putInteger()
183 write(DerValue.tag_Integer); in putInteger()
238 write(DerValue.tag_BitString); in putBitString()
253 write(DerValue.tag_BitString); in putUnalignedBitString()
275 write(DerValue.tag_OctetString, octets); in putOctetString()
283 write(DerValue.tag_Null); in putNull()
300 public void putSequence(DerValue[] seq) throws IOException { in putSequence()
[all …]
/libcore/ojluni/src/main/java/sun/security/x509/
DGeneralName.java75 public GeneralName(DerValue encName) throws IOException { in GeneralName()
85 public GeneralName(DerValue encName, boolean nameConstraint) in GeneralName()
94 encName.resetTag(DerValue.tag_Sequence); in GeneralName()
103 encName.resetTag(DerValue.tag_IA5String); in GeneralName()
112 encName.resetTag(DerValue.tag_IA5String); in GeneralName()
121 encName.resetTag(DerValue.tag_IA5String); in GeneralName()
131 encName.resetTag(DerValue.tag_OctetString); in GeneralName()
140 encName.resetTag(DerValue.tag_ObjectId); in GeneralName()
157 encName.resetTag(DerValue.tag_Sequence); in GeneralName()
236 out.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encode()
[all …]
DDistributionPoint.java33 import sun.security.util.DerValue;
190 public DistributionPoint(DerValue val) throws IOException { in DistributionPoint()
191 if (val.tag != DerValue.tag_Sequence) { in DistributionPoint()
199 DerValue opt = val.data.getDerValue(); in DistributionPoint()
206 DerValue distPnt = opt.data.getDerValue(); in DistributionPoint()
209 distPnt.resetTag(DerValue.tag_Sequence); in DistributionPoint()
213 distPnt.resetTag(DerValue.tag_Set); in DistributionPoint()
225 opt.resetTag(DerValue.tag_BitString); in DistributionPoint()
233 opt.resetTag(DerValue.tag_Sequence); in DistributionPoint()
290 DerValue.createTag(DerValue.TAG_CONTEXT, true, TAG_FULL_NAME), in encode()
[all …]
DIssuingDistributionPointExtension.java35 import sun.security.util.DerValue;
178 DerValue val = new DerValue(extensionValue); in IssuingDistributionPointExtension()
179 if (val.tag != DerValue.tag_Sequence) { in IssuingDistributionPointExtension()
191 DerValue opt = in.getDerValue(); in IssuingDistributionPointExtension()
199 opt.resetTag(DerValue.tag_Boolean); in IssuingDistributionPointExtension()
203 opt.resetTag(DerValue.tag_Boolean); in IssuingDistributionPointExtension()
210 opt.resetTag(DerValue.tag_Boolean); in IssuingDistributionPointExtension()
214 opt.resetTag(DerValue.tag_Boolean); in IssuingDistributionPointExtension()
396 tagged.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, true, in encodeThis()
403 tagged.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, false, in encodeThis()
[all …]
DGeneralSubtree.java74 public GeneralSubtree(DerValue val) throws IOException { in GeneralSubtree()
75 if (val.tag != DerValue.tag_Sequence) { in GeneralSubtree()
84 DerValue opt = val.data.getDerValue(); in GeneralSubtree()
87 opt.resetTag(DerValue.tag_Integer); in GeneralSubtree()
91 opt.resetTag(DerValue.tag_Integer); in GeneralSubtree()
200 seq.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encode()
206 seq.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encode()
209 out.write(DerValue.tag_Sequence, seq); in encode()
DAuthorityKeyIdentifierExtension.java93 tmp.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encodeThis()
100 tmp.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encodeThis()
109 tmp.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encodeThis()
112 seq.write(DerValue.tag_Sequence, tmp); in encodeThis()
152 DerValue val = new DerValue(this.extensionValue); in AuthorityKeyIdentifierExtension()
153 if (val.tag != DerValue.tag_Sequence) { in AuthorityKeyIdentifierExtension()
162 DerValue opt = val.data.getDerValue(); in AuthorityKeyIdentifierExtension()
171 opt.resetTag(DerValue.tag_OctetString); in AuthorityKeyIdentifierExtension()
179 opt.resetTag(DerValue.tag_Sequence); in AuthorityKeyIdentifierExtension()
187 opt.resetTag(DerValue.tag_Integer); in AuthorityKeyIdentifierExtension()
DDistributionPointName.java33 import sun.security.util.DerValue;
130 public DistributionPointName(DerValue encoding) throws IOException { in DistributionPointName()
135 encoding.resetTag(DerValue.tag_Sequence); in DistributionPointName()
141 encoding.resetTag(DerValue.tag_Set); in DistributionPointName()
177 DerValue.createTag(DerValue.TAG_CONTEXT, true, TAG_FULL_NAME), in encode()
183 DerValue.createTag(DerValue.TAG_CONTEXT, true, in encode()
DPolicyConstraintsExtension.java91 tagged.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encodeThis()
97 tagged.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encodeThis()
100 seq.write(DerValue.tag_Sequence, tagged); in encodeThis()
149 DerValue val = new DerValue(this.extensionValue); in PolicyConstraintsExtension()
150 if (val.tag != DerValue.tag_Sequence) { in PolicyConstraintsExtension()
155 DerValue next = in.getDerValue(); in PolicyConstraintsExtension()
161 next.resetTag(DerValue.tag_Integer); in PolicyConstraintsExtension()
169 next.resetTag(DerValue.tag_Integer); in PolicyConstraintsExtension()
DEDIPartyName.java82 public EDIPartyName(DerValue derValue) throws IOException { in EDIPartyName()
84 DerValue[] seq = in.getSequence(2); in EDIPartyName()
91 DerValue opt = seq[i]; in EDIPartyName()
132 tagged.write(DerValue.createTag(DerValue.TAG_CONTEXT, in encode()
140 tagged.write(DerValue.createTag(DerValue.TAG_CONTEXT, in encode()
143 out.write(DerValue.tag_Sequence, tagged); in encode()
DAVA.java88 final DerValue value;
117 public AVA(ObjectIdentifier type, DerValue val) { in AVA()
212 value = new DerValue(""); in AVA()
235 public DerValue getDerValue() { in getDerValue()
258 private static DerValue parseHexString in parseHexString()
309 return new DerValue(baos.toByteArray()); in parseHexString()
312 private DerValue parseQuotedString in parseQuotedString()
357 isPrintableString &= DerValue.isPrintableStringChar((char)c); in parseQuotedString()
383 return new DerValue(DerValue.tag_IA5String, in parseQuotedString()
390 return new DerValue(temp.toString()); in parseQuotedString()
[all …]
DSerialNumber.java43 private void construct(DerValue derVal) throws IOException { in construct()
75 DerValue derVal = in.getDerValue(); in SerialNumber()
85 public SerialNumber(DerValue val) throws IOException { in SerialNumber()
96 DerValue derVal = new DerValue(in); in SerialNumber()
DCertificateValidity.java71 private void construct(DerValue derVal) throws IOException { in construct()
72 if (derVal.tag != DerValue.tag_Sequence) { in construct()
81 DerValue[] seq = derIn.getSequence(2); in construct()
85 if (seq[0].tag == DerValue.tag_UtcTime) { in construct()
87 } else if (seq[0].tag == DerValue.tag_GeneralizedTime) { in construct()
93 if (seq[1].tag == DerValue.tag_UtcTime) { in construct()
95 } else if (seq[1].tag == DerValue.tag_GeneralizedTime) { in construct()
127 DerValue derVal = in.getDerValue(); in CertificateValidity()
168 seq.write(DerValue.tag_Sequence, pair); in encode()
DX500Name.java213 new DerValue(commonName)); in X500Name()
216 new DerValue(organizationUnit)); in X500Name()
219 new DerValue(organizationName)); in X500Name()
222 new DerValue(country)); in X500Name()
251 new DerValue(commonName)); in X500Name()
254 new DerValue(organizationUnit)); in X500Name()
257 new DerValue(organizationName)); in X500Name()
260 new DerValue(localityName)); in X500Name()
263 new DerValue(stateName)); in X500Name()
266 new DerValue(country)); in X500Name()
[all …]
DCertificateVersion.java75 private void construct(DerValue derVal) throws IOException { in construct()
118 DerValue derVal = in.getDerValue(); in CertificateVersion()
131 DerValue derVal = new DerValue(in); in CertificateVersion()
142 public CertificateVersion(DerValue val) throws IOException { in CertificateVersion()
170 seq.write(DerValue.createTag(DerValue.TAG_CONTEXT, true, (byte)0), in encode()
DPrivateKeyUsageExtension.java95 tagged.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encodeThis()
101 tagged.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encodeThis()
104 seq.write(DerValue.tag_Sequence, tagged); in encodeThis()
142 DerValue[] seq = str.getSequence(2); in PrivateKeyUsageExtension()
148 DerValue opt = seq[i]; in PrivateKeyUsageExtension()
156 opt.resetTag(DerValue.tag_GeneralizedTime); in PrivateKeyUsageExtension()
166 opt.resetTag(DerValue.tag_GeneralizedTime); in PrivateKeyUsageExtension()
DX400Address.java29 import sun.security.util.DerValue;
355 public X400Address(DerValue derValue) throws IOException { in X400Address()
373 DerValue derValue = new DerValue(nameValue); in encode()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DContentInfo.java87 DerValue content; // OPTIONAL
89 public ContentInfo(ObjectIdentifier contentType, DerValue content) { in ContentInfo()
98 DerValue octetString = new DerValue(DerValue.tag_OctetString, bytes); in ContentInfo()
127 DerValue type; in ContentInfo()
128 DerValue taggedContent; in ContentInfo()
129 DerValue[] typeAndContent; in ContentInfo()
130 DerValue[] contents; in ContentInfo()
157 public DerValue getContent() { in getContent()
186 DerValue taggedContent = null; in encode()
191 taggedContent = new DerValue((byte)0xA0, in encode()
[all …]
DPKCS9Attribute.java37 import sun.security.util.DerValue;
312 {new Byte(DerValue.tag_IA5String)}, // EMailAddress
313 {new Byte(DerValue.tag_IA5String), // UnstructuredName
314 new Byte(DerValue.tag_PrintableString)},
315 {new Byte(DerValue.tag_ObjectId)}, // ContentType
316 {new Byte(DerValue.tag_OctetString)}, // MessageDigest
317 {new Byte(DerValue.tag_UtcTime)}, // SigningTime
318 {new Byte(DerValue.tag_Sequence)}, // Countersignature
319 {new Byte(DerValue.tag_PrintableString),
320 new Byte(DerValue.tag_T61String)}, // ChallengePassword
[all …]
DSigningCertificateInfo.java33 import sun.security.util.DerValue;
109 DerValue derValue = new DerValue(bytes); in parse()
110 if (derValue.tag != DerValue.tag_Sequence) { in parse()
115 DerValue[] certs = derValue.data.getSequence(1); in parse()
123 DerValue[] policies = derValue.data.getSequence(1); in parse()
139 ESSCertId(DerValue certId) throws IOException { in ESSCertId()
145 DerValue issuerSerial = certId.data.getDerValue(); in ESSCertId()
/libcore/ojluni/src/main/java/sun/security/timestamp/
DTimestampToken.java31 import sun.security.util.DerValue;
136 DerValue tstInfo = new DerValue(timestampTokenInfo); in parse()
137 if (tstInfo.tag != DerValue.tag_Sequence) { in parse()
147 DerValue messageImprint = tstInfo.data.getDerValue(); in parse()
159 DerValue d = tstInfo.data.getDerValue(); in parse()
160 if (d.tag == DerValue.tag_Integer) { // must be the nonce in parse()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DX509CertificatePair.java38 import sun.security.util.DerValue;
120 parse(new DerValue(encoded)); in X509CertificatePair()
223 private void parse(DerValue val) in parse()
226 if (val.tag != DerValue.tag_Sequence) { in parse()
232 DerValue opt = val.data.getDerValue(); in parse()
276 tmp.putDerValue(new DerValue(forward.getEncoded())); in emit()
277 tagged.write(DerValue.createTag(DerValue.TAG_CONTEXT, in emit()
283 tmp.putDerValue(new DerValue(reverse.getEncoded())); in emit()
284 tagged.write(DerValue.createTag(DerValue.TAG_CONTEXT, in emit()
288 out.write(DerValue.tag_Sequence, tagged); in emit()
DOCSPRequest.java113 requestsOut.write(DerValue.tag_Sequence, certIdOut); in encodeBytes()
116 tmp.write(DerValue.tag_Sequence, requestsOut); in encodeBytes()
126 extsOut.write(DerValue.tag_Sequence, extOut); in encodeBytes()
127 tmp.write(DerValue.createTag(DerValue.TAG_CONTEXT, in encodeBytes()
132 tbsRequest.write(DerValue.tag_Sequence, tmp); in encodeBytes()
136 ocspRequest.write(DerValue.tag_Sequence, tbsRequest); in encodeBytes()
/libcore/ojluni/src/main/java/javax/crypto/
DEncryptedPrivateKeyInfo.java32 import sun.security.util.DerValue;
84 DerValue val = new DerValue(this.encoded); in EncryptedPrivateKeyInfo()
86 DerValue[] seq = new DerValue[2]; in EncryptedPrivateKeyInfo()
393 out.write(DerValue.tag_Sequence, tmp); in getEncoded()
399 private static void checkTag(DerValue val, byte tag, String valName) in checkTag()
411 DerValue[] values = in.getSequence(3); in checkPKCS8Encoding()
415 checkTag(values[3], DerValue.TAG_CONTEXT, "attributes"); in checkPKCS8Encoding()
418 checkTag(values[0], DerValue.tag_Integer, "version"); in checkPKCS8Encoding()
424 checkTag(values[2], DerValue.tag_OctetString, "privateKey"); in checkPKCS8Encoding()
/libcore/ojluni/src/main/java/java/security/
DPKCS12Attribute.java245 attribute.write(DerValue.tag_Set, attrContent); in encode()
247 attributeValue.write(DerValue.tag_Sequence, attribute); in encode()
254 DerValue[] attrSeq = attributeValue.getSequence(2); in parse()
258 DerValue[] attrValueSet = attrContent.getSet(1); in parse()
262 if (attrValueSet[i].tag == DerValue.tag_OctetString) { in parse()
267 } else if (attrValueSet[i].tag == DerValue.tag_ObjectId) { in parse()
269 } else if (attrValueSet[i].tag == DerValue.tag_GeneralizedTime) { in parse()
271 } else if (attrValueSet[i].tag == DerValue.tag_UtcTime) { in parse()
273 } else if (attrValueSet[i].tag == DerValue.tag_Integer) { in parse()
275 } else if (attrValueSet[i].tag == DerValue.tag_Boolean) { in parse()

12345