Change CHUID struct to hold complete CHUID value. Add getters for subcomponents. Add additional consts to support this. Modified CCCID struct to be public (as prelude to similar treatment).
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ const CCC_TMPL: &[u8] = &[
|
||||
|
||||
/// Cardholder Capability Container (CCC) Identifier
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub struct CCCID([u8; YKPIV_CCCID_SIZE]);
|
||||
pub struct CCCID(pub [u8; YKPIV_CCCID_SIZE]);
|
||||
|
||||
impl CCCID {
|
||||
/// Generate a random CCCID
|
||||
|
||||
Reference in New Issue
Block a user