CryptoAuthLib v3.7.8
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
cryptoauthlib.atcacert.atcacert_comp_data_t Class Reference
Inheritance diagram for cryptoauthlib.atcacert.atcacert_comp_data_t:
cryptoauthlib.library.AtcaStructure

Static Protected Attributes

int _pack_ = 1
 
int _size_ = 72
 
list _fields_
 

Additional Inherited Members

- Public Member Functions inherited from cryptoauthlib.library.AtcaStructure
None __init__ (self, *args, **kwargs)
 
def from_definition (cls)
 
def check_rationality (cls)
 
def get_field_definition (cls, str name)
 
Any __getattribute__ (self, str name)
 
def __iter__ (self)
 
def __str__ (self)
 
def to_c_code (self, name=None, **kwargs)
 
def update_from_buffer (self, buffer)
 

Detailed Description

CTypes definition of certificate signature storage which includes other certificate metadata
which is why it's often identified as "compresessed cert" for the slot in configurators

Field Documentation

◆ _fields_

list cryptoauthlib.atcacert.atcacert_comp_data_t._fields_
staticprotected
Initial value:
= [
('r', c_uint8*32), # P256 signature 'r' value - big endian
('s', c_uint8*32), # P256 signature 's' value - big endian
('year', c_uint64, 5), # Years after 2000
('month', c_uint64, 4), # Month (0 - 11), see atcacert_tm_utc_t
('day', c_uint64, 5), # Day (1 - 31), see atcacert_tm_utc_t
('hour', c_uint64, 5), # Hour (0 - 23), see atcacert_tm_utc_t
('expire', c_uint64, 5), # Expire years (<=31)
('signer_id', c_uint64, 16), # Value used in the siging cert subject name
('chain_id', c_uint64, 4), # Revision identifier
('template_id', c_uint64, 4), # Location in a chain
('reserved_70_4', c_uint64, 4), # Reserved - lower four bits of byte 70
('sn_source', c_uint64, 4), # Serial number format, see atcacert_cert_sn_src_t
('reserved_71_8', c_uint64, 8) # Reserved - byte 71
]