Home
last modified time | relevance | path

Searched refs:D2DCryptoOps (Results 1 – 12 of 12) sorted by relevance

/external/ukey2/src/main/cpp/test/securegcm/
Dd2d_crypto_ops_test.cc45 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/
Dd2d_crypto_ops.cc42 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()
Dd2d_connection_context_v1.cc105 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()
Dukey2_handshake.cc272 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/
DD2DDiffieHellmanKeyExchangeHandshake.java174 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 …]
DD2DConnectionContext.java64 return D2DCryptoOps.signcryptPayload( in encodeMessageToPeer()
103 Payload payload = D2DCryptoOps.verifydecryptPayload(message, getDecodeKey()); in decodeMessageFromPeer()
DD2DCryptoOps.java47 class D2DCryptoOps { class
64 private D2DCryptoOps() { } in D2DCryptoOps() method in D2DCryptoOps
DD2DConnectionContextV0.java55 md.update(D2DCryptoOps.SALT); in getSessionUnique()
DD2DConnectionContextV1.java75 md.update(D2DCryptoOps.SALT); in getSessionUnique()
DUkey2Handshake.java534 clientKey = D2DCryptoOps.deriveNewKeyForPurpose(nextProtocolKey, "client"); in toConnectionContext()
535 serverKey = D2DCryptoOps.deriveNewKeyForPurpose(nextProtocolKey, "server"); in toConnectionContext()
/external/ukey2/src/main/cpp/include/securegcm/
Dd2d_crypto_ops.h32 class D2DCryptoOps {
73 D2DCryptoOps();
/external/ukey2/src/main/javatest/com/google/security/cryptauth/lib/securegcm/
DD2DDiffieHellmanKeyExchangeHandshakeTest.java374 byte[] responderHello = D2DCryptoOps.signcryptPayload( in testHandshakeWithInitiatorV1AndResponderV0()