OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
seed.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/crypto.h>
#include <openssl/seed.h>
#include "seed_locl.h"

Go to the source code of this file.

Macros

#define KC0   0x9e3779b9
 
#define KC1   0x3c6ef373
 
#define KC2   0x78dde6e6
 
#define KC3   0xf1bbcdcc
 
#define KC4   0xe3779b99
 
#define KC5   0xc6ef3733
 
#define KC6   0x8dde6e67
 
#define KC7   0x1bbcdccf
 
#define KC8   0x3779b99e
 
#define KC9   0x6ef3733c
 
#define KC10   0xdde6e678
 
#define KC11   0xbbcdccf1
 
#define KC12   0x779b99e3
 
#define KC13   0xef3733c6
 
#define KC14   0xde6e678d
 
#define KC15   0xbcdccf1b
 

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)
 

Macro Definition Documentation

#define KC0   0x9e3779b9

Definition at line 178 of file seed.c.

#define KC1   0x3c6ef373

Definition at line 179 of file seed.c.

#define KC10   0xdde6e678

Definition at line 188 of file seed.c.

#define KC11   0xbbcdccf1

Definition at line 189 of file seed.c.

#define KC12   0x779b99e3

Definition at line 190 of file seed.c.

#define KC13   0xef3733c6

Definition at line 191 of file seed.c.

#define KC14   0xde6e678d

Definition at line 192 of file seed.c.

#define KC15   0xbcdccf1b

Definition at line 193 of file seed.c.

#define KC2   0x78dde6e6

Definition at line 180 of file seed.c.

#define KC3   0xf1bbcdcc

Definition at line 181 of file seed.c.

#define KC4   0xe3779b99

Definition at line 182 of file seed.c.

#define KC5   0xc6ef3733

Definition at line 183 of file seed.c.

#define KC6   0x8dde6e67

Definition at line 184 of file seed.c.

#define KC7   0x1bbcdccf

Definition at line 185 of file seed.c.

#define KC8   0x3779b99e

Definition at line 186 of file seed.c.

#define KC9   0x6ef3733c

Definition at line 187 of file seed.c.

Function Documentation

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_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_set_key ( const unsigned char  rawkey[SEED_KEY_LENGTH],
SEED_KEY_SCHEDULE ks 
)

Definition at line 200 of file seed.c.