|
Defines |
#define | AST_KEY_PUBLIC (1 << 0) |
#define | AST_KEY_PRIVATE (1 << 1) |
Functions |
ast_key * | ast_key_get (char *key, int type) |
| Retrieve a key.
|
int | ast_key_init (int fd) |
| Initialize keys (that is, retrieve pass codes for all private keys).
|
int | ast_check_signature (struct ast_key *key, char *msg, char *sig) |
| Check the authenticity of a message signature using a given public key.
|
int | ast_check_signature_bin (struct ast_key *key, char *msg, int msglen, unsigned char *sig) |
| Check the authenticity of a message signature using a given public key.
|
int | ast_sign (struct ast_key *key, char *msg, char *sig) |
int | ast_sign_bin (struct ast_key *key, char *msg, int msglen, unsigned char *sig) |
int | ast_encrypt_bin (unsigned char *dst, const unsigned char *src, int srclen, struct ast_key *key) |
int | ast_decrypt_bin (unsigned char *dst, const unsigned char *src, int srclen, struct ast_key *key) |