webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions | Variables
cipher_driver.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "getopt_s.h"
#include "cipher.h"
#include "aes_icm.h"

Macros

#define PRINT_DEBUG   0
 
#define INITIAL_BUFLEN   1024
 

Functions

void cipher_driver_test_throughput (srtp_cipher_t *c)
 
srtp_err_status_t cipher_driver_self_test (srtp_cipher_type_t *ct)
 
srtp_err_status_t cipher_driver_test_buffering (srtp_cipher_t *c)
 
srtp_err_status_t cipher_driver_test_array_throughput (srtp_cipher_type_t *ct, int klen, int num_cipher)
 
void cipher_array_test_throughput (srtp_cipher_t *ca[], int num_cipher)
 
uint64_t cipher_array_bits_per_second (srtp_cipher_t *cipher_array[], int num_cipher, unsigned octets_in_buffer, int num_trials)
 
srtp_err_status_t cipher_array_delete (srtp_cipher_t *cipher_array[], int num_cipher)
 
srtp_err_status_t cipher_array_alloc_init (srtp_cipher_t ***cipher_array, int num_ciphers, srtp_cipher_type_t *ctype, int klen)
 
void usage (char *prog_name)
 
void check_status (srtp_err_status_t s)
 
int main (int argc, char *argv[])
 

Variables

srtp_cipher_type_t srtp_null_cipher
 
srtp_cipher_type_t srtp_aes_icm
 

Macro Definition Documentation

◆ INITIAL_BUFLEN

#define INITIAL_BUFLEN   1024

◆ PRINT_DEBUG

#define PRINT_DEBUG   0

Function Documentation

◆ check_status()

void check_status ( srtp_err_status_t  s)

◆ cipher_array_alloc_init()

srtp_err_status_t cipher_array_alloc_init ( srtp_cipher_t ***  cipher_array,
int  num_ciphers,
srtp_cipher_type_t ctype,
int  klen 
)

◆ cipher_array_bits_per_second()

uint64_t cipher_array_bits_per_second ( srtp_cipher_t cipher_array[],
int  num_cipher,
unsigned  octets_in_buffer,
int  num_trials 
)

◆ cipher_array_delete()

srtp_err_status_t cipher_array_delete ( srtp_cipher_t cipher_array[],
int  num_cipher 
)

◆ cipher_array_test_throughput()

void cipher_array_test_throughput ( srtp_cipher_t ca[],
int  num_cipher 
)

◆ cipher_driver_self_test()

srtp_err_status_t cipher_driver_self_test ( srtp_cipher_type_t ct)

◆ cipher_driver_test_array_throughput()

srtp_err_status_t cipher_driver_test_array_throughput ( srtp_cipher_type_t ct,
int  klen,
int  num_cipher 
)

◆ cipher_driver_test_buffering()

srtp_err_status_t cipher_driver_test_buffering ( srtp_cipher_t c)

◆ cipher_driver_test_throughput()

void cipher_driver_test_throughput ( srtp_cipher_t c)

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ usage()

void usage ( char *  prog_name)

Variable Documentation

◆ srtp_aes_icm

srtp_cipher_type_t srtp_aes_icm

◆ srtp_null_cipher

srtp_cipher_type_t srtp_null_cipher