diff options
| author | djm <> | 2012-10-13 21:23:50 +0000 |
|---|---|---|
| committer | djm <> | 2012-10-13 21:23:50 +0000 |
| commit | 228cae30b117c2493f69ad3c195341cd6ec8d430 (patch) | |
| tree | 29ff00b10d52c0978077c4fd83c33b065bade73e /src/lib/libcrypto/dh/dh.h | |
| parent | 731838c66b52c0ae5888333005b74115a620aa96 (diff) | |
| download | openbsd-228cae30b117c2493f69ad3c195341cd6ec8d430.tar.gz openbsd-228cae30b117c2493f69ad3c195341cd6ec8d430.tar.bz2 openbsd-228cae30b117c2493f69ad3c195341cd6ec8d430.zip | |
import OpenSSL-1.0.1c
Diffstat (limited to 'src/lib/libcrypto/dh/dh.h')
| -rw-r--r-- | src/lib/libcrypto/dh/dh.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/libcrypto/dh/dh.h b/src/lib/libcrypto/dh/dh.h index 849309a489..ea59e610ef 100644 --- a/src/lib/libcrypto/dh/dh.h +++ b/src/lib/libcrypto/dh/dh.h | |||
| @@ -86,6 +86,21 @@ | |||
| 86 | * be used for all exponents. | 86 | * be used for all exponents. |
| 87 | */ | 87 | */ |
| 88 | 88 | ||
| 89 | /* If this flag is set the DH method is FIPS compliant and can be used | ||
| 90 | * in FIPS mode. This is set in the validated module method. If an | ||
| 91 | * application sets this flag in its own methods it is its reposibility | ||
| 92 | * to ensure the result is compliant. | ||
| 93 | */ | ||
| 94 | |||
| 95 | #define DH_FLAG_FIPS_METHOD 0x0400 | ||
| 96 | |||
| 97 | /* If this flag is set the operations normally disabled in FIPS mode are | ||
| 98 | * permitted it is then the applications responsibility to ensure that the | ||
| 99 | * usage is compliant. | ||
| 100 | */ | ||
| 101 | |||
| 102 | #define DH_FLAG_NON_FIPS_ALLOW 0x0400 | ||
| 103 | |||
| 89 | #ifdef __cplusplus | 104 | #ifdef __cplusplus |
| 90 | extern "C" { | 105 | extern "C" { |
| 91 | #endif | 106 | #endif |
| @@ -230,6 +245,9 @@ void ERR_load_DH_strings(void); | |||
| 230 | #define DH_F_COMPUTE_KEY 102 | 245 | #define DH_F_COMPUTE_KEY 102 |
| 231 | #define DH_F_DHPARAMS_PRINT_FP 101 | 246 | #define DH_F_DHPARAMS_PRINT_FP 101 |
| 232 | #define DH_F_DH_BUILTIN_GENPARAMS 106 | 247 | #define DH_F_DH_BUILTIN_GENPARAMS 106 |
| 248 | #define DH_F_DH_COMPUTE_KEY 114 | ||
| 249 | #define DH_F_DH_GENERATE_KEY 115 | ||
| 250 | #define DH_F_DH_GENERATE_PARAMETERS_EX 116 | ||
| 233 | #define DH_F_DH_NEW_METHOD 105 | 251 | #define DH_F_DH_NEW_METHOD 105 |
| 234 | #define DH_F_DH_PARAM_DECODE 107 | 252 | #define DH_F_DH_PARAM_DECODE 107 |
| 235 | #define DH_F_DH_PRIV_DECODE 110 | 253 | #define DH_F_DH_PRIV_DECODE 110 |
| @@ -249,7 +267,9 @@ void ERR_load_DH_strings(void); | |||
| 249 | #define DH_R_DECODE_ERROR 104 | 267 | #define DH_R_DECODE_ERROR 104 |
| 250 | #define DH_R_INVALID_PUBKEY 102 | 268 | #define DH_R_INVALID_PUBKEY 102 |
| 251 | #define DH_R_KEYS_NOT_SET 108 | 269 | #define DH_R_KEYS_NOT_SET 108 |
| 270 | #define DH_R_KEY_SIZE_TOO_SMALL 110 | ||
| 252 | #define DH_R_MODULUS_TOO_LARGE 103 | 271 | #define DH_R_MODULUS_TOO_LARGE 103 |
| 272 | #define DH_R_NON_FIPS_METHOD 111 | ||
| 253 | #define DH_R_NO_PARAMETERS_SET 107 | 273 | #define DH_R_NO_PARAMETERS_SET 107 |
| 254 | #define DH_R_NO_PRIVATE_VALUE 100 | 274 | #define DH_R_NO_PRIVATE_VALUE 100 |
| 255 | #define DH_R_PARAMETER_ENCODING_ERROR 105 | 275 | #define DH_R_PARAMETER_ENCODING_ERROR 105 |
