Finish eliminating consts module

Either moves constants into their relevant modules, or puts the
remaining ones into `lib.rs`
This commit is contained in:
Tony Arcieri
2019-12-08 09:32:57 -08:00
parent 86b8c6a6db
commit 31efd4e78c
11 changed files with 86 additions and 47 deletions
+8 -2
View File
@@ -49,10 +49,9 @@ use std::convert::TryFrom;
#[cfg(feature = "untested")]
use crate::{
apdu::{Ins, StatusWords},
consts::*,
policy::{PinPolicy, TouchPolicy},
serialization::*,
settings, Buffer,
settings, Buffer, CB_OBJ_MAX,
};
#[cfg(feature = "untested")]
use log::{error, warn};
@@ -64,6 +63,13 @@ const CB_ECC_POINTP256: usize = 65;
#[cfg(feature = "untested")]
const CB_ECC_POINTP384: usize = 97;
#[cfg(feature = "untested")]
const TAG_RSA_MODULUS: u8 = 0x81;
#[cfg(feature = "untested")]
const TAG_RSA_EXP: u8 = 0x82;
#[cfg(feature = "untested")]
const TAG_ECC_POINT: u8 = 0x86;
/// Slot identifiers.
/// <https://developers.yubico.com/PIV/Introduction/Certificate_slots.html>
#[derive(Clone, Copy, Debug, PartialEq)]