summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-03-27 17:57:18 -0400
committerNick Mathewson <nickm@torproject.org>2012-03-27 22:38:06 -0400
commit01905a6ef9f00705e9db95cf134f1a08787ab92f (patch)
tree1a8c42aecee77f23cbe6eaf46ae5029d765532d0 /src/common/crypto.h
parent55c3e29669214e7a51b16c7273caf30b29079157 (diff)
downloadtor-01905a6ef9f00705e9db95cf134f1a08787ab92f.tar.gz
tor-01905a6ef9f00705e9db95cf134f1a08787ab92f.zip
Excise PK_NO_PADDING entirely: Unpadded RSA is silly.
We never use it, so having it around is pointless. Suggested by Sebastian
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index 00ac26ba26..0482e1af65 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -69,11 +69,9 @@
* signs removed. */
#define BASE64_DIGEST256_LEN 43
-/** Constants used to indicate no padding for public-key encryption */
-#define PK_NO_PADDING 60000
-/** Constants used to indicate PKCS1 padding for public-key encryption */
+/** Constant used to indicate PKCS1 padding for public-key encryption */
#define PK_PKCS1_PADDING 60001
-/** Constants used to indicate OAEP padding for public-key encryption */
+/** Constant used to indicate OAEP padding for public-key encryption */
#define PK_PKCS1_OAEP_PADDING 60002
/** Number of bytes added for PKCS1 padding. */