|
libdrmconf 0.14.1
A library to program DMR radios.
|
Implementation of a single encryption key. More...
#include <dm32uv_codeplug.hh>


Classes | |
| struct | Limit |
| Some limits of the element. More... | |
| struct | Offset |
| Some internal offsets. More... | |
Public Types | |
| enum class | Type { Off = 0 , Custom = 1 , ARC4 = 2 , AES128 = 3 , AES256 = 4 } |
| Possible key types. | |
Public Member Functions | |
| EncryptionKeyElement (uint8_t *ptr) | |
| Constructor. | |
| virtual void | clear () override |
| Abstract method to reset the element within the codeplug. | |
| virtual unsigned int | keyId () const |
| Returns the key id. | |
| virtual void | setKeyId (unsigned int id) |
| Sets the key id. | |
| virtual QString | name () const |
| Returns the key name. | |
| virtual void | setName (const QString &name) |
| Sets the name. | |
| virtual Type | type () const |
| Returns the key type. | |
| virtual void | setType (Type type) |
| Sets the key type. | |
| virtual QByteArray | key () const |
| Returns the key data. | |
| virtual void | setKey (const QByteArray &key) |
| Sets the key data. | |
| EncryptionKey * | decode (Context &ctx, const ErrorStack &err=ErrorStack()) const |
| Decodes the key. | |
| bool | encode (const EncryptionKey *key, Context &ctx, const ErrorStack &err=ErrorStack()) |
| Encodes the key. | |
Static Public Member Functions | |
| static constexpr unsigned int | size () |
| Returns the size of the element. | |
Implementation of a single encryption key.
|
overridevirtual |
Abstract method to reset the element within the codeplug.
Any device specific element should implement this method.
Reimplemented from Codeplug::Element.