/* * Copyright 2008-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_MODES_H # define HEADER_MODES_H # include <stddef.h> # ifdef __cplusplus extern "C" { # endif 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); typedef void (*ctr128_f) (const unsigned char *in, unsigned char *out, size_t blocks, const void *key, const unsigned char ivec[16]); typedef void (*ccm128_f) (const unsigned char *in, unsigned char *out, size_t blocks, const void *key, const unsigned char ivec[16], unsigned char cmac[16]); 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_ctr128_encrypt_ctr32(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, ctr128_f ctr); 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); size_t CRYPTO_nistcts128_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_nistcts128_encrypt(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], cbc128_f cbc); size_t CRYPTO_nistcts128_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_nistcts128_decrypt(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], cbc128_f cbc); typedef struct gcm128_context GCM128_CONTEXT; GCM128_CONTEXT *CRYPTO_gcm128_new(void *key, block128_f block); void CRYPTO_gcm128_init(GCM128_CONTEXT *ctx, void *key, block128_f block); void CRYPTO_gcm128_setiv(GCM128_CONTEXT *ctx, const unsigned char *iv, size_t len); int CRYPTO_gcm128_aad(GCM128_CONTEXT *ctx, const unsigned char *aad, size_t len); int CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len); int CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len); int CRYPTO_gcm128_encrypt_ctr32(GCM128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len, ctr128_f stream); int CRYPTO_gcm128_decrypt_ctr32(GCM128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len, ctr128_f stream); int CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx, const unsigned char *tag, size_t len); void CRYPTO_gcm128_tag(GCM128_CONTEXT *ctx, unsigned char *tag, size_t len); void CRYPTO_gcm128_release(GCM128_CONTEXT *ctx); typedef struct ccm128_context CCM128_CONTEXT; void CRYPTO_ccm128_init(CCM128_CONTEXT *ctx, unsigned int M, unsigned int L, void *key, block128_f block); int CRYPTO_ccm128_setiv(CCM128_CONTEXT *ctx, const unsigned char *nonce, size_t nlen, size_t mlen); void CRYPTO_ccm128_aad(CCM128_CONTEXT *ctx, const unsigned char *aad, size_t alen); int CRYPTO_ccm128_encrypt(CCM128_CONTEXT *ctx, const unsigned char *inp, unsigned char *out, size_t len); int CRYPTO_ccm128_decrypt(CCM128_CONTEXT *ctx, const unsigned char *inp, unsigned char *out, size_t len); int CRYPTO_ccm128_encrypt_ccm64(CCM128_CONTEXT *ctx, const unsigned char *inp, unsigned char *out, size_t len, ccm128_f stream); int CRYPTO_ccm128_decrypt_ccm64(CCM128_CONTEXT *ctx, const unsigned char *inp, unsigned char *out, size_t len, ccm128_f stream); size_t CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx, unsigned char *tag, size_t len); typedef struct xts128_context XTS128_CONTEXT; int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char iv[16], const unsigned char *inp, unsigned char *out, size_t len, int enc); size_t CRYPTO_128_wrap(void *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block); size_t CRYPTO_128_unwrap(void *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block); size_t CRYPTO_128_wrap_pad(void *key, const unsigned char *icv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block); size_t CRYPTO_128_unwrap_pad(void *key, const unsigned char *icv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block); # ifndef OPENSSL_NO_OCB typedef struct ocb128_context OCB128_CONTEXT; typedef void (*ocb128_f) (const unsigned char *in, unsigned char *out, size_t blocks, const void *key, size_t start_block_num, unsigned char offset_i[16], const unsigned char L_[][16], unsigned char checksum[16]); OCB128_CONTEXT *CRYPTO_ocb128_new(void *keyenc, void *keydec, block128_f encrypt, block128_f decrypt, ocb128_f stream); int CRYPTO_ocb128_init(OCB128_CONTEXT *ctx, void *keyenc, void *keydec, block128_f encrypt, block128_f decrypt, ocb128_f stream); int CRYPTO_ocb128_copy_ctx(OCB128_CONTEXT *dest, OCB128_CONTEXT *src, void *keyenc, void *keydec); int CRYPTO_ocb128_setiv(OCB128_CONTEXT *ctx, const unsigned char *iv, size_t len, size_t taglen); int CRYPTO_ocb128_aad(OCB128_CONTEXT *ctx, const unsigned char *aad, size_t len); int CRYPTO_ocb128_encrypt(OCB128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len); int CRYPTO_ocb128_decrypt(OCB128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len); int CRYPTO_ocb128_finish(OCB128_CONTEXT *ctx, const unsigned char *tag, size_t len); int CRYPTO_ocb128_tag(OCB128_CONTEXT *ctx, unsigned char *tag, size_t len); void CRYPTO_ocb128_cleanup(OCB128_CONTEXT *ctx); # endif /* OPENSSL_NO_OCB */ # ifdef __cplusplus } # endif #endif
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
archs | Folder | 0755 |
|
|
aes.h | File | 3.27 KB | 0644 |
|
asn1.h | File | 32.84 KB | 0644 |
|
asn1_mac.h | File | 395 B | 0644 |
|
asn1err.h | File | 14.26 KB | 0644 |
|
asn1t.h | File | 32.17 KB | 0644 |
|
async.h | File | 2.34 KB | 0644 |
|
asyncerr.h | File | 1.29 KB | 0644 |
|
bio.h | File | 34.09 KB | 0644 |
|
bioerr.h | File | 6.25 KB | 0644 |
|
blowfish.h | File | 1.8 KB | 0644 |
|
bn.h | File | 21.62 KB | 0644 |
|
bn_conf.h | File | 100 B | 0644 |
|
bn_conf_asm.h | File | 3 KB | 0644 |
|
bn_conf_no-asm.h | File | 3.17 KB | 0644 |
|
bnerr.h | File | 4.79 KB | 0644 |
|
buffer.h | File | 1.56 KB | 0644 |
|
buffererr.h | File | 820 B | 0644 |
|
camellia.h | File | 3.1 KB | 0644 |
|
cast.h | File | 1.63 KB | 0644 |
|
cmac.h | File | 1.04 KB | 0644 |
|
cms.h | File | 16 KB | 0644 |
|
cmserr.h | File | 10.9 KB | 0644 |
|
comp.h | File | 1.3 KB | 0644 |
|
comperr.h | File | 1.18 KB | 0644 |
|
conf.h | File | 5.47 KB | 0644 |
|
conf_api.h | File | 1.27 KB | 0644 |
|
conferr.h | File | 3.35 KB | 0644 |
|
crypto.h | File | 16.83 KB | 0644 |
|
cryptoerr.h | File | 2.21 KB | 0644 |
|
ct.h | File | 15.5 KB | 0644 |
|
cterr.h | File | 3.39 KB | 0644 |
|
des.h | File | 7.45 KB | 0644 |
|
dh.h | File | 13.09 KB | 0644 |
|
dherr.h | File | 3.88 KB | 0644 |
|
dsa.h | File | 9.82 KB | 0644 |
|
dsaerr.h | File | 2.9 KB | 0644 |
|
dso_conf.h | File | 102 B | 0644 |
|
dso_conf_asm.h | File | 3.02 KB | 0644 |
|
dso_conf_no-asm.h | File | 3.2 KB | 0644 |
|
dtls1.h | File | 1.54 KB | 0644 |
|
e_os2.h | File | 8.68 KB | 0644 |
|
ebcdic.h | File | 924 B | 0644 |
|
ec.h | File | 62.11 KB | 0644 |
|
ecdh.h | File | 358 B | 0644 |
|
ecdsa.h | File | 358 B | 0644 |
|
ecerr.h | File | 15.39 KB | 0644 |
|
engine.h | File | 33.85 KB | 0644 |
|
engineerr.h | File | 5.32 KB | 0644 |
|
err.h | File | 11 KB | 0644 |
|
evp.h | File | 75.03 KB | 0644 |
|
evperr.h | File | 11.16 KB | 0644 |
|
hmac.h | File | 1.55 KB | 0644 |
|
idea.h | File | 2.05 KB | 0644 |
|
kdf.h | File | 4.22 KB | 0644 |
|
kdferr.h | File | 2.07 KB | 0644 |
|
lhash.h | File | 9.05 KB | 0644 |
|
md2.h | File | 1.03 KB | 0644 |
|
md4.h | File | 1.29 KB | 0644 |
|
md5.h | File | 1.29 KB | 0644 |
|
mdc2.h | File | 1.03 KB | 0644 |
|
modes.h | File | 10.23 KB | 0644 |
|
obj_mac.h | File | 212.42 KB | 0644 |
|
objects.h | File | 6.48 KB | 0644 |
|
objectserr.h | File | 1.29 KB | 0644 |
|
ocsp.h | File | 14.95 KB | 0644 |
|
ocsperr.h | File | 3.28 KB | 0644 |
|
opensslconf.h | File | 590 B | 0644 |
|
opensslconf_asm.h | File | 6.88 KB | 0644 |
|
opensslconf_no-asm.h | File | 2.92 KB | 0644 |
|
opensslv.h | File | 4.01 KB | 0644 |
|
ossl_typ.h | File | 6.12 KB | 0644 |
|
pem.h | File | 15.11 KB | 0644 |
|
pem2.h | File | 415 B | 0644 |
|
pemerr.h | File | 4.98 KB | 0644 |
|
pkcs12.h | File | 9.64 KB | 0644 |
|
pkcs12err.h | File | 3.66 KB | 0644 |
|
pkcs7.h | File | 11.32 KB | 0644 |
|
pkcs7err.h | File | 4.99 KB | 0644 |
|
rand.h | File | 2.16 KB | 0644 |
|
rand_drbg.h | File | 4.65 KB | 0644 |
|
randerr.h | File | 4.52 KB | 0644 |
|
rc2.h | File | 1.5 KB | 0644 |
|
rc4.h | File | 825 B | 0644 |
|
rc5.h | File | 1.94 KB | 0644 |
|
ripemd.h | File | 1.21 KB | 0644 |
|
rsa.h | File | 21.68 KB | 0644 |
|
rsaerr.h | File | 8.86 KB | 0644 |
|
safestack.h | File | 7.95 KB | 0644 |
|
seed.h | File | 3.4 KB | 0644 |
|
sha.h | File | 3.74 KB | 0644 |
|
srp.h | File | 3.74 KB | 0644 |
|
srtp.h | File | 1.29 KB | 0644 |
|
ssl.h | File | 108.65 KB | 0644 |
|
ssl2.h | File | 542 B | 0644 |
|
ssl3.h | File | 14.23 KB | 0644 |
|
sslerr.h | File | 45.58 KB | 0644 |
|
stack.h | File | 3.02 KB | 0644 |
|
store.h | File | 10.94 KB | 0644 |
|
storeerr.h | File | 4.3 KB | 0644 |
|
symhacks.h | File | 1.28 KB | 0644 |
|
tls1.h | File | 70.79 KB | 0644 |
|
ts.h | File | 21.9 KB | 0644 |
|
tserr.h | File | 6.59 KB | 0644 |
|
txt_db.h | File | 1.63 KB | 0644 |
|
ui.h | File | 15.68 KB | 0644 |
|
uierr.h | File | 2.67 KB | 0644 |
|
whrlpool.h | File | 1.34 KB | 0644 |
|
x509.h | File | 42.11 KB | 0644 |
|
x509_vfy.h | File | 31.42 KB | 0644 |
|
x509err.h | File | 6.62 KB | 0644 |
|
x509v3.h | File | 32.59 KB | 0644 |
|
x509v3err.h | File | 8.57 KB | 0644 |
|