Home
last modified time | relevance | path

Searched refs:tmpAtp (Results 1 – 1 of 1) sorted by relevance

/hardware/st/secure_element/ese-spi-driver/utils-lib/
DAtp.cc59 Atp tmpAtp; in Atp_setAtp() local
62 tmpAtp.len = (uint8_t)baAtp[LEN_OFFSET_IN_ATP]; in Atp_setAtp()
64 if (tmpAtp.len > ATP_MAX_ALLOWED_LENGTH) { in Atp_setAtp()
67 memcpy(gATP, baAtp, tmpAtp.len); in Atp_setAtp()
68 tmpAtp.checksum = Atp_getChecksumValue(baAtp, CHECKSUM_OFFSET_IN_ATP); in Atp_setAtp()
71 if (computeCrc(baAtp, LEN_LENGTH_IN_ATP + tmpAtp.len - CRC_LENGTH_IN_ATP) != in Atp_setAtp()
72 tmpAtp.checksum) { in Atp_setAtp()
79 tmpAtp.checksumType = LRC; in Atp_setAtp()
81 tmpAtp.checksumType = CRC; in Atp_setAtp()
90 tmpAtp.vendorID[i] = baAtp[VENDOR_ID_OFFSET_IN_ATP + i]; in Atp_setAtp()
[all …]