09939f0ba9
* Allow passing AssociatedData factories in keysutil This allows the high-level, algorithm-agnostic Encrypt/Decrypt with Factory to pass in AssociatedData, and potentially take multiple factories (to allow KMS keys to work). On AEAD ciphers with a relevant factory, an AssociatedData factory will be used to populate the AdditionalData field of the SymmetricOpts struct, using it in the AEAD Seal process. Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> * Add associated_data to Transit Encrypt/Decrypt API This allows passing the associated_data (the last AD in AEAD) to Transit's encrypt/decrypt when using an AEAD cipher (currently aes128-gcm96, aes256-gcm96, and chacha20-poly1305). We err if this parameter is passed on non-AEAD ciphers presently. This associated data can be safely transited in plaintext, without risk of modifications. In the event of tampering with either the ciphertext or the associated data, decryption will fail. Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> * Add changelog Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> * Add to documentation Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> |
||
---|---|---|
.. | ||
cmd/transit | ||
backend.go | ||
backend_test.go | ||
path_backup.go | ||
path_backup_test.go | ||
path_cache_config.go | ||
path_cache_config_test.go | ||
path_config.go | ||
path_config_test.go | ||
path_datakey.go | ||
path_decrypt.go | ||
path_decrypt_bench_test.go | ||
path_decrypt_test.go | ||
path_encrypt.go | ||
path_encrypt_bench_test.go | ||
path_encrypt_test.go | ||
path_export.go | ||
path_export_test.go | ||
path_hash.go | ||
path_hash_test.go | ||
path_hmac.go | ||
path_hmac_test.go | ||
path_import.go | ||
path_import_test.go | ||
path_keys.go | ||
path_keys_test.go | ||
path_random.go | ||
path_random_test.go | ||
path_restore.go | ||
path_restore_test.go | ||
path_rewrap.go | ||
path_rewrap_test.go | ||
path_rotate.go | ||
path_sign_verify.go | ||
path_sign_verify_test.go | ||
path_trim.go | ||
path_trim_test.go | ||
path_wrapping_key.go | ||
path_wrapping_key_test.go | ||
stepwise_test.go |