Home
last modified time | relevance | path

Searched refs:CTS_BLOCK_SIZE (Results 1 – 1 of 1) sorted by relevance

/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_cts.c59 #define CTS_BLOCK_SIZE 16 macro
63 unsigned char c[CTS_BLOCK_SIZE];
106 residue = len % CTS_BLOCK_SIZE; in cts128_cs1_encrypt()
119 if (!ctx->hw->cipher(ctx, out - CTS_BLOCK_SIZE + residue, tmp_in.c, in cts128_cs1_encrypt()
120 CTS_BLOCK_SIZE)) in cts128_cs1_encrypt()
140 residue = len % CTS_BLOCK_SIZE; in cts128_cs1_decrypt()
148 len -= CTS_BLOCK_SIZE + residue; in cts128_cs1_decrypt()
156 memcpy(mid_iv.c, ctx->iv, CTS_BLOCK_SIZE); in cts128_cs1_decrypt()
158 memcpy(cn.c, in + residue, CTS_BLOCK_SIZE); in cts128_cs1_decrypt()
161 memset(ctx->iv, 0, CTS_BLOCK_SIZE); in cts128_cs1_decrypt()
[all …]