Commit b99931f
authored
[KeyVault] - Provide Encrypt/Decrypt parameter overloads and add managed HSM tests (Azure#13889)
## What
- Add overloads to lead customers down the right path when encrypting / decrypting using AES algorithms
- Add Managed HSM specific test files and coverage
- Remove iv, aad, and tag from Encrypt/Decrypt Options
- Rename tag to authenticationTag
- Add iv, aad, and tag to EncryptResult
## Why
- AES algorithms have a bunch of specific requirements for encryption / decryption and it's a lot to put on the consumer to figure out what needs to get sent with each algorithm., We explored a few approaches and settled cross language on passing a set of algorithm specific encrypt parameters to the method. For TS our implementation uses a discriminated union.
- To test these changes correctly we should start running KV tests against Managed HSM (some algorithms are only supported in Managed HSM). For now we're only running the subset of tests conditionally but once more changes come in I want to make it run all the tests against the MHSM in a single configuration.
Resolves Azure#13843
Resolves Azure#131291 parent c0f6127 commit b99931f
File tree
33 files changed
+3949
-461
lines changed- sdk/keyvault/keyvault-keys
- recordings
- browsers
- cryptographyclient_for_managed_hsm_all_decrypts_happen_remotely_with_aes_crypto_algorithms
- cryptographyclient_for_managed_hsm_all_decrypts_happen_remotely_with_rsa_crypto_algorithms
- cryptographyclient_for_managed_hsm_skipped_if_mhsm_is_not_deployed_with_aes_crypto_algorithms
- keys_client__create_read_update_and_delete_operations_for_managed_hsm
- node
- cryptographyclient_for_managed_hsm_all_decrypts_happen_remotely_with_aes_crypto_algorithms
- cryptographyclient_for_managed_hsm_all_decrypts_happen_remotely_with_rsa_crypto_algorithms
- cryptographyclient_for_managed_hsm_skipped_if_mhsm_is_not_deployed_with_aes_crypto_algorithms
- keys_client__create_read_update_and_delete_operations_for_managed_hsm
- review
- samples
- javascript
- typescript/src
- src
- generated
- models
- swagger
- test
- internal
- public
- utils
33 files changed
+3949
-461
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments