Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HTTPClient-SSL WS_SERVER
pk_info_t Struct Reference
Public key information and operations. More...
#include <pk.h>
| Data Fields | |
| pk_type_t | type | 
| Public key type. | |
| const char * | name | 
| Type name. | |
| size_t(* | get_size )(const void *) | 
| Get key size in bits. | |
| int(* | can_do )(pk_type_t type) | 
| Tell if the context implements this type (e.g. | |
| int(* | verify_func )(void *ctx, md_type_t md_alg, const unsigned char *hash, size_t hash_len, const unsigned char *sig, size_t sig_len) | 
| Verify signature. | |
| int(* | sign_func )(void *ctx, md_type_t md_alg, const unsigned char *hash, size_t hash_len, unsigned char *sig, size_t *sig_len, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) | 
| Make signature. | |
| int(* | decrypt_func )(void *ctx, const unsigned char *input, size_t ilen, unsigned char *output, size_t *olen, size_t osize, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) | 
| Decrypt message. | |
| int(* | encrypt_func )(void *ctx, const unsigned char *input, size_t ilen, unsigned char *output, size_t *olen, size_t osize, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) | 
| Encrypt message. | |
| int(* | check_pair_func )(const void *pub, const void *prv) | 
| Check public-private key pair. | |
| void *(* | ctx_alloc_func )(void) | 
| Allocate a new context. | |
| void(* | ctx_free_func )(void *ctx) | 
| Free the given context. | |
| void(* | debug_func )(const void *ctx, pk_debug_item *items) | 
| Interface with the debug module. | |
Detailed Description
Public key information and operations.
Definition at line 139 of file pk.h.
Field Documentation
| int(* check_pair_func)(const void *pub, const void *prv) | 
| void*(* ctx_alloc_func)(void) | 
| void(* ctx_free_func)(void *ctx) | 
| void(* debug_func)(const void *ctx, pk_debug_item *items) | 
| int(* decrypt_func)(void *ctx, const unsigned char *input, size_t ilen, unsigned char *output, size_t *olen, size_t osize, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) | 
| int(* encrypt_func)(void *ctx, const unsigned char *input, size_t ilen, unsigned char *output, size_t *olen, size_t osize, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) | 
| int(* sign_func)(void *ctx, md_type_t md_alg, const unsigned char *hash, size_t hash_len, unsigned char *sig, size_t *sig_len, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) | 
| int(* verify_func)(void *ctx, md_type_t md_alg, const unsigned char *hash, size_t hash_len, const unsigned char *sig, size_t sig_len) | 
Generated on Tue Jul 12 2022 13:50:41 by
 1.7.2
 1.7.2