Home
last modified time | relevance | path

Searched refs:generateChecksum (Results 1 – 5 of 5) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacIntegrityTest.java111 mHmacSha1IntegrityMac.generateChecksum(mHmacSha1IntegrityKey, mDataToAuthenticate); in testGenerateChecksum()
123 mAesCmac96IntgerityMac.generateChecksum( in testGenerateChecksumAuthAesCmac96()
138 mHmacSha1IntegrityMac.generateChecksum(integrityKey, mDataToAuthenticate); in testGenerateChecksumWithDifferentKey()
150 mHmacSha1IntegrityMac.generateChecksum(integrityKey, mDataToAuthenticate); in testGenerateChecksumWithInvalidKey()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeEncryptedPayloadBody.java240 return integrityMac.generateChecksum(integrityKey, authenticatedSectionBuffer.array()); in generateOutboundChecksum()
253 byte[] calculatedChecksum = integrityMac.generateChecksum(integrityKey, dataToAuthenticate); in validateInboundChecksumOrThrow()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java244 doReturn(expectedChecksum).when(mMockIntegrity).generateChecksum(any(), any()); in setUp()
416 doReturn(new byte[0]).when(mMockIntegrity).generateChecksum(any(), any()); in testDecodeEncryptedMessageWithWrongChecksum()
512 doReturn(checkSum).when(mMockIntegrity).generateChecksum(any(), any()); in testEncodeAndEncryptEmptyMsg()
DIkeSkfPayloadTest.java93 doReturn(expectedChecksum).when(mSpyHmacSha256IntegrityMac).generateChecksum(any(), any()); in setUp()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacIntegrity.java163 public byte[] generateChecksum(byte[] keyBytes, byte[] dataToAuthenticate) { in generateChecksum() method in IkeMacIntegrity