Go to the documentation of this file.
   22 #ifndef AVFORMAT_RTMPCRYPT_H 
   23 #define AVFORMAT_RTMPCRYPT_H 
   48                                 const uint8_t *clientdata, 
int type);
 
   59                           const uint8_t *digest, 
int type);
 
  
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
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.
void ff_rtmpe_encrypt_sig(URLContext *h, uint8_t *signature, const uint8_t *digest, int type)
Encrypt the signature.