|
| | KeyBlob (void) |
| |
| | KeyBlob (ByteArray b) |
| |
| | KeyBlob (const char *data, int len) |
| |
| void | setDES (const char *data, int len) |
| |
| void | setAES (const char *data, int len) |
| |
| void | setRSA (const char *mod, int l_mod, const char *pub, int l_pub, const char *p, int l_p, const char *q, int l_q, const char *dp, int l_dp, const char *dq, int l_dq, const char *u, int l_u, const char *prv, int l_prv) |
| |
| void | setRSA (const char *mod, int l_mod, const char *pub, int l_pub) |
| |
| void | setEC (const char *dp, int l_dp, const char *pub, int l_pub, const char *prv, int l_prv) |
| |
| void | setDSA (const char *p, int l_p, const char *q, int l_q, const char *g, int l_g, const char *pub, int l_pub, const char *prv, int l_prv) |
| |
| ByteArray | getProperty (int property) const |
| |
| ByteArray | getKeyComp (const char tag[]) const |
| |
| ByteArray | getPublic (void) const |
| |
| ByteArray | getPrivate (void) const |
| |
| ByteArray | getSecret (void) const |
| |
| | ByteArray (void) |
| |
| | ByteArray (int len) |
| |
| | ByteArray (const char *data, int len) |
| |
| | ByteArray (const char *str) |
| |
| | ByteArray (int val, int len) |
| |
| | ByteArray (const ByteArray &ba) |
| |
| virtual | ~ByteArray (void) |
| |
| void | clear (void) |
| |
| int | length (void) const |
| |
| char * | get (void) |
| |
| const char * | get (void) const |
| |
| void | set (const char *data, int len) |
| |
| void | append (const char *data, int len) |
| |
| void | append (const ByteArray &ba) |
| |
| void | insert (const char *data, int len, int offset) |
| |
| void | fill (char value, int len, int offset) |
| |
| int | getInt (int def_val=0) const |
| |
| void | setInt (int val, int len) |
| |
| void | appendInt (int val, int len) |
| |
| void | getString (char *str, int max_size) const |
| |
| void | setString (const char *str) |
| |
| void | appendString (const char *str) |
| |
| std::string | toString (void) const |
| |
| std::string | toHexString (void) const |
| |
| int | compare (const ByteArray &ba) const |
| |
| ByteArray | sub (int offset, int len=-1) const |
| |
| ByteArray | lstrip (void) const |
| |
| ByteArray | rstrip (const std::set< char > &charsToBeStripped) const |
| |
| void | read (const char *filename) |
| |
| void | write (const char *filename) const |
| |
| void | xtrace (const char *text=0) const |
| |
| ByteArray & | operator= (const ByteArray &ba) |
| |
| const ByteArray & | operator+= (const ByteArray &ba) |
| |
| const ByteArray & | operator|= (const ByteArray &ba) |
| |
| const ByteArray & | operator^= (const ByteArray &ba) |
| |
| char & | operator[] (int idx) |
| |
Constructs and parses key blobs of type 'Simple Blob', see Format of Key Blobs.
- Example:
The following example illustrates the usage of the KeyBlob class:
aesKeyKeyBlob.
setAES(
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\x0\xA\xB\xC\xD\xE\xF", 16);
Key aesKey =
cxi->key_import(CXI_KEY_FLAG_OVERWRITE,
keyTemplate,
aesKeyBlob,
NULL);
Key rsaKey =
cxi->key_open(0, keyTemplate);
void xtrace(const char *text=0) const
Definition: bytearray.cpp:611
Constructs and parses key blobs of type 'Simple Blob', see Format of Key Blobs.
Definition: sw/cxi_api_c/def/keyblob.h:19
void setAES(const char *data, int len)
Definition: keyblob.cpp:133
ByteArray getKeyComp(const char tag[]) const
Definition: keyblob.cpp:471
Encapsulates key handles or key blobs of type 'Backup Blob', see Format of Key Blobs.
Definition: sw/cxi_api_c/def/key.h:19
Constructs and parses key property lists, see Key Properties.
Definition: sw/cxi_api_c/def/propertylist.h:19
void setName(const char *name)
Definition: propertylist.cpp:510
void clear(void)
Definition: propertylist.cpp:226
#define CXI_KEY_BLOB_SIMPLE
Simple blob format (Utimaco)
Definition: fw/cxi/def/cxi_defs.h:288
#define CXI_KEY_TYPE_SECRET
Secrect key object.
Definition: fw/cxi/def/cxi_defs.h:271
#define CXI_KEY_TYPE_PUBLIC
Public key object.
Definition: fw/cxi/def/cxi_defs.h:267