crypto: Add support for AES-CTR operations (#33963)

* Add support for AES-CTR operations

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Update expectations

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* clippy

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Consolidate encrypt/decrypt for AES-CTR

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Update expectations

Signed-off-by: Daniel Adams <msub2official@gmail.com>

---------

Signed-off-by: Daniel Adams <msub2official@gmail.com>
This commit is contained in:
Daniel Adams 2024-10-22 12:32:41 -10:00 committed by GitHub
parent 1c26c0335e
commit 7b392db02f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 339 additions and 9646 deletions

View file

@ -1,20 +0,0 @@
[aes_cbc.https.any.worker.html]
[AES-CBC 128-bit key with mismatched key and algorithm]
expected: FAIL
[AES-CBC 192-bit key with mismatched key and algorithm]
expected: FAIL
[AES-CBC 256-bit key with mismatched key and algorithm]
expected: FAIL
[aes_cbc.https.any.html]
[AES-CBC 128-bit key with mismatched key and algorithm]
expected: FAIL
[AES-CBC 192-bit key with mismatched key and algorithm]
expected: FAIL
[AES-CBC 256-bit key with mismatched key and algorithm]
expected: FAIL

View file

@ -1,200 +0,0 @@
[aes_ctr.https.any.html]
[importKey step: AES-CTR 128-bit key]
expected: FAIL
[importKey step: AES-CTR 192-bit key]
expected: FAIL
[importKey step: AES-CTR 256-bit key]
expected: FAIL
[importKey step: AES-CTR 128-bit key with altered plaintext]
expected: FAIL
[importKey step: AES-CTR 192-bit key with altered plaintext]
expected: FAIL
[importKey step: AES-CTR 256-bit key with altered plaintext]
expected: FAIL
[importKey step for decryption: AES-CTR 128-bit key]
expected: FAIL
[importKey step for decryption: AES-CTR 192-bit key]
expected: FAIL
[importKey step for decryption: AES-CTR 256-bit key]
expected: FAIL
[importKey step for decryption: AES-CTR 128-bit key with altered ciphertext]
expected: FAIL
[importKey step for decryption: AES-CTR 192-bit key with altered ciphertext]
expected: FAIL
[importKey step for decryption: AES-CTR 256-bit key with altered ciphertext]
expected: FAIL
[importKey step: AES-CTR 128-bit key without encrypt usage]
expected: FAIL
[importKey step: AES-CTR 192-bit key without encrypt usage]
expected: FAIL
[importKey step: AES-CTR 256-bit key without encrypt usage]
expected: FAIL
[importKey step: AES-CTR 128-bit key with mismatched key and algorithm]
expected: FAIL
[importKey step: AES-CTR 192-bit key with mismatched key and algorithm]
expected: FAIL
[importKey step: AES-CTR 256-bit key with mismatched key and algorithm]
expected: FAIL
[importKey step: AES-CTR 128-bit key without decrypt usage]
expected: FAIL
[importKey step: AES-CTR 192-bit key without decrypt usage]
expected: FAIL
[importKey step: AES-CTR 256-bit key without decrypt usage]
expected: FAIL
[importKey step: AES-CTR 128-bit key, 0-bit counter]
expected: FAIL
[importKey step: AES-CTR 128-bit key, 129-bit counter]
expected: FAIL
[importKey step: AES-CTR 192-bit key, 0-bit counter]
expected: FAIL
[importKey step: AES-CTR 192-bit key, 129-bit counter]
expected: FAIL
[importKey step: AES-CTR 256-bit key, 0-bit counter]
expected: FAIL
[importKey step: AES-CTR 256-bit key, 129-bit counter]
expected: FAIL
[importKey step: decryption AES-CTR 128-bit key, 0-bit counter]
expected: FAIL
[importKey step: decryption AES-CTR 128-bit key, 129-bit counter]
expected: FAIL
[importKey step: decryption AES-CTR 192-bit key, 0-bit counter]
expected: FAIL
[importKey step: decryption AES-CTR 192-bit key, 129-bit counter]
expected: FAIL
[importKey step: decryption AES-CTR 256-bit key, 0-bit counter]
expected: FAIL
[importKey step: decryption AES-CTR 256-bit key, 129-bit counter]
expected: FAIL
[aes_ctr.https.any.worker.html]
[importKey step: AES-CTR 128-bit key]
expected: FAIL
[importKey step: AES-CTR 192-bit key]
expected: FAIL
[importKey step: AES-CTR 256-bit key]
expected: FAIL
[importKey step: AES-CTR 128-bit key with altered plaintext]
expected: FAIL
[importKey step: AES-CTR 192-bit key with altered plaintext]
expected: FAIL
[importKey step: AES-CTR 256-bit key with altered plaintext]
expected: FAIL
[importKey step for decryption: AES-CTR 128-bit key]
expected: FAIL
[importKey step for decryption: AES-CTR 192-bit key]
expected: FAIL
[importKey step for decryption: AES-CTR 256-bit key]
expected: FAIL
[importKey step for decryption: AES-CTR 128-bit key with altered ciphertext]
expected: FAIL
[importKey step for decryption: AES-CTR 192-bit key with altered ciphertext]
expected: FAIL
[importKey step for decryption: AES-CTR 256-bit key with altered ciphertext]
expected: FAIL
[importKey step: AES-CTR 128-bit key without encrypt usage]
expected: FAIL
[importKey step: AES-CTR 192-bit key without encrypt usage]
expected: FAIL
[importKey step: AES-CTR 256-bit key without encrypt usage]
expected: FAIL
[importKey step: AES-CTR 128-bit key with mismatched key and algorithm]
expected: FAIL
[importKey step: AES-CTR 192-bit key with mismatched key and algorithm]
expected: FAIL
[importKey step: AES-CTR 256-bit key with mismatched key and algorithm]
expected: FAIL
[importKey step: AES-CTR 128-bit key without decrypt usage]
expected: FAIL
[importKey step: AES-CTR 192-bit key without decrypt usage]
expected: FAIL
[importKey step: AES-CTR 256-bit key without decrypt usage]
expected: FAIL
[importKey step: AES-CTR 128-bit key, 0-bit counter]
expected: FAIL
[importKey step: AES-CTR 128-bit key, 129-bit counter]
expected: FAIL
[importKey step: AES-CTR 192-bit key, 0-bit counter]
expected: FAIL
[importKey step: AES-CTR 192-bit key, 129-bit counter]
expected: FAIL
[importKey step: AES-CTR 256-bit key, 0-bit counter]
expected: FAIL
[importKey step: AES-CTR 256-bit key, 129-bit counter]
expected: FAIL
[importKey step: decryption AES-CTR 128-bit key, 0-bit counter]
expected: FAIL
[importKey step: decryption AES-CTR 128-bit key, 129-bit counter]
expected: FAIL
[importKey step: decryption AES-CTR 192-bit key, 0-bit counter]
expected: FAIL
[importKey step: decryption AES-CTR 192-bit key, 129-bit counter]
expected: FAIL
[importKey step: decryption AES-CTR 256-bit key, 0-bit counter]
expected: FAIL
[importKey step: decryption AES-CTR 256-bit key, 129-bit counter]
expected: FAIL