adafruit / adafruit/Adafruit_CircuitPython_RSA

Request to import pyasn1 library for adafruit_rsa

Open
#46 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
10
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Once loaded adfruit_rsa, I get this error when running commands like:
```
adafruit_rsa.PublicKey.save_pkcs1(public_key)
```
```
Traceback (most recent call last):
File "adafruit_rsa/key.py", line 267, in _save_pkcs1_der
ImportError: no module named 'pyasn1'
```

Would be possible to import/add pysasn1's library ([gitrepo](https://github.com/etingof/pyasn1)) in the bundle?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at adafruit_rsa/key.py line 267 and inspect _save_pkcs1_der and its pyasn1 dependency. Confirm how the bundled library should be added, then run the PublicKey.save_pkcs1 example to verify the ImportError is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cryptography, security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.