OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
seed.h File Reference
#include <openssl/opensslconf.h>
#include <openssl/e_os2.h>
#include <openssl/crypto.h>
#include <sys/types.h>

Go to the source code of this file.

Classes

struct  seed_key_st
 

Macros

#define SEED_BLOCK_SIZE   16
 
#define SEED_KEY_LENGTH   16
 

Typedefs

typedef struct seed_key_st SEED_KEY_SCHEDULE
 

Functions

void SEED_set_key (const unsigned char rawkey[SEED_KEY_LENGTH], SEED_KEY_SCHEDULE *ks)
 
void SEED_encrypt (const unsigned char s[SEED_BLOCK_SIZE], unsigned char d[SEED_BLOCK_SIZE], const SEED_KEY_SCHEDULE *ks)
 
void SEED_decrypt (const unsigned char s[SEED_BLOCK_SIZE], unsigned char d[SEED_BLOCK_SIZE], const SEED_KEY_SCHEDULE *ks)
 
void SEED_ecb_encrypt (const unsigned char *in, unsigned char *out, const SEED_KEY_SCHEDULE *ks, int enc)
 
void SEED_cbc_encrypt (const unsigned char *in, unsigned char *out, size_t len, const SEED_KEY_SCHEDULE *ks, unsigned char ivec[SEED_BLOCK_SIZE], int enc)
 
void SEED_cfb128_encrypt (const unsigned char *in, unsigned char *out, size_t len, const SEED_KEY_SCHEDULE *ks, unsigned char ivec[SEED_BLOCK_SIZE], int *num, int enc)
 
void SEED_ofb128_encrypt (const unsigned char *in, unsigned char *out, size_t len, const SEED_KEY_SCHEDULE *ks, unsigned char ivec[SEED_BLOCK_SIZE], int *num)
 

Macro Definition Documentation

#define SEED_BLOCK_SIZE   16

Definition at line 102 of file seed.h.

#define SEED_KEY_LENGTH   16

Definition at line 103 of file seed.h.

Typedef Documentation

Function Documentation

void SEED_cbc_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const SEED_KEY_SCHEDULE ks,
unsigned char  ivec[SEED_BLOCK_SIZE],
int  enc 
)

Definition at line 55 of file seed_cbc.c.

void SEED_cfb128_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const SEED_KEY_SCHEDULE ks,
unsigned char  ivec[SEED_BLOCK_SIZE],
int *  num,
int  enc 
)

Definition at line 111 of file seed_cfb.c.

void SEED_decrypt ( const unsigned char  s[SEED_BLOCK_SIZE],
unsigned char  d[SEED_BLOCK_SIZE],
const SEED_KEY_SCHEDULE ks 
)

Definition at line 292 of file seed.c.

void SEED_ecb_encrypt ( const unsigned char *  in,
unsigned char *  out,
const SEED_KEY_SCHEDULE ks,
int  enc 
)

Definition at line 54 of file seed_ecb.c.

void SEED_encrypt ( const unsigned char  s[SEED_BLOCK_SIZE],
unsigned char  d[SEED_BLOCK_SIZE],
const SEED_KEY_SCHEDULE ks 
)

Definition at line 249 of file seed.c.

void SEED_ofb128_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const SEED_KEY_SCHEDULE ks,
unsigned char  ivec[SEED_BLOCK_SIZE],
int *  num 
)

Definition at line 111 of file seed_ofb.c.

void SEED_set_key ( const unsigned char  rawkey[SEED_KEY_LENGTH],
SEED_KEY_SCHEDULE ks 
)

Definition at line 200 of file seed.c.