Cryptographic functions over raw vectors, including message digests of in-memory data, files and connections, keyed-hash message authentication codes (HMAC), Advanced Encryption Standard (AES) encryption, including authenticated encryption in Galois/Counter Mode (GCM), password-based key derivation (PBKDF2), RSA keys, signatures and encryption, elliptic-curve signatures and key agreement on the curves of the US National Institute of Standards and Technology (NIST) and on X25519, with keys read and written in the Privacy-Enhanced Mail (PEM) and Distinguished Encoding Rules (DER) encodings, constant-time comparison, random bytes from the operating system and hexadecimal encoding, backed by a bundled and pinned copy of the 'Mbed TLS' project's cryptography library, 'TF-PSA-Crypto' (https://github.com/Mbed-TLS/TF-PSA-Crypto). No system cryptographic library, 'Java' or 'Python' is required at install or run time. Algorithm names are matched exactly, and failures are reported as structured conditions. The same primitives, and secure erasure of native buffers, are published to other packages as a static archive and as a registered C interface, so that a package can call them from C without going through R.
Author
Maintainer: Pedro Baltazar pedrobtz@gmail.com [copyright holder]
Authors:
Pedro Baltazar pedrobtz@gmail.com [copyright holder]
Other contributors:
The Mbed TLS Contributors (TF-PSA-Crypto, bundled in src/vendor/tf-psa-crypto) [copyright holder]
Adriaan de Jong (author of TF-PSA-Crypto's cipher and message-digest layers) [contributor, copyright holder]
Daniel King (author of TF-PSA-Crypto's ChaCha20, Poly1305 and ChaCha20-Poly1305 headers) [contributor, copyright holder]
Simon Tatham (author of the Arm-accelerated SHA-512 code, from PuTTY) [contributor, copyright holder]