Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-01-14 12:36:39 +0300
committerPauli <paul.dale@oracle.com>2020-01-19 03:20:06 +0300
commitac23078b78305ba7b60d1459cf0db5df96e89d84 (patch)
treeaa31103f40ca47125121661807b5059ab776cd09 /include/internal
parenta978dc3bffb63e6bfc40fe6955e8798bdffb4e7e (diff)
param_bld: add a padded BN call.
To aviod leaking size information when passing private value using the OSSL_PARAM builder, a padded BN call is required. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10840)
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/param_build.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/internal/param_build.h b/include/internal/param_build.h
index a8116e35cd..ac1945f6f6 100644
--- a/include/internal/param_build.h
+++ b/include/internal/param_build.h
@@ -68,6 +68,8 @@ int ossl_param_bld_push_double(OSSL_PARAM_BLD *bld, const char *key,
double val);
int ossl_param_bld_push_BN(OSSL_PARAM_BLD *bld, const char *key,
const BIGNUM *bn);
+int ossl_param_bld_push_BN_pad(OSSL_PARAM_BLD *bld, const char *key,
+ const BIGNUM *bn, size_t sz);
int ossl_param_bld_push_utf8_string(OSSL_PARAM_BLD *bld, const char *key,
const char *buf, size_t bsize);
int ossl_param_bld_push_utf8_ptr(OSSL_PARAM_BLD *bld, const char *key,