Searched refs:truncLen (Results 1 – 2 of 2) sorted by relevance
209 private static void checkValidOrThrow(String name, int keyLen, int truncLen) { in checkValidOrThrow() argument219 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()
75 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()