crypto: Implement encrypt/decrypt for AES-CBC + JWK support (#33795)

* Add support for raw importKey with AES-CBC

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

* Support JWK import/export, importKey for AES-CBC

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

* Implement encrypt/decrypt for AES-CBC

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

* Update expectations

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

* Update Cargo.lock

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

* Pass MutableHandleObject as arg instead of returning raw pointer

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

* Swap order of checks in generate_key_aes_cbc

- Fixes WPT tests that expect to error on algorithm first before usages

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

* Avoid potential GC hazard with array_buffer_ptr

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

* Update expectations for discards context

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-20 21:32:19 -10:00 committed by GitHub
parent 397c5adf79
commit 45267c9f28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
55 changed files with 163938 additions and 2799 deletions

View file

@ -1,5 +1,20 @@
[aes_cbc.https.any.worker.html]
expected: ERROR
[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]
expected: ERROR
[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,5 +1,200 @@
[aes_ctr.https.any.html]
expected: ERROR
[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]
expected: ERROR
[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

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,650 @@
[rsa_oaep.https.any.worker.html]
expected: ERROR
[importVectorKeys step: RSA-OAEP with SHA-1 and no label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label no encrypt usage]
expected: FAIL
[rsa_oaep.https.any.html]
expected: ERROR
[importVectorKeys step: RSA-OAEP with SHA-1 and no label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label decryption]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label decryption with altered ciphertext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label using publicKey to decrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label no decrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label with altered plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label too long plaintext]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label using privateKey to encrypt]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and no label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and no label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and no label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and no label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and empty label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and empty label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and empty label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and empty label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-1 and a label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-256 and a label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-384 and a label no encrypt usage]
expected: FAIL
[importVectorKeys step: RSA-OAEP with SHA-512 and a label no encrypt usage]
expected: FAIL