📄 rc4.pod
字号:
=pod=head1 NAMERC4_set_key, RC4 - RC4 encryption=head1 SYNOPSIS #include <openssl/rc4.h> void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data); void RC4(RC4_KEY *key, unsigned long len, const unsigned char *indata, unsigned char *outdata);=head1 DESCRIPTIONThis library implements the Alleged RC4 cipher, which is described forexample in I<Applied Cryptography>. It is believed to be compatiblewith RC4[TM], a proprietary cipher of RSA Security Inc.RC4 is a stream cipher with variable key length. Typically, 128 bit(16 byte) keys are used for strong encryption, but shorter insecurekey sizes have been widely used due to export restrictions.RC4 consists of a key setup phase and the actual encryption ordecryption phase.RC4_set_key() sets up the B<RC4_KEY> B<key> using the B<len> bytes longkey at B<data>.RC4() encrypts or decrypts the B<len> bytes of data at B<indata> usingB<key> and places the result at B<outdata>. Repeated RC4() calls withthe same B<key> yield a continuous key stream.Since RC4 is a stream cipher (the input is XORed with a pseudo-randomkey stream to produce the output), decryption uses the same functioncalls as encryption.Applications should use the higher level functionsL<EVP_EncryptInit(3)|EVP_EncryptInit(3)>etc. instead of calling the RC4 functions directly.=head1 RETURN VALUESRC4_set_key() and RC4() do not return values.=head1 NOTECertain conditions have to be observed to securely use stream ciphers.It is not permissible to perform multiple encryptions using the samekey stream.=head1 SEE ALSOL<blowfish(3)|blowfish(3)>, L<des(3)|des(3)>, L<rc2(3)|rc2(3)>=head1 HISTORYRC4_set_key() and RC4() are available in all versions of SSLeay and OpenSSL.=cut
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -