/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/ |
D | ASN1TaggedObject.java | 16 final int tagNo; field in ASN1TaggedObject 66 int tagNo, in ASN1TaggedObject() argument 74 this.tagNo = tagNo; in ASN1TaggedObject() 88 if (this.tagNo != that.tagNo || this.explicit != that.explicit) in asn1Equals() 101 return tagNo ^ (explicit ? 0x0F : 0xF0) ^ obj.toASN1Primitive().hashCode(); in hashCode() 111 return tagNo; in getTagNo() 175 return new DERTaggedObject(explicit, tagNo, obj); in toDERObject() 180 return new DLTaggedObject(explicit, tagNo, obj); in toDLObject() 187 return "[" + tagNo + "]" + obj; in toString()
|
D | ASN1InputStream.java | 138 int tagNo, in buildObject() argument 148 return new DLApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in buildObject() 153 return new ASN1StreamParser(defIn).readTaggedObject(isConstructed, tagNo); in buildObject() 159 switch (tagNo) in buildObject() 196 throw new IOException("unknown tag " + tagNo + " encountered"); in buildObject() 200 return createPrimitiveDERObject(tagNo, defIn, tmpBuffers); in buildObject() 237 int tagNo = readTagNumber(this, tag); in readObject() local 258 return new BERApplicationSpecificParser(tagNo, sp).getLoadedObject(); in readObject() 263 return new BERTaggedObjectParser(true, tagNo, sp).getLoadedObject(); in readObject() 267 switch (tagNo) in readObject() [all …]
|
D | ASN1StreamParser.java | 140 int tagNo = ASN1InputStream.readTagNumber(_in, tag); in readObject() local 148 …tagNo == BERTags.OCTET_STRING || tagNo == BERTags.SEQUENCE || tagNo == BERTags.SET || tagNo == BER… in readObject() 162 return new BERApplicationSpecificParser(tagNo, sp); in readObject() 167 return new BERTaggedObjectParser(true, tagNo, sp); in readObject() 170 return sp.readIndef(tagNo); in readObject() 178 return new DLApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in readObject() 183 return new BERTaggedObjectParser(isConstructed, tagNo, new ASN1StreamParser(defIn)); in readObject() 189 switch (tagNo) in readObject() 203 throw new IOException("unknown tag " + tagNo + " encountered"); in readObject() 208 switch (tagNo) in readObject() [all …]
|
D | BERTaggedObject.java | 21 int tagNo, in BERTaggedObject() argument 24 super(true, tagNo, obj); in BERTaggedObject() 34 int tagNo, in BERTaggedObject() argument 37 super(explicit, tagNo, obj); in BERTaggedObject() 45 int tagNo) in BERTaggedObject() argument 47 super(false, tagNo, new BERSequence()); in BERTaggedObject() 63 … return StreamUtil.calculateTagLength(tagNo) + StreamUtil.calculateBodyLength(length) + length; in encodedLength() 70 return StreamUtil.calculateTagLength(tagNo) + length; in encodedLength() 76 out.writeTag(withTag, BERTags.CONSTRUCTED | BERTags.TAGGED, tagNo); in encode()
|
D | ASN1OutputStream.java | 187 final void writeEncoded(boolean withTag, int flags, int tagNo, byte[] contents) in writeEncoded() argument 190 writeTag(withTag, flags, tagNo); in writeEncoded() 195 final void writeEncodedIndef(boolean withTag, int flags, int tagNo, byte[] contents) in writeEncodedIndef() argument 198 writeTag(withTag, flags, tagNo); in writeEncodedIndef() 231 final void writeTag(boolean withTag, int flags, int tagNo) in writeTag() argument 239 if (tagNo < 31) in writeTag() 241 write(flags | tagNo); in writeTag() 246 if (tagNo < 128) in writeTag() 248 write(tagNo); in writeTag() 255 stack[--pos] = (byte)(tagNo & 0x7F); in writeTag() [all …]
|
D | DERTaggedObject.java | 22 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() 46 … return StreamUtil.calculateTagLength(tagNo) + StreamUtil.calculateBodyLength(length) + length; in encodedLength() 53 return StreamUtil.calculateTagLength(tagNo) + length; in encodedLength() 67 out.writeTag(withTag, flags, tagNo); in encode()
|
D | StreamUtil.java | 88 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()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
D | ASN1TaggedObject.java | 16 final int tagNo; field in ASN1TaggedObject 66 int tagNo, in ASN1TaggedObject() argument 74 this.tagNo = tagNo; in ASN1TaggedObject() 88 if (this.tagNo != that.tagNo || this.explicit != that.explicit) in asn1Equals() 101 return tagNo ^ (explicit ? 0x0F : 0xF0) ^ obj.toASN1Primitive().hashCode(); in hashCode() 111 return tagNo; in getTagNo() 175 return new DERTaggedObject(explicit, tagNo, obj); in toDERObject() 180 return new DLTaggedObject(explicit, tagNo, obj); in toDLObject() 187 return "[" + tagNo + "]" + obj; in toString()
|
D | ASN1StreamParser.java | 140 int tagNo = ASN1InputStream.readTagNumber(_in, tag); in readObject() local 148 …tagNo == BERTags.OCTET_STRING || tagNo == BERTags.SEQUENCE || tagNo == BERTags.SET || tagNo == BER… in readObject() 162 return new BERApplicationSpecificParser(tagNo, sp); in readObject() 167 return new BERTaggedObjectParser(true, tagNo, sp); in readObject() 170 return sp.readIndef(tagNo); in readObject() 178 return new DLApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in readObject() 183 return new BERTaggedObjectParser(isConstructed, tagNo, new ASN1StreamParser(defIn)); in readObject() 189 switch (tagNo) in readObject() 203 throw new IOException("unknown tag " + tagNo + " encountered"); in readObject() 208 switch (tagNo) in readObject() [all …]
|
D | ASN1InputStream.java | 140 int tagNo, in buildObject() argument 150 return new DLApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in buildObject() 155 return new ASN1StreamParser(defIn).readTaggedObject(isConstructed, tagNo); in buildObject() 161 switch (tagNo) in buildObject() 198 throw new IOException("unknown tag " + tagNo + " encountered"); in buildObject() 202 return createPrimitiveDERObject(tagNo, defIn, tmpBuffers); in buildObject() 240 int tagNo = readTagNumber(this, tag); in readObject() local 261 return new BERApplicationSpecificParser(tagNo, sp).getLoadedObject(); in readObject() 266 return new BERTaggedObjectParser(true, tagNo, sp).getLoadedObject(); in readObject() 270 switch (tagNo) in readObject() [all …]
|
D | BERTaggedObject.java | 21 int tagNo, in BERTaggedObject() argument 24 super(true, tagNo, obj); in BERTaggedObject() 34 int tagNo, in BERTaggedObject() argument 37 super(explicit, tagNo, obj); in BERTaggedObject() 45 int tagNo) in BERTaggedObject() argument 47 super(false, tagNo, new BERSequence()); in BERTaggedObject() 63 … return StreamUtil.calculateTagLength(tagNo) + StreamUtil.calculateBodyLength(length) + length; in encodedLength() 70 return StreamUtil.calculateTagLength(tagNo) + length; in encodedLength() 76 out.writeTag(withTag, BERTags.CONSTRUCTED | BERTags.TAGGED, tagNo); in encode()
|
D | ASN1OutputStream.java | 187 final void writeEncoded(boolean withTag, int flags, int tagNo, byte[] contents) in writeEncoded() argument 190 writeTag(withTag, flags, tagNo); in writeEncoded() 195 final void writeEncodedIndef(boolean withTag, int flags, int tagNo, byte[] contents) in writeEncodedIndef() argument 198 writeTag(withTag, flags, tagNo); in writeEncodedIndef() 231 final void writeTag(boolean withTag, int flags, int tagNo) in writeTag() argument 239 if (tagNo < 31) in writeTag() 241 write(flags | tagNo); in writeTag() 246 if (tagNo < 128) in writeTag() 248 write(tagNo); in writeTag() 255 stack[--pos] = (byte)(tagNo & 0x7F); in writeTag() [all …]
|
D | DERTaggedObject.java | 22 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() 46 … return StreamUtil.calculateTagLength(tagNo) + StreamUtil.calculateBodyLength(length) + length; in encodedLength() 53 return StreamUtil.calculateTagLength(tagNo) + length; in encodedLength() 67 out.writeTag(withTag, flags, tagNo); in encode()
|
D | StreamUtil.java | 88 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()
|
D | DLTaggedObject.java | 22 int tagNo, in DLTaggedObject() argument 25 super(explicit, tagNo, obj); in DLTaggedObject() 40 … return StreamUtil.calculateTagLength(tagNo) + StreamUtil.calculateBodyLength(length) + length; in encodedLength() 47 return StreamUtil.calculateTagLength(tagNo) + length; in encodedLength() 61 out.writeTag(withTag, flags, tagNo); in encode()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | ASN1TaggedObject.java | 14 final int tagNo; field in ASN1TaggedObject 64 int tagNo, in ASN1TaggedObject() argument 72 this.tagNo = tagNo; in ASN1TaggedObject() 86 if (this.tagNo != that.tagNo || this.explicit != that.explicit) in asn1Equals() 99 return tagNo ^ (explicit ? 0x0F : 0xF0) ^ obj.toASN1Primitive().hashCode(); in hashCode() 109 return tagNo; in getTagNo() 173 return new DERTaggedObject(explicit, tagNo, obj); in toDERObject() 178 return new DLTaggedObject(explicit, tagNo, obj); in toDLObject() 185 return "[" + tagNo + "]" + obj; in toString()
|
D | ASN1InputStream.java | 136 int tagNo, in buildObject() argument 146 return new DLApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in buildObject() 151 return new ASN1StreamParser(defIn).readTaggedObject(isConstructed, tagNo); in buildObject() 157 switch (tagNo) in buildObject() 194 throw new IOException("unknown tag " + tagNo + " encountered"); in buildObject() 198 return createPrimitiveDERObject(tagNo, defIn, tmpBuffers); in buildObject() 235 int tagNo = readTagNumber(this, tag); in readObject() local 256 return new BERApplicationSpecificParser(tagNo, sp).getLoadedObject(); in readObject() 261 return new BERTaggedObjectParser(true, tagNo, sp).getLoadedObject(); in readObject() 265 switch (tagNo) in readObject() [all …]
|
D | ASN1StreamParser.java | 138 int tagNo = ASN1InputStream.readTagNumber(_in, tag); in readObject() local 146 …tagNo == BERTags.OCTET_STRING || tagNo == BERTags.SEQUENCE || tagNo == BERTags.SET || tagNo == BER… in readObject() 160 return new BERApplicationSpecificParser(tagNo, sp); in readObject() 165 return new BERTaggedObjectParser(true, tagNo, sp); in readObject() 168 return sp.readIndef(tagNo); in readObject() 176 return new DLApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in readObject() 181 return new BERTaggedObjectParser(isConstructed, tagNo, new ASN1StreamParser(defIn)); in readObject() 187 switch (tagNo) in readObject() 201 throw new IOException("unknown tag " + tagNo + " encountered"); in readObject() 206 switch (tagNo) in readObject() [all …]
|
D | BERTaggedObject.java | 19 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() 61 … return StreamUtil.calculateTagLength(tagNo) + StreamUtil.calculateBodyLength(length) + length; in encodedLength() 68 return StreamUtil.calculateTagLength(tagNo) + length; in encodedLength() 74 out.writeTag(withTag, BERTags.CONSTRUCTED | BERTags.TAGGED, tagNo); in encode()
|
D | ASN1OutputStream.java | 185 final void writeEncoded(boolean withTag, int flags, int tagNo, byte[] contents) in writeEncoded() argument 188 writeTag(withTag, flags, tagNo); in writeEncoded() 193 final void writeEncodedIndef(boolean withTag, int flags, int tagNo, byte[] contents) in writeEncodedIndef() argument 196 writeTag(withTag, flags, tagNo); in writeEncodedIndef() 229 final void writeTag(boolean withTag, int flags, int tagNo) in writeTag() argument 237 if (tagNo < 31) in writeTag() 239 write(flags | tagNo); in writeTag() 244 if (tagNo < 128) in writeTag() 246 write(tagNo); in writeTag() 253 stack[--pos] = (byte)(tagNo & 0x7F); in writeTag() [all …]
|
D | DERTaggedObject.java | 20 int tagNo, in DERTaggedObject() argument 23 super(explicit, tagNo, obj); in DERTaggedObject() 26 public DERTaggedObject(int tagNo, ASN1Encodable encodable) in DERTaggedObject() argument 28 super(true, tagNo, encodable); in DERTaggedObject() 44 … return StreamUtil.calculateTagLength(tagNo) + StreamUtil.calculateBodyLength(length) + length; in encodedLength() 51 return StreamUtil.calculateTagLength(tagNo) + length; in encodedLength() 65 out.writeTag(withTag, flags, tagNo); in encode()
|
D | StreamUtil.java | 87 static int calculateTagLength(int tagNo) in calculateTagLength() argument 92 if (tagNo >= 31) in calculateTagLength() 94 if (tagNo < 128) in calculateTagLength() 103 stack[--pos] = (byte)(tagNo & 0x7F); in calculateTagLength() 107 tagNo >>= 7; in calculateTagLength() 108 stack[--pos] = (byte)(tagNo & 0x7F | 0x80); in calculateTagLength() 110 while (tagNo > 127); in calculateTagLength()
|
D | DLTaggedObject.java | 20 int tagNo, in DLTaggedObject() argument 23 super(explicit, tagNo, obj); in DLTaggedObject() 38 … return StreamUtil.calculateTagLength(tagNo) + StreamUtil.calculateBodyLength(length) + length; in encodedLength() 45 return StreamUtil.calculateTagLength(tagNo) + length; in encodedLength() 59 out.writeTag(withTag, flags, tagNo); in encode()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ocsp/ |
D | CertStatus.java | 15 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/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/ocsp/ |
D | CertStatus.java | 19 private int tagNo; field in CertStatus 27 tagNo = 0; in CertStatus() 34 tagNo = 1; in CertStatus() 39 int tagNo, in CertStatus() argument 42 this.tagNo = tagNo; in CertStatus() 49 this.tagNo = choice.getTagNo(); in CertStatus() 91 return tagNo; in getTagNo() 110 return new DERTaggedObject(false, tagNo, value); in toASN1Primitive()
|