From c1adf7dabee103c1ca0b73e78c2d5a79b241830e Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 26 Sep 2012 15:27:33 +0100 Subject: [test] Add speed tests for cipher algorithms Signed-off-by: Michael Brown --- src/tests/cbc_test.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tests/cbc_test.h') 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 -- cgit v1.2.3-55-g7522