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:
Carl Wallace
2019-11-29 09:31:24 -05:00
parent 82b4bbb35d
commit 4210571da3
3 changed files with 36 additions and 10 deletions
+1 -1
View File
@@ -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