📄 engine.h
字号:
int ENGINE_init(ENGINE *e);/* Free a functional reference to a engine type. This does not require * a corresponding call to ENGINE_free as it also releases a structural * reference. */int ENGINE_finish(ENGINE *e);/* Send control parametrised commands to the engine. The possibilities * to send down an integer, a pointer to data or a function pointer are * provided. Any of the parameters may or may not be NULL, depending * on the command number *//* WARNING: This is currently experimental and may change radically! */int ENGINE_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)());/* The following functions handle keys that are stored in some secondary * location, handled by the engine. The storage may be on a card or * whatever. */EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, const char *passphrase);EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id, const char *passphrase);/* This returns a pointer for the current ENGINE structure that * is (by default) performing any RSA operations. The value returned * is an incremented reference, so it should be free'd (ENGINE_finish) * before it is discarded. */ENGINE *ENGINE_get_default_RSA(void);/* Same for the other "methods" */ENGINE *ENGINE_get_default_DSA(void);ENGINE *ENGINE_get_default_DH(void);ENGINE *ENGINE_get_default_RAND(void);ENGINE *ENGINE_get_default_BN_mod_exp(void);ENGINE *ENGINE_get_default_BN_mod_exp_crt(void);/* This sets a new default ENGINE structure for performing RSA * operations. If the result is non-zero (success) then the ENGINE * structure will have had its reference count up'd so the caller * should still free their own reference 'e'. */int ENGINE_set_default_RSA(ENGINE *e);/* Same for the other "methods" */int ENGINE_set_default_DSA(ENGINE *e);int ENGINE_set_default_DH(ENGINE *e);int ENGINE_set_default_RAND(ENGINE *e);int ENGINE_set_default_BN_mod_exp(ENGINE *e);int ENGINE_set_default_BN_mod_exp_crt(ENGINE *e);/* The combination "set" - the flags are bitwise "OR"d from the * ENGINE_METHOD_*** defines above. */int ENGINE_set_default(ENGINE *e, unsigned int flags);/* * Error codes for all engine functions. NB: We use "generic" * function names instead of per-implementation ones because this * levels the playing field for externally implemented bootstrapped * support code. As the filename and line number is included, it's * more important to indicate the type of function, so that * bootstrapped code (that can't easily add its own errors in) can * use the same error codes too. *//* BEGIN ERROR CODES *//* The following lines are auto generated by the script mkerr.pl. Any changes * made after this point may be overwritten when the script is next run. */void ERR_load_ENGINE_strings(void);/* Error codes for the ENGINE functions. *//* Function codes. */#define ENGINE_F_AEP_FINISH 156#define ENGINE_F_AEP_INIT 157#define ENGINE_F_AEP_MOD_EXP 158#define ENGINE_F_AEP_MOD_EXP_CRT 160#define ENGINE_F_AEP_RAND 161#define ENGINE_F_AEP_RSA_MOD_EXP 159#define ENGINE_F_ATALLA_FINISH 135#define ENGINE_F_ATALLA_INIT 136#define ENGINE_F_ATALLA_MOD_EXP 137#define ENGINE_F_ATALLA_RSA_MOD_EXP 138#define ENGINE_F_CSWIFT_DSA_SIGN 133#define ENGINE_F_CSWIFT_DSA_VERIFY 134#define ENGINE_F_CSWIFT_FINISH 100#define ENGINE_F_CSWIFT_INIT 101#define ENGINE_F_CSWIFT_MOD_EXP 102#define ENGINE_F_CSWIFT_MOD_EXP_CRT 103#define ENGINE_F_CSWIFT_RSA_MOD_EXP 104#define ENGINE_F_ENGINE_ADD 105#define ENGINE_F_ENGINE_BY_ID 106#define ENGINE_F_ENGINE_CTRL 142#define ENGINE_F_ENGINE_FINISH 107#define ENGINE_F_ENGINE_FREE 108#define ENGINE_F_ENGINE_GET_BN_MOD_EXP 109#define ENGINE_F_ENGINE_GET_BN_MOD_EXP_CRT 110#define ENGINE_F_ENGINE_GET_CTRL_FUNCTION 144#define ENGINE_F_ENGINE_GET_DH 111#define ENGINE_F_ENGINE_GET_DSA 112#define ENGINE_F_ENGINE_GET_FINISH_FUNCTION 145#define ENGINE_F_ENGINE_GET_ID 113#define ENGINE_F_ENGINE_GET_INIT_FUNCTION 146#define ENGINE_F_ENGINE_GET_NAME 114#define ENGINE_F_ENGINE_GET_NEXT 115#define ENGINE_F_ENGINE_GET_PREV 116#define ENGINE_F_ENGINE_GET_RAND 117#define ENGINE_F_ENGINE_GET_RSA 118#define ENGINE_F_ENGINE_INIT 119#define ENGINE_F_ENGINE_LIST_ADD 120#define ENGINE_F_ENGINE_LIST_REMOVE 121#define ENGINE_F_ENGINE_LOAD_PRIVATE_KEY 150#define ENGINE_F_ENGINE_LOAD_PUBLIC_KEY 151#define ENGINE_F_ENGINE_NEW 122#define ENGINE_F_ENGINE_REMOVE 123#define ENGINE_F_ENGINE_SET_BN_MOD_EXP 124#define ENGINE_F_ENGINE_SET_BN_MOD_EXP_CRT 125#define ENGINE_F_ENGINE_SET_CTRL_FUNCTION 147#define ENGINE_F_ENGINE_SET_DEFAULT_TYPE 126#define ENGINE_F_ENGINE_SET_DH 127#define ENGINE_F_ENGINE_SET_DSA 128#define ENGINE_F_ENGINE_SET_FINISH_FUNCTION 148#define ENGINE_F_ENGINE_SET_ID 129#define ENGINE_F_ENGINE_SET_INIT_FUNCTION 149#define ENGINE_F_ENGINE_SET_NAME 130#define ENGINE_F_ENGINE_SET_RAND 131#define ENGINE_F_ENGINE_SET_RSA 132#define ENGINE_F_ENGINE_UNLOAD_KEY 152#define ENGINE_F_HWCRHK_CTRL 143#define ENGINE_F_HWCRHK_FINISH 135#define ENGINE_F_HWCRHK_GET_PASS 155#define ENGINE_F_HWCRHK_INIT 136#define ENGINE_F_HWCRHK_LOAD_PRIVKEY 153#define ENGINE_F_HWCRHK_LOAD_PUBKEY 154#define ENGINE_F_HWCRHK_MOD_EXP 137#define ENGINE_F_HWCRHK_MOD_EXP_CRT 138#define ENGINE_F_HWCRHK_RAND_BYTES 139#define ENGINE_F_HWCRHK_RSA_MOD_EXP 140#define ENGINE_F_KC_INT_DSA_PRIV 213#define ENGINE_F_KC_INT_DSA_VERIFY 214#define ENGINE_F_KC_INT_RSA_PRIV 215#define ENGINE_F_KC_INT_RSA_PUB 216#define ENGINE_F_KEYCLIENT_CHECK_GLOBAL 217#define ENGINE_F_KEYCLIENT_DSA_FINISH 218#define ENGINE_F_KEYCLIENT_DSA_INIT 219#define ENGINE_F_KEYCLIENT_DSA_SIGN 220#define ENGINE_F_KEYCLIENT_DSA_VERIFY 221#define ENGINE_F_KEYCLIENT_FINISH 222#define ENGINE_F_KEYCLIENT_GET_DSA_CTX 223#define ENGINE_F_KEYCLIENT_GET_RSA_CTX 224#define ENGINE_F_KEYCLIENT_INIT 225#define ENGINE_F_KEYCLIENT_PADDING 226#define ENGINE_F_KEYCLIENT_RSA_FINISH 227#define ENGINE_F_KEYCLIENT_RSA_INIT 228#define ENGINE_F_KEYCLIENT_RSA_PRIV_DEC 229#define ENGINE_F_KEYCLIENT_RSA_PRIV_ENC 230#define ENGINE_F_KEYCLIENT_RSA_PUB_DEC 231#define ENGINE_F_KEYCLIENT_RSA_PUB_ENC 232#define ENGINE_F_KEYCLIENT_SET_DSA_CTX 233#define ENGINE_F_KEYCLIENT_SET_RSA_CTX 234#define ENGINE_F_LOG_MESSAGE 141#define ENGINE_F_SUREWAREHK_CTRL 209#define ENGINE_F_SUREWAREHK_DH_GEN_KEY 210#define ENGINE_F_SUREWAREHK_DSA_DO_SIGN 211#define ENGINE_F_SUREWAREHK_EX_FREE 206#define ENGINE_F_SUREWAREHK_FINISH 201#define ENGINE_F_SUREWAREHK_INIT 200#define ENGINE_F_SUREWAREHK_LOAD_PRIVATE_KEY 204#define ENGINE_F_SUREWAREHK_LOAD_PUBLIC_KEY 205#define ENGINE_F_SUREWAREHK_MOD_EXP 212#define ENGINE_F_SUREWAREHK_RAND_BYTES 202#define ENGINE_F_SUREWAREHK_RAND_SEED 203#define ENGINE_F_SUREWAREHK_RSA_PRIV_DEC 207#define ENGINE_F_SUREWAREHK_RSA_PRIV_ENC 208#define ENGINE_F_UBSEC_CTRL 176#define ENGINE_F_UBSEC_DH_COMPUTE_KEY 171#define ENGINE_F_UBSEC_DSA_SIGN 163#define ENGINE_F_UBSEC_DSA_VERIFY 164#define ENGINE_F_UBSEC_FINISH 165#define ENGINE_F_UBSEC_INIT 166#define ENGINE_F_UBSEC_MOD_EXP 167#define ENGINE_F_UBSEC_RNG_BYTES 172#define ENGINE_F_UBSEC_RSA_MOD_EXP 168#define ENGINE_F_UBSEC_RSA_MOD_EXP_CRT 169/* Reason codes. */#define ENGINE_R_AEP_INIT_FAILURE 132#define ENGINE_R_ALREADY_LOADED 100#define ENGINE_R_BIO_WAS_FREED 121#define ENGINE_R_BN_CTX_FULL 101#define ENGINE_R_BN_EXPAND_FAIL 102#define ENGINE_R_CHIL_ERROR 123#define ENGINE_R_CLOSE_HANDLES_FAILED 140#define ENGINE_R_CONFLICTING_ENGINE_ID 103#define ENGINE_R_CONNECTIONS_IN_USE 141#define ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED 119#define ENGINE_R_DSO_FAILURE 104#define ENGINE_R_ENGINE_IS_NOT_IN_LIST 105#define ENGINE_R_FAILED_LOADING_PRIVATE_KEY 128#define ENGINE_R_FAILED_LOADING_PUBLIC_KEY 129#define ENGINE_R_FINALIZE_FAILED 142#define ENGINE_R_FINISH_FAILED 106#define ENGINE_R_GET_HANDLE_FAILED 107#define ENGINE_R_GET_RANDOM_FAILED 133#define ENGINE_R_ID_OR_NAME_MISSING 108#define ENGINE_R_INIT_FAILED 109#define ENGINE_R_INTERNAL_LIST_ERROR 110#define ENGINE_R_INVALID_PADDING 137#define ENGINE_R_KEY_TOO_LARGE 138#define ENGINE_R_LOCKING_MISSING 143#define ENGINE_R_MISSING_KEY_COMPONENTS 111#define ENGINE_R_MOD_EXP_CRT_FAILED 134#define ENGINE_R_MOD_EXP_FAILED 131#define ENGINE_R_NOT_INITIALISED 117#define ENGINE_R_NOT_LOADED 112#define ENGINE_R_NO_CALLBACK 127#define ENGINE_R_NO_CONTROL_FUNCTION 120#define ENGINE_R_NO_INDEX 139#define ENGINE_R_NO_KEY 124#define ENGINE_R_NO_LOAD_FUNCTION 125#define ENGINE_R_NO_REFERENCE 130#define ENGINE_R_NO_SUCH_ENGINE 116#define ENGINE_R_NO_UNLOAD_FUNCTION 126#define ENGINE_R_PROVIDE_PARAMETERS 113#define ENGINE_R_REQUEST_FAILED 114#define ENGINE_R_REQUEST_FALLBACK 118#define ENGINE_R_RETURN_CONNECTION_FAILED 135#define ENGINE_R_SETBNCALLBACK_FAILURE 136#define ENGINE_R_SIZE_TOO_LARGE_OR_TOO_SMALL 122#define ENGINE_R_UNIT_FAILURE 115#ifdef __cplusplus}#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -