Home
last modified time | relevance | path

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

/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DPacketUtils.java379 int paddedLen = calculateEspEncryptedLength(payload.length, AES_CBC_BLK_SIZE); in getCiphertext() local
380 ByteBuffer paddedPayload = ByteBuffer.allocate(paddedLen); in getCiphertext()
390 paddedPayload.put((byte) (paddedLen - 2 - payload.length)); // Pad length in getCiphertext()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DPacketUtils.java522 final int paddedLen = calculateEspEncryptedLength(payload.length, blockSize); in getPaddedPayload() local
523 final ByteBuffer paddedPayload = ByteBuffer.allocate(paddedLen); in getPaddedPayload()
533 paddedPayload.put((byte) (paddedLen - ESP_TRAILER_LEN - payload.length)); in getPaddedPayload()