CryptoAuthLib
Microchip CryptoAuthentication Library
|
CryptoAuthLib Basic API methods for Write command. More...
Functions | |
ATCA_STATUS | atcab_write (uint8_t zone, uint16_t address, const uint8_t *value, const uint8_t *mac) |
Executes the Write command, which writes either one four byte word or a 32-byte block to one of the EEPROM zones on the device. Depending upon the value of the WriteConfig byte for this slot, the data may be required to be encrypted by the system prior to being sent to the device. This command cannot be used to write slots configured as ECC private keys. More... | |
ATCA_STATUS | atcab_write_zone (uint8_t zone, uint16_t slot, uint8_t block, uint8_t offset, const uint8_t *data, uint8_t len) |
Executes the Write command, which writes either 4 or 32 bytes of data into a device zone. More... | |
ATCA_STATUS | atcab_write_enc (uint16_t key_id, uint8_t block, const uint8_t *data, const uint8_t *enc_key, const uint16_t enc_key_id) |
Executes the Write command, which performs an encrypted write of a 32 byte block into given slot. More... | |
ATCA_STATUS | atcab_write_config_zone (const uint8_t *config_data) |
Executes the Write command, which writes the configuration zone. More... | |
ATCA_STATUS | atcab_write_pubkey (uint16_t slot, const uint8_t *public_key) |
Executes the Write command, which writes a public key to a data slot in the device format. More... | |
ATCA_STATUS | atcab_write_bytes_zone (uint8_t zone, uint16_t slot, size_t offset_bytes, const uint8_t *data, size_t length) |
Executes the Write command, which writes data into the configuration, otp, or data zones with a given byte offset and length. Offset and length must be multiples of a word (4 bytes). More... | |
ATCA_STATUS | atcab_write_config_counter (uint16_t counter_id, uint32_t counter_value) |
Initialize one of the monotonic counters in device with a specific value. More... | |
CryptoAuthLib Basic API methods for Write command.
The Write command writes either one 4-byte word or a 32-byte block to one of the EEPROM zones on the device. Depending upon the value of the WriteConfig byte for a slot, the data may be required to be encrypted by the system prior to being sent to the device