*
*/
typedef struct __wauthn_hybrid_linked_data {
- wauthn_const_buffer_s *contact_id; // cbor:"1"
- wauthn_const_buffer_s *link_id; // cbor:"2"
- wauthn_const_buffer_s *link_secret; // cbor:"3"
- wauthn_const_buffer_s *authenticator_pubkey; // cbor:"4"
- wauthn_const_buffer_s *authenticator_name; // cbor:"5"
- wauthn_const_buffer_s *signature; // cbor:"6"
- wauthn_const_buffer_s *auth_pubkey;
- wauthn_const_buffer_s *tunnel_server_domain;
+ wauthn_const_buffer_s *contact_id; /**< cbor:"1" */
+ wauthn_const_buffer_s *link_id; /**< cbor:"2" */
+ wauthn_const_buffer_s *link_secret; /**< cbor:"3" */
+ wauthn_const_buffer_s *authenticator_pubkey; /**< cbor:"4" */
+ wauthn_const_buffer_s *authenticator_name; /**< cbor:"5" */
+ wauthn_const_buffer_s *signature; /**< cbor:"6" */
+ wauthn_const_buffer_s *tunnel_server_domain; /**< Domain String of tunnel server.*/
+ wauthn_const_buffer_s *identity_key; /**< Identity Key created during QR initiated transaction.*/
} wauthn_hybrid_linked_data_s;
/**
serialize(stream, data->authenticator_pubkey);
serialize(stream, data->authenticator_name);
serialize(stream, data->signature);
- serialize(stream, data->auth_pubkey);
serialize(stream, data->tunnel_server_domain);
+ serialize(stream, data->identity_key);
}
void WAuthnCtypeSerializer::deserialize(IStream& stream, wauthn_hybrid_linked_data_s** data) {
// Deserialize struct itself
deserialize(stream, &((*data)->authenticator_pubkey));
deserialize(stream, &((*data)->authenticator_name));
deserialize(stream, &((*data)->signature));
- deserialize(stream, &((*data)->auth_pubkey));
deserialize(stream, &((*data)->tunnel_server_domain));
+ deserialize(stream, &((*data)->identity_key));
}
// For wauthn_attestation_formats_s
return false;
if (__compareWAuthnBuffers(actual->signature, expected->signature) == false)
return false;
- if (__compareWAuthnBuffers(actual->auth_pubkey, expected->auth_pubkey) == false)
- return false;
if (__compareWAuthnBuffers(actual->tunnel_server_domain, expected->tunnel_server_domain) == false)
return false;
+ if (__compareWAuthnBuffers(actual->identity_key, expected->identity_key) == false)
+ return false;
return true;
}
TEST_F(WAuthnSerializationTest, wauthn_hybrid_linked_data_s_P)
unsigned char linkSecretRaw[26] = {0x11, 0x12, 0x13, 0x14, };
unsigned char authenticatorPubkeyRaw[16] = {0x11, 0x12, 0x13, 0x14, };
unsigned char authenticatorNameRaw[26] = {0x11, 0x12, 0x13, 0x14, };
- unsigned char authPubkeyRaw[36] = {0x11, 0x12, 0x13, 0x14, };
unsigned char tunnelServerDomainRaw[36] = {0x11, 0x12, 0x13, 0x14, };
+ unsigned char identityKeyRaw[36] = {0x11, 0x12, 0x13, 0x14, };
wauthn_const_buffer_s contactId = {contactIdRaw, sizeof(contactIdRaw)};
wauthn_const_buffer_s linkId = {linkIdRaw, sizeof(linkIdRaw)};
wauthn_const_buffer_s linkSecret = {linkSecretRaw, sizeof(linkSecretRaw)};
wauthn_const_buffer_s authenticatorPubkey = {authenticatorPubkeyRaw, sizeof(authenticatorPubkeyRaw)};
wauthn_const_buffer_s authenticatorName = {authenticatorNameRaw, sizeof(authenticatorNameRaw)};
- wauthn_const_buffer_s authPubkey = {authPubkeyRaw, sizeof(authPubkeyRaw)};
+ wauthn_const_buffer_s identityKey = {identityKeyRaw, sizeof(identityKeyRaw)};
wauthn_const_buffer_s tunnelServerDomain = {tunnelServerDomainRaw, sizeof(tunnelServerDomainRaw)};
wauthn_hybrid_linked_data_s hybridLinkedData = {&contactId, &linkId, &linkSecret, &authenticatorPubkey,
- &authenticatorName, &signature, &authPubkey, &tunnelServerDomain};
+ &authenticatorName, &signature, &tunnelServerDomain, &identityKey};
wauthn_hybrid_linked_data_s emptyHybridLinkedData = {nullptr, nullptr, nullptr, nullptr,
nullptr, nullptr, nullptr, nullptr};
extern unsigned char linkSecretRaw[26];
extern unsigned char authenticatorPubkeyRaw[16];
extern unsigned char authenticatorNameRaw[26];
- extern unsigned char authPubkeyRaw[36];
+ extern unsigned char identityKeyRaw[36];
extern unsigned char tunnelServerDomainRaw[36];
extern wauthn_const_buffer_s contactId;
extern wauthn_const_buffer_s linkId;
extern wauthn_const_buffer_s linkSecret;
extern wauthn_const_buffer_s authenticatorPubkey;
extern wauthn_const_buffer_s authenticatorName;
- extern wauthn_const_buffer_s authPubkey;
+ extern wauthn_const_buffer_s identityKey;
extern wauthn_const_buffer_s tunnelServerDomain;
extern wauthn_hybrid_linked_data_s hybridLinkedData;
extern wauthn_hybrid_linked_data_s emptyHybridLinkedData;