use crate::{
command::{self, Command},
hmac, object,
response::Response,
};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct VerifyHmacCommand {
pub key_id: object::Id,
pub tag: hmac::Tag,
pub data: Vec<u8>,
}
impl Command for VerifyHmacCommand {
type ResponseType = VerifyHmacResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct VerifyHmacResponse(pub(crate) u8);
impl Response for VerifyHmacResponse {
const COMMAND_CODE: command::Code = command::Code::VerifyHmac;
}