mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
rust: Rename Aes256* to Aes256Gcm* and export it
Rename `Aes256*` to `Aes256Gcm*` and add a deprecated constant with the old name for backward compatibility. Adapt existing code to use the new enum variant. Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
committed by
Steffen Eiden
parent
d1d0bd39ba
commit
6e27c2f2e9
@@ -43,7 +43,7 @@ pub fn create(opt: &CreateAttOpt) -> Result<ExitCode> {
|
||||
debug!("Added all host-keys");
|
||||
|
||||
let encr_ctx =
|
||||
ReqEncrCtx::random(SymKeyType::Aes256).context("Failed to generate random input")?;
|
||||
ReqEncrCtx::random(SymKeyType::Aes256Gcm).context("Failed to generate random input")?;
|
||||
let ser_arcb = arcb.encrypt(&encr_ctx)?;
|
||||
warn!("Successfully generated the request");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user