libdrmconf 0.14.1
A library to program DMR radios.
Loading...
Searching...
No Matches
DM32UVCodeplug::EncryptionKeyElement Class Reference

Implementation of a single encryption key. More...

#include <dm32uv_codeplug.hh>

Inheritance diagram for DM32UVCodeplug::EncryptionKeyElement:
Collaboration diagram for DM32UVCodeplug::EncryptionKeyElement:

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.
EncryptionKeydecode (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.

Detailed Description

Implementation of a single encryption key.

Member Function Documentation

◆ clear()

void DM32UVCodeplug::EncryptionKeyElement::clear ( )
overridevirtual

Abstract method to reset the element within the codeplug.

Any device specific element should implement this method.

Reimplemented from Codeplug::Element.


The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/qdmr-0.14.1-build/qdmr-0.14.1/lib/dm32uv_codeplug.hh
  • /builddir/build/BUILD/qdmr-0.14.1-build/qdmr-0.14.1/lib/dm32uv_codeplug.cc