2 Cryptography Factories
This library relies on foreign libraries for the implementations of cryptographic primitives. Each foreign library is called a cryptography provider and it has an associated factory that maps cryptographic algorithm specifiers to implementations.
Cryptography providers may be used to obtain algorithm implementations either explicitly or implicitly. An implementation of a cryptographic algorithm may be obtained explicitly by calling the appropriate function (eg, get-digest, get-cipher, etc) on a factory or list of factories. Alternatively, most functions provided by this library for performing cryptographic operations accept either a implementation object or an algorithm specifier. If an algorithm specifier is given, an implementation is implicitly sought from the factories in (crypto-factories); if no implementation is available, an exception is raised.
procedure
(crypto-factory? v) → boolean?
v : any/c
parameter
(crypto-factories factories) → void? factories : (or/c crypto-factory? (listof crypto-factory?))
The initial value is '().
procedure
(get-factory i) → crypto-factory?
i :
(or/c digest-impl? digest-ctx? cipher-impl? cipher-ctx? pk-impl? pk-parameters? pk-key?)
procedure
(factory-version factory)
→ (or/c (listof exact-nonnegative-integer?) #f) factory : crypto-factory?
procedure
(factory-print-info factory) → void?
factory : crypto-factory?
the version of the underlying foreign library (if known)
the available digests
the available ciphers
the available PK systems
the available EC named curves
the available key-derivation functions
2.1 All Factories
(require crypto/all) | package: crypto-lib |
value
Warning: the order of the factories may change in future versions of this library. This module is intended as a convenience for interactive use, not for developing libraries or applications.
procedure
2.2 Libcrypto (OpenSSL)
(require crypto/libcrypto) | package: crypto-lib |
value
2.3 GCrypt
(require crypto/gcrypt) | package: crypto-lib |
value
2.4 Nettle
(require crypto/nettle) | package: crypto-lib |
value
2.5 Sodium
(require crypto/sodium) | package: crypto-lib |
value
2.6 B2 (Blake2)
(require crypto/b2) | package: crypto-lib |
value
2.7 Argon2
(require crypto/argon2) | package: crypto-lib |
value
2.8 Decaf
(require crypto/decaf) | package: crypto-lib |
Added in version 1.4 of package crypto-lib.
value