diff options
author | lloyd <[email protected]> | 2015-01-31 16:18:09 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-01-31 16:18:09 +0000 |
commit | fd3016d10124d2b7ccd7bc885235f2e407d73800 (patch) | |
tree | e237b54c3a8d465c893a012157d9d52014eaccc9 /src/tests | |
parent | 00c9b3f4834603946065c15b9b2e9fa5e973b979 (diff) |
Use registry also for KDF, EMSA, and EME
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_keywrap.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tests/test_keywrap.cpp b/src/tests/test_keywrap.cpp index 4a133412a..c07d023d7 100644 --- a/src/tests/test_keywrap.cpp +++ b/src/tests/test_keywrap.cpp @@ -32,9 +32,7 @@ size_t keywrap_test(const char* key_str, SymmetricKey expected(expected_str); SymmetricKey kek(kek_str); - Algorithm_Factory& af = global_state().algorithm_factory(); - - secure_vector<byte> enc = rfc3394_keywrap(key.bits_of(), kek, af); + secure_vector<byte> enc = rfc3394_keywrap(key.bits_of(), kek); if(enc != expected.bits_of()) { @@ -43,7 +41,7 @@ size_t keywrap_test(const char* key_str, fail++; } - secure_vector<byte> dec = rfc3394_keyunwrap(expected.bits_of(), kek, af); + secure_vector<byte> dec = rfc3394_keyunwrap(expected.bits_of(), kek); if(dec != key.bits_of()) { |