FFmpeg
|
Include dependency graph for rc4.c:
Go to the source code of this file.
Typedefs | |
typedef struct AVRC4 | AVRC4 |
Functions | |
int | av_rc4_init (AVRC4 *r, const uint8_t *key, int key_bits, int decrypt) |
Initializes an AVRC4 context. More... | |
void | av_rc4_crypt (AVRC4 *r, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt) |
Encrypts / decrypts using the RC4 algorithm. More... | |
Typedef Documentation
Function Documentation
void av_rc4_crypt | ( | struct AVRC4 * | d, |
uint8_t * | dst, | ||
const uint8_t * | src, | ||
int | count, | ||
uint8_t * | iv, | ||
int | decrypt | ||
) |
Encrypts / decrypts using the RC4 algorithm.
- Parameters
-
count number of bytes dst destination array, can be equal to src src source array, can be equal to dst, may be NULL iv not (yet) used for RC4, should be NULL decrypt 0 for encryption, 1 for decryption, not (yet) used
Definition at line 50 of file rc4.c.
Referenced by ff_asfcrypt_dec(), ff_rtmpe_update_keystream(), rtmpe_read(), and rtmpe_write().
Initializes an AVRC4 context.
- Parameters
-
key_bits must be a multiple of 8 decrypt 0 for encryption, 1 for decryption, currently has no effect
Definition at line 29 of file rc4.c.
Referenced by ff_asfcrypt_dec(), and ff_rtmpe_compute_secret_key().
Generated on Mon Nov 18 2024 06:52:08 for FFmpeg by 1.8.11