diff options
author | Matt Caswell <matt@openssl.org> | 2019-03-20 14:27:52 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-04-04 23:09:47 +0100 |
commit | 9efa0ae0b602c1c0e356009a58410a2e8b80201a (patch) | |
tree | 0c0a25f2c705d36de4a1dff84a9b9590c1061c57 /crypto/params.c | |
parent | ecbfaef2aad61fae0c29c04287913af11981b82e (diff) |
Create a FIPS provider and put SHA256 in it
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8537)
Diffstat (limited to 'crypto/params.c')
-rw-r--r-- | crypto/params.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/params.c b/crypto/params.c index 367b2abd21..8eef736ef4 100644 --- a/crypto/params.c +++ b/crypto/params.c @@ -348,6 +348,13 @@ OSSL_PARAM OSSL_PARAM_construct_size_t(const char *key, size_t *buf, return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf, sizeof(size_t), rsize); } +#ifndef FIPS_MODE +/* + * TODO(3.0): Make this available in FIPS mode. + * + * Temporarily we don't include these functions in FIPS mode to avoid pulling + * in the entire BN sub-library into the module at this point. + */ int OSSL_PARAM_get_BN(const OSSL_PARAM *p, BIGNUM **val) { BIGNUM *b; @@ -387,6 +394,7 @@ OSSL_PARAM OSSL_PARAM_construct_BN(const char *key, unsigned char *buf, return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf, bsize, rsize); } +#endif int OSSL_PARAM_get_double(const OSSL_PARAM *p, double *val) { |