Finish eliminating consts module
Either moves constants into their relevant modules, or puts the remaining ones into `lib.rs`
This commit is contained in:
+8
-2
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user