SWILIB API (X75)    
Loading...
Searching...
No Matches
idea.h File Reference
#include "opensslconf.h"

Go to the source code of this file.

Data Structures

struct  idea_key_st
 

Macros

#define IDEA_ENCRYPT   1
 
#define IDEA_DECRYPT   0
 
#define IDEA_BLOCK   8
 
#define IDEA_KEY_LENGTH   16
 

Typedefs

typedef struct idea_key_st IDEA_KEY_SCHEDULE
 

Functions

const char * idea_options (void)
 
void idea_ecb_encrypt (unsigned char *in, unsigned char *out, IDEA_KEY_SCHEDULE *ks)
 
void idea_set_encrypt_key (unsigned char *key, IDEA_KEY_SCHEDULE *ks)
 
void idea_set_decrypt_key (IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk)
 
void idea_cbc_encrypt (unsigned char *in, unsigned char *out, long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, int enc)
 
void idea_cfb64_encrypt (unsigned char *in, unsigned char *out, long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, int *num, int enc)
 
void idea_ofb64_encrypt (unsigned char *in, unsigned char *out, long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, int *num)
 
void idea_encrypt (unsigned long *in, IDEA_KEY_SCHEDULE *ks)
 

Data Structure Documentation

◆ idea_key_st

struct idea_key_st

Macro Definition Documentation

◆ IDEA_ENCRYPT

#define IDEA_ENCRYPT   1

Definition at line 70 of file idea.h.

◆ IDEA_DECRYPT

#define IDEA_DECRYPT   0

Definition at line 71 of file idea.h.

◆ IDEA_BLOCK

#define IDEA_BLOCK   8

Definition at line 74 of file idea.h.

◆ IDEA_KEY_LENGTH

#define IDEA_KEY_LENGTH   16

Definition at line 75 of file idea.h.

Typedef Documentation

◆ IDEA_KEY_SCHEDULE

Function Documentation

◆ idea_options()

const char * idea_options ( void )

◆ idea_ecb_encrypt()

void idea_ecb_encrypt ( unsigned char * in,
unsigned char * out,
IDEA_KEY_SCHEDULE * ks )

◆ idea_set_encrypt_key()

void idea_set_encrypt_key ( unsigned char * key,
IDEA_KEY_SCHEDULE * ks )

◆ idea_set_decrypt_key()

void idea_set_decrypt_key ( IDEA_KEY_SCHEDULE * ek,
IDEA_KEY_SCHEDULE * dk )

◆ idea_cbc_encrypt()

void idea_cbc_encrypt ( unsigned char * in,
unsigned char * out,
long length,
IDEA_KEY_SCHEDULE * ks,
unsigned char * iv,
int enc )

◆ idea_cfb64_encrypt()

void idea_cfb64_encrypt ( unsigned char * in,
unsigned char * out,
long length,
IDEA_KEY_SCHEDULE * ks,
unsigned char * iv,
int * num,
int enc )

◆ idea_ofb64_encrypt()

void idea_ofb64_encrypt ( unsigned char * in,
unsigned char * out,
long length,
IDEA_KEY_SCHEDULE * ks,
unsigned char * iv,
int * num )

◆ idea_encrypt()

void idea_encrypt ( unsigned long * in,
IDEA_KEY_SCHEDULE * ks )