summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_lib.c')
-rw-r--r--src/lib/libcrypto/rsa/rsa_lib.c56
1 files changed, 55 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_lib.c b/src/lib/libcrypto/rsa/rsa_lib.c
index 0b76aae398..92b2f32d61 100644
--- a/src/lib/libcrypto/rsa/rsa_lib.c
+++ b/src/lib/libcrypto/rsa/rsa_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_lib.c,v 1.40 2020/01/17 10:40:03 inoguchi Exp $ */ 1/* $OpenBSD: rsa_lib.c,v 1.41 2022/01/05 20:44:12 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -336,6 +336,60 @@ RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q)
336 return 1; 336 return 1;
337} 337}
338 338
339const BIGNUM *
340RSA_get0_n(const RSA *r)
341{
342 return r->n;
343}
344
345const BIGNUM *
346RSA_get0_e(const RSA *r)
347{
348 return r->e;
349}
350
351const BIGNUM *
352RSA_get0_d(const RSA *r)
353{
354 return r->d;
355}
356
357const BIGNUM *
358RSA_get0_p(const RSA *r)
359{
360 return r->p;
361}
362
363const BIGNUM *
364RSA_get0_q(const RSA *r)
365{
366 return r->q;
367}
368
369const BIGNUM *
370RSA_get0_dmp1(const RSA *r)
371{
372 return r->dmp1;
373}
374
375const BIGNUM *
376RSA_get0_dmq1(const RSA *r)
377{
378 return r->dmq1;
379}
380
381const BIGNUM *
382RSA_get0_iqmp(const RSA *r)
383{
384 return r->iqmp;
385}
386
387const RSA_PSS_PARAMS *
388RSA_get0_pss_params(const RSA *r)
389{
390 return r->pss;
391}
392
339void 393void
340RSA_clear_flags(RSA *r, int flags) 394RSA_clear_flags(RSA *r, int flags)
341{ 395{