Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ext_key_utils.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2016 CyberVision, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
22 #ifndef EXT_KEY_UTILS_H_
23 #define EXT_KEY_UTILS_H_
24 
25 #include <kaa/kaa_error.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
36 
41 void kaa_deinit_rsa_keypair(void);
42 
50 void ext_get_endpoint_public_key(const uint8_t **buffer, size_t *buffer_size);
51 
59 void ext_get_sha1_public(uint8_t **sha1, size_t *length);
60 
68 kaa_error_t ext_get_sha1_base64_public(const uint8_t **sha1, size_t *length);
69 
70 #ifdef __cplusplus
71 } /* extern "C" */
72 #endif
73 
74 #endif /* EXT_KEY_UTILS_H_ */
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.
kaa_error_t kaa_init_rsa_keypair(void)
Performs initialization of the RSA keypair (if required).
kaa_error_t
Definition: kaa_error.h:31
void ext_get_endpoint_public_key(const uint8_t **buffer, size_t *buffer_size)
Returns the endpoint public key.
Kaa error codes.
void ext_get_sha1_public(uint8_t **sha1, size_t *length)
Return sha1 of the endpoint public key.
void kaa_deinit_rsa_keypair(void)
Performs deinitialization of the RSA keypair.