summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2014-07-10 12:08:22 +0000
committerjsing <>2014-07-10 12:08:22 +0000
commit9a8ea65fb584adcf4b74bc9d692811fc563ad1c5 (patch)
tree929e2becc06cca5c9e275875a87f7e732d44aa6a /src
parentc7471782b2ce3b5d1e6708ca01b2076f1af72bc9 (diff)
downloadopenbsd-9a8ea65fb584adcf4b74bc9d692811fc563ad1c5.tar.gz
openbsd-9a8ea65fb584adcf4b74bc9d692811fc563ad1c5.tar.bz2
openbsd-9a8ea65fb584adcf4b74bc9d692811fc563ad1c5.zip
Tweak some comments. We do not really need to know that "New!" flags were
added 10+ years ago (they're kinda somewhat stale by now...)
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/rsa/rsa.h17
-rw-r--r--src/lib/libssl/src/crypto/rsa/rsa.h17
2 files changed, 16 insertions, 18 deletions
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h
index fdfd29c33a..b84ab4c6d7 100644
--- a/src/lib/libcrypto/rsa/rsa.h
+++ b/src/lib/libcrypto/rsa/rsa.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa.h,v 1.23 2014/07/10 11:04:49 jsing Exp $ */ 1/* $OpenBSD: rsa.h,v 1.24 2014/07/10 12:08:22 jsing 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 *
@@ -187,18 +187,17 @@ struct rsa_st {
187#define RSA_FLAG_SIGN_VER 0x0040 187#define RSA_FLAG_SIGN_VER 0x0040
188 188
189/* 189/*
190 * New with 0.9.6j and 0.9.7b; the built-in RSA implementation now uses 190 * The built-in RSA implementation uses blinding by default, but other engines
191 * blinding by default (ignoring RSA_FLAG_BLINDING), but other engines might 191 * might not need it.
192 * not need it.
193 */ 192 */
194#define RSA_FLAG_NO_BLINDING 0x0080 193#define RSA_FLAG_NO_BLINDING 0x0080
195 194
196/* 195/*
197 * New with 0.9.8f; the built-in RSA implementation now uses constant time 196 * The built-in RSA implementation uses constant time operations by default
198 * operations by default in private key operations, e.g., constant time modular 197 * in private key operations, e.g., constant time modular exponentiation,
199 * exponentiation, modular inverse without leaking branches, division without 198 * modular inverse without leaking branches, division without leaking branches.
200 * leaking branches. This flag disables these constant time operations and 199 * This flag disables these constant time operations and results in faster RSA
201 * results in faster RSA private key operations. 200 * private key operations.
202 */ 201 */
203#define RSA_FLAG_NO_CONSTTIME 0x0100 202#define RSA_FLAG_NO_CONSTTIME 0x0100
204 203
diff --git a/src/lib/libssl/src/crypto/rsa/rsa.h b/src/lib/libssl/src/crypto/rsa/rsa.h
index fdfd29c33a..b84ab4c6d7 100644
--- a/src/lib/libssl/src/crypto/rsa/rsa.h
+++ b/src/lib/libssl/src/crypto/rsa/rsa.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa.h,v 1.23 2014/07/10 11:04:49 jsing Exp $ */ 1/* $OpenBSD: rsa.h,v 1.24 2014/07/10 12:08:22 jsing 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 *
@@ -187,18 +187,17 @@ struct rsa_st {
187#define RSA_FLAG_SIGN_VER 0x0040 187#define RSA_FLAG_SIGN_VER 0x0040
188 188
189/* 189/*
190 * New with 0.9.6j and 0.9.7b; the built-in RSA implementation now uses 190 * The built-in RSA implementation uses blinding by default, but other engines
191 * blinding by default (ignoring RSA_FLAG_BLINDING), but other engines might 191 * might not need it.
192 * not need it.
193 */ 192 */
194#define RSA_FLAG_NO_BLINDING 0x0080 193#define RSA_FLAG_NO_BLINDING 0x0080
195 194
196/* 195/*
197 * New with 0.9.8f; the built-in RSA implementation now uses constant time 196 * The built-in RSA implementation uses constant time operations by default
198 * operations by default in private key operations, e.g., constant time modular 197 * in private key operations, e.g., constant time modular exponentiation,
199 * exponentiation, modular inverse without leaking branches, division without 198 * modular inverse without leaking branches, division without leaking branches.
200 * leaking branches. This flag disables these constant time operations and 199 * This flag disables these constant time operations and results in faster RSA
201 * results in faster RSA private key operations. 200 * private key operations.
202 */ 201 */
203#define RSA_FLAG_NO_CONSTTIME 0x0100 202#define RSA_FLAG_NO_CONSTTIME 0x0100
204 203