Reinstate the KDF error macros
[openssl.git] / include / openssl / kdferr.h
1 /*
2  * Generated by util/mkerr.pl DO NOT EDIT
3  * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
4  *
5  * Licensed under the Apache License 2.0 (the "License").  You may not use
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
9  */
10
11 #ifndef OPENSSL_KDFERR_H
12 # define OPENSSL_KDFERR_H
13 # pragma once
14
15 # include <openssl/macros.h>
16 # ifndef OPENSSL_NO_DEPRECATED_3_0
17 #  define HEADER_OSSL_KDFERR_H
18 # endif
19
20 # include <openssl/opensslconf.h>
21 # include <openssl/symhacks.h>
22
23
24 # ifdef  __cplusplus
25 extern "C"
26 # endif
27 int ERR_load_KDF_strings(void);
28
29 /*
30  * KDF function codes.
31  */
32 # ifndef OPENSSL_NO_DEPRECATED_3_0
33 #  define KDF_F_HKDF_EXTRACT                               0
34 #  define KDF_F_KDF_HKDF_DERIVE                            0
35 #  define KDF_F_KDF_HKDF_NEW                               0
36 #  define KDF_F_KDF_HKDF_SIZE                              0
37 #  define KDF_F_KDF_MD2CTRL                                0
38 #  define KDF_F_KDF_PBKDF2_CTRL                            0
39 #  define KDF_F_KDF_PBKDF2_CTRL_STR                        0
40 #  define KDF_F_KDF_PBKDF2_DERIVE                          0
41 #  define KDF_F_KDF_PBKDF2_NEW                             0
42 #  define KDF_F_KDF_SCRYPT_CTRL_STR                        0
43 #  define KDF_F_KDF_SCRYPT_CTRL_UINT32                     0
44 #  define KDF_F_KDF_SCRYPT_CTRL_UINT64                     0
45 #  define KDF_F_KDF_SCRYPT_DERIVE                          0
46 #  define KDF_F_KDF_SCRYPT_NEW                             0
47 #  define KDF_F_KDF_SSHKDF_CTRL                            0
48 #  define KDF_F_KDF_SSHKDF_CTRL_STR                        0
49 #  define KDF_F_KDF_SSHKDF_DERIVE                          0
50 #  define KDF_F_KDF_SSHKDF_NEW                             0
51 #  define KDF_F_KDF_TLS1_PRF_CTRL_STR                      0
52 #  define KDF_F_KDF_TLS1_PRF_DERIVE                        0
53 #  define KDF_F_KDF_TLS1_PRF_NEW                           0
54 #  define KDF_F_PBKDF2_DERIVE                              0
55 #  define KDF_F_PBKDF2_SET_MEMBUF                          0
56 #  define KDF_F_PKEY_HKDF_CTRL_STR                         0
57 #  define KDF_F_PKEY_HKDF_DERIVE                           0
58 #  define KDF_F_PKEY_HKDF_INIT                             0
59 #  define KDF_F_PKEY_SCRYPT_CTRL_STR                       0
60 #  define KDF_F_PKEY_SCRYPT_CTRL_UINT64                    0
61 #  define KDF_F_PKEY_SCRYPT_DERIVE                         0
62 #  define KDF_F_PKEY_SCRYPT_INIT                           0
63 #  define KDF_F_PKEY_SCRYPT_SET_MEMBUF                     0
64 #  define KDF_F_PKEY_TLS1_PRF_CTRL_STR                     0
65 #  define KDF_F_PKEY_TLS1_PRF_DERIVE                       0
66 #  define KDF_F_PKEY_TLS1_PRF_INIT                         0
67 #  define KDF_F_SCRYPT_SET_MEMBUF                          0
68 #  define KDF_F_SSKDF_CTRL_STR                             0
69 #  define KDF_F_SSKDF_DERIVE                               0
70 #  define KDF_F_SSKDF_MAC2CTRL                             0
71 #  define KDF_F_SSKDF_NEW                                  0
72 #  define KDF_F_SSKDF_SIZE                                 0
73 #  define KDF_F_TLS1_PRF_ALG                               0
74 #  define KDF_F_X942KDF_CTRL                               0
75 #  define KDF_F_X942KDF_DERIVE                             0
76 #  define KDF_F_X942KDF_HASH_KDM                           0
77 #  define KDF_F_X942KDF_NEW                                0
78 #  define KDF_F_X942KDF_SIZE                               0
79 #  define KDF_F_X963KDF_DERIVE                             0
80 # endif
81
82 /*
83  * KDF reason codes.
84  */
85 # define KDF_R_BAD_ENCODING                               122
86 # define KDF_R_BAD_LENGTH                                 123
87 # define KDF_R_BOTH_MODE_AND_MODE_INT                     127
88 # define KDF_R_INAVLID_UKM_LEN                            124
89 # define KDF_R_INVALID_DIGEST                             100
90 # define KDF_R_INVALID_ITERATION_COUNT                    119
91 # define KDF_R_INVALID_KEY_LEN                            120
92 # define KDF_R_INVALID_MAC_TYPE                           116
93 # define KDF_R_INVALID_MODE                               128
94 # define KDF_R_INVALID_MODE_INT                           129
95 # define KDF_R_INVALID_SALT_LEN                           121
96 # define KDF_R_MISSING_CEK_ALG                            125
97 # define KDF_R_MISSING_ITERATION_COUNT                    109
98 # define KDF_R_MISSING_KEY                                104
99 # define KDF_R_MISSING_MESSAGE_DIGEST                     105
100 # define KDF_R_MISSING_PARAMETER                          101
101 # define KDF_R_MISSING_PASS                               110
102 # define KDF_R_MISSING_SALT                               111
103 # define KDF_R_MISSING_SECRET                             107
104 # define KDF_R_MISSING_SEED                               106
105 # define KDF_R_MISSING_SESSION_ID                         113
106 # define KDF_R_MISSING_TYPE                               114
107 # define KDF_R_MISSING_XCGHASH                            115
108 # define KDF_R_NOT_SUPPORTED                              118
109 # define KDF_R_UNKNOWN_PARAMETER_TYPE                     103
110 # define KDF_R_UNSUPPORTED_CEK_ALG                        126
111 # define KDF_R_UNSUPPORTED_MAC_TYPE                       117
112 # define KDF_R_VALUE_ERROR                                108
113 # define KDF_R_VALUE_MISSING                              102
114 # define KDF_R_WRONG_OUTPUT_BUFFER_SIZE                   112
115
116 #endif