Searched refs:atKdfInput (Results 1 – 3 of 3) sorted by relevance
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/ |
D | AtKdfInputTest.java | 51 AtKdfInput atKdfInput = (AtKdfInput) result; in testDecode() local 52 assertEquals(EAP_AT_KDF_INPUT, atKdfInput.attributeType); in testDecode() 53 assertEquals(AT_KDF_INPUT.length, atKdfInput.lengthInBytes); in testDecode() 54 assertArrayEquals(NETWORK_NAME_BYTES, atKdfInput.networkName); in testDecode() 63 AtKdfInput atKdfInput = (AtKdfInput) result; in testDecodeEmptyNetworkName() local 64 assertEquals(EAP_AT_KDF_INPUT, atKdfInput.attributeType); in testDecodeEmptyNetworkName() 65 assertEquals(AT_KDF_INPUT_EMPTY_NETWORK_NAME.length, atKdfInput.lengthInBytes); in testDecodeEmptyNetworkName() 66 assertArrayEquals(new byte[0], atKdfInput.networkName); in testDecodeEmptyNetworkName() 71 AtKdfInput atKdfInput = new AtKdfInput(AT_KDF_INPUT.length, NETWORK_NAME_BYTES); in testEncode() local 74 atKdfInput.encode(result); in testEncode()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/ |
D | EapAkaPrimeChallengeStateTest.java | 174 AtKdfInput atKdfInput = new AtKdfInput(0, SERVER_NETWORK_NAME); in testProcessMissingAtKdf() local 180 Arrays.asList(atRandAka, atAutn, atMac, atKdfInput))); in testProcessMissingAtKdf() 217 AtKdfInput atKdfInput = new AtKdfInput(0, SERVER_NETWORK_NAME); in testProcessUnsupportedKdf() local 224 Arrays.asList(atRandAka, atAutn, atMac, atKdfInput, atKdf))); in testProcessUnsupportedKdf() 240 AtKdfInput atKdfInput = new AtKdfInput(0, INCORRECT_SERVER_NETWORK_NAME); in testProcessIncorrectNetworkName() local 247 Arrays.asList(atRandAka, atAutn, atMac, atKdfInput, atKdf))); in testProcessIncorrectNetworkName() 271 AtKdfInput atKdfInput = new AtKdfInput(0, INCORRECT_SERVER_NETWORK_NAME); in testProcessIncorrectNetworkNameIsIgnored() local 277 Arrays.asList(atRandAka, atAutn, atMac, atKdfInput, atKdf)); in testProcessIncorrectNetworkNameIsIgnored() 304 AtKdfInput atKdfInput = in testDeriveCkIkPrime() local 314 byte[] result = mState.deriveCkIkPrime(randChallengeResult, atKdfInput, atAutn); in testDeriveCkIkPrime() [all …]
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/ |
D | EapAkaPrimeMethodStateMachine.java | 203 AtKdfInput atKdfInput = (AtKdfInput) attrs.get(EAP_AT_KDF_INPUT); in isValidChallengeAttributes() local 204 if (atKdfInput.networkName.length == 0) { in isValidChallengeAttributes() 211 new String(atKdfInput.networkName, StandardCharsets.UTF_8)); in isValidChallengeAttributes() 255 AtKdfInput atKdfInput = in generateAndPersistEapAkaKeys() local 260 byte[] ckIkPrime = deriveCkIkPrime(result, atKdfInput, atAutn); in generateAndPersistEapAkaKeys() 308 RandChallengeResult randChallengeResult, AtKdfInput atKdfInput, AtAutn atAutn) in deriveCkIkPrime() argument 317 + atKdfInput.networkName.length + lengthFieldLen in deriveCkIkPrime() 322 dataToSign.put(atKdfInput.networkName); in deriveCkIkPrime() 323 dataToSign.putShort((short) atKdfInput.networkName.length); in deriveCkIkPrime()
|