Home
last modified time | relevance | path

Searched refs:firstIdentifierByte (Results 1 – 4 of 4) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DBerEncoding.java198 public static boolean isConstructed(byte firstIdentifierByte) { in isConstructed() argument
199 return (firstIdentifierByte & ID_FLAG_CONSTRUCTED_ENCODING) != 0; in isConstructed()
206 public static int getTagClass(byte firstIdentifierByte) { in getTagClass() argument
207 return (firstIdentifierByte & 0xff) >> 6; in getTagClass()
210 public static byte setTagClass(byte firstIdentifierByte, int tagClass) { in setTagClass() argument
211 return (byte) ((firstIdentifierByte & 0x3f) | (tagClass << 6)); in setTagClass()
218 public static int getTagNumber(byte firstIdentifierByte) { in getTagNumber() argument
219 return firstIdentifierByte & 0x1f; in getTagNumber()
222 public static byte setTagNumber(byte firstIdentifierByte, int tagNumber) { in setTagNumber() argument
223 return (byte) ((firstIdentifierByte & ~0x1f) | tagNumber); in setTagNumber()
DInputStreamBerDataValueReader.java54 int firstIdentifierByte = in.read(); in readDataValue() local
55 if (firstIdentifierByte == -1) { in readDataValue()
59 int tagNumber = readTagNumber(in, firstIdentifierByte); in readDataValue()
66 boolean constructed = BerEncoding.isConstructed((byte) firstIdentifierByte); in readDataValue()
94 BerEncoding.getTagClass((byte) firstIdentifierByte), in readDataValue()
102 private static int readTagNumber(InputStream in, int firstIdentifierByte) in readTagNumber() argument
104 int tagNumber = BerEncoding.getTagNumber((byte) firstIdentifierByte); in readTagNumber()
DByteBufferBerDataValueReader.java41 byte firstIdentifierByte = mBuf.get(); in readDataValue()
42 int tagNumber = readTagNumber(firstIdentifierByte); in readDataValue()
43 boolean constructed = BerEncoding.isConstructed(firstIdentifierByte); in readDataValue()
88 BerEncoding.getTagClass(firstIdentifierByte), in readDataValue()
93 private int readTagNumber(byte firstIdentifierByte) throws BerDataValueFormatException { in readTagNumber() argument
94 int tagNumber = BerEncoding.getTagNumber(firstIdentifierByte); in readTagNumber()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1DerEncoder.java444 byte firstIdentifierByte = in createTag()
457 result[0] = firstIdentifierByte; in createTag()
490 result[0] = firstIdentifierByte; in createTag()