openpgp-card: move commands
out of the apdu
module
This commit is contained in:
parent
2b0111b923
commit
5440fdeb1e
4 changed files with 5 additions and 5 deletions
|
@ -5,15 +5,15 @@
|
||||||
//! Commands and responses to commands
|
//! Commands and responses to commands
|
||||||
|
|
||||||
pub(crate) mod command;
|
pub(crate) mod command;
|
||||||
pub(crate) mod commands;
|
|
||||||
pub mod response;
|
pub mod response;
|
||||||
|
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
|
|
||||||
use card_backend::{CardCaps, CardTransaction};
|
use card_backend::{CardCaps, CardTransaction};
|
||||||
|
|
||||||
use crate::apdu::command::Expect;
|
use crate::apdu::command::{Command, Expect};
|
||||||
use crate::apdu::{command::Command, response::RawResponse};
|
use crate::apdu::response::RawResponse;
|
||||||
|
use crate::commands;
|
||||||
use crate::{Error, StatusBytes};
|
use crate::{Error, StatusBytes};
|
||||||
|
|
||||||
/// "Maximum amount of bytes in a short APDU command or response" (from pcsc)
|
/// "Maximum amount of bytes in a short APDU command or response" (from pcsc)
|
||||||
|
|
|
@ -10,8 +10,8 @@ use crate::algorithm::{
|
||||||
AlgorithmAttributes, AlgorithmInformation, Curve, EccAttributes, RsaAttributes,
|
AlgorithmAttributes, AlgorithmInformation, Curve, EccAttributes, RsaAttributes,
|
||||||
};
|
};
|
||||||
use crate::apdu::command::Command;
|
use crate::apdu::command::Command;
|
||||||
use crate::apdu::commands;
|
|
||||||
use crate::card_do::{Fingerprint, KeyGenerationTime};
|
use crate::card_do::{Fingerprint, KeyGenerationTime};
|
||||||
|
use crate::commands;
|
||||||
use crate::crypto_data::{
|
use crate::crypto_data::{
|
||||||
CardUploadableKey, EccKey, EccPub, EccType, PrivateKeyMaterial, PublicKeyMaterial, RSAKey,
|
CardUploadableKey, EccKey, EccPub, EccType, PrivateKeyMaterial, PublicKeyMaterial, RSAKey,
|
||||||
RSAPub,
|
RSAPub,
|
||||||
|
|
|
@ -31,6 +31,7 @@ extern crate core;
|
||||||
pub mod algorithm;
|
pub mod algorithm;
|
||||||
pub(crate) mod apdu;
|
pub(crate) mod apdu;
|
||||||
pub mod card_do;
|
pub mod card_do;
|
||||||
|
mod commands;
|
||||||
pub mod crypto_data;
|
pub mod crypto_data;
|
||||||
mod errors;
|
mod errors;
|
||||||
pub(crate) mod keys;
|
pub(crate) mod keys;
|
||||||
|
@ -45,7 +46,6 @@ use tags::{ShortTag, Tags};
|
||||||
|
|
||||||
use crate::algorithm::{AlgoSimple, AlgorithmAttributes, AlgorithmInformation};
|
use crate::algorithm::{AlgoSimple, AlgorithmAttributes, AlgorithmInformation};
|
||||||
use crate::apdu::command::Command;
|
use crate::apdu::command::Command;
|
||||||
use crate::apdu::commands;
|
|
||||||
use crate::apdu::response::RawResponse;
|
use crate::apdu::response::RawResponse;
|
||||||
use crate::card_do::{
|
use crate::card_do::{
|
||||||
ApplicationRelatedData, CardholderRelatedData, Fingerprint, KeyGenerationTime, Lang,
|
ApplicationRelatedData, CardholderRelatedData, Fingerprint, KeyGenerationTime, Lang,
|
||||||
|
|
Loading…
Reference in a new issue