|crypto(3)||OpenSSL cryptographic library|
|crypto, crypto_get_driverid, crypto_dispatch, crypto_done, crypto_freereq, crypto_freesession, crypto_getreq, crypto_newsession, crypto_register, crypto_unregister(9)||API for cryptographic services in the kernel|
|CRYPTO(3)||Library Functions Manual||CRYPTO(3)|
crypto — OpenSSL
The OpenSSL crypto library implements a wide range of cryptographic algorithms used in various Internet standards. The services provided by this library are used by the OpenSSL implementations of TLS and S/MIME, and they have also been used to implement SSH, OpenPGP, and other cryptographic standards.
Symmetric ciphers including AES, Blowfish, CAST, Chacha20, IDEA, DES, RC2, and RC4 are provided by the generic interface EVP_EncryptInit(3). Low-level stand-alone interfaces include AES_encrypt(3), BF_set_key(3), DES_set_key(3), and RC4(3).
Auxiliary features include:
Some of the newer functions follow a naming convention using the numbers ‘0’ and ‘1’. For example consider the names of these functions:
*crl, X509_REVOKED *rev);
*x, ASN1_OBJECT *obj);
The ‘0’ version uses the supplied structure pointer directly in the parent and it will be freed up when the parent is freed. In the above example crl would be freed but rev would not.
The ‘1’ function uses a copy of the supplied structure pointer (or in some cases increases its link count) in the parent and so both (x and obj above) should be freed up.
|August 28, 2019||OpenBSD-current|