Home
last modified time | relevance | path

Searched refs:contentsLength (Results 1 – 3 of 3) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1DerEncoder.java447 int contentsLength = 0; in createTag() local
449 contentsLength += c.length; in createTag()
453 if (contentsLength < 0x80) { in createTag()
456 result = new byte[contentsPosInResult + contentsLength]; in createTag()
458 result[1] = (byte) contentsLength; in createTag()
463 if (contentsLength <= 0xff) { in createTag()
465 result = new byte[contentsPosInResult + contentsLength]; in createTag()
467 result[2] = (byte) contentsLength; in createTag()
468 } else if (contentsLength <= 0xffff) { in createTag()
470 result = new byte[contentsPosInResult + contentsLength]; in createTag()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DByteBufferBerDataValueReader.java49 int contentsLength; in readDataValue() local
53 contentsLength = readShortFormLength(firstLengthByte); in readDataValue()
55 skipDefiniteLengthContents(contentsLength); in readDataValue()
58 contentsLength = readLongFormLength(firstLengthByte); in readDataValue()
60 skipDefiniteLengthContents(contentsLength); in readDataValue()
64 contentsLength = in readDataValue()
81 encoded.limit(contentsOffsetInTag + contentsLength); in readDataValue()
151 private void skipDefiniteLengthContents(int contentsLength) throws BerDataValueFormatException { in skipDefiniteLengthContents() argument
152 if (mBuf.remaining() < contentsLength) { in skipDefiniteLengthContents()
154 "Truncated contents. Need: " + contentsLength + " bytes, available: " in skipDefiniteLengthContents()
[all …]
DInputStreamBerDataValueReader.java67 int contentsLength; in readDataValue() local
71 contentsLength = readShortFormLength(firstLengthByte); in readDataValue()
73 skipDefiniteLengthContents(in, contentsLength); in readDataValue()
76 contentsLength = readLongFormLength(in, firstLengthByte); in readDataValue()
78 skipDefiniteLengthContents(in, contentsLength); in readDataValue()
82 contentsLength = in readDataValue()
90 ByteBuffer.wrap(encoded, contentsOffsetInDataValue, contentsLength); in readDataValue()