Home
last modified time | relevance | path

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

/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
H A DIkeMacPrf.java165 public byte[] generateSKeySeed(byte[] nonceInit, byte[] nonceResp, byte[] sharedDhKey) { in generateSKeySeed() argument
180 return signBytes(keyBuffer.array(), sharedDhKey); in generateSKeySeed()
193 byte[] skD, byte[] nonceInit, byte[] nonceResp, byte[] sharedDhKey) { in generateRekeyedSKeySeed() argument
195 ByteBuffer.allocate(sharedDhKey.length + nonceInit.length + nonceResp.length); in generateRekeyedSKeySeed()
196 dataToSign.put(sharedDhKey).put(nonceInit).put(nonceResp); in generateRekeyedSKeySeed()
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/
H A DIkeMacPrfTest.java217 byte[] sharedDhKey = TestUtils.hexStringToByteArray(IKE_SHARED_DH_KEY_HEX_STRING); in testGenerateSKeySeedHmacSha1()
220 mIkeHmacSha1Prf.generateSKeySeed(nonceInit, nonceResp, sharedDhKey); in testGenerateSKeySeedHmacSha1()
230 byte[] sharedDhKey = in testGenerateSKeySeedHmacSha256()
234 mIkeHmacSha256Prf.generateSKeySeed(nonceInit, nonceResp, sharedDhKey); in testGenerateSKeySeedHmacSha256()
245 byte[] sharedDhKey = TestUtils.hexStringToByteArray(IKE_SHARED_DH_KEY_HEX_STRING); in testGenerateRekeyedSKeySeed()
249 mIkeHmacSha1Prf.generateRekeyedSKeySeed(old_skd, nonceInit, nonceResp, sharedDhKey); in testGenerateRekeyedSKeySeed()
386 byte[] sharedDhKey = in testGenerateSKeySeedAes128XCbc()
390 mIkeAes128XCbcPrf.generateSKeySeed(nonceInit, nonceResp, sharedDhKey); in testGenerateSKeySeedAes128XCbc()
413 byte[] sharedDhKey = hexStringToByteArray(sharedDhKeyHex); in testGenerateRekeySKeySeedAes128XCbc()
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
H A 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()
354 byte[] sharedDhKey = in makeChildSaRecord()
357 return makeChildSaRecord(sharedDhKey, nonceInit, nonceResp, childSaRecordConfig); in makeChildSaRecord()