Digital Authentication Framework 6.0.1.33
Public Member Functions | Protected Attributes

BasicReadonlyKey Class Reference

Simple key implementation for class-0 devices. More...

#include <basic_key.h>

Inheritance diagram for BasicReadonlyKey:
BasicKey DAKey

List of all members.

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()

Detailed Description

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.


Constructor & Destructor Documentation

BasicReadonlyKey::BasicReadonlyKey ( BasicError err,
const DAData data 
) [inline]

Constructor.

Parameters:
errreference to the BasicError object for the
datadata block to return from getData() method

Member Function Documentation

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.


The documentation for this class was generated from the following file: