summaryrefslogtreecommitdiffstats
path: root/src/tests/cbc_test.h
diff options
context:
space:
mode:
authorMichael Brown2012-09-26 16:27:33 +0200
committerMichael Brown2012-09-26 16:27:33 +0200
commitc1adf7dabee103c1ca0b73e78c2d5a79b241830e (patch)
tree67ff39116bd8b2258cc974169a78087377a2128c /src/tests/cbc_test.h
parent[test] Add speed tests for digest algorithms (diff)
downloadipxe-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.h4
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