adafruit / adafruit/Adafruit_CircuitPython_ATECC

Implement atcab_write_pubkey and atcab_priv_write commands

Open
#7 6 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
20
Forks
23
PR merge metrics
No merged PRs in 30d

Description

`atcab_write_pubkey`: Uses the write command to write a public key to a slot in the proper format.
* https://microchiptech.github.io/cryptoauthlib/a06481.html#ga47cbedeb3c3e9f7cbf2b9433cd60d1aa

`atcab_priv_write`: Executes PrivWrite command, to write externally generated ECC private keys into the device.
* https://microchiptech.github.io/cryptoauthlib/a06481.html#gad01e8e785073d8655de9116e7df8e7b5

uCryptoAuthLib Implementation for `pubkey` (`priv_write` is not implemented): https://github.com/dmazzella/ucryptoauthlib/blob/master/cryptoauthlib/basic.py#L852

Discussion about these commands: https://github.com/MicrochipTech/cryptoauthlib/issues/44

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the CryptoAuthLib documentation for atcab_write_pubkey and atcab_priv_write, then compare the referenced uCryptoAuthLib implementation in cryptoauthlib/basic.py around line 852. Trace how this repository exposes device commands and verify that both public-key and externally generated private-key writes use the documented formats and behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cryptography, embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.