Searched refs:paddedLen (Results 1 – 2 of 2) sorted by relevance
379 int paddedLen = calculateEspEncryptedLength(payload.length, AES_CBC_BLK_SIZE); in getCiphertext() local380 ByteBuffer paddedPayload = ByteBuffer.allocate(paddedLen); in getCiphertext()390 paddedPayload.put((byte) (paddedLen - 2 - payload.length)); // Pad length in getCiphertext()
522 final int paddedLen = calculateEspEncryptedLength(payload.length, blockSize); in getPaddedPayload() local523 final ByteBuffer paddedPayload = ByteBuffer.allocate(paddedLen); in getPaddedPayload()533 paddedPayload.put((byte) (paddedLen - ESP_TRAILER_LEN - payload.length)); in getPaddedPayload()