Home
last modified time | relevance | path

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

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1InputStream.java136 int tagNo, in buildObject() argument
146 return new DERApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in buildObject()
151 return new ASN1StreamParser(defIn).readTaggedObject(isConstructed, tagNo); in buildObject()
157 switch (tagNo) in buildObject()
186 throw new IOException("unknown tag " + tagNo + " encountered"); in buildObject()
190 return createPrimitiveDERObject(tagNo, defIn, tmpBuffers); in buildObject()
230 int tagNo = readTagNumber(this, tag); in readObject() local
251 return new BERApplicationSpecificParser(tagNo, sp).getLoadedObject(); in readObject()
256 return new BERTaggedObjectParser(true, tagNo, sp).getLoadedObject(); in readObject()
260 switch (tagNo) in readObject()
[all …]
DDERTaggedObject.java22 int tagNo, in DERTaggedObject() argument
25 super(explicit, tagNo, obj); in DERTaggedObject()
28 public DERTaggedObject(int tagNo, ASN1Encodable encodable) in DERTaggedObject() argument
30 super(true, tagNo, encodable); in DERTaggedObject()
64 … return StreamUtil.calculateTagLength(tagNo) + StreamUtil.calculateBodyLength(length) + length; in encodedLength()
71 return StreamUtil.calculateTagLength(tagNo) + length; in encodedLength()
76 return StreamUtil.calculateTagLength(tagNo) + 1; in encodedLength()
90 out.writeTag(BERTags.CONSTRUCTED | BERTags.TAGGED, tagNo); in encode()
109 out.writeTag(flags, tagNo); in encode()
115 out.writeEncoded(BERTags.CONSTRUCTED | BERTags.TAGGED, tagNo, ZERO_BYTES); in encode()
DBERTaggedObject.java19 int tagNo, in BERTaggedObject() argument
22 super(true, tagNo, obj); in BERTaggedObject()
32 int tagNo, in BERTaggedObject() argument
35 super(explicit, tagNo, obj); in BERTaggedObject()
43 int tagNo) in BERTaggedObject() argument
45 super(false, tagNo, new BERSequence()); in BERTaggedObject()
79 … return StreamUtil.calculateTagLength(tagNo) + StreamUtil.calculateBodyLength(length) + length; in encodedLength()
86 return StreamUtil.calculateTagLength(tagNo) + length; in encodedLength()
91 return StreamUtil.calculateTagLength(tagNo) + 1; in encodedLength()
99 out.writeTag(BERTags.CONSTRUCTED | BERTags.TAGGED, tagNo); in encode()
DASN1OutputStream.java74 void writeTag(int flags, int tagNo) in writeTag() argument
77 if (tagNo < 31) in writeTag()
79 write(flags | tagNo); in writeTag()
84 if (tagNo < 128) in writeTag()
86 write(tagNo); in writeTag()
93 stack[--pos] = (byte)(tagNo & 0x7F); in writeTag()
97 tagNo >>= 7; in writeTag()
98 stack[--pos] = (byte)(tagNo & 0x7F | 0x80); in writeTag()
100 while (tagNo > 127); in writeTag()
107 void writeEncoded(int flags, int tagNo, byte[] bytes) in writeEncoded() argument
[all …]
DASN1TaggedObject.java14 int tagNo; field in ASN1TaggedObject
65 int tagNo, in ASN1TaggedObject() argument
77 this.tagNo = tagNo; in ASN1TaggedObject()
106 if (tagNo != other.tagNo || empty != other.empty || explicit != other.explicit) in asn1Equals()
131 int code = tagNo; in hashCode()
153 return tagNo; in getTagNo()
227 return new DERTaggedObject(explicit, tagNo, obj); in toDERObject()
232 return new DLTaggedObject(explicit, tagNo, obj); in toDLObject()
240 return "[" + tagNo + "]" + obj; in toString()
DDLTaggedObject.java22 int tagNo, in DLTaggedObject() argument
25 super(explicit, tagNo, obj); in DLTaggedObject()
58 … return StreamUtil.calculateTagLength(tagNo) + StreamUtil.calculateBodyLength(length) + length; in encodedLength()
65 return StreamUtil.calculateTagLength(tagNo) + length; in encodedLength()
70 return StreamUtil.calculateTagLength(tagNo) + 1; in encodedLength()
84 out.writeTag(BERTags.CONSTRUCTED | BERTags.TAGGED, tagNo); in encode()
103 out.writeTag(flags, tagNo); in encode()
109 out.writeEncoded(BERTags.CONSTRUCTED | BERTags.TAGGED, tagNo, ZERO_BYTES); in encode()
DStreamUtil.java88 static int calculateTagLength(int tagNo) in calculateTagLength() argument
93 if (tagNo >= 31) in calculateTagLength()
95 if (tagNo < 128) in calculateTagLength()
104 stack[--pos] = (byte)(tagNo & 0x7F); in calculateTagLength()
108 tagNo >>= 7; in calculateTagLength()
109 stack[--pos] = (byte)(tagNo & 0x7F | 0x80); in calculateTagLength()
111 while (tagNo > 127); in calculateTagLength()
DASN1StreamParser.java138 int tagNo = ASN1InputStream.readTagNumber(_in, tag); in readObject() local
159 return new BERApplicationSpecificParser(tagNo, sp); in readObject()
164 return new BERTaggedObjectParser(true, tagNo, sp); in readObject()
167 return sp.readIndef(tagNo); in readObject()
175 return new DERApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in readObject()
180 return new BERTaggedObjectParser(isConstructed, tagNo, new ASN1StreamParser(defIn)); in readObject()
186 switch (tagNo) in readObject()
200 throw new IOException("unknown tag " + tagNo + " encountered"); in readObject()
205 switch (tagNo) in readObject()
213 return ASN1InputStream.createPrimitiveDERObject(tagNo, defIn, tmpBuffers); in readObject()
DASN1ApplicationSpecific.java190 int tagNo = input[0] & 0x1f; in replaceTagNumber() local
195 if (tagNo == 0x1f) in replaceTagNumber()
197 tagNo = 0; in replaceTagNumber()
210 tagNo |= (b & 0x7f); in replaceTagNumber()
211 tagNo <<= 7; in replaceTagNumber()
DBERGenerator.java24 int tagNo, in BERGenerator() argument
31 _tagNo = tagNo; in BERGenerator()
DDERApplicationSpecific.java88 public DERApplicationSpecific(int tagNo, ASN1EncodableVector vec) in DERApplicationSpecific() argument
90 super(true, tagNo, getEncodedVector(vec)); in DERApplicationSpecific()
DBERApplicationSpecific.java74 public BERApplicationSpecific(int tagNo, ASN1EncodableVector vec) in BERApplicationSpecific() argument
76 super(true, tagNo, getEncodedVector(vec)); in BERApplicationSpecific()
DBEROctetStringGenerator.java38 int tagNo, in BEROctetStringGenerator() argument
42 super(out, tagNo, isExplicit); in BEROctetStringGenerator()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ocsp/
DCertStatus.java15 private int tagNo; field in CertStatus
23 tagNo = 0; in CertStatus()
30 tagNo = 1; in CertStatus()
35 int tagNo, in CertStatus() argument
38 this.tagNo = tagNo; in CertStatus()
45 this.tagNo = choice.getTagNo(); in CertStatus()
87 return tagNo; in getTagNo()
106 return new DERTaggedObject(false, tagNo, value); in toASN1Primitive()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/
DECPrivateKeyStructure.java97 private ASN1Primitive getObjectInTag(int tagNo) in getObjectInTag() argument
108 if (tag.getTagNo() == tagNo) in getObjectInTag()
DECPrivateKey.java151 private ASN1Primitive getObjectInTag(int tagNo) in getObjectInTag() argument
162 if (tag.getTagNo() == tagNo) in getObjectInTag()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
DCMSUtils.java247 int tagNo, boolean isExplicit, int bufferSize) throws IOException in createBEROctetOutputStream() argument
249 BEROctetStringGenerator octGen = new BEROctetStringGenerator(s, tagNo, isExplicit); in createBEROctetOutputStream()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DPKIXNameConstraintValidator.java131 Integer tagNo = Integers.valueOf(subtree.getBase().getTagNo()); in intersectPermittedSubtree() local
132 if (subtreesMap.get(tagNo) == null) in intersectPermittedSubtree()
134 subtreesMap.put(tagNo, new HashSet()); in intersectPermittedSubtree()
136 ((Set)subtreesMap.get(tagNo)).add(subtree); in intersectPermittedSubtree()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DPKIXNameConstraintValidator.java1545 Integer tagNo = Integers.valueOf(subtree.getBase().getTagNo()); in intersectPermittedSubtree() local
1546 if (subtreesMap.get(tagNo) == null) in intersectPermittedSubtree()
1548 subtreesMap.put(tagNo, new HashSet()); in intersectPermittedSubtree()
1550 ((Set)subtreesMap.get(tagNo)).add(subtree); in intersectPermittedSubtree()