Cryptography

All cryptographic primitives utilized by Arvo are jetted. This is done for performance-related reasons in other parts of the system, but for cryptography this is also extremely important because it allows us to utilize standard reference implementations for the primitives written in C.

All jets related to encryption may be found in pkg/urbit/jets/e/.

In this section we review what specific implementations are utilized. At the moment, only libraries directly related to Ames are documented here, though we note that there are jets for other cryptographic functions such as the SHA Hash Family as well.

Ed25519

Urbit implements Ed25519 based on the SUPERCOP "ref10" implementation. Additionally there is key exchanging and scalar addition included to further aid building a PKI using Ed25519. All code is licensed under the permissive zlib license.

All code is pure ANSI C without any dependencies, except for the random seed generation which uses standard OS cryptography APIs (CryptGenRandom on Windows, /dev/urandom on nix).

AES-SIV

The library we utilize for AES-SIV is an RFC5297-compliant C implementation of AES-SIV written by Daniel Franke on behalf of Akamai Technologies. It is published under the Apache License (v2.0). It uses OpenSSL for the underlying AES and CMAC implementations and follows a similar interface style.

While the jets are found in pkg/urbit/jets/e, the statically-linked package is found at pkg/libas_siv/.

Edit this page on GitHub

Last modified October 8, 2023