Digital Authentication Framework 6.0.1.33
|
Simple key implementation for class-0 devices. More...
#include <basic_key.h>
Public Member Functions | |
BasicReadonlyKey (BasicError &err, const DAData &data) | |
Constructor. | |
virtual bool | getData (DAData &out) |
Retrieve key data. | |
Protected Attributes | |
DAData | m_bytes |
Data to be returned by getData() |
Simple key implementation for class-0 devices.
This can be used directly if the key data is known at the time the key object is created. Note that the key data is retained in memory for the lifetime of the object; this may make in unsuitable for high-security applications.
BasicReadonlyKey::BasicReadonlyKey | ( | BasicError & | err, |
const DAData & | data | ||
) | [inline] |
Constructor.
err | reference to the BasicError object for the |
data | data block to return from getData() method |
virtual bool BasicReadonlyKey::getData | ( | DAData & | data | ) | [inline, virtual] |
Retrieve key data.
This is only called for class-0 and class-1 keys. Keys capable of cryptographic operation should not implement this.
Returns success = true
Reimplemented from BasicKey.