Home
last modified time | relevance | path

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

/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DPacketUtils.java428 int payloadLen, int cryptIvLength, int cryptBlockSize, int authTruncLen) { in calculateEspPacketSize() argument
434 payloadLen = calculateEspEncryptedLength(payloadLen, cryptBlockSize); in calculateEspPacketSize()
438 private static int calculateEspEncryptedLength(int payloadLen, int cryptBlockSize) { in calculateEspEncryptedLength() argument
442 return payloadLen + calculateEspPadLen(payloadLen, cryptBlockSize); in calculateEspEncryptedLength()
445 private static int calculateEspPadLen(int payloadLen, int cryptBlockSize) { in calculateEspPadLen() argument
446 return (cryptBlockSize - (payloadLen % cryptBlockSize)) % cryptBlockSize; in calculateEspPadLen()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DPacketUtils.java461 int payloadLen, int cryptIvLength, int cryptBlockSize, int authTruncLen) { in calculateEspPacketSize() argument
465 payloadLen = calculateEspEncryptedLength(payloadLen, cryptBlockSize); in calculateEspPacketSize()
470 private static int calculateEspEncryptedLength(int payloadLen, int cryptBlockSize) { in calculateEspEncryptedLength() argument
474 return payloadLen + calculateEspPadLen(payloadLen, cryptBlockSize); in calculateEspEncryptedLength()
477 private static int calculateEspPadLen(int payloadLen, int cryptBlockSize) { in calculateEspPadLen() argument
478 return (cryptBlockSize - (payloadLen % cryptBlockSize)) % cryptBlockSize; in calculateEspPadLen()