Home
last modified time | relevance | path

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

/tools/apksig/src/main/java/com/android/apksig/internal/util/
DX509CertificateUtils.java221 private static ByteBuffer getNextDEREncodedCertificateBlock(ByteBuffer certificateBuffer) in getNextDEREncodedCertificateBlock() argument
223 if (certificateBuffer == null) { in getNextDEREncodedCertificateBlock()
228 if (certificateBuffer.remaining() < BEGIN_CERT_HEADER.length) { in getNextDEREncodedCertificateBlock()
229 return certificateBuffer; in getNextDEREncodedCertificateBlock()
231 certificateBuffer.mark(); in getNextDEREncodedCertificateBlock()
233 if (certificateBuffer.get() != BEGIN_CERT_HEADER[i]) { in getNextDEREncodedCertificateBlock()
234 certificateBuffer.reset(); in getNextDEREncodedCertificateBlock()
235 return certificateBuffer; in getNextDEREncodedCertificateBlock()
239 while (certificateBuffer.hasRemaining()) { in getNextDEREncodedCertificateBlock()
240 char encodedChar = (char) certificateBuffer.get(); in getNextDEREncodedCertificateBlock()
[all …]