Go to the documentation of this file.
56 #include "../crypto/fipsmodule/modes/internal.h"
74 if (
len < 16)
return 0;
78 (*
ctx->block2)(tweak.c, tweak.c,
ctx->key2);
80 if (!enc && (
len % 16))
len -= 16;
94 if (
len == 0)
return 1;
96 unsigned int carry, res;
98 res = 0x87 & (((
int)tweak.d[3]) >> 31);
99 carry = (
unsigned int)(tweak.u[0] >> 63);
100 tweak.u[0] = (tweak.u[0] << 1) ^ res;
101 tweak.u[1] = (tweak.u[1] << 1) | carry;
104 for (
i = 0;
i <
len; ++
i) {
121 unsigned int carry, res;
123 res = 0x87 & (((
int)tweak.d[3]) >> 31);
124 carry = (
unsigned int)(tweak.u[0] >> 63);
125 tweak1.u[0] = (tweak.u[0] << 1) ^ res;
126 tweak1.u[1] = (tweak.u[1] << 1) | carry;
134 for (
i = 0;
i <
len; ++
i) {
static int aes_xts_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t len)
#define AES_set_encrypt_key
union EVP_AES_XTS_CTX::@360 ks1
union EVP_AES_XTS_CTX::@360 ks2
OPENSSL_EXPORT pem_password_cb void * u
static const EVP_CIPHER aes_256_xts
static size_t CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const uint8_t iv[16], const uint8_t *inp, uint8_t *out, size_t len, int enc)
#define EVP_CIPH_XTS_MODE
#define EVP_CIPH_CTRL_INIT
unsigned __int64 uint64_t
static void * OPENSSL_memcpy(void *dst, const void *src, size_t n)
#define EVP_CIPH_CUSTOM_COPY
struct xts128_context XTS128_CONTEXT
#define AES_set_decrypt_key
const EVP_CIPHER * EVP_aes_256_xts(void)
static int aes_xts_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, const uint8_t *iv, int enc)
#define EVP_CIPH_ALWAYS_CALL_INIT
static int aes_xts_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
void(* block128_f)(const uint8_t in[16], uint8_t out[16], const AES_KEY *key)
#define EVP_CIPH_CUSTOM_IV
grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:00