use crate::{
command::{self, Command},
object,
response::Response,
wrap,
};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct UnwrapDataCommand {
pub wrap_key_id: object::Id,
pub nonce: wrap::Nonce,
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: command::Code = command::Code::UnwrapData;
}