Home
last modified time | relevance | path

Searched refs:keyExchangeData (Results 1 – 4 of 4) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayload.java135 public final byte[] keyExchangeData; field in IkeKePayload
185 keyExchangeData = new byte[dataSize]; in IkeKePayload()
186 inputBuffer.get(keyExchangeData); in IkeKePayload()
190 private IkeKePayload(int dhGroup, byte[] keyExchangeData, PrivateKey localPrivateKey) { in IkeKePayload() argument
194 this.keyExchangeData = keyExchangeData; in IkeKePayload()
249 byte[] keyExchangeData = in createOutboundModpKePayload()
252 return new IkeKePayload(dh, keyExchangeData, localPrivateKey); in createOutboundModpKePayload()
271 byte[] keyExchangeData = in createOutboundCurveKePayload()
277 return new IkeKePayload(dh, keyExchangeData, privateKey); in createOutboundCurveKePayload()
295 .put(keyExchangeData); in encodeToByteBuffer()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeKePayloadTest.java111 byte[] keyExchangeData = TestUtils.hexStringToByteArray(KEY_EXCHANGE_DATA_RAW_PACKET); in testDecodeIkeKePayload()
112 assertEquals(keyExchangeData.length, payload.keyExchangeData.length); in testDecodeIkeKePayload()
113 for (int i = 0; i < keyExchangeData.length; i++) { in testDecodeIkeKePayload()
114 assertEquals(keyExchangeData[i], payload.keyExchangeData[i]); in testDecodeIkeKePayload()
170 assertEquals(EXPECTED_KE_DATA_LEN, payload.keyExchangeData.length); in testGetIkeKePayload()
267 assertEquals(expectedKeDataLen, payload.keyExchangeData.length); in testGetIkeCurveKePayload()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/testmode/
DDeterministicSecureRandomTest.java85 assertArrayEquals(kePayloadOne.keyExchangeData, kePayloadTwo.keyExchangeData); in testDeterministicSecureRandomInKePayload()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DSaRecord.java262 keRemotePayload.keyExchangeData, in getSharedKey()
381 remoteKePayload.keyExchangeData, in getChildSharedKey()