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