IoTivity-Lite
|
#include "oc_export.h"
#include "mbedtls/build_info.h"
#include "mbedtls/ecp.h"
#include "mbedtls/md.h"
#include "mbedtls/x509_crt.h"
#include <stdbool.h>
Macros | |
#define | OCF_CERTS_SUPPORTED_ELLIPTIC_CURVES |
#define | OCF_CERTS_SUPPORTED_MDS |
Functions | |
mbedtls_ecp_group_id | oc_sec_certs_ecp_group_id (void) |
Get elliptic curve to be used when generating keys for CSRs or certificates. More... | |
bool | oc_sec_certs_ecp_group_id_is_allowed (mbedtls_ecp_group_id gid) |
Check if the elliptic curve is allowed globally by IoTivity-lite. More... | |
unsigned | oc_sec_certs_ecp_group_ids_allowed (void) |
Return bitmask of globally allowed elliptic curves. More... | |
void | oc_sec_certs_ecp_set_group_id (mbedtls_ecp_group_id gid) |
Set elliptic curve to be used when generating keys for CSRs or certificates. More... | |
void | oc_sec_certs_ecp_set_group_ids_allowed (unsigned gid_mask) |
Set the bitmask of globally allowed elliptic curves. More... | |
bool | oc_sec_certs_md_algorithm_is_allowed (mbedtls_md_type_t md) |
Check if the message digest is allowed globally by IoTivity-lite. More... | |
unsigned | oc_sec_certs_md_algorithms_allowed (void) |
Return bitmask of globally allowed message digest types. More... | |
void | oc_sec_certs_md_set_algorithms_allowed (unsigned md_mask) |
Set the bitmask of globally allowed message digest types. More... | |
void | oc_sec_certs_md_set_signature_algorithm (mbedtls_md_type_t md) |
Set message digest to use when generating certificates or certificate signing requests. More... | |
mbedtls_md_type_t | oc_sec_certs_md_signature_algorithm (void) |
Get message digest to use when generating certificates or certificate signing requests. More... | |
#define OCF_CERTS_SUPPORTED_ELLIPTIC_CURVES |
#define OCF_CERTS_SUPPORTED_MDS |
mbedtls_ecp_group_id oc_sec_certs_ecp_group_id | ( | void | ) |
Get elliptic curve to be used when generating keys for CSRs or certificates.
bool oc_sec_certs_ecp_group_id_is_allowed | ( | mbedtls_ecp_group_id | gid | ) |
Check if the elliptic curve is allowed globally by IoTivity-lite.
gid | group id of the elliptic curve to check |
unsigned oc_sec_certs_ecp_group_ids_allowed | ( | void | ) |
Return bitmask of globally allowed elliptic curves.
void oc_sec_certs_ecp_set_group_id | ( | mbedtls_ecp_group_id | gid | ) |
Set elliptic curve to be used when generating keys for CSRs or certificates.
gid | group identifier of the curve to be used |
void oc_sec_certs_ecp_set_group_ids_allowed | ( | unsigned | gid_mask | ) |
Set the bitmask of globally allowed elliptic curves.
gid_mask | bitmask of globally allowed elliptic curve groupids |
bool oc_sec_certs_md_algorithm_is_allowed | ( | mbedtls_md_type_t | md | ) |
Check if the message digest is allowed globally by IoTivity-lite.
md | message digest to check |
unsigned oc_sec_certs_md_algorithms_allowed | ( | void | ) |
Return bitmask of globally allowed message digest types.
void oc_sec_certs_md_set_algorithms_allowed | ( | unsigned | md_mask | ) |
Set the bitmask of globally allowed message digest types.
md_mask | bitmask of globally allowed message digest types |
void oc_sec_certs_md_set_signature_algorithm | ( | mbedtls_md_type_t | md | ) |
Set message digest to use when generating certificates or certificate signing requests.
md | message digest to use in signatures |
mbedtls_md_type_t oc_sec_certs_md_signature_algorithm | ( | void | ) |
Get message digest to use when generating certificates or certificate signing requests.