22 #ifndef AVFORMAT_RTMPCRYPT_H 23 #define AVFORMAT_RTMPCRYPT_H
void ff_rtmpe_encrypt_sig(URLContext *h, uint8_t *signature, const uint8_t *digest, int type)
Encrypt the signature.
static const char signature[]
int ff_rtmpe_gen_pub_key(URLContext *h, uint8_t *buf)
Initialize the Diffie-Hellmann context and generate the public key.
int ff_rtmpe_compute_secret_key(URLContext *h, const uint8_t *serverdata, const uint8_t *clientdata, int type)
Compute the shared secret key and initialize the RC4 encryption.
int ff_rtmpe_update_keystream(URLContext *h)
Update the keystream and set RC4 keys for encryption.
unbuffered private I/O API