Searched refs:D2DCryptoOps (Results 1 – 12 of 12) sorted by relevance
/external/ukey2/src/main/cpp/test/securegcm/ |
D | d2d_crypto_ops_test.cc | 45 const D2DCryptoOps::Payload payload_; 51 D2DCryptoOps::Payload empty_payload(DEVICE_TO_DEVICE_MESSAGE, string()); in TEST_F() 52 EXPECT_FALSE(D2DCryptoOps::SigncryptPayload(empty_payload, secret_key_)); in TEST_F() 57 EXPECT_FALSE(D2DCryptoOps::VerifyDecryptPayload(kInvalidSigncryptedMessage, in TEST_F() 63 D2DCryptoOps::SigncryptPayload(payload_, secret_key_); in TEST_F() 75 EXPECT_FALSE(D2DCryptoOps::VerifyDecryptPayload( in TEST_F() 81 D2DCryptoOps::SigncryptPayload(payload_, secret_key_); in TEST_F() 99 EXPECT_FALSE(D2DCryptoOps::VerifyDecryptPayload( in TEST_F() 106 D2DCryptoOps::SigncryptPayload(payload_, secret_key_); in TEST_F() 110 std::unique_ptr<D2DCryptoOps::Payload> decrypted_payload = in TEST_F() [all …]
|
/external/ukey2/src/main/cpp/src/securegcm/ |
D | d2d_crypto_ops.cc | 42 const uint8_t D2DCryptoOps::kSalt[] = { 48 const size_t D2DCryptoOps::kSaltLength = sizeof(D2DCryptoOps::kSalt); 50 D2DCryptoOps::Payload::Payload(Type type, const string& message) in Payload() 53 D2DCryptoOps::D2DCryptoOps() {} in D2DCryptoOps() function in securegcm::D2DCryptoOps 56 std::unique_ptr<string> D2DCryptoOps::SigncryptPayload( in SigncryptPayload() 79 std::unique_ptr<D2DCryptoOps::Payload> D2DCryptoOps::VerifyDecryptPayload( in VerifyDecryptPayload() 120 std::unique_ptr<CryptoOps::SecretKey> D2DCryptoOps::DeriveNewKeyForPurpose( in DeriveNewKeyForPurpose()
|
D | d2d_connection_context_v1.cc | 105 const D2DCryptoOps::Payload payload_with_type(kGcmMetadataType, in EncodeMessageToPeer() 107 return D2DCryptoOps::SigncryptPayload(payload_with_type, encode_key_); in EncodeMessageToPeer() 112 std::unique_ptr<D2DCryptoOps::Payload> payload = in DecodeMessageFromPeer() 113 D2DCryptoOps::VerifyDecryptPayload(message, decode_key_); in DecodeMessageFromPeer() 155 ByteBuffer data_to_hash(D2DCryptoOps::kSalt, D2DCryptoOps::kSaltLength); in GetSessionUnique()
|
D | ukey2_handshake.cc | 272 D2DCryptoOps::DeriveNewKeyForPurpose(master_key, "client"); in ToConnectionContext() 274 D2DCryptoOps::DeriveNewKeyForPurpose(master_key, "server"); in ToConnectionContext()
|
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/ |
D | D2DDiffieHellmanKeyExchangeHandshake.java | 174 initiatorEncodeKey = D2DCryptoOps.deriveNewKeyForPurpose(masterKey, in makeResponderHelloWithPayload() 175 D2DCryptoOps.INITIATOR_PURPOSE); in makeResponderHelloWithPayload() 176 responderEncodeKey = D2DCryptoOps.deriveNewKeyForPurpose(masterKey, in makeResponderHelloWithPayload() 177 D2DCryptoOps.RESPONDER_PURPOSE); in makeResponderHelloWithPayload() 186 return D2DCryptoOps.signcryptMessageAndResponderHello( in makeResponderHelloWithPayload() 222 D2DCryptoOps.parseAndValidateResponderHello(responderHello); in parseResponderHello() 230 SecretKey masterKey = D2DCryptoOps.deriveSharedKeyFromGenericPublicKey( in parseResponderHello() 238 initiatorEncodeKey = D2DCryptoOps.deriveNewKeyForPurpose(masterKey, in parseResponderHello() 239 D2DCryptoOps.INITIATOR_PURPOSE); in parseResponderHello() 240 responderEncodeKey = D2DCryptoOps.deriveNewKeyForPurpose(masterKey, in parseResponderHello() [all …]
|
D | D2DConnectionContext.java | 64 return D2DCryptoOps.signcryptPayload( in encodeMessageToPeer() 103 Payload payload = D2DCryptoOps.verifydecryptPayload(message, getDecodeKey()); in decodeMessageFromPeer()
|
D | D2DCryptoOps.java | 47 class D2DCryptoOps { class 64 private D2DCryptoOps() { } in D2DCryptoOps() method in D2DCryptoOps
|
D | D2DConnectionContextV0.java | 55 md.update(D2DCryptoOps.SALT); in getSessionUnique()
|
D | D2DConnectionContextV1.java | 75 md.update(D2DCryptoOps.SALT); in getSessionUnique()
|
D | Ukey2Handshake.java | 534 clientKey = D2DCryptoOps.deriveNewKeyForPurpose(nextProtocolKey, "client"); in toConnectionContext() 535 serverKey = D2DCryptoOps.deriveNewKeyForPurpose(nextProtocolKey, "server"); in toConnectionContext()
|
/external/ukey2/src/main/cpp/include/securegcm/ |
D | d2d_crypto_ops.h | 32 class D2DCryptoOps { 73 D2DCryptoOps();
|
/external/ukey2/src/main/javatest/com/google/security/cryptauth/lib/securegcm/ |
D | D2DDiffieHellmanKeyExchangeHandshakeTest.java | 374 byte[] responderHello = D2DCryptoOps.signcryptPayload( in testHandshakeWithInitiatorV1AndResponderV0()
|