]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/rand/rand_err.c
Remove accidentally left debug statements from ec.c
[thirdparty/openssl.git] / crypto / rand / rand_err.c
CommitLineData
b6cff313 1/*
0cd0a820 2 * Generated by util/mkerr.pl DO NOT EDIT
d992e872 3 * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
eb952088 4 *
0db63de9 5 * Licensed under the Apache License 2.0 (the "License"). You may not use
b6cff313
RS
6 * this file except in compliance with the License. You can obtain a copy
7 * in the file LICENSE in the source distribution or at
8 * https://www.openssl.org/source/license.html
eb952088
UM
9 */
10
eb952088 11#include <openssl/err.h>
52df25cf 12#include <openssl/randerr.h>
14a6c6a4 13#include "crypto/randerr.h"
eb952088 14
cf1b7d96 15#ifndef OPENSSL_NO_ERR
29dc3508 16
52df25cf 17static const ERR_STRING_DATA RAND_str_reasons[] = {
12fb8c3d 18 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_ADDITIONAL_INPUT_TOO_LONG),
d992e872 19 "additional input too long"},
12fb8c3d 20 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_ALREADY_INSTANTIATED),
d992e872 21 "already instantiated"},
c16de9d8 22 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_ARGUMENT_OUT_OF_RANGE),
d992e872 23 "argument out of range"},
9ee344f5 24 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_CANNOT_OPEN_FILE), "Cannot open file"},
3ce1c27b 25 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_DRBG_ALREADY_INITIALIZED),
d992e872 26 "drbg already initialized"},
12fb8c3d 27 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_DRBG_NOT_INITIALISED),
d992e872 28 "drbg not initialised"},
c16de9d8 29 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_ENTROPY_INPUT_TOO_LONG),
d992e872 30 "entropy input too long"},
c16de9d8 31 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_ENTROPY_OUT_OF_RANGE),
d992e872 32 "entropy out of range"},
c16de9d8 33 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_ERROR_ENTROPY_POOL_WAS_IGNORED),
d992e872 34 "error entropy pool was ignored"},
12fb8c3d 35 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_ERROR_INITIALISING_DRBG),
d992e872 36 "error initialising drbg"},
12fb8c3d 37 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_ERROR_INSTANTIATING_DRBG),
d992e872 38 "error instantiating drbg"},
12fb8c3d 39 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_ERROR_RETRIEVING_ADDITIONAL_INPUT),
d992e872 40 "error retrieving additional input"},
12fb8c3d 41 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_ERROR_RETRIEVING_ENTROPY),
d992e872 42 "error retrieving entropy"},
12fb8c3d 43 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_ERROR_RETRIEVING_NONCE),
d992e872 44 "error retrieving nonce"},
c16de9d8 45 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_FAILED_TO_CREATE_LOCK),
d992e872 46 "failed to create lock"},
0ea155fc 47 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_FUNC_NOT_IMPLEMENTED),
d992e872 48 "Function not implemented"},
9ee344f5 49 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_FWRITE_ERROR), "Error writing file"},
12fb8c3d 50 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_GENERATE_ERROR), "generate error"},
15dfa092 51 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_INSUFFICIENT_DRBG_STRENGTH),
d992e872 52 "insufficient drbg strength"},
12fb8c3d 53 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_INTERNAL_ERROR), "internal error"},
a9483b8a 54 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_INVALID_PROPERTY_QUERY),
d992e872 55 "invalid property query"},
12fb8c3d 56 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_IN_ERROR_STATE), "in error state"},
9ee344f5 57 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_NOT_A_REGULAR_FILE),
d992e872 58 "Not a regular file"},
12fb8c3d 59 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_NOT_INSTANTIATED), "not instantiated"},
8212d505 60 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED),
d992e872 61 "no drbg implementation selected"},
3ce1c27b 62 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_PARENT_LOCKING_NOT_ENABLED),
d992e872 63 "parent locking not enabled"},
35503b7c 64 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_PARENT_STRENGTH_TOO_WEAK),
d992e872 65 "parent strength too weak"},
12fb8c3d 66 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_PERSONALISATION_STRING_TOO_LONG),
d992e872 67 "personalisation string too long"},
311276ff 68 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED),
d992e872 69 "prediction resistance not supported"},
52df25cf 70 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_PRNG_NOT_SEEDED), "PRNG not seeded"},
d992e872
TM
71 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_RANDOM_POOL_IS_EMPTY),
72 "random pool is empty"},
c16de9d8 73 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_RANDOM_POOL_OVERFLOW),
d992e872 74 "random pool overflow"},
fc1d73bb 75 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_RANDOM_POOL_UNDERFLOW),
d992e872 76 "random pool underflow"},
12fb8c3d 77 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_REQUEST_TOO_LARGE_FOR_DRBG),
d992e872 78 "request too large for drbg"},
12fb8c3d
RS
79 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_RESEED_ERROR), "reseed error"},
80 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_SELFTEST_FAILURE), "selftest failure"},
560096f8 81 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_TOO_LITTLE_NONCE_REQUESTED),
d992e872 82 "too little nonce requested"},
560096f8 83 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_TOO_MUCH_NONCE_REQUESTED),
d992e872 84 "too much nonce requested"},
7d615e21 85 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_UNABLE_TO_CREATE_DRBG),
d992e872 86 "unable to create drbg"},
7d615e21 87 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_UNABLE_TO_FETCH_DRBG),
d992e872 88 "unable to fetch drbg"},
15dfa092 89 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_UNABLE_TO_GET_PARENT_RESEED_PROP_COUNTER),
d992e872 90 "unable to get parent reseed prop counter"},
15dfa092 91 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_UNABLE_TO_GET_PARENT_STRENGTH),
d992e872 92 "unable to get parent strength"},
15dfa092 93 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_UNABLE_TO_LOCK_PARENT),
d992e872 94 "unable to lock parent"},
31393fd9 95 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_UNSUPPORTED_DRBG_FLAGS),
d992e872 96 "unsupported drbg flags"},
12fb8c3d 97 {ERR_PACK(ERR_LIB_RAND, 0, RAND_R_UNSUPPORTED_DRBG_TYPE),
d992e872 98 "unsupported drbg type"},
0f113f3e
MC
99 {0, NULL}
100};
eb952088
UM
101
102#endif
103
b93f6c2d 104int ossl_err_load_RAND_strings(void)
0f113f3e 105{
47a9d527 106#ifndef OPENSSL_NO_ERR
0cd1b144 107 if (ERR_reason_error_string(RAND_str_reasons[0].error) == NULL)
52df25cf 108 ERR_load_strings_const(RAND_str_reasons);
47a9d527 109#endif
69588edb 110 return 1;
0f113f3e 111}