⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 evp_openinit.pod

📁 开源的ssl算法openssl,版本0.9.8H
💻 POD
字号:
=pod=head1 NAMEEVP_OpenInit, EVP_OpenUpdate, EVP_OpenFinal - EVP envelope decryption=head1 SYNOPSIS #include <openssl/evp.h> int EVP_OpenInit(EVP_CIPHER_CTX *ctx,EVP_CIPHER *type,unsigned char *ek,		int ekl,unsigned char *iv,EVP_PKEY *priv); int EVP_OpenUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,         int *outl, unsigned char *in, int inl); int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out,         int *outl);=head1 DESCRIPTIONThe EVP envelope routines are a high level interface to envelopedecryption. They decrypt a public key encrypted symmetric key andthen decrypt data using it.EVP_OpenInit() initializes a cipher context B<ctx> for decryptionwith cipher B<type>. It decrypts the encrypted symmetric key of lengthB<ekl> bytes passed in the B<ek> parameter using the private key B<priv>.The IV is supplied in the B<iv> parameter.EVP_OpenUpdate() and EVP_OpenFinal() have exactly the same propertiesas the EVP_DecryptUpdate() and EVP_DecryptFinal() routines, as documented on the L<EVP_EncryptInit(3)|EVP_EncryptInit(3)> manualpage.=head1 NOTESIt is possible to call EVP_OpenInit() twice in the same way asEVP_DecryptInit(). The first call should have B<priv> set to NULLand (after setting any cipher parameters) it should be called againwith B<type> set to NULL.If the cipher passed in the B<type> parameter is a variable lengthcipher then the key length will be set to the value of the recoveredkey length. If the cipher is a fixed length cipher then the recoveredkey length must match the fixed cipher length.=head1 RETURN VALUESEVP_OpenInit() returns 0 on error or a non zero integer (actually therecovered secret key size) if successful.EVP_OpenUpdate() returns 1 for success or 0 for failure.EVP_OpenFinal() returns 0 if the decrypt failed or 1 for success.=head1 SEE ALSOL<evp(3)|evp(3)>, L<rand(3)|rand(3)>,L<EVP_EncryptInit(3)|EVP_EncryptInit(3)>,L<EVP_SealInit(3)|EVP_SealInit(3)>=head1 HISTORY=cut

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -