mbedtls library for pico?

Posted on
  • I noticed the pico supports mbedtls library :-) I'm interested in using any of the AES algorithms and SHA2. What has been implemented and are there any references/examples/tutorials on how to use the crypto library?

  • When 1v82 comes out there'll be documentation in the reference page on espruino.com - until then you can build it yourself by running the scripts/build_docs.py script on the Espruino repository on GitHub.

    There's also some very basic test code at: https://github.com/espruino/Espruino/blo­b/master/tests/test_crypto.js

    Or if you don't want to build the docs, search for occurrences of JSON in https://github.com/espruino/Espruino/blo­b/master/libs/crypto/jswrap_crypto.c

    You currently have:

    • SHA1/224/256/384/512
    • PBKDF2
    • AES CBC/CFB/CTR/ECB

    The API is meant to be just like CryprtoJS - but instead of returning a custom class, functions just return ArrayBuffers

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

mbedtls library for pico?

Posted by Avatar for d0773d @d0773d

Actions