1e1051a39Sopenharmony_ci/* 2e1051a39Sopenharmony_ci * Generated by util/mkerr.pl DO NOT EDIT 3e1051a39Sopenharmony_ci * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved. 4e1051a39Sopenharmony_ci * 5e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License"). You may not use 6e1051a39Sopenharmony_ci * this file except in compliance with the License. You can obtain a copy 7e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at 8e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html 9e1051a39Sopenharmony_ci */ 10e1051a39Sopenharmony_ci 11e1051a39Sopenharmony_ci#include <openssl/err.h> 12e1051a39Sopenharmony_ci#include <openssl/dsaerr.h> 13e1051a39Sopenharmony_ci#include "crypto/dsaerr.h" 14e1051a39Sopenharmony_ci 15e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_DSA 16e1051a39Sopenharmony_ci 17e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_ERR 18e1051a39Sopenharmony_ci 19e1051a39Sopenharmony_cistatic const ERR_STRING_DATA DSA_str_reasons[] = { 20e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BAD_FFC_PARAMETERS), "bad ffc parameters"}, 21e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BAD_Q_VALUE), "bad q value"}, 22e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BN_DECODE_ERROR), "bn decode error"}, 23e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_BN_ERROR), "bn error"}, 24e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_DECODE_ERROR), "decode error"}, 25e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_INVALID_DIGEST_TYPE), 26e1051a39Sopenharmony_ci "invalid digest type"}, 27e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_INVALID_PARAMETERS), "invalid parameters"}, 28e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_MISSING_PARAMETERS), "missing parameters"}, 29e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_MISSING_PRIVATE_KEY), 30e1051a39Sopenharmony_ci "missing private key"}, 31e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_MODULUS_TOO_LARGE), "modulus too large"}, 32e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_NO_PARAMETERS_SET), "no parameters set"}, 33e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_PARAMETER_ENCODING_ERROR), 34e1051a39Sopenharmony_ci "parameter encoding error"}, 35e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_P_NOT_PRIME), "p not prime"}, 36e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_Q_NOT_PRIME), "q not prime"}, 37e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_SEED_LEN_SMALL), 38e1051a39Sopenharmony_ci "seed_len is less than the length of q"}, 39e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_DSA, 0, DSA_R_TOO_MANY_RETRIES), "too many retries"}, 40e1051a39Sopenharmony_ci {0, NULL} 41e1051a39Sopenharmony_ci}; 42e1051a39Sopenharmony_ci 43e1051a39Sopenharmony_ci# endif 44e1051a39Sopenharmony_ci 45e1051a39Sopenharmony_ciint ossl_err_load_DSA_strings(void) 46e1051a39Sopenharmony_ci{ 47e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_ERR 48e1051a39Sopenharmony_ci if (ERR_reason_error_string(DSA_str_reasons[0].error) == NULL) 49e1051a39Sopenharmony_ci ERR_load_strings_const(DSA_str_reasons); 50e1051a39Sopenharmony_ci# endif 51e1051a39Sopenharmony_ci return 1; 52e1051a39Sopenharmony_ci} 53e1051a39Sopenharmony_ci#else 54e1051a39Sopenharmony_ciNON_EMPTY_TRANSLATION_UNIT 55e1051a39Sopenharmony_ci#endif 56