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:
27
U2F_Msg_CMD.hpp
Normal file
27
U2F_Msg_CMD.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
#include "U2F_CMD.hpp"
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
||||
struct U2F_Msg_CMD : U2F_CMD
|
||||
{
|
||||
uint8_t cla;
|
||||
uint8_t ins;
|
||||
uint8_t p1;
|
||||
uint8_t p2;
|
||||
uint32_t lc;
|
||||
uint32_t le;
|
||||
|
||||
const static std::map<uint8_t, bool> usesData;
|
||||
|
||||
protected:
|
||||
static uint32_t getLe(const uint32_t byteCount, std::vector<uint8_t> bytes);
|
||||
|
||||
public:
|
||||
static std::shared_ptr<U2F_Msg_CMD> get();
|
||||
|
||||
virtual void respond();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user