evp (7)
Leading comments
Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAME
evp - high-level cryptographic functionsSYNOPSIS
#include <openssl/evp.h>
DESCRIPTION
TheEVP_Seal... and EVP_Open... provide public key encryption and decryption to implement digital ``envelopes''.
The EVP_DigestSign... and EVP_DigestVerify... functions implement digital signatures and Message Authentication Codes (MACs). Also see the older EVP_Sign... and EVP_Verify... functions.
Symmetric encryption is available with the EVP_Encrypt... functions. The EVP_Digest... functions provide message digests.
The
The
- For key agreement see EVP_PKEY_derive(3)
- For signing and verifying see EVP_PKEY_sign(3), EVP_PKEY_verify(3) and EVP_PKEY_verify_recover(3). However, note that these functions do not perform a digest of the data to be signed. Therefore normally you would use the EVP_DigestSignInit(3) functions for this purpose.
- For encryption and decryption see EVP_PKEY_encrypt(3) and EVP_PKEY_decrypt(3) respectively. However, note that these functions perform encryption and decryption only. As public key encryption is an expensive operation, normally you would wrap an encrypted message in a digital envelope using the EVP_SealInit(3) and EVP_OpenInit(3) functions.
The EVP_BytesToKey(3) function provides some limited support for password based encryption. Careful selection of the parameters will provide a PKCS#5
The EVP_Encode... and EVP_Decode... functions implement base 64 encoding and decoding.
All the symmetric algorithms (ciphers), digests and asymmetric algorithms (public key algorithms) can be replaced by engine(3) modules providing alternative implementations. If
Although low level algorithm specific functions exist for many algorithms their use is discouraged. They cannot be used with an
SEE ALSO
EVP_DigestInit(3), EVP_EncryptInit(3), EVP_OpenInit(3), EVP_SealInit(3), EVP_DigestSignInit(3), EVP_SignInit(3), EVP_VerifyInit(3), EVP_EncodeInit(3), EVP_PKEY_new(3), EVP_PKEY_set1_RSA(3), EVP_PKEY_keygen(3), EVP_PKEY_print_private(3), EVP_PKEY_decrypt(3), EVP_PKEY_encrypt(3), EVP_PKEY_sign(3), EVP_PKEY_verify(3), EVP_PKEY_verify_recover(3), EVP_PKEY_derive(3), EVP_BytesToKey(3), engine(3)COPYRIGHT
Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.Licensed under the OpenSSL license (the ``License''). You may not use this file except in compliance with the License. You can obtain a copy in the file