Closed
Description
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.```