OpenSSL EVP Series 3 --- EVP

zhaozj2021-02-16  37

openssl EVP of Series 3 --- list of supported symmetric encryption algorithm EVP_Encrypt --- written according to author openssl doc / crypto / EVP_EncryptInit.pod and doc / ssleay.txt cipher.doc partially translated and own understanding: DragonKing

Mail: wzhah@263.net

Published in: http://openssl.126.com OpenSSL Professional Forum

Version: OpenSSL-0.9.7 OpenSSL symmetric encryption algorithm is provided in a functional form, in fact, the function returns a structure of the algorithm, which is generally as follows: EVP_CIPHER * EVP _ * (Void) In OpenSSL, all provided symmetry The encryption algorithm is fixed, except for special instructions. The introduction of these algorithms will be described below, first introducing the meaning of the general flag used in the algorithm. [Universal Sign] ECB - ELECTRONIC CODE BOOK Encryption Mode CBC - Encryption Block Link (Cipher Block Chaining) Encryption Method CFB - 64 Bit Encryption Feedback (Cipher Feedback) Encryption How to Ofb - 64 Bit Output Feedback (Output feedback) Encryption method EDE - The encryption algorithm uses encrypted, decrypting, encrypting, encrypting, the first key and the last key are the same EDE3 - the encryption algorithm is encrypted, decrypted, encrypted. However, the three keys are different [NULL algorithm] function: evp_enc_null () Description: This algorithm does not make anything, that is, no encryption processing [DES algorithm] function: EVP_DES_CBC (Void), EVP_DES_ECB (Void), EVP_DES_CFB ( Void), EVP_DES_OFB (VOID) Description: Des Algorithm, ECB mode, CFB mode, and OFB mode [3DES algorithm using two keys] function: EVP_DES_EDE_CBC (Void), EVP_DES_EDE (), EVP_DES_EDE_OFB (Void) , EVP_DES_EDE_CFB (Void) Description: The CBC mode, ECB mode, CFB mode, and OFB mode 3DES algorithm, the first key of the algorithm is the same, in fact, only two keys need only two keys [use three 3DES algorithm for a key: EVP_DES_EDE3_CBC (Void), EVP_DES_EDE3 (), EVP_DES_EDE3_OFB (Void), EVP_DES_EDE3_CFB (Void) Description: The 3DES algorithm of the CBC mode, ECB mode, CFB mode, and OFB mode, algorithm three The key is not the same [DESX algorithm] function: evp_desx_cbc (void) Description: CBC mode DESX algorithm [RC4 algorithm] function: EVP_RC4 (Void) Description: RC4 stream degree algorithm. The key length of the algorithm can be changed, and the default is 128 bits. [40-bit RC4 algorithm] function: EVP_RC4_40 (Void) Description: The key length 40 bit RC4 stream addegite algorithm. This function can be replaced using EVP_RC4 and EVP_CIPHER_CTX_SET_KEY_LENGTH functions. [IDEA Algorithm] Function: EVP_IDEA_CBC (), EVP_IDEA_ECB (Void), EVP_IDEA_CFB (Void), EVP_IDEA_OFB (Void) Description: The CBC mode, ECB mode, CFB mode, and OFB mode IDEA algorithm.

转载请注明原文地址:https://www.9cbs.com/read-23996.html

New Post(0)