Home
last modified time | relevance | path

Searched refs:sharedDhKey (Results 1 – 3 of 3) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacPrfTest.java189 byte[] sharedDhKey = TestUtils.hexStringToByteArray(IKE_SHARED_DH_KEY_HEX_STRING); in testGenerateSKeySeedHmacSha1()
192 mIkeHmacSha1Prf.generateSKeySeed(nonceInit, nonceResp, sharedDhKey); in testGenerateSKeySeedHmacSha1()
202 byte[] sharedDhKey = in testGenerateSKeySeedHmacSha256()
206 mIkeHmacSha256Prf.generateSKeySeed(nonceInit, nonceResp, sharedDhKey); in testGenerateSKeySeedHmacSha256()
217 byte[] sharedDhKey = TestUtils.hexStringToByteArray(IKE_SHARED_DH_KEY_HEX_STRING); in testGenerateRekeyedSKeySeed()
221 mIkeHmacSha1Prf.generateRekeyedSKeySeed(old_skd, nonceInit, nonceResp, sharedDhKey); in testGenerateRekeyedSKeySeed()
318 byte[] sharedDhKey = in testGenerateSKeySeedAes128XCbc()
322 mIkeAes128XCbcPrf.generateSKeySeed(nonceInit, nonceResp, sharedDhKey); in testGenerateSKeySeedAes128XCbc()
345 byte[] sharedDhKey = hexStringToByteArray(sharedDhKeyHex); in testGenerateRekeySKeySeedAes128XCbc()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacPrf.java105 public byte[] generateSKeySeed(byte[] nonceInit, byte[] nonceResp, byte[] sharedDhKey) { in generateSKeySeed() argument
119 return signBytes(keyBuffer.array(), sharedDhKey); in generateSKeySeed()
132 byte[] skD, byte[] nonceInit, byte[] nonceResp, byte[] sharedDhKey) { in generateRekeyedSKeySeed() argument
134 ByteBuffer.allocate(sharedDhKey.length + nonceInit.length + nonceResp.length); in generateRekeyedSKeySeed()
135 dataToSign.put(sharedDhKey).put(nonceInit).put(nonceResp); in generateRekeyedSKeySeed()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DSaRecord.java215 byte[] sharedDhKey = getSharedKey(initRequest, initResponse); in makeFirstIkeSaRecord()
217 ikeSaRecordConfig.prf.generateSKeySeed(nonceInit, nonceResp, sharedDhKey); in makeFirstIkeSaRecord()
244 byte[] sharedDhKey = getSharedKey(localMsg, remoteMsg); in makeRekeyedIkeSaRecord()
247 oldSaRecord.mSkD, nonceInit, nonceResp, sharedDhKey); in makeRekeyedIkeSaRecord()
356 byte[] sharedDhKey = new byte[0]; in makeChildSaRecord()
364 sharedDhKey = in makeChildSaRecord()
369 return makeChildSaRecord(sharedDhKey, nonceInit, nonceResp, childSaRecordConfig); in makeChildSaRecord()