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
added aes-gcm #2165
base: master
Are you sure you want to change the base?
added aes-gcm #2165
Conversation
yea there still need work to be done |
Thanks! So where are we at with this? Does it build and work ok for those test scripts? |
the problem im running into is, the encrypted data being generated from mbedtls is not verifyable (it can decrypt it, but the gcm tag is invalid causing a failed decryption ).. but encrypted data from webcrypt/browser is verifyable in mbed tls |
SIDE note, so instead of hunting down the issue on that yesterday.. i coded up ECDH https://gist.github.com/bmatusiak/a1ac4b31cf5fd4c2c4ac2a9b0fd377ff |
ok i fixed gcm encrypt auth tag |
I changed IV to be a variable length, 16 = {0} is default(for all modes) added
|
this need testing,
but here in a test scripts for espruino and browser
https://gist.github.com/bmatusiak/c4517056a93f96ea904e85b7f5c0ddb5