Added registration.
Currently doesn't return any valid result, hence host believes device failed to register, however, insecure storage of keys does occur.
This commit is contained in:
16
U2F_Register_APDU.hpp
Normal file
16
U2F_Register_APDU.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include "U2F_Msg_CMD.hpp"
|
||||
#include "Storage.hpp"
|
||||
|
||||
struct U2F_Register_APDU : U2F_Msg_CMD
|
||||
{
|
||||
std::array<uint8_t, 32> challengeP;
|
||||
Storage::AppParam appP;
|
||||
Storage::KeyHandle keyH;
|
||||
|
||||
public:
|
||||
U2F_Register_APDU(const U2F_Msg_CMD &msg, const std::vector<uint8_t> &data);
|
||||
|
||||
void respond();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user