Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
ext_key_utils.h File Reference

External interface for client keys manipulations. More...

#include <kaa/kaa_error.h>

Go to the source code of this file.

Functions

kaa_error_t kaa_init_rsa_keypair (void)
 Performs initialization of the RSA keypair (if required). More...
 
void kaa_deinit_rsa_keypair (void)
 Performs deinitialization of the RSA keypair. More...
 
void ext_get_endpoint_public_key (const uint8_t **buffer, size_t *buffer_size)
 Returns the endpoint public key. More...
 
void ext_get_sha1_public (uint8_t **sha1, size_t *length)
 Return sha1 of the endpoint public key. More...
 
kaa_error_t ext_get_sha1_base64_public (const uint8_t **sha1, size_t *length)
 Return sha1 of the endpoint public key in base64 format. More...
 

Detailed Description

External interface for client keys manipulations.

Function Documentation

void ext_get_endpoint_public_key ( const uint8_t **  buffer,
size_t *  buffer_size 
)

Returns the endpoint public key.

Parameters
[out]bufferPointer which will be set to internal buffer containing the key.
[out]buffer_sizePointer to buffer's size.
kaa_error_t ext_get_sha1_base64_public ( const uint8_t **  sha1,
size_t *  length 
)

Return sha1 of the endpoint public key in base64 format.

Parameters
[out]sha1The pointer *sha1 will be initialized with SHA1 address of the RSA public key in base64 encoding
[out]lengthThe length of the SHA1.
void ext_get_sha1_public ( uint8_t **  sha1,
size_t *  length 
)

Return sha1 of the endpoint public key.

Parameters
[out]sha1The pointer *sha1 will be initialized with SHA1 address of the RSA public key.
[out]lengthThe length of the SHA1.
void kaa_deinit_rsa_keypair ( void  )

Performs deinitialization of the RSA keypair.

kaa_error_t kaa_init_rsa_keypair ( void  )

Performs initialization of the RSA keypair (if required).