#include <stdint.h>
#include "url.h"
Go to the source code of this file.
Functions
Initialize the Diffie-Hellmann context and generate the public key.
More...
Compute the shared secret key and initialize the RC4 encryption.
More...
Update the keystream and set RC4 keys for encryption.
More...
Function Documentation
◆ ff_rtmpe_gen_pub_key()
Initialize the Diffie-Hellmann context and generate the public key.
- Parameters
-
buf handshake data (1536 bytes)
- Returns
- zero on success, negative value otherwise
Definition at line 122 of file rtmpcrypt.c.
Referenced by rtmp_handshake().
◆ ff_rtmpe_compute_secret_key()
const uint8_t *
serverdata,
const uint8_t *
clientdata,
)
Compute the shared secret key and initialize the RC4 encryption.
- Parameters
-
serverdata server data (1536 bytes)
clientdata client data (1536 bytes)
type the position of the server digest
- Returns
- zero on success, negative value otherwise
Definition at line 145 of file rtmpcrypt.c.
Referenced by rtmp_handshake().
◆ ff_rtmpe_encrypt_sig()
uint8_t *
signature,
const uint8_t *
digest,
)
Encrypt the signature.
- Parameters
-
signature the signature to encrypt
digest the digest used for finding the encryption key
type type of encryption (8 for XTEA, 9 for Blowfish)
Definition at line 207 of file rtmpcrypt.c.
Referenced by rtmp_handshake().
◆ ff_rtmpe_update_keystream()
Update the keystream and set RC4 keys for encryption.
- Parameters
-
- Returns
- zero on success, negative value otherwise
Definition at line 223 of file rtmpcrypt.c.
Referenced by rtmp_handshake().