4896 Performance improvements for KCF AES modes

Review Request #36 - Created May 29, 2014 and discarded

Information
Saso Kiselkov
illumos-gate
4896
Reviewers
csiden
4896 Performance improvements for KCF AES modes
A custom kernel module was written to test out all combinations of the algorithms against known good test vectors. The module (and source) is available at: https://github.com/skiselkov/crypto_test

Upon loading of the correctness_test64 module, dmesg shows:
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: ECB/1/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: ECB/2/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: ECB/3/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: ECB/4/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: ECB/5/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: ECB/6/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: ECB/1/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: ECB/2/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: ECB/3/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: ECB/4/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: ECB/5/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: ECB/6/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: CBC/1/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: CBC/2/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: CBC/3/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: CBC/1/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: CBC/2/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: CBC/3/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: CTR/1/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: CTR/2/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: CTR/3/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: CTR/1/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: CTR/2/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 293694 kern.notice] NOTICE: CTR/3/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 319061 kern.notice] NOTICE: GCM/1/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 319061 kern.notice] NOTICE: GCM/2/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 319061 kern.notice] NOTICE: GCM/3/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 319061 kern.notice] NOTICE: GCM/4/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 319061 kern.notice] NOTICE: GCM/5/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 319061 kern.notice] NOTICE: GCM/6/E: OK
May 29 13:54:54 illumos correctness_test64: [ID 314965 kern.notice] NOTICE: GCM/1/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 314965 kern.notice] NOTICE: GCM/2/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 314965 kern.notice] NOTICE: GCM/3/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 314965 kern.notice] NOTICE: GCM/4/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 314965 kern.notice] NOTICE: GCM/5/D: OK
May 29 13:54:54 illumos correctness_test64: [ID 314965 kern.notice] NOTICE: GCM/6/D: OK

Test vectors and their sources, listed in crypto_test.c source: https://github.com/skiselkov/crypto_test/blob/master/crypto_test.c#L82-L446

Speed test results on an Intel(r) Core(tm) i7-4850HQ CPU @ 2.30GHz:
May 29 13:57:42 illumos speed_test64: [ID 554219 kern.notice] NOTICE: E(CKM_AES_GCM): 2253 MB/s
May 29 13:57:55 illumos speed_test64: [ID 554219 kern.notice] NOTICE: E(CKM_AES_CBC): 1238 MB/s
May 29 13:57:59 illumos speed_test64: [ID 554219 kern.notice] NOTICE: E(CKM_AES_CTR): 3715 MB/s
May 29 13:58:02 illumos speed_test64: [ID 554219 kern.notice] NOTICE: E(CKM_AES_ECB): 5136 MB/s
May 29 13:58:10 illumos speed_test64: [ID 554219 kern.notice] NOTICE: D(CKM_AES_GCM): 2211 MB/s
May 29 13:58:14 illumos speed_test64: [ID 554219 kern.notice] NOTICE: D(CKM_AES_CBC): 4126 MB/s
May 29 13:58:18 illumos speed_test64: [ID 554219 kern.notice] NOTICE: D(CKM_AES_CTR): 3740 MB/s
May 29 13:58:21 illumos speed_test64: [ID 554219 kern.notice] NOTICE: D(CKM_AES_ECB): 5104 MB/s

Issues

  • 0
  • 2
  • 2
  • 4
Description From Last Updated
Robert Mustacchi
Saso Kiselkov
Josef 'Jeff' Sipek
Saso Kiselkov
Review request changed

Status: Discarded

Loading...