aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/test/old_crypto_SUITE.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-09-02 14:31:02 +0200
committerRaimo Niskanen <[email protected]>2016-09-02 16:01:46 +0200
commit05caf563c08b368ad5b6884ea9db3b2484953932 (patch)
treecb080469ca9e3257eadfd9e9e422df545fb7cd4e /lib/crypto/test/old_crypto_SUITE.erl
parente8057333e3beaceb6eed6b41f7aff7f2d523cb77 (diff)
downloadotp-05caf563c08b368ad5b6884ea9db3b2484953932.tar.gz
otp-05caf563c08b368ad5b6884ea9db3b2484953932.tar.bz2
otp-05caf563c08b368ad5b6884ea9db3b2484953932.zip
Add '_cfb' alias for misspelled '_cbf' cipher
Diffstat (limited to 'lib/crypto/test/old_crypto_SUITE.erl')
-rw-r--r--lib/crypto/test/old_crypto_SUITE.erl20
1 files changed, 17 insertions, 3 deletions
diff --git a/lib/crypto/test/old_crypto_SUITE.erl b/lib/crypto/test/old_crypto_SUITE.erl
index 333459c099..4a6753b2ed 100644
--- a/lib/crypto/test/old_crypto_SUITE.erl
+++ b/lib/crypto/test/old_crypto_SUITE.erl
@@ -59,6 +59,7 @@
des_ecb/1,
des3_cbc/1,
des3_cbf/1,
+ des3_cfb/1,
rc2_cbc/1,
aes_cfb/1,
aes_cbc/1,
@@ -102,7 +103,7 @@ groups() ->
hmac_rfc2202, hmac_rfc4231_sha224, hmac_rfc4231_sha256,
hmac_rfc4231_sha384, hmac_rfc4231_sha512,
des_cbc, aes_cfb, aes_cbc,
- des_cfb, des_cfb_iter, des3_cbc, des3_cbf, rc2_cbc,
+ des_cfb, des_cfb_iter, des3_cbc, des3_cbf, des3_cfb, rc2_cbc,
aes_cbc_iter, aes_ctr, aes_ctr_stream, des_cbc_iter, des_ecb,
rand_uniform_test, strong_rand_test,
rsa_verify_test, dsa_verify_test, rsa_sign_test,
@@ -1138,10 +1139,23 @@ des3_cbf(Config) when is_list(Config) ->
case openssl_version() of
V when V < 16#90705F -> {skipped,"OpenSSL version too old"};
_ ->
- if_supported(des3_cbf, fun des3_cbf_do/0)
+ if_supported(des3_cbf, fun des3_cfb_do/0)
end.
-des3_cbf_do() ->
+%%
+%%
+des3_cfb(doc) ->
+ "Encrypt and decrypt according to CFB 3DES, and check the result.";
+des3_cfb(suite) ->
+ [];
+des3_cfb(Config) when is_list(Config) ->
+ case openssl_version() of
+ V when V < 16#90705F -> {skipped,"OpenSSL version too old"};
+ _ ->
+ if_supported(des3_cfb, fun des3_cfb_do/0)
+ end.
+
+des3_cfb_do() ->
?line Key1 = hexstr2bin("0123456789abcdef"),
?line Key2 = hexstr2bin("fedcba9876543210"),
?line Key3 = hexstr2bin("0f2d4b6987a5c3e1"),