webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Macros | Typedefs | Functions
ssl_cipher.c File Reference
#include <openssl/ssl.h>
#include <assert.h>
#include <string.h>
#include <openssl/buf.h>
#include <openssl/err.h>
#include <openssl/md5.h>
#include <openssl/mem.h>
#include <openssl/sha.h>
#include <openssl/stack.h>
#include "internal.h"
#include "../crypto/internal.h"

Classes

struct  cipher_order_st
 
struct  cipher_alias_st
 

Macros

#define CIPHER_ADD   1
 
#define CIPHER_KILL   2
 
#define CIPHER_DEL   3
 
#define CIPHER_ORD   4
 
#define CIPHER_SPECIAL   5
 
#define ITEM_SEP(a)   (((a) == ':') || ((a) == ' ') || ((a) == ';') || ((a) == ','))
 

Typedefs

typedef struct cipher_order_st CIPHER_ORDER
 
typedef struct cipher_alias_st CIPHER_ALIAS
 

Functions

const SSL_CIPHERSSL_get_cipher_by_value (uint16_t value)
 
int ssl_cipher_get_evp_aead (const EVP_AEAD **out_aead, size_t *out_mac_secret_len, size_t *out_fixed_iv_len, const SSL_CIPHER *cipher, uint16_t version)
 
const EVP_MDssl_get_handshake_digest (uint32_t algorithm_prf)
 
 STACK_OF (SSL_CIPHER)
 
uint32_t SSL_CIPHER_get_id (const SSL_CIPHER *cipher)
 
uint16_t ssl_cipher_get_value (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_is_AES (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_has_MD5_HMAC (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_has_SHA1_HMAC (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_has_SHA256_HMAC (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_is_AESGCM (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_is_AES128GCM (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_is_AES128CBC (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_is_AES256CBC (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_is_CHACHA20POLY1305 (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_is_NULL (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_is_block_cipher (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_is_ECDSA (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_is_DHE (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_is_ECDHE (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_is_CECPQ1 (const SSL_CIPHER *cipher)
 
uint16_t SSL_CIPHER_get_min_version (const SSL_CIPHER *cipher)
 
uint16_t SSL_CIPHER_get_max_version (const SSL_CIPHER *cipher)
 
const char * SSL_CIPHER_get_name (const SSL_CIPHER *cipher)
 
const char * SSL_CIPHER_get_kx_name (const SSL_CIPHER *cipher)
 
char * SSL_CIPHER_get_rfc_name (const SSL_CIPHER *cipher)
 
int SSL_CIPHER_get_bits (const SSL_CIPHER *cipher, int *out_alg_bits)
 
const char * SSL_CIPHER_description (const SSL_CIPHER *cipher, char *buf, int len)
 
const char * SSL_CIPHER_get_version (const SSL_CIPHER *cipher)
 
COMP_METHODSSL_COMP_get_compression_methods (void)
 
int SSL_COMP_add_compression_method (int id, COMP_METHOD *cm)
 
const char * SSL_COMP_get_name (const COMP_METHOD *comp)
 
void SSL_COMP_free_compression_methods (void)
 
int ssl_cipher_get_key_type (const SSL_CIPHER *cipher)
 
int ssl_cipher_uses_certificate_auth (const SSL_CIPHER *cipher)
 
int ssl_cipher_requires_server_key_exchange (const SSL_CIPHER *cipher)
 
size_t ssl_cipher_get_record_split_len (const SSL_CIPHER *cipher)
 

Macro Definition Documentation

◆ CIPHER_ADD

#define CIPHER_ADD   1

◆ CIPHER_DEL

#define CIPHER_DEL   3

◆ CIPHER_KILL

#define CIPHER_KILL   2

◆ CIPHER_ORD

#define CIPHER_ORD   4

◆ CIPHER_SPECIAL

#define CIPHER_SPECIAL   5

◆ ITEM_SEP

#define ITEM_SEP (   a)    (((a) == ':') || ((a) == ' ') || ((a) == ';') || ((a) == ','))

Typedef Documentation

◆ CIPHER_ALIAS

◆ CIPHER_ORDER

Function Documentation

◆ SSL_CIPHER_description()

const char* SSL_CIPHER_description ( const SSL_CIPHER cipher,
char *  buf,
int  len 
)

◆ SSL_CIPHER_get_bits()

int SSL_CIPHER_get_bits ( const SSL_CIPHER cipher,
int *  out_alg_bits 
)

◆ ssl_cipher_get_evp_aead()

int ssl_cipher_get_evp_aead ( const EVP_AEAD **  out_aead,
size_t out_mac_secret_len,
size_t out_fixed_iv_len,
const SSL_CIPHER cipher,
uint16_t  version 
)

◆ SSL_CIPHER_get_id()

uint32_t SSL_CIPHER_get_id ( const SSL_CIPHER cipher)

◆ ssl_cipher_get_key_type()

int ssl_cipher_get_key_type ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_get_kx_name()

const char* SSL_CIPHER_get_kx_name ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_get_max_version()

uint16_t SSL_CIPHER_get_max_version ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_get_min_version()

uint16_t SSL_CIPHER_get_min_version ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_get_name()

const char* SSL_CIPHER_get_name ( const SSL_CIPHER cipher)

◆ ssl_cipher_get_record_split_len()

size_t ssl_cipher_get_record_split_len ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_get_rfc_name()

char* SSL_CIPHER_get_rfc_name ( const SSL_CIPHER cipher)

◆ ssl_cipher_get_value()

uint16_t ssl_cipher_get_value ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_get_version()

const char* SSL_CIPHER_get_version ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_has_MD5_HMAC()

int SSL_CIPHER_has_MD5_HMAC ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_has_SHA1_HMAC()

int SSL_CIPHER_has_SHA1_HMAC ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_has_SHA256_HMAC()

int SSL_CIPHER_has_SHA256_HMAC ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_is_AES()

int SSL_CIPHER_is_AES ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_is_AES128CBC()

int SSL_CIPHER_is_AES128CBC ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_is_AES128GCM()

int SSL_CIPHER_is_AES128GCM ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_is_AES256CBC()

int SSL_CIPHER_is_AES256CBC ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_is_AESGCM()

int SSL_CIPHER_is_AESGCM ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_is_block_cipher()

int SSL_CIPHER_is_block_cipher ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_is_CECPQ1()

int SSL_CIPHER_is_CECPQ1 ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_is_CHACHA20POLY1305()

int SSL_CIPHER_is_CHACHA20POLY1305 ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_is_DHE()

int SSL_CIPHER_is_DHE ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_is_ECDHE()

int SSL_CIPHER_is_ECDHE ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_is_ECDSA()

int SSL_CIPHER_is_ECDSA ( const SSL_CIPHER cipher)

◆ SSL_CIPHER_is_NULL()

int SSL_CIPHER_is_NULL ( const SSL_CIPHER cipher)

◆ ssl_cipher_requires_server_key_exchange()

int ssl_cipher_requires_server_key_exchange ( const SSL_CIPHER cipher)

◆ ssl_cipher_uses_certificate_auth()

int ssl_cipher_uses_certificate_auth ( const SSL_CIPHER cipher)

◆ SSL_COMP_add_compression_method()

int SSL_COMP_add_compression_method ( int  id,
COMP_METHOD cm 
)

◆ SSL_COMP_free_compression_methods()

void SSL_COMP_free_compression_methods ( void  )

◆ SSL_COMP_get_compression_methods()

COMP_METHOD* SSL_COMP_get_compression_methods ( void  )

◆ SSL_COMP_get_name()

const char* SSL_COMP_get_name ( const COMP_METHOD comp)

◆ SSL_get_cipher_by_value()

const SSL_CIPHER* SSL_get_cipher_by_value ( uint16_t  value)

◆ ssl_get_handshake_digest()

const EVP_MD* ssl_get_handshake_digest ( uint32_t  algorithm_prf)

◆ STACK_OF()

STACK_OF ( SSL_CIPHER  )