Eneboo - Documentación para desarrolladores
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/seed.h>
#include "seed_locl.h"
'defines' | |
#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 |
Funciones | |
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) |
#define KC0 0x9e3779b9 |
#define KC1 0x3c6ef373 |
#define KC10 0xdde6e678 |
#define KC11 0xbbcdccf1 |
#define KC12 0x779b99e3 |
#define KC13 0xef3733c6 |
#define KC14 0xde6e678d |
#define KC15 0xbcdccf1b |
#define KC2 0x78dde6e6 |
#define KC3 0xf1bbcdcc |
#define KC4 0xe3779b99 |
#define KC5 0xc6ef3733 |
#define KC6 0x8dde6e67 |
#define KC7 0x1bbcdccf |
#define KC8 0x3779b99e |
#define KC9 0x6ef3733c |
void SEED_decrypt | ( | const unsigned char | s[SEED_BLOCK_SIZE], |
unsigned char | d[SEED_BLOCK_SIZE], | ||
const 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_set_key | ( | const unsigned char | rawkey[SEED_KEY_LENGTH], |
SEED_KEY_SCHEDULE * | ks | ||
) |