You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.3 KiB
60 lines
2.3 KiB
14 years ago
|
/* ====================================================================
|
||
|
* Copyright (c) 2008 The OpenSSL Project. All rights reserved.
|
||
|
*
|
||
|
* Rights for redistribution and usage in source and binary
|
||
|
* forms are granted according to the OpenSSL license.
|
||
|
*/
|
||
|
|
||
|
#include <stddef.h>
|
||
|
|
||
|
typedef void (*block128_f)(const unsigned char in[16],
|
||
|
unsigned char out[16],
|
||
|
const void *key);
|
||
|
|
||
|
typedef void (*cbc128_f)(const unsigned char *in, unsigned char *out,
|
||
|
size_t len, const void *key,
|
||
|
unsigned char ivec[16], int enc);
|
||
|
|
||
|
void CRYPTO_cbc128_encrypt(const unsigned char *in, unsigned char *out,
|
||
|
size_t len, const void *key,
|
||
|
unsigned char ivec[16], block128_f block);
|
||
|
void CRYPTO_cbc128_decrypt(const unsigned char *in, unsigned char *out,
|
||
|
size_t len, const void *key,
|
||
|
unsigned char ivec[16], block128_f block);
|
||
|
|
||
|
void CRYPTO_ctr128_encrypt(const unsigned char *in, unsigned char *out,
|
||
|
size_t len, const void *key,
|
||
|
unsigned char ivec[16], unsigned char ecount_buf[16],
|
||
|
unsigned int *num, block128_f block);
|
||
|
|
||
|
void CRYPTO_ofb128_encrypt(const unsigned char *in, unsigned char *out,
|
||
|
size_t len, const void *key,
|
||
|
unsigned char ivec[16], int *num,
|
||
|
block128_f block);
|
||
|
|
||
|
void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out,
|
||
|
size_t len, const void *key,
|
||
|
unsigned char ivec[16], int *num,
|
||
|
int enc, block128_f block);
|
||
|
void CRYPTO_cfb128_8_encrypt(const unsigned char *in, unsigned char *out,
|
||
|
size_t length, const void *key,
|
||
|
unsigned char ivec[16], int *num,
|
||
|
int enc, block128_f block);
|
||
|
void CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out,
|
||
|
size_t bits, const void *key,
|
||
|
unsigned char ivec[16], int *num,
|
||
|
int enc, block128_f block);
|
||
|
|
||
|
size_t CRYPTO_cts128_encrypt_block(const unsigned char *in, unsigned char *out,
|
||
|
size_t len, const void *key,
|
||
|
unsigned char ivec[16], block128_f block);
|
||
|
size_t CRYPTO_cts128_encrypt(const unsigned char *in, unsigned char *out,
|
||
|
size_t len, const void *key,
|
||
|
unsigned char ivec[16], cbc128_f cbc);
|
||
|
size_t CRYPTO_cts128_decrypt_block(const unsigned char *in, unsigned char *out,
|
||
|
size_t len, const void *key,
|
||
|
unsigned char ivec[16], block128_f block);
|
||
|
size_t CRYPTO_cts128_decrypt(const unsigned char *in, unsigned char *out,
|
||
|
size_t len, const void *key,
|
||
|
unsigned char ivec[16], cbc128_f cbc);
|