diff options
author | Jack Lloyd <[email protected]> | 2015-08-29 11:53:06 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-08-29 11:53:06 -0400 |
commit | 3103f299dfd9517a4ef3c40358c1a4cad38b7305 (patch) | |
tree | d3cb4309c78cfc0948315970ca3c827bc356c1ef /src/lib/vendor/openssl/openssl_rc4.cpp | |
parent | e4962bebbc687e93e47d35339b6a2242aefee51e (diff) |
Reverse the algorithm priority ordering
Previously 0 was the highest priority and 255 was the lowest. But this
is really quite confusing, instead treat 0 as lowest and 255 as highest
so normal integer intuitions apply.
Diffstat (limited to 'src/lib/vendor/openssl/openssl_rc4.cpp')
-rw-r--r-- | src/lib/vendor/openssl/openssl_rc4.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/vendor/openssl/openssl_rc4.cpp b/src/lib/vendor/openssl/openssl_rc4.cpp index 494b30974..ac30cd288 100644 --- a/src/lib/vendor/openssl/openssl_rc4.cpp +++ b/src/lib/vendor/openssl/openssl_rc4.cpp @@ -6,6 +6,7 @@ */ #include <botan/internal/stream_utils.h> +#include <botan/internal/openssl.h> #include <botan/parsing.h> #include <openssl/rc4.h> @@ -48,6 +49,7 @@ class OpenSSL_RC4 : public StreamCipher } -BOTAN_REGISTER_TYPE(StreamCipher, OpenSSL_RC4, "RC4", (make_new_T_1len<OpenSSL_RC4,0>), "openssl", 64); +BOTAN_REGISTER_TYPE(StreamCipher, OpenSSL_RC4, "RC4", (make_new_T_1len<OpenSSL_RC4,0>), + "openssl", BOTAN_OPENSSL_RC4_PRIO); } |