Latest update.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
LIBS=../../libcrypto
|
||||
SOURCE[../../libcrypto]=\
|
||||
err.c err_all.c err_prn.c
|
||||
err_blocks.c err.c err_all.c err_prn.c
|
||||
+177
-180
@@ -7,6 +7,9 @@
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
/* TODO: When ERR_STATE becomes opaque, this musts be removed */
|
||||
#define OSSL_FORCE_ERR_STATE
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
@@ -22,6 +25,10 @@
|
||||
#include "internal/ctype.h"
|
||||
#include "internal/constant_time_locl.h"
|
||||
#include "e_os.h"
|
||||
#include "err_locl.h"
|
||||
|
||||
/* Forward declaration in case it's not published because of configuration */
|
||||
ERR_STATE *ERR_get_state(void);
|
||||
|
||||
static int err_load_strings(const ERR_STRING_DATA *str);
|
||||
|
||||
@@ -63,7 +70,6 @@ static ERR_STRING_DATA ERR_str_libraries[] = {
|
||||
{ERR_PACK(ERR_LIB_HMAC, 0, 0), "HMAC routines"},
|
||||
{ERR_PACK(ERR_LIB_CT, 0, 0), "CT routines"},
|
||||
{ERR_PACK(ERR_LIB_ASYNC, 0, 0), "ASYNC routines"},
|
||||
{ERR_PACK(ERR_LIB_KDF, 0, 0), "KDF routines"},
|
||||
{ERR_PACK(ERR_LIB_OSSL_STORE, 0, 0), "STORE routines"},
|
||||
{ERR_PACK(ERR_LIB_SM2, 0, 0), "SM2 routines"},
|
||||
{ERR_PACK(ERR_LIB_ESS, 0, 0), "ESS routines"},
|
||||
@@ -71,36 +77,6 @@ static ERR_STRING_DATA ERR_str_libraries[] = {
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
static ERR_STRING_DATA ERR_str_functs[] = {
|
||||
{ERR_PACK(0, SYS_F_FOPEN, 0), "fopen"},
|
||||
{ERR_PACK(0, SYS_F_CONNECT, 0), "connect"},
|
||||
{ERR_PACK(0, SYS_F_GETSERVBYNAME, 0), "getservbyname"},
|
||||
{ERR_PACK(0, SYS_F_SOCKET, 0), "socket"},
|
||||
{ERR_PACK(0, SYS_F_IOCTLSOCKET, 0), "ioctlsocket"},
|
||||
{ERR_PACK(0, SYS_F_BIND, 0), "bind"},
|
||||
{ERR_PACK(0, SYS_F_LISTEN, 0), "listen"},
|
||||
{ERR_PACK(0, SYS_F_ACCEPT, 0), "accept"},
|
||||
# ifdef OPENSSL_SYS_WINDOWS
|
||||
{ERR_PACK(0, SYS_F_WSASTARTUP, 0), "WSAstartup"},
|
||||
# endif
|
||||
{ERR_PACK(0, SYS_F_OPENDIR, 0), "opendir"},
|
||||
{ERR_PACK(0, SYS_F_FREAD, 0), "fread"},
|
||||
{ERR_PACK(0, SYS_F_GETADDRINFO, 0), "getaddrinfo"},
|
||||
{ERR_PACK(0, SYS_F_GETNAMEINFO, 0), "getnameinfo"},
|
||||
{ERR_PACK(0, SYS_F_SETSOCKOPT, 0), "setsockopt"},
|
||||
{ERR_PACK(0, SYS_F_GETSOCKOPT, 0), "getsockopt"},
|
||||
{ERR_PACK(0, SYS_F_GETSOCKNAME, 0), "getsockname"},
|
||||
{ERR_PACK(0, SYS_F_GETHOSTBYNAME, 0), "gethostbyname"},
|
||||
{ERR_PACK(0, SYS_F_FFLUSH, 0), "fflush"},
|
||||
{ERR_PACK(0, SYS_F_OPEN, 0), "open"},
|
||||
{ERR_PACK(0, SYS_F_CLOSE, 0), "close"},
|
||||
{ERR_PACK(0, SYS_F_IOCTL, 0), "ioctl"},
|
||||
{ERR_PACK(0, SYS_F_STAT, 0), "stat"},
|
||||
{ERR_PACK(0, SYS_F_FCNTL, 0), "fcntl"},
|
||||
{ERR_PACK(0, SYS_F_FSTAT, 0), "fstat"},
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
static ERR_STRING_DATA ERR_str_reasons[] = {
|
||||
{ERR_R_SYS_LIB, "system lib"},
|
||||
{ERR_R_BN_LIB, "BN lib"},
|
||||
@@ -155,8 +131,13 @@ static ERR_STRING_DATA *int_err_get_item(const ERR_STRING_DATA *);
|
||||
static LHASH_OF(ERR_STRING_DATA) *int_error_hash = NULL;
|
||||
static int int_err_library_number = ERR_LIB_USER;
|
||||
|
||||
static unsigned long get_error_values(int inc, int top, const char **file,
|
||||
int *line, const char **data,
|
||||
typedef enum ERR_GET_ACTION_e {
|
||||
EV_POP, EV_PEEK, EV_PEEK_LAST
|
||||
} ERR_GET_ACTION;
|
||||
|
||||
static unsigned long get_error_values(ERR_GET_ACTION g,
|
||||
const char **file, int *line,
|
||||
const char **func, const char **data,
|
||||
int *flags);
|
||||
|
||||
static unsigned long err_string_data_hash(const ERR_STRING_DATA *a)
|
||||
@@ -164,7 +145,7 @@ static unsigned long err_string_data_hash(const ERR_STRING_DATA *a)
|
||||
unsigned long ret, l;
|
||||
|
||||
l = a->error;
|
||||
ret = l ^ ERR_GET_LIB(l) ^ ERR_GET_FUNC(l);
|
||||
ret = l ^ ERR_GET_LIB(l);
|
||||
return (ret ^ ret % 19 * 13);
|
||||
}
|
||||
|
||||
@@ -265,24 +246,6 @@ static void build_SYS_str_reasons(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define err_clear_data(p, i) \
|
||||
do { \
|
||||
if ((p)->err_data_flags[i] & ERR_TXT_MALLOCED) {\
|
||||
OPENSSL_free((p)->err_data[i]); \
|
||||
(p)->err_data[i] = NULL; \
|
||||
} \
|
||||
(p)->err_data_flags[i] = 0; \
|
||||
} while (0)
|
||||
|
||||
#define err_clear(p, i) \
|
||||
do { \
|
||||
err_clear_data(p, i); \
|
||||
(p)->err_flags[i] = 0; \
|
||||
(p)->err_buffer[i] = 0; \
|
||||
(p)->err_file[i] = NULL; \
|
||||
(p)->err_line[i] = -1; \
|
||||
} while (0)
|
||||
|
||||
static void ERR_STATE_free(ERR_STATE *s)
|
||||
{
|
||||
int i;
|
||||
@@ -290,7 +253,7 @@ static void ERR_STATE_free(ERR_STATE *s)
|
||||
if (s == NULL)
|
||||
return;
|
||||
for (i = 0; i < ERR_NUM_ERRORS; i++) {
|
||||
err_clear_data(s, i);
|
||||
err_clear_data(s, i, 1);
|
||||
}
|
||||
OPENSSL_free(s);
|
||||
}
|
||||
@@ -354,8 +317,6 @@ int ERR_load_ERR_strings(void)
|
||||
|
||||
err_load_strings(ERR_str_libraries);
|
||||
err_load_strings(ERR_str_reasons);
|
||||
err_patch(ERR_LIB_SYS, ERR_str_functs);
|
||||
err_load_strings(ERR_str_functs);
|
||||
build_SYS_str_reasons();
|
||||
#endif
|
||||
return 1;
|
||||
@@ -404,156 +365,170 @@ void err_free_strings_int(void)
|
||||
|
||||
/********************************************************/
|
||||
|
||||
void ERR_put_error(int lib, int func, int reason, const char *file, int line)
|
||||
{
|
||||
ERR_STATE *es;
|
||||
|
||||
#ifdef _OSD_POSIX
|
||||
/*
|
||||
* In the BS2000-OSD POSIX subsystem, the compiler generates path names
|
||||
* in the form "*POSIX(/etc/passwd)". This dirty hack strips them to
|
||||
* something sensible. @@@ We shouldn't modify a const string, though.
|
||||
*/
|
||||
if (strncmp(file, "*POSIX(", sizeof("*POSIX(") - 1) == 0) {
|
||||
char *end;
|
||||
|
||||
/* Skip the "*POSIX(" prefix */
|
||||
file += sizeof("*POSIX(") - 1;
|
||||
end = &file[strlen(file) - 1];
|
||||
if (*end == ')')
|
||||
*end = '\0';
|
||||
/* Optional: use the basename of the path only. */
|
||||
if ((end = strrchr(file, '/')) != NULL)
|
||||
file = &end[1];
|
||||
}
|
||||
#endif
|
||||
es = ERR_get_state();
|
||||
if (es == NULL)
|
||||
return;
|
||||
|
||||
es->top = (es->top + 1) % ERR_NUM_ERRORS;
|
||||
if (es->top == es->bottom)
|
||||
es->bottom = (es->bottom + 1) % ERR_NUM_ERRORS;
|
||||
es->err_flags[es->top] = 0;
|
||||
es->err_buffer[es->top] = ERR_PACK(lib, func, reason);
|
||||
es->err_file[es->top] = file;
|
||||
es->err_line[es->top] = line;
|
||||
err_clear_data(es, es->top);
|
||||
}
|
||||
|
||||
void ERR_clear_error(void)
|
||||
{
|
||||
int i;
|
||||
ERR_STATE *es;
|
||||
|
||||
es = ERR_get_state();
|
||||
es = err_get_state_int();
|
||||
if (es == NULL)
|
||||
return;
|
||||
|
||||
for (i = 0; i < ERR_NUM_ERRORS; i++) {
|
||||
err_clear(es, i);
|
||||
err_clear(es, i, 0);
|
||||
}
|
||||
es->top = es->bottom = 0;
|
||||
}
|
||||
|
||||
unsigned long ERR_get_error(void)
|
||||
{
|
||||
return get_error_values(1, 0, NULL, NULL, NULL, NULL);
|
||||
return get_error_values(EV_POP, NULL, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
unsigned long ERR_get_error_line(const char **file, int *line)
|
||||
{
|
||||
return get_error_values(1, 0, file, line, NULL, NULL);
|
||||
return get_error_values(EV_POP, file, line, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
unsigned long ERR_get_error_func(const char **func)
|
||||
{
|
||||
return get_error_values(EV_POP, NULL, NULL, func, NULL, NULL);
|
||||
}
|
||||
|
||||
unsigned long ERR_get_error_data(const char **data, int *flags)
|
||||
{
|
||||
return get_error_values(EV_POP, NULL, NULL, NULL, data, flags);
|
||||
}
|
||||
|
||||
unsigned long ERR_get_error_all(const char **file, int *line,
|
||||
const char **func,
|
||||
const char **data, int *flags)
|
||||
{
|
||||
return get_error_values(EV_POP, file, line, func, data, flags);
|
||||
}
|
||||
|
||||
#if !OPENSSL_API_3
|
||||
unsigned long ERR_get_error_line_data(const char **file, int *line,
|
||||
const char **data, int *flags)
|
||||
{
|
||||
return get_error_values(1, 0, file, line, data, flags);
|
||||
return get_error_values(EV_POP, file, line, NULL, data, flags);
|
||||
}
|
||||
#endif
|
||||
|
||||
unsigned long ERR_peek_error(void)
|
||||
{
|
||||
return get_error_values(0, 0, NULL, NULL, NULL, NULL);
|
||||
return get_error_values(EV_PEEK, NULL, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
unsigned long ERR_peek_error_line(const char **file, int *line)
|
||||
{
|
||||
return get_error_values(0, 0, file, line, NULL, NULL);
|
||||
return get_error_values(EV_PEEK, file, line, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
unsigned long ERR_peek_error_func(const char **func)
|
||||
{
|
||||
return get_error_values(EV_PEEK, NULL, NULL, func, NULL, NULL);
|
||||
}
|
||||
|
||||
unsigned long ERR_peek_error_data(const char **data, int *flags)
|
||||
{
|
||||
return get_error_values(EV_PEEK, NULL, NULL, NULL, data, flags);
|
||||
}
|
||||
|
||||
unsigned long ERR_peek_error_all(const char **file, int *line,
|
||||
const char **func,
|
||||
const char **data, int *flags)
|
||||
{
|
||||
return get_error_values(EV_PEEK, file, line, func, data, flags);
|
||||
}
|
||||
|
||||
#if !OPENSSL_API_3
|
||||
unsigned long ERR_peek_error_line_data(const char **file, int *line,
|
||||
const char **data, int *flags)
|
||||
{
|
||||
return get_error_values(0, 0, file, line, data, flags);
|
||||
return get_error_values(EV_PEEK, file, line, NULL, data, flags);
|
||||
}
|
||||
#endif
|
||||
|
||||
unsigned long ERR_peek_last_error(void)
|
||||
{
|
||||
return get_error_values(0, 1, NULL, NULL, NULL, NULL);
|
||||
return get_error_values(EV_PEEK_LAST, NULL, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
unsigned long ERR_peek_last_error_line(const char **file, int *line)
|
||||
{
|
||||
return get_error_values(0, 1, file, line, NULL, NULL);
|
||||
return get_error_values(EV_PEEK_LAST, file, line, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
unsigned long ERR_peek_last_error_func(const char **func)
|
||||
{
|
||||
return get_error_values(EV_PEEK_LAST, NULL, NULL, func, NULL, NULL);
|
||||
}
|
||||
|
||||
unsigned long ERR_peek_last_error_data(const char **data, int *flags)
|
||||
{
|
||||
return get_error_values(EV_PEEK_LAST, NULL, NULL, NULL, data, flags);
|
||||
}
|
||||
|
||||
unsigned long ERR_peek_last_error_all(const char **file, int *line,
|
||||
const char **func,
|
||||
const char **data, int *flags)
|
||||
{
|
||||
return get_error_values(EV_PEEK_LAST, file, line, func, data, flags);
|
||||
}
|
||||
|
||||
#if !OPENSSL_API_3
|
||||
unsigned long ERR_peek_last_error_line_data(const char **file, int *line,
|
||||
const char **data, int *flags)
|
||||
{
|
||||
return get_error_values(0, 1, file, line, data, flags);
|
||||
return get_error_values(EV_PEEK_LAST, file, line, NULL, data, flags);
|
||||
}
|
||||
#endif
|
||||
|
||||
static unsigned long get_error_values(int inc, int top, const char **file,
|
||||
int *line, const char **data,
|
||||
int *flags)
|
||||
static unsigned long get_error_values(ERR_GET_ACTION g,
|
||||
const char **file, int *line,
|
||||
const char **func,
|
||||
const char **data, int *flags)
|
||||
{
|
||||
int i = 0;
|
||||
ERR_STATE *es;
|
||||
unsigned long ret;
|
||||
|
||||
es = ERR_get_state();
|
||||
es = err_get_state_int();
|
||||
if (es == NULL)
|
||||
return 0;
|
||||
|
||||
if (inc && top) {
|
||||
if (file)
|
||||
*file = "";
|
||||
if (line)
|
||||
*line = 0;
|
||||
if (data)
|
||||
*data = "";
|
||||
if (flags)
|
||||
*flags = 0;
|
||||
|
||||
return ERR_R_INTERNAL_ERROR;
|
||||
}
|
||||
|
||||
/*
|
||||
* Clear anything that should have been cleared earlier. We do this
|
||||
* here because this doesn't have constant-time issues.
|
||||
*/
|
||||
while (es->bottom != es->top) {
|
||||
if (es->err_flags[es->top] & ERR_FLAG_CLEAR) {
|
||||
err_clear(es, es->top);
|
||||
err_clear(es, es->top, 0);
|
||||
es->top = es->top > 0 ? es->top - 1 : ERR_NUM_ERRORS - 1;
|
||||
continue;
|
||||
}
|
||||
i = (es->bottom + 1) % ERR_NUM_ERRORS;
|
||||
if (es->err_flags[i] & ERR_FLAG_CLEAR) {
|
||||
es->bottom = i;
|
||||
err_clear(es, es->bottom);
|
||||
err_clear(es, es->bottom, 0);
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
/* If everything has been cleared, the stack is empty. */
|
||||
if (es->bottom == es->top)
|
||||
return 0;
|
||||
|
||||
if (top)
|
||||
i = es->top; /* last error */
|
||||
/* Which error, the top of stack (latest one) or the first one? */
|
||||
if (g == EV_PEEK_LAST)
|
||||
i = es->top;
|
||||
else
|
||||
i = (es->bottom + 1) % ERR_NUM_ERRORS; /* first error */
|
||||
i = (es->bottom + 1) % ERR_NUM_ERRORS;
|
||||
|
||||
ret = es->err_buffer[i];
|
||||
if (inc) {
|
||||
if (g == EV_POP) {
|
||||
es->bottom = i;
|
||||
es->err_buffer[i] = 0;
|
||||
}
|
||||
@@ -568,9 +543,15 @@ static unsigned long get_error_values(int inc, int top, const char **file,
|
||||
}
|
||||
}
|
||||
|
||||
if (func != NULL) {
|
||||
*func = es->err_func[i];
|
||||
if (*func == NULL)
|
||||
*func = "N/A";
|
||||
}
|
||||
|
||||
if (data == NULL) {
|
||||
if (inc) {
|
||||
err_clear_data(es, i);
|
||||
if (g == EV_POP) {
|
||||
err_clear_data(es, i, 0);
|
||||
}
|
||||
} else {
|
||||
if (es->err_data[i] == NULL) {
|
||||
@@ -588,9 +569,9 @@ static unsigned long get_error_values(int inc, int top, const char **file,
|
||||
|
||||
void ERR_error_string_n(unsigned long e, char *buf, size_t len)
|
||||
{
|
||||
char lsbuf[64], fsbuf[64], rsbuf[64];
|
||||
const char *ls, *fs, *rs;
|
||||
unsigned long l, f, r;
|
||||
char lsbuf[64], rsbuf[64];
|
||||
const char *ls, *rs;
|
||||
unsigned long f = 0, l, r;
|
||||
|
||||
if (len == 0)
|
||||
return;
|
||||
@@ -602,13 +583,6 @@ void ERR_error_string_n(unsigned long e, char *buf, size_t len)
|
||||
ls = lsbuf;
|
||||
}
|
||||
|
||||
fs = ERR_func_error_string(e);
|
||||
f = ERR_GET_FUNC(e);
|
||||
if (fs == NULL) {
|
||||
BIO_snprintf(fsbuf, sizeof(fsbuf), "func(%lu)", f);
|
||||
fs = fsbuf;
|
||||
}
|
||||
|
||||
rs = ERR_reason_error_string(e);
|
||||
r = ERR_GET_REASON(e);
|
||||
if (rs == NULL) {
|
||||
@@ -616,7 +590,7 @@ void ERR_error_string_n(unsigned long e, char *buf, size_t len)
|
||||
rs = rsbuf;
|
||||
}
|
||||
|
||||
BIO_snprintf(buf, len, "error:%08lX:%s:%s:%s", e, ls, fs, rs);
|
||||
BIO_snprintf(buf, len, "error:%08lX:%s:%s:%s", e, ls, "", rs);
|
||||
if (strlen(buf) == len - 1) {
|
||||
/* Didn't fit; use a minimal format. */
|
||||
BIO_snprintf(buf, len, "err:%lx:%lx:%lx:%lx", e, l, f, r);
|
||||
@@ -652,21 +626,12 @@ const char *ERR_lib_error_string(unsigned long e)
|
||||
return ((p == NULL) ? NULL : p->string);
|
||||
}
|
||||
|
||||
#if !OPENSSL_API_3
|
||||
const char *ERR_func_error_string(unsigned long e)
|
||||
{
|
||||
ERR_STRING_DATA d, *p;
|
||||
unsigned long l, f;
|
||||
|
||||
if (!RUN_ONCE(&err_string_init, do_err_strings_init)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
l = ERR_GET_LIB(e);
|
||||
f = ERR_GET_FUNC(e);
|
||||
d.error = ERR_PACK(l, f, 0);
|
||||
p = int_err_get_item(&d);
|
||||
return ((p == NULL) ? NULL : p->string);
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
const char *ERR_reason_error_string(unsigned long e)
|
||||
{
|
||||
@@ -717,7 +682,7 @@ DEFINE_RUN_ONCE_STATIC(err_do_init)
|
||||
return CRYPTO_THREAD_init_local(&err_thread_local, NULL);
|
||||
}
|
||||
|
||||
ERR_STATE *ERR_get_state(void)
|
||||
ERR_STATE *err_get_state_int(void)
|
||||
{
|
||||
ERR_STATE *state;
|
||||
int saveerrno = get_last_sys_error();
|
||||
@@ -756,6 +721,14 @@ ERR_STATE *ERR_get_state(void)
|
||||
return state;
|
||||
}
|
||||
|
||||
#if !OPENSSL_API_3
|
||||
ERR_STATE *ERR_get_state(void)
|
||||
{
|
||||
return err_get_state_int();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* err_shelve_state returns the current thread local error state
|
||||
* and freezes the error module until err_unshelve_state is called.
|
||||
@@ -813,20 +786,17 @@ int ERR_get_next_error_library(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int err_set_error_data_int(char *data, int flags)
|
||||
static int err_set_error_data_int(char *data, size_t size, int flags,
|
||||
int deallocate)
|
||||
{
|
||||
ERR_STATE *es;
|
||||
int i;
|
||||
|
||||
es = ERR_get_state();
|
||||
es = err_get_state_int();
|
||||
if (es == NULL)
|
||||
return 0;
|
||||
|
||||
i = es->top;
|
||||
|
||||
err_clear_data(es, i);
|
||||
es->err_data[i] = data;
|
||||
es->err_data_flags[i] = flags;
|
||||
err_clear_data(es, es->top, deallocate);
|
||||
err_set_data(es, es->top, data, size, flags);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -836,8 +806,18 @@ void ERR_set_error_data(char *data, int flags)
|
||||
/*
|
||||
* This function is void so we cannot propagate the error return. Since it
|
||||
* is also in the public API we can't change the return type.
|
||||
*
|
||||
* We estimate the size of the data. If it's not flagged as allocated,
|
||||
* then this is safe, and if it is flagged as allocated, then our size
|
||||
* may be smaller than the actual allocation, but that doesn't matter
|
||||
* too much, the buffer will remain untouched or will eventually be
|
||||
* reallocated to a new size.
|
||||
*
|
||||
* callers should be advised that this function takes over ownership of
|
||||
* the allocated memory, i.e. they can't count on the pointer to remain
|
||||
* valid.
|
||||
*/
|
||||
err_set_error_data_int(data, flags);
|
||||
err_set_error_data_int(data, strlen(data) + 1, flags, 1);
|
||||
}
|
||||
|
||||
void ERR_add_error_data(int num, ...)
|
||||
@@ -851,42 +831,59 @@ void ERR_add_error_data(int num, ...)
|
||||
void ERR_add_error_vdata(int num, va_list args)
|
||||
{
|
||||
int i, len, size;
|
||||
char *str, *p, *arg;
|
||||
int flags = ERR_TXT_MALLOCED | ERR_TXT_STRING;
|
||||
char *str, *arg;
|
||||
ERR_STATE *es;
|
||||
|
||||
/* Get the current error data; if an allocated string get it. */
|
||||
es = ERR_get_state();
|
||||
es = err_get_state_int();
|
||||
if (es == NULL)
|
||||
return;
|
||||
i = es->top;
|
||||
p = es->err_data_flags[i] == (ERR_TXT_MALLOCED | ERR_TXT_STRING)
|
||||
? es->err_data[i] : "";
|
||||
|
||||
/* Start with initial (or empty) string and allocate a new buffer */
|
||||
size = 80 + strlen(p);
|
||||
if ((str = OPENSSL_malloc(size + 1)) == NULL) {
|
||||
/* ERRerr(ERR_F_ERR_ADD_ERROR_VDATA, ERR_R_MALLOC_FAILURE); */
|
||||
/*
|
||||
* If err_data is allocated already, re-use the space.
|
||||
* Otherwise, allocate a small new buffer.
|
||||
*/
|
||||
if ((es->err_data_flags[i] & flags) == flags) {
|
||||
str = es->err_data[i];
|
||||
size = es->err_data_size[i];
|
||||
|
||||
/*
|
||||
* To protect the string we just grabbed from tampering by other
|
||||
* functions we may call, or to protect them from freeing a pointer
|
||||
* that may no longer be valid at that point, we clear away the
|
||||
* data pointer and the flags. We will set them again at the end
|
||||
* of this function.
|
||||
*/
|
||||
es->err_data[i] = NULL;
|
||||
es->err_data_flags[i] = 0;
|
||||
} else if ((str = OPENSSL_malloc(size = 81)) == NULL) {
|
||||
return;
|
||||
} else {
|
||||
str[0] = '\0';
|
||||
}
|
||||
strcpy(str, p);
|
||||
len = strlen(str);
|
||||
|
||||
for (len = 0; --num >= 0; ) {
|
||||
while (--num >= 0) {
|
||||
arg = va_arg(args, char *);
|
||||
if (arg == NULL)
|
||||
arg = "<NULL>";
|
||||
len += strlen(arg);
|
||||
if (len > size) {
|
||||
if (len >= size) {
|
||||
char *p;
|
||||
|
||||
size = len + 20;
|
||||
p = OPENSSL_realloc(str, size + 1);
|
||||
p = OPENSSL_realloc(str, size);
|
||||
if (p == NULL) {
|
||||
OPENSSL_free(str);
|
||||
return;
|
||||
}
|
||||
str = p;
|
||||
}
|
||||
OPENSSL_strlcat(str, arg, (size_t)size + 1);
|
||||
OPENSSL_strlcat(str, arg, (size_t)size);
|
||||
}
|
||||
if (!err_set_error_data_int(str, ERR_TXT_MALLOCED | ERR_TXT_STRING))
|
||||
if (!err_set_error_data_int(str, size, flags, 0))
|
||||
OPENSSL_free(str);
|
||||
}
|
||||
|
||||
@@ -894,7 +891,7 @@ int ERR_set_mark(void)
|
||||
{
|
||||
ERR_STATE *es;
|
||||
|
||||
es = ERR_get_state();
|
||||
es = err_get_state_int();
|
||||
if (es == NULL)
|
||||
return 0;
|
||||
|
||||
@@ -908,13 +905,13 @@ int ERR_pop_to_mark(void)
|
||||
{
|
||||
ERR_STATE *es;
|
||||
|
||||
es = ERR_get_state();
|
||||
es = err_get_state_int();
|
||||
if (es == NULL)
|
||||
return 0;
|
||||
|
||||
while (es->bottom != es->top
|
||||
&& (es->err_flags[es->top] & ERR_FLAG_MARK) == 0) {
|
||||
err_clear(es, es->top);
|
||||
err_clear(es, es->top, 0);
|
||||
es->top = es->top > 0 ? es->top - 1 : ERR_NUM_ERRORS - 1;
|
||||
}
|
||||
|
||||
@@ -929,7 +926,7 @@ int ERR_clear_last_mark(void)
|
||||
ERR_STATE *es;
|
||||
int top;
|
||||
|
||||
es = ERR_get_state();
|
||||
es = err_get_state_int();
|
||||
if (es == NULL)
|
||||
return 0;
|
||||
|
||||
@@ -950,7 +947,7 @@ void err_clear_last_constant_time(int clear)
|
||||
ERR_STATE *es;
|
||||
int top;
|
||||
|
||||
es = ERR_get_state();
|
||||
es = err_get_state_int();
|
||||
if (es == NULL)
|
||||
return;
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
#include <openssl/cmperr.h>
|
||||
#include <openssl/cterr.h>
|
||||
#include <openssl/asyncerr.h>
|
||||
#include <openssl/kdferr.h>
|
||||
#include <openssl/storeerr.h>
|
||||
#include <openssl/esserr.h>
|
||||
#include "internal/propertyerr.h"
|
||||
@@ -103,7 +102,6 @@ int err_load_crypto_strings_int(void)
|
||||
ERR_load_ESS_strings() == 0 ||
|
||||
ERR_load_ASYNC_strings() == 0 ||
|
||||
#endif
|
||||
ERR_load_KDF_strings() == 0 ||
|
||||
ERR_load_OSSL_STORE_strings() == 0 ||
|
||||
ERR_load_PROP_strings() == 0 ||
|
||||
ERR_load_PROV_strings() == 0)
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
/* TODO: When ERR_STATE becomes opaque, this musts be removed */
|
||||
#define OSSL_FORCE_ERR_STATE
|
||||
|
||||
#include <string.h>
|
||||
#include <openssl/err.h>
|
||||
#include "err_locl.h"
|
||||
|
||||
void ERR_new(void)
|
||||
{
|
||||
ERR_STATE *es;
|
||||
|
||||
es = err_get_state_int();
|
||||
if (es == NULL)
|
||||
return;
|
||||
|
||||
/* Allocate a slot */
|
||||
err_get_slot(es);
|
||||
err_clear(es, es->top, 0);
|
||||
}
|
||||
|
||||
void ERR_set_debug(const char *file, int line, const char *func)
|
||||
{
|
||||
ERR_STATE *es;
|
||||
|
||||
es = err_get_state_int();
|
||||
if (es == NULL)
|
||||
return;
|
||||
|
||||
err_set_debug(es, es->top, file, line, func);
|
||||
}
|
||||
|
||||
void ERR_set_error(int lib, int reason, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
va_start(args, fmt);
|
||||
ERR_vset_error(lib, reason, fmt, args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
void ERR_vset_error(int lib, int reason, const char *fmt, va_list args)
|
||||
{
|
||||
ERR_STATE *es;
|
||||
char *buf = NULL;
|
||||
size_t buf_size = 0;
|
||||
unsigned long flags = 0;
|
||||
size_t i;
|
||||
|
||||
es = err_get_state_int();
|
||||
if (es == NULL)
|
||||
return;
|
||||
i = es->top;
|
||||
|
||||
if (fmt != NULL) {
|
||||
int printed_len = 0;
|
||||
char *rbuf = NULL;
|
||||
|
||||
buf = es->err_data[i];
|
||||
buf_size = es->err_data_size[i];
|
||||
|
||||
/*
|
||||
* To protect the string we just grabbed from tampering by other
|
||||
* functions we may call, or to protect them from freeing a pointer
|
||||
* that may no longer be valid at that point, we clear away the
|
||||
* data pointer and the flags. We will set them again at the end
|
||||
* of this function.
|
||||
*/
|
||||
es->err_data[i] = NULL;
|
||||
es->err_data_flags[i] = 0;
|
||||
|
||||
/*
|
||||
* Try to maximize the space available. If that fails, we use what
|
||||
* we have.
|
||||
*/
|
||||
if (buf_size < ERR_MAX_DATA_SIZE
|
||||
&& (rbuf = OPENSSL_realloc(buf, ERR_MAX_DATA_SIZE)) != NULL) {
|
||||
buf = rbuf;
|
||||
buf_size = ERR_MAX_DATA_SIZE;
|
||||
}
|
||||
|
||||
if (buf != NULL) {
|
||||
printed_len = BIO_vsnprintf(buf, buf_size, fmt, args);
|
||||
}
|
||||
if (printed_len < 0)
|
||||
printed_len = 0;
|
||||
buf[printed_len] = '\0';
|
||||
|
||||
/*
|
||||
* Try to reduce the size, but only if we maximized above. If that
|
||||
* fails, we keep what we have.
|
||||
* (According to documentation, realloc leaves the old buffer untouched
|
||||
* if it fails)
|
||||
*/
|
||||
if ((rbuf = OPENSSL_realloc(buf, printed_len + 1)) != NULL) {
|
||||
buf = rbuf;
|
||||
buf_size = printed_len + 1;
|
||||
}
|
||||
|
||||
if (buf != NULL)
|
||||
flags = ERR_TXT_MALLOCED | ERR_TXT_STRING;
|
||||
}
|
||||
|
||||
err_clear_data(es, es->top, 0);
|
||||
err_set_error(es, es->top, lib, reason);
|
||||
if (fmt != NULL)
|
||||
err_set_data(es, es->top, buf, buf_size, flags);
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/e_os2.h>
|
||||
|
||||
static ossl_inline void err_get_slot(ERR_STATE *es)
|
||||
{
|
||||
es->top = (es->top + 1) % ERR_NUM_ERRORS;
|
||||
if (es->top == es->bottom)
|
||||
es->bottom = (es->bottom + 1) % ERR_NUM_ERRORS;
|
||||
}
|
||||
|
||||
static ossl_inline void err_clear_data(ERR_STATE *es, size_t i, int deall)
|
||||
{
|
||||
if (es->err_data_flags[i] & ERR_TXT_MALLOCED) {
|
||||
if (deall) {
|
||||
OPENSSL_free(es->err_data[i]);
|
||||
es->err_data[i] = NULL;
|
||||
es->err_data_size[i] = 0;
|
||||
es->err_data_flags[i] = 0;
|
||||
} else if (es->err_data[i] != NULL) {
|
||||
es->err_data[i][0] = '\0';
|
||||
}
|
||||
} else {
|
||||
es->err_data[i] = NULL;
|
||||
es->err_data_size[i] = 0;
|
||||
es->err_data_flags[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static ossl_inline void err_set_error(ERR_STATE *es, size_t i,
|
||||
int lib, int reason)
|
||||
{
|
||||
es->err_buffer[i] = ERR_PACK(lib, 0, reason);
|
||||
}
|
||||
|
||||
static ossl_inline void err_set_debug(ERR_STATE *es, size_t i,
|
||||
const char *file, int line,
|
||||
const char *fn)
|
||||
{
|
||||
es->err_file[i] = file;
|
||||
es->err_line[i] = line;
|
||||
es->err_func[i] = fn;
|
||||
}
|
||||
|
||||
static ossl_inline void err_set_data(ERR_STATE *es, size_t i,
|
||||
void *data, size_t datasz, int flags)
|
||||
{
|
||||
es->err_data[i] = data;
|
||||
es->err_data_size[i] = datasz;
|
||||
es->err_data_flags[i] = flags;
|
||||
}
|
||||
|
||||
static ossl_inline void err_clear(ERR_STATE *es, size_t i, int deall)
|
||||
{
|
||||
err_clear_data(es, i, (deall));
|
||||
es->err_flags[i] = 0;
|
||||
es->err_buffer[i] = 0;
|
||||
es->err_file[i] = NULL;
|
||||
es->err_line[i] = -1;
|
||||
}
|
||||
|
||||
ERR_STATE *err_get_state_int(void);
|
||||
+17
-8
@@ -7,29 +7,38 @@
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
/* TODO: When ERR_STATE becomes opaque, this musts be removed */
|
||||
#define OSSL_FORCE_ERR_STATE
|
||||
|
||||
#include <stdio.h>
|
||||
#include "internal/cryptlib.h"
|
||||
#include <openssl/crypto.h>
|
||||
#include <openssl/buffer.h>
|
||||
#include <openssl/err.h>
|
||||
#include "err_locl.h"
|
||||
|
||||
void ERR_print_errors_cb(int (*cb) (const char *str, size_t len, void *u),
|
||||
void *u)
|
||||
{
|
||||
CRYPTO_THREAD_ID tid = CRYPTO_THREAD_get_current_id();
|
||||
unsigned long l;
|
||||
char buf[256];
|
||||
char buf2[4096], *hex;
|
||||
const char *file, *data;
|
||||
char buf[4096], *hex;
|
||||
const char *lib, *reason;
|
||||
const char *file, *data, *func;
|
||||
int line, flags;
|
||||
|
||||
while ((l = ERR_get_error_line_data(&file, &line, &data, &flags)) != 0) {
|
||||
ERR_error_string_n(l, buf, sizeof(buf));
|
||||
while ((l = ERR_get_error_all(&file, &line, &func, &data, &flags)) != 0) {
|
||||
lib = ERR_lib_error_string(l);
|
||||
reason = ERR_reason_error_string(l);
|
||||
if (func == NULL)
|
||||
func = "unknown function";
|
||||
if ((flags & ERR_TXT_STRING) == 0)
|
||||
data = "";
|
||||
hex = OPENSSL_buf2hexstr((const unsigned char *)&tid, sizeof(tid));
|
||||
BIO_snprintf(buf2, sizeof(buf2), "%s:%s:%s:%d:%s\n", hex, buf, file,
|
||||
line, (flags & ERR_TXT_STRING) ? data : "");
|
||||
BIO_snprintf(buf, sizeof(buf), "%s:error:%s:%s:%s:%s:%d:%s\n",
|
||||
hex, lib, func, reason, file, line, data);
|
||||
OPENSSL_free(hex);
|
||||
if (cb(buf2, strlen(buf2), u) <= 0)
|
||||
if (cb(buf, strlen(buf), u) <= 0)
|
||||
break; /* abort outputting the error report */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
# The INPUT HEADER is scanned for declarations
|
||||
# LIBNAME INPUT HEADER ERROR-TABLE FILE
|
||||
L ERR NONE NONE
|
||||
L FUNC NONE NONE
|
||||
L BN include/openssl/bn.h crypto/bn/bn_err.c
|
||||
L RSA include/openssl/rsa.h crypto/rsa/rsa_err.c
|
||||
L DH include/openssl/dh.h crypto/dh/dh_err.c
|
||||
|
||||
+103
-62
@@ -205,6 +205,7 @@ BN_F_BN_EXPAND_INTERNAL:120:bn_expand_internal
|
||||
BN_F_BN_GENCB_NEW:143:BN_GENCB_new
|
||||
BN_F_BN_GENERATE_DSA_NONCE:140:BN_generate_dsa_nonce
|
||||
BN_F_BN_GENERATE_PRIME_EX:141:BN_generate_prime_ex
|
||||
BN_F_BN_GENERATE_PRIME_EX2:152:BN_generate_prime_ex2
|
||||
BN_F_BN_GF2M_MOD:131:BN_GF2m_mod
|
||||
BN_F_BN_GF2M_MOD_EXP:132:BN_GF2m_mod_exp
|
||||
BN_F_BN_GF2M_MOD_MUL:133:BN_GF2m_mod_mul
|
||||
@@ -245,8 +246,8 @@ CMS_F_CMS_ADD1_RECEIPTREQUEST:158:CMS_add1_ReceiptRequest
|
||||
CMS_F_CMS_ADD1_RECIPIENT_CERT:101:CMS_add1_recipient_cert
|
||||
CMS_F_CMS_ADD1_SIGNER:102:CMS_add1_signer
|
||||
CMS_F_CMS_ADD1_SIGNINGTIME:103:cms_add1_signingTime
|
||||
CMS_F_CMS_ADD1_SIGNING_CERT:181:CMS_add1_signing_cert
|
||||
CMS_F_CMS_ADD1_SIGNING_CERT_V2:182:CMS_add1_signing_cert_v2
|
||||
CMS_F_CMS_ADD1_SIGNING_CERT:181:cms_add1_signing_cert
|
||||
CMS_F_CMS_ADD1_SIGNING_CERT_V2:182:cms_add1_signing_cert_v2
|
||||
CMS_F_CMS_COMPRESS:104:CMS_compress
|
||||
CMS_F_CMS_COMPRESSEDDATA_CREATE:105:cms_CompressedData_create
|
||||
CMS_F_CMS_COMPRESSEDDATA_INIT_BIO:106:cms_CompressedData_init_bio
|
||||
@@ -390,17 +391,29 @@ CRYPTO_F_GET_AND_LOCK:113:get_and_lock
|
||||
CRYPTO_F_GET_PROVIDER_STORE:133:get_provider_store
|
||||
CRYPTO_F_OPENSSL_ATEXIT:114:OPENSSL_atexit
|
||||
CRYPTO_F_OPENSSL_BUF2HEXSTR:117:OPENSSL_buf2hexstr
|
||||
CRYPTO_F_OPENSSL_BUF2HEXSTR_EX:153:
|
||||
CRYPTO_F_OPENSSL_FOPEN:119:openssl_fopen
|
||||
CRYPTO_F_OPENSSL_HEXSTR2BUF:118:OPENSSL_hexstr2buf
|
||||
CRYPTO_F_OPENSSL_HEXSTR2BUF_EX:154:
|
||||
CRYPTO_F_OPENSSL_INIT_CRYPTO:116:OPENSSL_init_crypto
|
||||
CRYPTO_F_OPENSSL_LH_NEW:126:OPENSSL_LH_new
|
||||
CRYPTO_F_OPENSSL_SK_DEEP_COPY:127:OPENSSL_sk_deep_copy
|
||||
CRYPTO_F_OPENSSL_SK_DUP:128:OPENSSL_sk_dup
|
||||
CRYPTO_F_OSSL_PARAM_BLD_PUSH_BN:143:
|
||||
CRYPTO_F_OSSL_PARAM_BLD_PUSH_OCTET_PTR:144:
|
||||
CRYPTO_F_OSSL_PARAM_BLD_PUSH_OCTET_STRING:145:
|
||||
CRYPTO_F_OSSL_PARAM_BLD_PUSH_UTF8_PTR:146:
|
||||
CRYPTO_F_OSSL_PARAM_BLD_PUSH_UTF8_STRING:147:
|
||||
CRYPTO_F_OSSL_PARAM_BLD_TO_PARAM:148:
|
||||
CRYPTO_F_OSSL_PARAM_BLD_TO_PARAM_EX:149:
|
||||
CRYPTO_F_OSSL_PARAM_TYPE_TO_PARAM:150:
|
||||
CRYPTO_F_OSSL_PROVIDER_ACTIVATE:130:ossl_provider_activate
|
||||
CRYPTO_F_OSSL_PROVIDER_ADD_BUILTIN:132:OSSL_PROVIDER_add_builtin
|
||||
CRYPTO_F_OSSL_PROVIDER_ADD_PARAMETER:139:ossl_provider_add_parameter
|
||||
CRYPTO_F_OSSL_PROVIDER_NEW:131:ossl_provider_new
|
||||
CRYPTO_F_OSSL_PROVIDER_SET_MODULE_PATH:140:ossl_provider_set_module_path
|
||||
CRYPTO_F_PARAM_PUSH:151:
|
||||
CRYPTO_F_PARAM_PUSH_NUM:152:
|
||||
CRYPTO_F_PKEY_HMAC_INIT:123:pkey_hmac_init
|
||||
CRYPTO_F_PKEY_POLY1305_INIT:124:pkey_poly1305_init
|
||||
CRYPTO_F_PKEY_SIPHASH_INIT:125:pkey_siphash_init
|
||||
@@ -534,9 +547,14 @@ EC_F_ECDH_COMPUTE_KEY:246:ECDH_compute_key
|
||||
EC_F_ECDH_SIMPLE_COMPUTE_KEY:257:ecdh_simple_compute_key
|
||||
EC_F_ECDSA_DO_SIGN_EX:251:ECDSA_do_sign_ex
|
||||
EC_F_ECDSA_DO_VERIFY:252:ECDSA_do_verify
|
||||
EC_F_ECDSA_S390X_NISTP_SIGN_SIG:313:ecdsa_s390x_nistp_sign_sig
|
||||
EC_F_ECDSA_S390X_NISTP_VERIFY_SIG:314:ecdsa_s390x_nistp_verify_sig
|
||||
EC_F_ECDSA_SIGN_EX:254:ECDSA_sign_ex
|
||||
EC_F_ECDSA_SIGN_SETUP:248:ECDSA_sign_setup
|
||||
EC_F_ECDSA_SIG_NEW:265:ECDSA_SIG_new
|
||||
EC_F_ECDSA_SIMPLE_SIGN_SETUP:310:ecdsa_simple_sign_setup
|
||||
EC_F_ECDSA_SIMPLE_SIGN_SIG:311:ecdsa_simple_sign_sig
|
||||
EC_F_ECDSA_SIMPLE_VERIFY_SIG:312:ecdsa_simple_verify_sig
|
||||
EC_F_ECDSA_VERIFY:253:ECDSA_verify
|
||||
EC_F_ECD_ITEM_VERIFY:270:ecd_item_verify
|
||||
EC_F_ECKEY_PARAM2TYPE:223:eckey_param2type
|
||||
@@ -616,6 +634,7 @@ EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES:169:\
|
||||
ec_GFp_simple_set_compressed_coordinates
|
||||
EC_F_EC_GROUP_CHECK:170:EC_GROUP_check
|
||||
EC_F_EC_GROUP_CHECK_DISCRIMINANT:171:EC_GROUP_check_discriminant
|
||||
EC_F_EC_GROUP_CHECK_NAMED_CURVE:299:EC_GROUP_check_named_curve
|
||||
EC_F_EC_GROUP_COPY:106:EC_GROUP_copy
|
||||
EC_F_EC_GROUP_GET_CURVE:291:EC_GROUP_get_curve
|
||||
EC_F_EC_GROUP_GET_CURVE_GF2M:172:EC_GROUP_get_curve_GF2m
|
||||
@@ -627,6 +646,8 @@ EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS:193:EC_GROUP_get_pentanomial_basis
|
||||
EC_F_EC_GROUP_GET_TRINOMIAL_BASIS:194:EC_GROUP_get_trinomial_basis
|
||||
EC_F_EC_GROUP_NEW:108:EC_GROUP_new
|
||||
EC_F_EC_GROUP_NEW_BY_CURVE_NAME:174:EC_GROUP_new_by_curve_name
|
||||
EC_F_EC_GROUP_NEW_BY_CURVE_NAME_EX:301:EC_GROUP_new_by_curve_name_ex
|
||||
EC_F_EC_GROUP_NEW_EX:302:EC_GROUP_new_ex
|
||||
EC_F_EC_GROUP_NEW_FROM_DATA:175:ec_group_new_from_data
|
||||
EC_F_EC_GROUP_NEW_FROM_ECPARAMETERS:263:EC_GROUP_new_from_ecparameters
|
||||
EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS:264:EC_GROUP_new_from_ecpkparameters
|
||||
@@ -640,6 +661,7 @@ EC_F_EC_KEY_COPY:178:EC_KEY_copy
|
||||
EC_F_EC_KEY_GENERATE_KEY:179:EC_KEY_generate_key
|
||||
EC_F_EC_KEY_NEW:182:EC_KEY_new
|
||||
EC_F_EC_KEY_NEW_METHOD:245:EC_KEY_new_method
|
||||
EC_F_EC_KEY_NEW_METHOD_INT:300:ec_key_new_method_int
|
||||
EC_F_EC_KEY_OCT2PRIV:255:EC_KEY_oct2priv
|
||||
EC_F_EC_KEY_PRINT:180:EC_KEY_print
|
||||
EC_F_EC_KEY_PRINT_FP:181:EC_KEY_print_fp
|
||||
@@ -699,6 +721,7 @@ EC_F_NISTP521_PRE_COMP_NEW:237:nistp521_pre_comp_new
|
||||
EC_F_O2I_ECPUBLICKEY:152:o2i_ECPublicKey
|
||||
EC_F_OLD_EC_PRIV_DECODE:222:old_ec_priv_decode
|
||||
EC_F_OSSL_ECDH_COMPUTE_KEY:247:ossl_ecdh_compute_key
|
||||
EC_F_OSSL_ECDSA_SIGN_SETUP:300:ossl_ecdsa_sign_setup
|
||||
EC_F_OSSL_ECDSA_SIGN_SIG:249:ossl_ecdsa_sign_sig
|
||||
EC_F_OSSL_ECDSA_VERIFY_SIG:250:ossl_ecdsa_verify_sig
|
||||
EC_F_PKEY_ECD_CTRL:271:pkey_ecd_ctrl
|
||||
@@ -778,10 +801,6 @@ EVP_F_ARIA_GCM_CTRL:197:aria_gcm_ctrl
|
||||
EVP_F_ARIA_GCM_INIT_KEY:176:aria_gcm_init_key
|
||||
EVP_F_ARIA_INIT_KEY:185:aria_init_key
|
||||
EVP_F_B64_NEW:198:b64_new
|
||||
EVP_F_BLAKE2B_MAC_CTRL:220:blake2b_mac_ctrl
|
||||
EVP_F_BLAKE2B_MAC_INIT:221:blake2b_mac_init
|
||||
EVP_F_BLAKE2S_MAC_CTRL:222:blake2s_mac_ctrl
|
||||
EVP_F_BLAKE2S_MAC_INIT:223:blake2s_mac_init
|
||||
EVP_F_CAMELLIA_INIT_KEY:159:camellia_init_key
|
||||
EVP_F_CHACHA20_POLY1305_CTRL:182:chacha20_poly1305_ctrl
|
||||
EVP_F_CMLL_T4_INIT_KEY:179:cmll_t4_init_key
|
||||
@@ -806,10 +825,10 @@ EVP_F_EVP_DIGESTUPDATE:231:EVP_DigestUpdate
|
||||
EVP_F_EVP_ENCRYPTDECRYPTUPDATE:219:evp_EncryptDecryptUpdate
|
||||
EVP_F_EVP_ENCRYPTFINAL_EX:127:EVP_EncryptFinal_ex
|
||||
EVP_F_EVP_ENCRYPTUPDATE:167:EVP_EncryptUpdate
|
||||
EVP_F_EVP_KDF_CTRL:224:EVP_KDF_ctrl
|
||||
EVP_F_EVP_KDF_CTRL_STR:225:EVP_KDF_ctrl_str
|
||||
EVP_F_EVP_KDF_CTX_NEW:240:EVP_KDF_CTX_new
|
||||
EVP_F_EVP_KDF_CTX_NEW_ID:226:EVP_KDF_CTX_new_id
|
||||
EVP_F_EVP_KDF_CTX_DUP:220:
|
||||
EVP_F_EVP_KDF_CTX_NEW:221:
|
||||
EVP_F_EVP_KEYEXCH_FETCH:245:EVP_KEYEXCH_fetch
|
||||
EVP_F_EVP_KEYEXCH_FROM_DISPATCH:244:evp_keyexch_from_dispatch
|
||||
EVP_F_EVP_MAC_CTRL:209:EVP_MAC_ctrl
|
||||
EVP_F_EVP_MAC_CTRL_STR:210:EVP_MAC_ctrl_str
|
||||
EVP_F_EVP_MAC_CTX_DUP:211:EVP_MAC_CTX_dup
|
||||
@@ -837,6 +856,7 @@ EVP_F_EVP_PKEY_DECRYPT_INIT:138:EVP_PKEY_decrypt_init
|
||||
EVP_F_EVP_PKEY_DECRYPT_OLD:151:EVP_PKEY_decrypt_old
|
||||
EVP_F_EVP_PKEY_DERIVE:153:EVP_PKEY_derive
|
||||
EVP_F_EVP_PKEY_DERIVE_INIT:154:EVP_PKEY_derive_init
|
||||
EVP_F_EVP_PKEY_DERIVE_INIT_EX:243:EVP_PKEY_derive_init_ex
|
||||
EVP_F_EVP_PKEY_DERIVE_SET_PEER:155:EVP_PKEY_derive_set_peer
|
||||
EVP_F_EVP_PKEY_ENCRYPT:105:EVP_PKEY_encrypt
|
||||
EVP_F_EVP_PKEY_ENCRYPT_INIT:139:EVP_PKEY_encrypt_init
|
||||
@@ -894,53 +914,6 @@ EVP_F_S390X_AES_GCM_CTRL:201:s390x_aes_gcm_ctrl
|
||||
EVP_F_S390X_AES_GCM_TLS_CIPHER:208:s390x_aes_gcm_tls_cipher
|
||||
EVP_F_SCRYPT_ALG:228:scrypt_alg
|
||||
EVP_F_UPDATE:173:update
|
||||
KDF_F_HKDF_EXTRACT:112:HKDF_Extract
|
||||
KDF_F_KDF_HKDF_DERIVE:113:kdf_hkdf_derive
|
||||
KDF_F_KDF_HKDF_NEW:114:kdf_hkdf_new
|
||||
KDF_F_KDF_HKDF_SIZE:115:kdf_hkdf_size
|
||||
KDF_F_KDF_MD2CTRL:116:kdf_md2ctrl
|
||||
KDF_F_KDF_PBKDF2_CTRL:140:kdf_pbkdf2_ctrl
|
||||
KDF_F_KDF_PBKDF2_CTRL_STR:117:kdf_pbkdf2_ctrl_str
|
||||
KDF_F_KDF_PBKDF2_DERIVE:118:kdf_pbkdf2_derive
|
||||
KDF_F_KDF_PBKDF2_NEW:119:kdf_pbkdf2_new
|
||||
KDF_F_KDF_SCRYPT_CTRL_STR:120:kdf_scrypt_ctrl_str
|
||||
KDF_F_KDF_SCRYPT_CTRL_UINT32:121:kdf_scrypt_ctrl_uint32
|
||||
KDF_F_KDF_SCRYPT_CTRL_UINT64:122:kdf_scrypt_ctrl_uint64
|
||||
KDF_F_KDF_SCRYPT_DERIVE:123:kdf_scrypt_derive
|
||||
KDF_F_KDF_SCRYPT_NEW:124:kdf_scrypt_new
|
||||
KDF_F_KDF_SSHKDF_CTRL:130:kdf_sshkdf_ctrl
|
||||
KDF_F_KDF_SSHKDF_CTRL_STR:131:kdf_sshkdf_ctrl_str
|
||||
KDF_F_KDF_SSHKDF_DERIVE:132:kdf_sshkdf_derive
|
||||
KDF_F_KDF_SSHKDF_NEW:133:kdf_sshkdf_new
|
||||
KDF_F_KDF_TLS1_PRF_CTRL_STR:125:kdf_tls1_prf_ctrl_str
|
||||
KDF_F_KDF_TLS1_PRF_DERIVE:126:kdf_tls1_prf_derive
|
||||
KDF_F_KDF_TLS1_PRF_NEW:127:kdf_tls1_prf_new
|
||||
KDF_F_PBKDF2_DERIVE:141:pbkdf2_derive
|
||||
KDF_F_PBKDF2_SET_MEMBUF:128:pbkdf2_set_membuf
|
||||
KDF_F_PKEY_HKDF_CTRL_STR:103:pkey_hkdf_ctrl_str
|
||||
KDF_F_PKEY_HKDF_DERIVE:102:pkey_hkdf_derive
|
||||
KDF_F_PKEY_HKDF_INIT:108:pkey_hkdf_init
|
||||
KDF_F_PKEY_SCRYPT_CTRL_STR:104:pkey_scrypt_ctrl_str
|
||||
KDF_F_PKEY_SCRYPT_CTRL_UINT64:105:pkey_scrypt_ctrl_uint64
|
||||
KDF_F_PKEY_SCRYPT_DERIVE:109:pkey_scrypt_derive
|
||||
KDF_F_PKEY_SCRYPT_INIT:106:pkey_scrypt_init
|
||||
KDF_F_PKEY_SCRYPT_SET_MEMBUF:107:pkey_scrypt_set_membuf
|
||||
KDF_F_PKEY_TLS1_PRF_CTRL_STR:100:pkey_tls1_prf_ctrl_str
|
||||
KDF_F_PKEY_TLS1_PRF_DERIVE:101:pkey_tls1_prf_derive
|
||||
KDF_F_PKEY_TLS1_PRF_INIT:110:pkey_tls1_prf_init
|
||||
KDF_F_SCRYPT_SET_MEMBUF:129:scrypt_set_membuf
|
||||
KDF_F_SSKDF_CTRL_STR:134:sskdf_ctrl_str
|
||||
KDF_F_SSKDF_DERIVE:135:sskdf_derive
|
||||
KDF_F_SSKDF_MAC2CTRL:136:sskdf_mac2ctrl
|
||||
KDF_F_SSKDF_NEW:137:sskdf_new
|
||||
KDF_F_SSKDF_SIZE:138:sskdf_size
|
||||
KDF_F_TLS1_PRF_ALG:111:tls1_prf_alg
|
||||
KDF_F_X942KDF_CTRL:142:x942kdf_ctrl
|
||||
KDF_F_X942KDF_DERIVE:143:x942kdf_derive
|
||||
KDF_F_X942KDF_HASH_KDM:144:x942kdf_hash_kdm
|
||||
KDF_F_X942KDF_NEW:145:x942kdf_new
|
||||
KDF_F_X942KDF_SIZE:146:x942kdf_size
|
||||
KDF_F_X963KDF_DERIVE:139:x963kdf_derive
|
||||
OBJ_F_OBJ_ADD_OBJECT:105:OBJ_add_object
|
||||
OBJ_F_OBJ_ADD_SIGID:107:OBJ_add_sigid
|
||||
OBJ_F_OBJ_CREATE:100:OBJ_create
|
||||
@@ -1128,14 +1101,19 @@ PROV_F_AESNI_INIT_KEY:101:aesni_init_key
|
||||
PROV_F_AES_BLOCK_FINAL:102:aes_block_final
|
||||
PROV_F_AES_BLOCK_UPDATE:103:aes_block_update
|
||||
PROV_F_AES_CIPHER:104:aes_cipher
|
||||
PROV_F_AES_CTX_GET_PARAMS:105:aes_ctx_get_params
|
||||
PROV_F_AES_CTX_SET_PARAMS:106:aes_ctx_set_params
|
||||
PROV_F_AES_DINIT:107:aes_dinit
|
||||
PROV_F_AES_DUPCTX:108:aes_dupctx
|
||||
PROV_F_AES_EINIT:109:aes_einit
|
||||
PROV_F_AES_GET_CTX_PARAMS:105:aes_get_ctx_params
|
||||
PROV_F_AES_INIT_KEY:110:aes_init_key
|
||||
PROV_F_AES_SET_CTX_PARAMS:106:aes_set_ctx_params
|
||||
PROV_F_AES_STREAM_UPDATE:111:aes_stream_update
|
||||
PROV_F_AES_T4_INIT_KEY:112:aes_t4_init_key
|
||||
PROV_F_BLAKE2_MAC_INIT:115:blake2_mac_init
|
||||
PROV_F_BLAKE2_MAC_SET_PARAMS:116:blake2_mac_set_params
|
||||
PROV_F_GMAC_SET_PARAMS:117:gmac_set_params
|
||||
PROV_F_KMAC_SET_PARAMS:118:kmac_set_params
|
||||
PROV_F_POLY1305_SET_PARAMS:119:poly1305_set_params
|
||||
PROV_F_PROV_AES_KEY_GENERIC_INIT:113:PROV_AES_KEY_generic_init
|
||||
PROV_F_TRAILINGDATA:114:trailingdata
|
||||
PROV_F_UNPADBLOCK:100:unpadblock
|
||||
@@ -1164,6 +1142,7 @@ RAND_F_RAND_POOL_ADD_BEGIN:113:rand_pool_add_begin
|
||||
RAND_F_RAND_POOL_ADD_END:114:rand_pool_add_end
|
||||
RAND_F_RAND_POOL_ATTACH:124:rand_pool_attach
|
||||
RAND_F_RAND_POOL_BYTES_NEEDED:115:rand_pool_bytes_needed
|
||||
RAND_F_RAND_POOL_GROW:127:
|
||||
RAND_F_RAND_POOL_NEW:116:rand_pool_new
|
||||
RAND_F_RAND_WRITE_FILE:112:RAND_write_file
|
||||
RSA_F_CHECK_PADDING_MD:140:check_padding_md
|
||||
@@ -2212,9 +2191,20 @@ CRMF_R_UNSUPPORTED_POPO_METHOD:116:unsupported popo method
|
||||
CRMF_R_UNSUPPORTED_POPO_NOT_ACCEPTED:117:unsupported popo not accepted
|
||||
CRYPTO_R_FIPS_MODE_NOT_SUPPORTED:101:fips mode not supported
|
||||
CRYPTO_R_ILLEGAL_HEX_DIGIT:102:illegal hex digit
|
||||
CRYPTO_R_INSUFFICIENT_DATA_SPACE:106:insufficient data space
|
||||
CRYPTO_R_INSUFFICIENT_PARAM_SIZE:107:insufficient param size
|
||||
CRYPTO_R_INSUFFICIENT_SECURE_DATA_SPACE:108:insufficient secure data space
|
||||
CRYPTO_R_INVALID_NULL_ARGUMENT:109:invalid null argument
|
||||
CRYPTO_R_INVALID_OSSL_PARAM_TYPE:110:invalid ossl param type
|
||||
CRYPTO_R_ODD_NUMBER_OF_DIGITS:103:odd number of digits
|
||||
CRYPTO_R_PROVIDER_ALREADY_EXISTS:104:provider already exists
|
||||
CRYPTO_R_PROVIDER_SECTION_ERROR:105:provider section error
|
||||
CRYPTO_R_SECURE_MALLOC_FAILURE:111:secure malloc failure
|
||||
CRYPTO_R_STRING_TOO_LONG:112:string too long
|
||||
CRYPTO_R_TOO_MANY_BYTES:113:too many bytes
|
||||
CRYPTO_R_TOO_MANY_RECORDS:114:too many records
|
||||
CRYPTO_R_TOO_SMALL_BUFFER:116:too small buffer
|
||||
CRYPTO_R_ZERO_LENGTH_NUMBER:115:zero length number
|
||||
CT_R_BASE64_DECODE_ERROR:108:base64 decode error
|
||||
CT_R_INVALID_LOG_ID_LENGTH:100:invalid log id length
|
||||
CT_R_LOG_CONF_INVALID:109:log conf invalid
|
||||
@@ -2251,6 +2241,7 @@ DH_R_KDF_PARAMETER_ERROR:112:kdf parameter error
|
||||
DH_R_KEYS_NOT_SET:108:keys not set
|
||||
DH_R_MISSING_PUBKEY:125:missing pubkey
|
||||
DH_R_MODULUS_TOO_LARGE:103:modulus too large
|
||||
DH_R_MODULUS_TOO_SMALL:126:modulus too small
|
||||
DH_R_NOT_SUITABLE_GENERATOR:120:not suitable generator
|
||||
DH_R_NO_PARAMETERS_SET:107:no parameters set
|
||||
DH_R_NO_PRIVATE_VALUE:100:no private value
|
||||
@@ -2265,6 +2256,7 @@ DSA_R_DECODE_ERROR:104:decode error
|
||||
DSA_R_INVALID_DIGEST_TYPE:106:invalid digest type
|
||||
DSA_R_INVALID_PARAMETERS:112:invalid parameters
|
||||
DSA_R_MISSING_PARAMETERS:101:missing parameters
|
||||
DSA_R_MISSING_PRIVATE_KEY:111:missing private key
|
||||
DSA_R_MODULUS_TOO_LARGE:103:modulus too large
|
||||
DSA_R_NO_PARAMETERS_SET:107:no parameters set
|
||||
DSA_R_PARAMETER_ENCODING_ERROR:105:parameter encoding error
|
||||
@@ -2293,6 +2285,7 @@ EC_R_BUFFER_TOO_SMALL:100:buffer too small
|
||||
EC_R_CANNOT_INVERT:165:cannot invert
|
||||
EC_R_COORDINATES_OUT_OF_RANGE:146:coordinates out of range
|
||||
EC_R_CURVE_DOES_NOT_SUPPORT_ECDH:160:curve does not support ecdh
|
||||
EC_R_CURVE_DOES_NOT_SUPPORT_ECDSA:170:curve does not support ecdsa
|
||||
EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING:159:curve does not support signing
|
||||
EC_R_D2I_ECPKPARAMETERS_FAILURE:117:d2i ecpkparameters failure
|
||||
EC_R_DECODE_ERROR:142:decode error
|
||||
@@ -2395,6 +2388,8 @@ EVP_R_BAD_DECRYPT:100:bad decrypt
|
||||
EVP_R_BAD_KEY_LENGTH:195:bad key length
|
||||
EVP_R_BUFFER_TOO_SMALL:155:buffer too small
|
||||
EVP_R_CAMELLIA_KEY_SETUP_FAILED:157:camellia key setup failed
|
||||
EVP_R_CANNOT_GET_PARAMETERS:197:cannot get parameters
|
||||
EVP_R_CANNOT_SET_PARAMETERS:198:cannot set parameters
|
||||
EVP_R_CIPHER_NOT_GCM_MODE:184:cipher not gcm mode
|
||||
EVP_R_CIPHER_PARAMETER_ERROR:122:cipher parameter error
|
||||
EVP_R_COMMAND_NOT_SUPPORTED:147:command not supported
|
||||
@@ -2440,6 +2435,8 @@ EVP_R_NOT_XOF_OR_INVALID_LENGTH:178:not XOF or invalid length
|
||||
EVP_R_NO_CIPHER_SET:131:no cipher set
|
||||
EVP_R_NO_DEFAULT_DIGEST:158:no default digest
|
||||
EVP_R_NO_DIGEST_SET:139:no digest set
|
||||
EVP_R_NO_KEYMGMT_AVAILABLE:199:no keymgmt available
|
||||
EVP_R_NO_KEYMGMT_PRESENT:196:no keymgmt present
|
||||
EVP_R_NO_KEY_SET:154:no key set
|
||||
EVP_R_NO_OPERATION_SET:149:no operation set
|
||||
EVP_R_ONLY_ONESHOT_SUPPORTED:177:only oneshot supported
|
||||
@@ -2476,12 +2473,13 @@ EVP_R_XTS_DATA_UNIT_IS_TOO_LARGE:191:xts data unit is too large
|
||||
EVP_R_XTS_DUPLICATED_KEYS:192:xts duplicated keys
|
||||
KDF_R_BAD_ENCODING:122:bad encoding
|
||||
KDF_R_BAD_LENGTH:123:bad length
|
||||
KDF_R_INAVLID_UKM_LEN:124:inavlid ukm len
|
||||
KDF_R_BOTH_MODE_AND_MODE_INT:127:both mode and mode int
|
||||
KDF_R_INVALID_DIGEST:100:invalid digest
|
||||
KDF_R_INVALID_ITERATION_COUNT:119:invalid iteration count
|
||||
KDF_R_INVALID_KEY_LEN:120:invalid key len
|
||||
KDF_R_INVALID_MAC_TYPE:116:invalid mac type
|
||||
KDF_R_INVALID_SALT_LEN:121:invalid salt len
|
||||
KDF_R_INVALID_MODE:128:invalid mode
|
||||
KDF_R_INVALID_MODE_INT:129:invalid mode int
|
||||
KDF_R_MISSING_CEK_ALG:125:missing cek alg
|
||||
KDF_R_MISSING_ITERATION_COUNT:109:missing iteration count
|
||||
KDF_R_MISSING_KEY:104:missing key
|
||||
@@ -2662,12 +2660,54 @@ PROP_R_STRING_TOO_LONG:109:string too long
|
||||
PROP_R_TRAILING_CHARACTERS:110:trailing characters
|
||||
PROV_R_AES_KEY_SETUP_FAILED:101:aes key setup failed
|
||||
PROV_R_BAD_DECRYPT:100:bad decrypt
|
||||
PROV_R_BAD_ENCODING:141:bad encoding
|
||||
PROV_R_BAD_LENGTH:142:bad length
|
||||
PROV_R_BOTH_MODE_AND_MODE_INT:127:both mode and mode int
|
||||
PROV_R_CIPHER_OPERATION_FAILED:102:cipher operation failed
|
||||
PROV_R_FAILED_TO_GENERATE_KEY:121:failed to generate key
|
||||
PROV_R_FAILED_TO_GET_PARAMETER:103:failed to get parameter
|
||||
PROV_R_FAILED_TO_SET_PARAMETER:104:failed to set parameter
|
||||
PROV_R_INVALID_KEYLEN:105:invalid keylen
|
||||
PROV_R_INAVLID_UKM_LENGTH:146:inavlid ukm length
|
||||
PROV_R_INVALID_AAD:108:invalid aad
|
||||
PROV_R_INVALID_CUSTOM_LENGTH:111:invalid custom length
|
||||
PROV_R_INVALID_DATA:115:invalid data
|
||||
PROV_R_INVALID_DIGEST:122:invalid digest
|
||||
PROV_R_INVALID_ITERATION_COUNT:123:invalid iteration count
|
||||
PROV_R_INVALID_IVLEN:116:invalid ivlen
|
||||
PROV_R_INVALID_IV_LENGTH:109:invalid iv length
|
||||
PROV_R_INVALID_KEYLEN:117:invalid keylen
|
||||
PROV_R_INVALID_KEY_LEN:124:invalid key len
|
||||
PROV_R_INVALID_KEY_LENGTH:105:invalid key length
|
||||
PROV_R_INVALID_MODE:125:invalid mode
|
||||
PROV_R_INVALID_MODE_INT:126:invalid mode int
|
||||
PROV_R_INVALID_SALT_LENGTH:112:invalid salt length
|
||||
PROV_R_INVALID_TAG:110:invalid tag
|
||||
PROV_R_INVALID_TAGLEN:118:invalid taglen
|
||||
PROV_R_MISSING_CEK_ALG:144:missing cek alg
|
||||
PROV_R_MISSING_KEY:128:missing key
|
||||
PROV_R_MISSING_MESSAGE_DIGEST:129:missing message digest
|
||||
PROV_R_MISSING_PASS:130:missing pass
|
||||
PROV_R_MISSING_SALT:131:missing salt
|
||||
PROV_R_MISSING_SECRET:132:missing secret
|
||||
PROV_R_MISSING_SEED:140:missing seed
|
||||
PROV_R_MISSING_SESSION_ID:133:missing session id
|
||||
PROV_R_MISSING_TYPE:134:missing type
|
||||
PROV_R_MISSING_XCGHASH:135:missing xcghash
|
||||
PROV_R_NOT_SUPPORTED:136:not supported
|
||||
PROV_R_NOT_XOF_OR_INVALID_LENGTH:113:not xof or invalid length
|
||||
PROV_R_NO_KEY_SET:114:no key set
|
||||
PROV_R_OUTPUT_BUFFER_TOO_SMALL:106:output buffer too small
|
||||
PROV_R_TAG_NOTSET:119:tag notset
|
||||
PROV_R_TAG_NOT_NEEDED:120:tag not needed
|
||||
PROV_R_UNABLE_TO_LOAD_SHA1:143:unable to load sha1
|
||||
PROV_R_UNABLE_TO_LOAD_SHA256:147:unable to load sha256
|
||||
PROV_R_UNSUPPORTED_CEK_ALG:145:unsupported cek alg
|
||||
PROV_R_UNSUPPORTED_MAC_TYPE:137:unsupported mac type
|
||||
PROV_R_VALUE_ERROR:138:value error
|
||||
PROV_R_WRONG_FINAL_BLOCK_LENGTH:107:wrong final block length
|
||||
PROV_R_WRONG_OUTPUT_BUFFER_SIZE:139:wrong output buffer size
|
||||
PROV_R_XTS_DATA_UNIT_IS_TOO_LARGE:148:xts data unit is too large
|
||||
PROV_R_XTS_DUPLICATED_KEYS:149:xts duplicated keys
|
||||
RAND_R_ADDITIONAL_INPUT_TOO_LONG:102:additional input too long
|
||||
RAND_R_ALREADY_INSTANTIATED:103:already instantiated
|
||||
RAND_R_ARGUMENT_OUT_OF_RANGE:105:argument out of range
|
||||
@@ -2755,6 +2795,7 @@ RSA_R_KEY_PRIME_NUM_INVALID:165:key prime num invalid
|
||||
RSA_R_KEY_SIZE_TOO_SMALL:120:key size too small
|
||||
RSA_R_LAST_OCTET_INVALID:134:last octet invalid
|
||||
RSA_R_MGF1_DIGEST_NOT_ALLOWED:152:mgf1 digest not allowed
|
||||
RSA_R_MISSING_PRIVATE_KEY:179:missing private key
|
||||
RSA_R_MODULUS_TOO_LARGE:105:modulus too large
|
||||
RSA_R_MP_COEFFICIENT_NOT_INVERSE_OF_R:168:mp coefficient not inverse of r
|
||||
RSA_R_MP_EXPONENT_NOT_CONGRUENT_TO_D:169:mp exponent not congruent to d
|
||||
|
||||
Reference in New Issue
Block a user