Skip to content

Commit

Permalink
Sample-keyprovider: fix the wrap-type name of cc-kbc-enc
Browse files Browse the repository at this point in the history
The purpose is to keep consistent with the decryption module in AA.

Signed-off-by: Jiale Zhang <[email protected]>
  • Loading branch information
jialez0 committed Feb 23, 2023
1 parent 55db121 commit d565529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample_keyprovider/src/enc_mods/cc_kbc_enc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn enc_optsdata_gen_anno(optsdata: &[u8], params: Vec<String>) -> Result<Str
kid: kid.to_string(),
wrapped_data: base64::encode(encrypt_optsdata),
iv: base64::encode(nonce.to_vec()),
wrap_type: "A256GCM".to_string(),
wrap_type: "aes_256_gcm".to_string(),
};

serde_json::to_string(&annotation).map_err(|_| anyhow!("Serialize annotation failed"))
Expand Down

0 comments on commit d565529

Please sign in to comment.