Home
last modified time | relevance | path

Searched refs:BerEncoding (Results 1 – 8 of 8) sorted by relevance

/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/
DBerDataValueTest.java39 BerEncoding.TAG_CLASS_UNIVERSAL,
41 BerEncoding.TAG_NUMBER_SEQUENCE);
47 BerEncoding.TAG_CLASS_CONTEXT_SPECIFIC,
49 BerEncoding.TAG_NUMBER_OCTET_STRING);
53 assertEquals(BerEncoding.TAG_CLASS_UNIVERSAL, TEST_VALUE1.getTagClass()); in testGetTagClass()
54 assertEquals(BerEncoding.TAG_CLASS_CONTEXT_SPECIFIC, TEST_VALUE2.getTagClass()); in testGetTagClass()
65 assertEquals(BerEncoding.TAG_NUMBER_SEQUENCE, TEST_VALUE1.getTagNumber()); in testGetTagNumber()
66 assertEquals(BerEncoding.TAG_NUMBER_OCTET_STRING, TEST_VALUE2.getTagNumber()); in testGetTagNumber()
115 BerEncoding.TAG_CLASS_UNIVERSAL, in testContentsReader()
117 BerEncoding.TAG_NUMBER_SEQUENCE); in testContentsReader()
DBerDataValueReaderTestBase.java60 assertEquals(BerEncoding.TAG_CLASS_UNIVERSAL, dataValue.getTagClass()); in testSingleByteTagId()
65 assertEquals(BerEncoding.TAG_CLASS_UNIVERSAL, dataValue.getTagClass()); in testSingleByteTagId()
70 assertEquals(BerEncoding.TAG_CLASS_APPLICATION, dataValue.getTagClass()); in testSingleByteTagId()
75 assertEquals(BerEncoding.TAG_CLASS_CONTEXT_SPECIFIC, dataValue.getTagClass()); in testSingleByteTagId()
80 assertEquals(BerEncoding.TAG_CLASS_PRIVATE, dataValue.getTagClass()); in testSingleByteTagId()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1DerEncoder.java19 import com.android.apksig.internal.asn1.ber.BerEncoding;
139 BerEncoding.TAG_CLASS_UNIVERSAL, true, BerEncoding.TAG_NUMBER_SEQUENCE, in toSequence()
153 BerEncoding.TAG_CLASS_UNIVERSAL, true, BerEncoding.TAG_NUMBER_SET, in toSetOf()
219 BerEncoding.TAG_CLASS_UNIVERSAL, false, BerEncoding.TAG_NUMBER_INTEGER, in toInteger()
286 BerEncoding.TAG_CLASS_UNIVERSAL, false, BerEncoding.TAG_NUMBER_OBJECT_IDENTIFIER, in toOid()
329 mDerTagClass = BerEncoding.getTagClass(mTagClass); in AnnotatedField()
337 tagNumber = BerEncoding.getTagNumber(mDataType); in AnnotatedField()
375 int originalTagNumber = BerEncoding.getTagNumber(encoded[0]); in toDer()
383 encoded[0] = BerEncoding.setTagNumber(encoded[0], mDerTagNumber); in toDer()
384 encoded[0] = BerEncoding.setTagClass(encoded[0], mDerTagClass); in toDer()
[all …]
DAsn1BerParser.java22 import com.android.apksig.internal.asn1.ber.BerEncoding;
126 int expectedTagClass = BerEncoding.TAG_CLASS_UNIVERSAL; in parse()
127 int expectedTagNumber = BerEncoding.getTagNumber(dataType); in parse()
132 + ". Expected " + BerEncoding.tagClassAndNumberToString( in parse()
134 + ", but read: " + BerEncoding.tagClassAndNumberToString( in parse()
362 mBerTagClass = BerEncoding.getTagClass(mTagClass); in AnnotatedField()
370 tagNumber = BerEncoding.getTagNumber(mDataType); in AnnotatedField()
411 + BerEncoding.tagClassAndNumberToString(mBerTagClass, mBerTagNumber) in setValueFrom()
413 + BerEncoding.tagClassAndNumberToString(readTagClass, readTagNumber)); in setValueFrom()
419 + BerEncoding.tagClassToString(mBerTagClass) in setValueFrom()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DByteBufferBerDataValueReader.java43 boolean constructed = BerEncoding.isConstructed(firstIdentifierByte); in readDataValue()
88 BerEncoding.getTagClass(firstIdentifierByte), in readDataValue()
94 int tagNumber = BerEncoding.getTagNumber(firstIdentifierByte); in readTagNumber()
DBerEncoding.java25 public abstract class BerEncoding { class
26 private BerEncoding() {} in BerEncoding() method in BerEncoding
DInputStreamBerDataValueReader.java66 boolean constructed = BerEncoding.isConstructed((byte) firstIdentifierByte); in readDataValue()
94 BerEncoding.getTagClass((byte) firstIdentifierByte), in readDataValue()
104 int tagNumber = BerEncoding.getTagNumber((byte) firstIdentifierByte); in readTagNumber()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java23 import com.android.apksig.internal.asn1.ber.BerEncoding;
492 new Asn1OpaqueObject(new byte[] {BerEncoding.TAG_NUMBER_NULL, 0});