Date handling with regard to certificates. More...
Functions | |
atcacert_date_format_t | atcacert_date_from_asn1_tag (const uint8_t tag) |
Convert the asn1 tag for the supported time formats into the local time format. | |
ATCA_STATUS | atcacert_date_enc (atcacert_date_format_t format, const atcacert_tm_utc_t *timestamp, uint8_t *formatted_date, size_t *formatted_date_size) |
Format a timestamp according to the format type. | |
ATCA_STATUS | atcacert_date_dec (atcacert_date_format_t format, const uint8_t *formatted_date, size_t formatted_date_size, atcacert_tm_utc_t *timestamp) |
Parse a formatted timestamp according to the specified format. | |
ATCA_STATUS | atcacert_date_get_max_date (atcacert_date_format_t format, atcacert_tm_utc_t *timestamp) |
Return the maximum date available for the given format. | |
ATCA_STATUS | atcacert_date_enc_compcert (const atcacert_tm_utc_t *issue_date, uint8_t expire_years, uint8_t enc_dates[3]) |
Encode the issue and expire dates in the format used by the compressed certificate. | |
ATCA_STATUS | atcacert_date_enc_compcert_ext (const atcacert_tm_utc_t *issue_date, uint8_t expire_years, uint8_t comp_cert[72u]) |
Encode the issue and expire dates in the format used by the compressed certificate. | |
ATCA_STATUS | atcacert_date_dec_compcert (const uint8_t enc_dates[3], atcacert_date_format_t expire_date_format, atcacert_tm_utc_t *issue_date, atcacert_tm_utc_t *expire_date) |
Decode the issue and expire dates from the format used by the compressed certificate. | |
ATCA_STATUS | atcacert_date_dec_compcert_ext (const uint8_t comp_cert[72u], atcacert_date_format_t expire_date_format, atcacert_tm_utc_t *issue_date, atcacert_tm_utc_t *expire_date) |
Decode the issue and expire dates from the format used by the compressed certificate. | |
int | atcacert_date_cmp (const atcacert_tm_utc_t *timestamp1, const atcacert_tm_utc_t *timestamp2) |
Compare two dates. | |
Variables | |
const size_t | ATCACERT_DATE_FORMAT_SIZES [5] |
Date handling with regard to certificates.