Searched refs:algoName (Results 1 – 2 of 2) sorted by relevance
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | PacketUtils.java | 501 public final String algoName; field in PacketUtils.EspCipher 508 public EspCipher(String algoName, int blockSize, byte[] key, int ivLen, int saltLen) { in EspCipher() argument 509 this.algoName = algoName; in EspCipher() 572 public EspCryptCipher(String algoName, int blockSize, byte[] key, int ivLen) { in EspCryptCipher() argument 573 this(algoName, blockSize, key, ivLen, SALT_LEN_UNUSED); in EspCryptCipher() 576 public EspCryptCipher(String algoName, int blockSize, byte[] key, int ivLen, int saltLen) { in EspCryptCipher() argument 577 super(algoName, blockSize, key, ivLen, saltLen); in EspCryptCipher() 586 if (AES_CBC.equals(algoName)) { in getCipherText() 588 secretKeySpec = new SecretKeySpec(key, algoName); in getCipherText() 589 } else if (AES_CTR.equals(algoName)) { in getCipherText() [all …]
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | IpSecAlgorithmTest.java | 91 private void checkAuthKeyAndTruncLenValidation(String algoName, int keyLen, int truncLen) in checkAuthKeyAndTruncLenValidation() argument 93 new IpSecAlgorithm(algoName, generateKey(keyLen), truncLen); in checkAuthKeyAndTruncLenValidation() 96 new IpSecAlgorithm(algoName, generateKey(keyLen)); in checkAuthKeyAndTruncLenValidation() 102 new IpSecAlgorithm(algoName, generateKey(keyLen + 8), truncLen); in checkAuthKeyAndTruncLenValidation() 108 new IpSecAlgorithm(algoName, generateKey(keyLen), truncLen + 1); in checkAuthKeyAndTruncLenValidation() 114 private void checkCryptKeyLenValidation(String algoName, int keyLen) throws Exception { in checkCryptKeyLenValidation() argument 115 new IpSecAlgorithm(algoName, generateKey(keyLen)); in checkCryptKeyLenValidation() 118 new IpSecAlgorithm(algoName, generateKey(keyLen + 8)); in checkCryptKeyLenValidation()
|