Skip to content

AssertionError: Number must be an unsigned integer, not a float #11

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

Closed
brentru opened this issue Mar 17, 2020 · 2 comments · Fixed by #12
Closed

AssertionError: Number must be an unsigned integer, not a float #11

brentru opened this issue Mar 17, 2020 · 2 comments · Fixed by #12
Labels
bug Something isn't working

Comments

@brentru
Copy link
Member

brentru commented Mar 17, 2020

as discussed in #10, the simpletest for this library fails:

on 5.0

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Generating keypair...
Encrypting message...
Traceback (most recent call last):
  File "code.py", line 16, in <module>
  File "/lib/adafruit_rsa/pkcs1.py", line 173, in encrypt
  File "/lib/adafruit_rsa/transform.py", line 181, in int2bytes
AssertionError: Number must be an unsigned integer, not a float.

and on 4.1.2

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Generating keypair...
Encrypting message...
Traceback (most recent call last):
  File "code.py", line 16, in <module>
  File "/lib/adafruit_rsa/pkcs1.py", line 173, in encrypt
  File "/lib/adafruit_rsa/transform.py", line 177, in int2bytes
AssertionError: Number must be an unsigned integer, not a float.```
@brentru brentru added the bug Something isn't working label Mar 17, 2020
@brentru brentru self-assigned this Mar 17, 2020
@evaherrada
Copy link
Collaborator

I'll take a look at this today and see if it's something I can fix

@brentru brentru removed their assignment Aug 7, 2020
@evaherrada
Copy link
Collaborator

Fixed by #12

@evaherrada evaherrada linked a pull request Aug 7, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants