use super::sign_hmac::HmacTag;
use crate::command::{Command, CommandCode};
use crate::object::ObjectId;
use crate::response::Response;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct VerifyHMACCommand {
pub key_id: ObjectId,
pub tag: HmacTag,
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: CommandCode = CommandCode::VerifyHmac;
}