mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-03 15:37:12 +02:00
.github
bin
cmake
module
vendor
CPR
CivetWeb
ConcurrentQueue
DPP
buildtools
cmake
docpages
include
library
library-vcpkg
src
testdata
vcpkg
win32
32
bin
include
openssl
__DECC_INCLUDE_EPILOGUE.H
__DECC_INCLUDE_PROLOGUE.H
aes.h
applink.c
asn1.h
asn1_mac.h
asn1err.h
asn1t.h
async.h
asyncerr.h
bio.h
bioerr.h
blowfish.h
bn.h
bnerr.h
buffer.h
buffererr.h
camellia.h
cast.h
cmac.h
cms.h
cmserr.h
comp.h
comperr.h
conf.h
conf_api.h
conferr.h
crypto.h
cryptoerr.h
ct.h
cterr.h
des.h
dh.h
dherr.h
dsa.h
dsaerr.h
dtls1.h
e_os2.h
ebcdic.h
ec.h
ecdh.h
ecdsa.h
ecerr.h
engine.h
engineerr.h
err.h
evp.h
evperr.h
hmac.h
idea.h
kdf.h
kdferr.h
lhash.h
md2.h
md4.h
md5.h
mdc2.h
modes.h
obj_mac.h
objects.h
objectserr.h
ocsp.h
ocsperr.h
opensslconf.h
opensslv.h
ossl_typ.h
pem.h
pem2.h
pemerr.h
pkcs12.h
pkcs12err.h
pkcs7.h
pkcs7err.h
rand.h
rand_drbg.h
randerr.h
rc2.h
rc4.h
rc5.h
ripemd.h
rsa.h
rsaerr.h
safestack.h
seed.h
sha.h
srp.h
srtp.h
ssl.h
ssl2.h
ssl3.h
sslerr.h
stack.h
store.h
storeerr.h
symhacks.h
tls1.h
ts.h
tserr.h
txt_db.h
ui.h
uierr.h
whrlpool.h
x509.h
x509_vfy.h
x509err.h
x509v3.h
x509v3err.h
opus
sodium
sodium.h
zconf.h
zlib.h
lib
CMakeLists.txt
CMakeSettings.json
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile
Doxyfile
LICENSE
README.md
SECURITY.md
dpp.pc.in
makerelease.sh
settings.json
Fmt
Inja
JSON
MDBC
MaxmindDB
POCO
PUGIXML
RPMalloc
SAJSON
SimpleIni
Squirrel
TinyDir
UTF8
ZMQ
xxHash
CMakeLists.txt
.gitignore
.gitmodules
CMakeLists.txt
LICENSE
README.md
54 lines
1.6 KiB
C
54 lines
1.6 KiB
C
/*
|
|
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
* in the file LICENSE in the source distribution or at
|
|
* https://www.openssl.org/source/license.html
|
|
*/
|
|
|
|
#ifndef HEADER_CAST_H
|
|
# define HEADER_CAST_H
|
|
|
|
# include <openssl/opensslconf.h>
|
|
|
|
# ifndef OPENSSL_NO_CAST
|
|
# ifdef __cplusplus
|
|
extern "C" {
|
|
# endif
|
|
|
|
# define CAST_ENCRYPT 1
|
|
# define CAST_DECRYPT 0
|
|
|
|
# define CAST_LONG unsigned int
|
|
|
|
# define CAST_BLOCK 8
|
|
# define CAST_KEY_LENGTH 16
|
|
|
|
typedef struct cast_key_st {
|
|
CAST_LONG data[32];
|
|
int short_key; /* Use reduced rounds for short key */
|
|
} CAST_KEY;
|
|
|
|
void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data);
|
|
void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out,
|
|
const CAST_KEY *key, int enc);
|
|
void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key);
|
|
void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key);
|
|
void CAST_cbc_encrypt(const unsigned char *in, unsigned char *out,
|
|
long length, const CAST_KEY *ks, unsigned char *iv,
|
|
int enc);
|
|
void CAST_cfb64_encrypt(const unsigned char *in, unsigned char *out,
|
|
long length, const CAST_KEY *schedule,
|
|
unsigned char *ivec, int *num, int enc);
|
|
void CAST_ofb64_encrypt(const unsigned char *in, unsigned char *out,
|
|
long length, const CAST_KEY *schedule,
|
|
unsigned char *ivec, int *num);
|
|
|
|
# ifdef __cplusplus
|
|
}
|
|
# endif
|
|
# endif
|
|
|
|
#endif
|