|
|
@ -95,6 +95,8 @@ struct ast_key {
|
|
|
|
|
|
|
|
|
|
|
|
static AST_RWLIST_HEAD_STATIC(keys, ast_key);
|
|
|
|
static AST_RWLIST_HEAD_STATIC(keys, ast_key);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void crypto_load(int ifd, int ofd);
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
/*!
|
|
|
|
* \brief setting of priv key
|
|
|
|
* \brief setting of priv key
|
|
|
|
* \param buf
|
|
|
|
* \param buf
|
|
|
@ -465,6 +467,12 @@ int AST_OPTIONAL_API_NAME(ast_crypto_loaded)(void)
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int AST_OPTIONAL_API_NAME(ast_crypto_reload)(void)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
crypto_load(-1, -1);
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int AST_OPTIONAL_API_NAME(ast_aes_set_encrypt_key)(const unsigned char *key, ast_aes_encrypt_key *ctx)
|
|
|
|
int AST_OPTIONAL_API_NAME(ast_aes_set_encrypt_key)(const unsigned char *key, ast_aes_encrypt_key *ctx)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return AES_set_encrypt_key(key, 128, ctx);
|
|
|
|
return AES_set_encrypt_key(key, 128, ctx);
|
|
|
|