diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-15 12:20:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-15 12:20:17 -0400 |
commit | b163e801bcc96f4720a0ac2bf1ade5eb2701a9c1 (patch) | |
tree | 84398ad7b6ae2142370f2121ea19255c9fdcd118 /src/common/crypto.c | |
parent | ed600832d9fcd9ac6b2aacd36114f65ff227daf9 (diff) | |
parent | 0cf327dc7874ae0a021054b78cbb7b24a11aa8fe (diff) | |
download | tor-b163e801bcc96f4720a0ac2bf1ade5eb2701a9c1.tar.gz tor-b163e801bcc96f4720a0ac2bf1ade5eb2701a9c1.zip |
Merge remote-tracking branch 'origin/maint-0.2.4'
Conflicts:
src/or/routerlist.c
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 2f9f3ad7d7..f13319d11a 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -113,8 +113,8 @@ crypto_get_rsa_padding_overhead(int padding) { switch (padding) { - case RSA_PKCS1_OAEP_PADDING: return 42; - case RSA_PKCS1_PADDING: return 11; + case RSA_PKCS1_OAEP_PADDING: return PKCS1_OAEP_PADDING_OVERHEAD; + case RSA_PKCS1_PADDING: return PKCS1_PADDING_OVERHEAD; default: tor_assert(0); return -1; } } |