Searched refs:keyAgreement (Results 1 – 2 of 2) sorted by relevance
365 KeyAgreement keyAgreement; in getCurveSharedKey() local368 keyAgreement = in getCurveSharedKey()376 keyAgreement.init(privateKey); in getCurveSharedKey()400 keyAgreement.doPhase(publicKey, true /* Last phase */); in getCurveSharedKey()401 return keyAgreement.generateSecret(); in getCurveSharedKey()
773 KeyAgreement keyAgreement = KeyAgreement.getInstance("ECDH"); in calculateAntiSpoofing() local774 keyAgreement.init(privateKey); in calculateAntiSpoofing()775 keyAgreement.doPhase(publicKey, true); in calculateAntiSpoofing()776 byte[] sharedSecret = keyAgreement.generateSecret(); in calculateAntiSpoofing()