summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/rsa')
-rw-r--r--src/lib/libcrypto/rsa/rsa_ameth.c8
-rw-r--r--src/lib/libcrypto/rsa/rsa_asn1.c4
-rw-r--r--src/lib/libcrypto/rsa/rsa_chk.c6
-rw-r--r--src/lib/libcrypto/rsa/rsa_crpt.c6
-rw-r--r--src/lib/libcrypto/rsa/rsa_depr.c4
-rw-r--r--src/lib/libcrypto/rsa/rsa_eay.c6
-rw-r--r--src/lib/libcrypto/rsa/rsa_gen.c6
-rw-r--r--src/lib/libcrypto/rsa/rsa_lib.c6
-rw-r--r--src/lib/libcrypto/rsa/rsa_local.h (renamed from src/lib/libcrypto/rsa/rsa_locl.h)2
-rw-r--r--src/lib/libcrypto/rsa/rsa_meth.c4
-rw-r--r--src/lib/libcrypto/rsa/rsa_oaep.c8
-rw-r--r--src/lib/libcrypto/rsa/rsa_pmeth.c8
-rw-r--r--src/lib/libcrypto/rsa/rsa_pss.c6
-rw-r--r--src/lib/libcrypto/rsa/rsa_sign.c8
14 files changed, 41 insertions, 41 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_ameth.c b/src/lib/libcrypto/rsa/rsa_ameth.c
index 448458f846..4ae41aeb84 100644
--- a/src/lib/libcrypto/rsa/rsa_ameth.c
+++ b/src/lib/libcrypto/rsa/rsa_ameth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_ameth.c,v 1.26 2022/06/27 12:36:06 tb Exp $ */ 1/* $OpenBSD: rsa_ameth.c,v 1.27 2022/11/26 16:08:54 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -66,10 +66,10 @@
66#include <openssl/err.h> 66#include <openssl/err.h>
67#include <openssl/x509.h> 67#include <openssl/x509.h>
68 68
69#include "asn1_locl.h" 69#include "asn1_local.h"
70#include "cryptlib.h" 70#include "cryptlib.h"
71#include "evp_locl.h" 71#include "evp_local.h"
72#include "rsa_locl.h" 72#include "rsa_local.h"
73 73
74#ifndef OPENSSL_NO_CMS 74#ifndef OPENSSL_NO_CMS
75static int rsa_cms_sign(CMS_SignerInfo *si); 75static int rsa_cms_sign(CMS_SignerInfo *si);
diff --git a/src/lib/libcrypto/rsa/rsa_asn1.c b/src/lib/libcrypto/rsa/rsa_asn1.c
index 4b8eda24dd..63c3637f46 100644
--- a/src/lib/libcrypto/rsa/rsa_asn1.c
+++ b/src/lib/libcrypto/rsa/rsa_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_asn1.c,v 1.15 2019/10/25 14:40:18 jsing Exp $ */ 1/* $OpenBSD: rsa_asn1.c,v 1.16 2022/11/26 16:08:54 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -63,7 +63,7 @@
63#include <openssl/rsa.h> 63#include <openssl/rsa.h>
64#include <openssl/x509.h> 64#include <openssl/x509.h>
65 65
66#include "rsa_locl.h" 66#include "rsa_local.h"
67 67
68/* Override the default free and new methods */ 68/* Override the default free and new methods */
69static int 69static int
diff --git a/src/lib/libcrypto/rsa/rsa_chk.c b/src/lib/libcrypto/rsa/rsa_chk.c
index ac9dbf7a22..5d7f7b307c 100644
--- a/src/lib/libcrypto/rsa/rsa_chk.c
+++ b/src/lib/libcrypto/rsa/rsa_chk.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_chk.c,v 1.16 2022/01/20 11:08:12 inoguchi Exp $ */ 1/* $OpenBSD: rsa_chk.c,v 1.17 2022/11/26 16:08:54 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1999 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1999 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -52,8 +52,8 @@
52#include <openssl/err.h> 52#include <openssl/err.h>
53#include <openssl/rsa.h> 53#include <openssl/rsa.h>
54 54
55#include "bn_lcl.h" 55#include "bn_local.h"
56#include "rsa_locl.h" 56#include "rsa_local.h"
57 57
58int 58int
59RSA_check_key(const RSA *key) 59RSA_check_key(const RSA *key)
diff --git a/src/lib/libcrypto/rsa/rsa_crpt.c b/src/lib/libcrypto/rsa/rsa_crpt.c
index 4fd21cd748..a1b2eec6ca 100644
--- a/src/lib/libcrypto/rsa/rsa_crpt.c
+++ b/src/lib/libcrypto/rsa/rsa_crpt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_crpt.c,v 1.20 2022/01/07 09:55:32 tb Exp $ */ 1/* $OpenBSD: rsa_crpt.c,v 1.21 2022/11/26 16:08:54 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 *
@@ -66,8 +66,8 @@
66#include <openssl/lhash.h> 66#include <openssl/lhash.h>
67#include <openssl/rsa.h> 67#include <openssl/rsa.h>
68 68
69#include "bn_lcl.h" 69#include "bn_local.h"
70#include "rsa_locl.h" 70#include "rsa_local.h"
71 71
72#ifndef OPENSSL_NO_ENGINE 72#ifndef OPENSSL_NO_ENGINE
73#include <openssl/engine.h> 73#include <openssl/engine.h>
diff --git a/src/lib/libcrypto/rsa/rsa_depr.c b/src/lib/libcrypto/rsa/rsa_depr.c
index 54a669ccc2..8a432b348b 100644
--- a/src/lib/libcrypto/rsa/rsa_depr.c
+++ b/src/lib/libcrypto/rsa/rsa_depr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_depr.c,v 1.9 2021/12/04 16:08:32 tb Exp $ */ 1/* $OpenBSD: rsa_depr.c,v 1.10 2022/11/26 16:08:54 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -64,7 +64,7 @@
64#include <openssl/bn.h> 64#include <openssl/bn.h>
65#include <openssl/rsa.h> 65#include <openssl/rsa.h>
66 66
67#include "bn_lcl.h" 67#include "bn_local.h"
68 68
69#ifndef OPENSSL_NO_DEPRECATED 69#ifndef OPENSSL_NO_DEPRECATED
70 70
diff --git a/src/lib/libcrypto/rsa/rsa_eay.c b/src/lib/libcrypto/rsa/rsa_eay.c
index 0f8c324dcc..f6c3092dc4 100644
--- a/src/lib/libcrypto/rsa/rsa_eay.c
+++ b/src/lib/libcrypto/rsa/rsa_eay.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_eay.c,v 1.54 2022/01/20 11:10:11 inoguchi Exp $ */ 1/* $OpenBSD: rsa_eay.c,v 1.55 2022/11/26 16:08:54 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 *
@@ -118,8 +118,8 @@
118#include <openssl/err.h> 118#include <openssl/err.h>
119#include <openssl/rsa.h> 119#include <openssl/rsa.h>
120 120
121#include "bn_lcl.h" 121#include "bn_local.h"
122#include "rsa_locl.h" 122#include "rsa_local.h"
123 123
124static int RSA_eay_public_encrypt(int flen, const unsigned char *from, 124static int RSA_eay_public_encrypt(int flen, const unsigned char *from,
125 unsigned char *to, RSA *rsa, int padding); 125 unsigned char *to, RSA *rsa, int padding);
diff --git a/src/lib/libcrypto/rsa/rsa_gen.c b/src/lib/libcrypto/rsa/rsa_gen.c
index 5f062a7a24..7aefa7301c 100644
--- a/src/lib/libcrypto/rsa/rsa_gen.c
+++ b/src/lib/libcrypto/rsa/rsa_gen.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_gen.c,v 1.25 2022/01/20 11:11:17 inoguchi Exp $ */ 1/* $OpenBSD: rsa_gen.c,v 1.26 2022/11/26 16:08:54 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 *
@@ -69,8 +69,8 @@
69#include <openssl/err.h> 69#include <openssl/err.h>
70#include <openssl/rsa.h> 70#include <openssl/rsa.h>
71 71
72#include "bn_lcl.h" 72#include "bn_local.h"
73#include "rsa_locl.h" 73#include "rsa_local.h"
74 74
75static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb); 75static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb);
76 76
diff --git a/src/lib/libcrypto/rsa/rsa_lib.c b/src/lib/libcrypto/rsa/rsa_lib.c
index 570bb6c05e..1720484952 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.43 2022/06/27 12:30:28 tb Exp $ */ 1/* $OpenBSD: rsa_lib.c,v 1.44 2022/11/26 16:08:54 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 *
@@ -67,8 +67,8 @@
67#include <openssl/lhash.h> 67#include <openssl/lhash.h>
68#include <openssl/rsa.h> 68#include <openssl/rsa.h>
69 69
70#include "evp_locl.h" 70#include "evp_local.h"
71#include "rsa_locl.h" 71#include "rsa_local.h"
72 72
73#ifndef OPENSSL_NO_ENGINE 73#ifndef OPENSSL_NO_ENGINE
74#include <openssl/engine.h> 74#include <openssl/engine.h>
diff --git a/src/lib/libcrypto/rsa/rsa_locl.h b/src/lib/libcrypto/rsa/rsa_local.h
index 1a2412ad80..b438ab4eec 100644
--- a/src/lib/libcrypto/rsa/rsa_locl.h
+++ b/src/lib/libcrypto/rsa/rsa_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_locl.h,v 1.13 2022/07/04 12:23:30 tb Exp $ */ 1/* $OpenBSD: rsa_local.h,v 1.1 2022/11/26 16:08:54 tb Exp $ */
2 2
3__BEGIN_HIDDEN_DECLS 3__BEGIN_HIDDEN_DECLS
4 4
diff --git a/src/lib/libcrypto/rsa/rsa_meth.c b/src/lib/libcrypto/rsa/rsa_meth.c
index d6be1ea006..a011927346 100644
--- a/src/lib/libcrypto/rsa/rsa_meth.c
+++ b/src/lib/libcrypto/rsa/rsa_meth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_meth.c,v 1.5 2022/07/04 12:23:30 tb Exp $ */ 1/* $OpenBSD: rsa_meth.c,v 1.6 2022/11/26 16:08:54 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -21,7 +21,7 @@
21#include <openssl/err.h> 21#include <openssl/err.h>
22#include <openssl/rsa.h> 22#include <openssl/rsa.h>
23 23
24#include "rsa_locl.h" 24#include "rsa_local.h"
25 25
26RSA_METHOD * 26RSA_METHOD *
27RSA_meth_new(const char *name, int flags) 27RSA_meth_new(const char *name, int flags)
diff --git a/src/lib/libcrypto/rsa/rsa_oaep.c b/src/lib/libcrypto/rsa/rsa_oaep.c
index 932695009f..083f4a6c80 100644
--- a/src/lib/libcrypto/rsa/rsa_oaep.c
+++ b/src/lib/libcrypto/rsa/rsa_oaep.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_oaep.c,v 1.35 2022/02/20 19:16:34 tb Exp $ */ 1/* $OpenBSD: rsa_oaep.c,v 1.36 2022/11/26 16:08:54 tb Exp $ */
2/* 2/*
3 * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved. 3 * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved.
4 * 4 *
@@ -79,9 +79,9 @@
79#include <openssl/rsa.h> 79#include <openssl/rsa.h>
80#include <openssl/sha.h> 80#include <openssl/sha.h>
81 81
82#include "constant_time_locl.h" 82#include "constant_time.h"
83#include "evp_locl.h" 83#include "evp_local.h"
84#include "rsa_locl.h" 84#include "rsa_local.h"
85 85
86int 86int
87RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen, 87RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen,
diff --git a/src/lib/libcrypto/rsa/rsa_pmeth.c b/src/lib/libcrypto/rsa/rsa_pmeth.c
index 36a2a27727..0b3774bf6e 100644
--- a/src/lib/libcrypto/rsa/rsa_pmeth.c
+++ b/src/lib/libcrypto/rsa/rsa_pmeth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_pmeth.c,v 1.33 2021/12/04 16:08:32 tb Exp $ */ 1/* $OpenBSD: rsa_pmeth.c,v 1.34 2022/11/26 16:08:54 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -70,9 +70,9 @@
70#include <openssl/x509.h> 70#include <openssl/x509.h>
71#include <openssl/x509v3.h> 71#include <openssl/x509v3.h>
72 72
73#include "bn_lcl.h" 73#include "bn_local.h"
74#include "evp_locl.h" 74#include "evp_local.h"
75#include "rsa_locl.h" 75#include "rsa_local.h"
76 76
77/* RSA pkey context structure */ 77/* RSA pkey context structure */
78 78
diff --git a/src/lib/libcrypto/rsa/rsa_pss.c b/src/lib/libcrypto/rsa/rsa_pss.c
index cce38efa91..72c79e3b06 100644
--- a/src/lib/libcrypto/rsa/rsa_pss.c
+++ b/src/lib/libcrypto/rsa/rsa_pss.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_pss.c,v 1.15 2022/01/07 09:55:32 tb Exp $ */ 1/* $OpenBSD: rsa_pss.c,v 1.16 2022/11/26 16:08:54 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2005. 3 * project 2005.
4 */ 4 */
@@ -66,8 +66,8 @@
66#include <openssl/rsa.h> 66#include <openssl/rsa.h>
67#include <openssl/sha.h> 67#include <openssl/sha.h>
68 68
69#include "evp_locl.h" 69#include "evp_local.h"
70#include "rsa_locl.h" 70#include "rsa_local.h"
71 71
72static const unsigned char zeroes[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; 72static const unsigned char zeroes[] = { 0, 0, 0, 0, 0, 0, 0, 0 };
73 73
diff --git a/src/lib/libcrypto/rsa/rsa_sign.c b/src/lib/libcrypto/rsa/rsa_sign.c
index bd45a95d54..d517fcbcf2 100644
--- a/src/lib/libcrypto/rsa/rsa_sign.c
+++ b/src/lib/libcrypto/rsa/rsa_sign.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_sign.c,v 1.34 2022/01/07 11:13:55 tb Exp $ */ 1/* $OpenBSD: rsa_sign.c,v 1.35 2022/11/26 16:08:54 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 *
@@ -65,9 +65,9 @@
65#include <openssl/rsa.h> 65#include <openssl/rsa.h>
66#include <openssl/x509.h> 66#include <openssl/x509.h>
67 67
68#include "asn1_locl.h" 68#include "asn1_local.h"
69#include "rsa_locl.h" 69#include "rsa_local.h"
70#include "x509_lcl.h" 70#include "x509_local.h"
71 71
72/* Size of an SSL signature: MD5+SHA1 */ 72/* Size of an SSL signature: MD5+SHA1 */
73#define SSL_SIG_LENGTH 36 73#define SSL_SIG_LENGTH 36