use crate::command::{Command, CommandCode};
use crate::object::ObjectId;
use crate::response::Response;
use crate::session::securechannel::{Challenge, Cryptogram};
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct CreateSessionCommand {
pub authentication_key_id: ObjectId,
pub host_challenge: Challenge,
}
impl Command for CreateSessionCommand {
type ResponseType = CreateSessionResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct CreateSessionResponse {
pub card_challenge: Challenge,
pub card_cryptogram: Cryptogram,
}
impl Response for CreateSessionResponse {
const COMMAND_CODE: CommandCode = CommandCode::CreateSession;
}