Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DIpSecAlgorithm.java209 private static void checkValidOrThrow(String name, int keyLen, int truncLen) { in checkValidOrThrow() argument
219 isValidTruncLen = truncLen >= 96 && truncLen <= 128; in checkValidOrThrow()
223 isValidTruncLen = truncLen >= 96 && truncLen <= 160; in checkValidOrThrow()
227 isValidTruncLen = truncLen >= 96 && truncLen <= 256; in checkValidOrThrow()
231 isValidTruncLen = truncLen >= 192 && truncLen <= 384; in checkValidOrThrow()
235 isValidTruncLen = truncLen >= 256 && truncLen <= 512; in checkValidOrThrow()
240 isValidTruncLen = truncLen == 64 || truncLen == 96 || truncLen == 128; in checkValidOrThrow()
250 throw new IllegalArgumentException("Invalid truncation keyLength: " + truncLen); in checkValidOrThrow()
/frameworks/base/tests/net/java/android/net/
DIpSecAlgorithmTest.java75 for (int truncLen : new int[] {256, 512}) { in testTruncLenValidation()
79 truncLen); in testTruncLenValidation()
82 for (int truncLen : new int[] {255, 513}) { in testTruncLenValidation()
87 truncLen); in testTruncLenValidation()