mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-07 06:59:41 +00:00
The functions being: rsa_check_crt_components, rsa_check_key, rsa_check_pminusq_diff, rsa_check_prime_factor, rsa_check_prime_factor_range, rsa_check_private_exponent, rsa_check_public_exponent, rsa_digestinfo_encoding, rsa_fips186_4_gen_prob_primes, rsa_fromdata, rsa_get0_all_params, rsa_get0_libctx, rsa_get0_pss_params_30, rsa_get_lcm, rsa_mgf_nid2name, rsa_mp_coeff_names, rsa_mp_exp_names, rsa_mp_factor_names, rsa_new_with_ctx, rsa_oaeppss_md2nid, rsa_oaeppss_nid2name, rsa_padding_add_PKCS1_OAEP_mgf1_with_libctx, rsa_padding_add_PKCS1_type_2_with_libctx, rsa_padding_add_SSLv23_with_libctx, rsa_padding_check_PKCS1_type_2_TLS, rsa_pkey_method, rsa_pss_params_30_copy, rsa_pss_params_30_fromdata, rsa_pss_params_30_hashalg, rsa_pss_params_30_is_unrestricted, rsa_pss_params_30_maskgenalg, rsa_pss_params_30_maskgenhashalg, rsa_pss_params_30_saltlen, rsa_pss_params_30_set_defaults, rsa_pss_params_30_set_hashalg, rsa_pss_params_30_set_maskgenalg, rsa_pss_params_30_set_maskgenhashalg, rsa_pss_params_30_set_saltlen, rsa_pss_params_30_set_trailerfield, rsa_pss_params_30_todata, rsa_pss_params_30_trailerfield, rsa_pss_pkey_method, rsa_set0_all_params, rsa_sp800_56b_check_keypair, rsa_sp800_56b_check_private, rsa_sp800_56b_check_public, rsa_sp800_56b_derive_params_from_pq, rsa_sp800_56b_generate_key, rsa_sp800_56b_pairwise_test, rsa_sp800_56b_validate_strength, rsa_todata, rsa_validate_pairwise, rsa_validate_private and rsa_validate_public. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13040)
76 lines
2.2 KiB
Plaintext
76 lines
2.2 KiB
Plaintext
=pod
|
|
|
|
=head1 NAME
|
|
|
|
ossl_rsa_set0_all_params, ossl_rsa_get0_all_params
|
|
- Internal routines for getting and setting data in an RSA object
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
#include "crypto/rsa.h"
|
|
|
|
int ossl_rsa_get0_all_params(RSA *r, STACK_OF(BIGNUM_const) *primes,
|
|
STACK_OF(BIGNUM_const) *exps,
|
|
STACK_OF(BIGNUM_const) *coeffs);
|
|
int ossl_rsa_set0_all_params(RSA *r, const STACK_OF(BIGNUM) *primes,
|
|
const STACK_OF(BIGNUM) *exps,
|
|
const STACK_OF(BIGNUM) *coeffs);
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
ossl_rsa_set0_all_params() sets all primes, CRT exponents and CRT coefficients
|
|
in the B<RSA> object I<r> to the contents of the stacks of BIGNUMs I<primes>,
|
|
I<exps> and I<coeffs>. The B<RSA> object takes ownership of the BIGNUMs,
|
|
but not of the stacks.
|
|
|
|
ossl_rsa_get0_all_params() gets all primes, CRT exponents and CRT coefficients
|
|
in the B<RSA> object I<r> and pushes them on the stacks of constant BIGNUMs
|
|
I<primes>, I<exps> and I<coeffs>. The B<RSA> object retains ownership of the
|
|
BIGNUMs, but not of the stacks.
|
|
|
|
=head1 NOTES
|
|
|
|
For RSA_set0_all_params() and RSA_get0_all_params():
|
|
|
|
=over 4
|
|
|
|
=item *
|
|
|
|
the I<primes> stack contains I<p>, I<q>, and then the rest of the primes
|
|
if the B<RSA> object is a multi-prime RSA key.
|
|
|
|
=item *
|
|
|
|
the I<exps> stack contains I<dP>, I<dQ>, and then the rest of the exponents
|
|
if the B<RSA> object is a multi-prime RSA key.
|
|
|
|
=item *
|
|
|
|
the I<coeffs> stack contains I<qInv>, and then the rest of the coefficients
|
|
if the B<RSA> object is a multi-prime RSA key.
|
|
|
|
=back
|
|
|
|
The number of primes must always be equal to the number of exponents, and
|
|
the number of coefficients must be one less than the number of primes.
|
|
|
|
=head1 RETURN VALUES
|
|
|
|
ossl_rsa_get0_all_params() and ossl_rsa_set0_all_params() return 1 on success,
|
|
or 0 on failure.
|
|
|
|
=head1 SEE ALSO
|
|
|
|
L<RSA_set0_multi_prime_params(3)>
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
|
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
this file except in compliance with the License. You can obtain a copy
|
|
in the file LICENSE in the source distribution or at
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
=cut
|