cosmian_kms_cli 5.20.0

Command Line Interface used to manage the KMS server If any assistance is needed, please either visit the Cosmian technical documentation at https://docs.cosmian.com or contact the Cosmian support team on Discord https://discord.com/invite/7kPMNtHpnz
Documentation
use cosmian_logger::log_init;
use test_kms_server::start_default_test_kms_server;

use crate::{
    actions::kms::{hash::HashAction, mac::CHashingAlgorithm},
    error::result::KmsCliResult,
};

#[tokio::test]
pub(super) async fn test_hash() -> KmsCliResult<()> {
    log_init(None);
    let ctx = start_default_test_kms_server().await;

    HashAction {
        hashing_algorithm: CHashingAlgorithm::SHA3_256,
        data: Some("010203".to_owned()),
        correlation_value: None,
        init_indicator: false,
        final_indicator: false,
    }
    .run(ctx.get_owner_client())
    .await?;

    Ok(())
}