use crate::command::{Command, CommandCode};
use crate::object::ObjectId;
use crate::response::Response;
use crate::wrap::WrapNonce;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct UnwrapDataCommand {
pub wrap_key_id: ObjectId,
pub nonce: WrapNonce,
pub ciphertext: Vec<u8>,
}
impl Command for UnwrapDataCommand {
type ResponseType = UnwrapDataResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct UnwrapDataResponse(pub(crate) Vec<u8>);
impl Response for UnwrapDataResponse {
const COMMAND_CODE: CommandCode = CommandCode::UnwrapData;
}