diff options
author | Michael Brown | 2012-09-26 16:27:33 +0200 |
---|---|---|
committer | Michael Brown | 2012-09-26 16:27:33 +0200 |
commit | c1adf7dabee103c1ca0b73e78c2d5a79b241830e (patch) | |
tree | 67ff39116bd8b2258cc974169a78087377a2128c /src/tests/cbc_test.h | |
parent | [test] Add speed tests for digest algorithms (diff) | |
download | ipxe-c1adf7dabee103c1ca0b73e78c2d5a79b241830e.tar.gz ipxe-c1adf7dabee103c1ca0b73e78c2d5a79b241830e.tar.xz ipxe-c1adf7dabee103c1ca0b73e78c2d5a79b241830e.zip |
[test] Add speed tests for cipher algorithms
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests/cbc_test.h')
-rw-r--r-- | src/tests/cbc_test.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/cbc_test.h b/src/tests/cbc_test.h index 40356cc3..ad9e6f34 100644 --- a/src/tests/cbc_test.h +++ b/src/tests/cbc_test.h @@ -15,6 +15,10 @@ extern int cbc_test_decrypt ( struct cipher_algorithm *cipher, const void *key, size_t key_len, const void *iv, const void *ciphertext, const void *expected_plaintext, size_t len ); +extern unsigned long cbc_cost_encrypt ( struct cipher_algorithm *cipher, + size_t key_len ); +extern unsigned long cbc_cost_decrypt ( struct cipher_algorithm *cipher, + size_t key_len ); /** * Report CBC encryption test result |