-
Notifications
You must be signed in to change notification settings - Fork 19
Implement atcab_write_pubkey and atcab_priv_write commands #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'd suggest splitting this library into more modules so folks can import just the bits they need to use. |
@tannewt I have some of this library split, but would like some advice on what to split out further. Here's my start:
|
I like the idea of having modules for random and hashlib! What functions are left in the regular atecc module? |
Random would contain the following from the atecc module:
hashlib would contain:
Which leave us with a few public, non-driver-specific methods like: These could be moved to a class within |
I like the hashlib idea and please ensure the API matches CPython's hashlib. Looks like this would work to mimic for ECDSA: https://github.com/warner/python-ecdsa Can you find similar analogs for sign and gen_key? |
That lib is promising. I'd need to adapt
|
atcab_write_pubkey
: Uses the write command to write a public key to a slot in the proper format.atcab_priv_write
: Executes PrivWrite command, to write externally generated ECC private keys into the device.uCryptoAuthLib Implementation for
pubkey
(priv_write
is not implemented): https://github.com/dmazzella/ucryptoauthlib/blob/master/cryptoauthlib/basic.py#L852Discussion about these commands: MicrochipTech/cryptoauthlib#44
The text was updated successfully, but these errors were encountered: