OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
set_key.c File Reference
#include "des_locl.h"
#include <openssl/crypto.h>

Go to the source code of this file.

Macros

#define NUM_WEAK_KEY   16
 
#define HPERM_OP(a, t, n, m)
 

Functions

 OPENSSL_IMPLEMENT_GLOBAL (int, DES_check_key, 0)
 
void DES_set_odd_parity (DES_cblock *key)
 
int DES_check_key_parity (const_DES_cblock *key)
 
int DES_is_weak_key (const_DES_cblock *key)
 
int DES_set_key (const_DES_cblock *key, DES_key_schedule *schedule)
 
int DES_set_key_checked (const_DES_cblock *key, DES_key_schedule *schedule)
 
void DES_set_key_unchecked (const_DES_cblock *key, DES_key_schedule *schedule)
 
int DES_key_sched (const_DES_cblock *key, DES_key_schedule *schedule)
 

Macro Definition Documentation

#define HPERM_OP (   a,
  t,
  n,
 
)
Value:
((t)=((((a)<<(16-(n)))^(a))&(m)),\
(a)=(a)^(t)^(t>>(16-(n))))

Definition at line 162 of file set_key.c.

#define NUM_WEAK_KEY   16

Definition at line 119 of file set_key.c.

Function Documentation

int DES_check_key_parity ( const_DES_cblock key)

Definition at line 98 of file set_key.c.

int DES_is_weak_key ( const_DES_cblock key)

Definition at line 140 of file set_key.c.

int DES_key_sched ( const_DES_cblock key,
DES_key_schedule schedule 
)

Definition at line 406 of file set_key.c.

int DES_set_key ( const_DES_cblock key,
DES_key_schedule schedule 
)

Definition at line 312 of file set_key.c.

int DES_set_key_checked ( const_DES_cblock key,
DES_key_schedule schedule 
)

Definition at line 329 of file set_key.c.

void DES_set_key_unchecked ( const_DES_cblock key,
DES_key_schedule schedule 
)

Definition at line 339 of file set_key.c.

void DES_set_odd_parity ( DES_cblock key)

Definition at line 90 of file set_key.c.

OPENSSL_IMPLEMENT_GLOBAL ( int  ,
DES_check_key  ,
 
)

Definition at line 70 of file set_key.c.