[test] Add speed tests for cipher algorithms

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2012-09-26 15:27:33 +01:00
parent 681a219caa
commit c1adf7dabe
3 changed files with 94 additions and 4 deletions
+4
View File
@@ -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