Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 25 of 55) sorted by relevance

123

/openssl/crypto/evp/
H A De_aes_cbc_hmac_sha1.c147 int blocks; member
155 int blocks; member
173 } blocks[8]; in tls1_1_multi_block_encrypt() local
252 edges[i].blocks = 1; in tls1_1_multi_block_encrypt()
294 memset(blocks, 0, sizeof(blocks)); in tls1_1_multi_block_encrypt()
326 memset(blocks, 0, sizeof(blocks)); in tls1_1_multi_block_encrypt()
339 blocks[i].c[20] = 0x80; in tls1_1_multi_block_encrypt()
356 edges[i].blocks = 1; in tls1_1_multi_block_encrypt()
402 OPENSSL_cleanse(blocks, sizeof(blocks)); in tls1_1_multi_block_encrypt()
446 aes_off += blocks; in aesni_cbc_hmac_sha1_cipher()
[all …]
H A De_aes_cbc_hmac_sha256.c141 int blocks; member
149 int blocks; member
167 } blocks[8]; in tls1_1_multi_block_encrypt() local
250 edges[i].blocks = 1; in tls1_1_multi_block_encrypt()
292 memset(blocks, 0, sizeof(blocks)); in tls1_1_multi_block_encrypt()
324 memset(blocks, 0, sizeof(blocks)); in tls1_1_multi_block_encrypt()
343 blocks[i].c[32] = 0x80; in tls1_1_multi_block_encrypt()
366 edges[i].blocks = 1; in tls1_1_multi_block_encrypt()
415 OPENSSL_cleanse(blocks, sizeof(blocks)); in tls1_1_multi_block_encrypt()
474 aes_off += blocks; in aesni_cbc_hmac_sha256_cipher()
[all …]
H A De_rc4_hmac_md5.c83 md5_off = MD5_CBLOCK - key->md.num, blocks; in rc4_hmac_md5_cipher() local
106 blocks *= MD5_CBLOCK; in rc4_hmac_md5_cipher()
107 rc4_off += blocks; in rc4_hmac_md5_cipher()
108 md5_off += blocks; in rc4_hmac_md5_cipher()
109 key->md.Nh += blocks >> 29; in rc4_hmac_md5_cipher()
110 key->md.Nl += blocks <<= 3; in rc4_hmac_md5_cipher()
111 if (key->md.Nl < (unsigned int)blocks) in rc4_hmac_md5_cipher()
150 blocks *= MD5_CBLOCK; in rc4_hmac_md5_cipher()
151 rc4_off += blocks; in rc4_hmac_md5_cipher()
152 md5_off += blocks; in rc4_hmac_md5_cipher()
[all …]
H A De_chacha20_poly1305.c86 size_t blocks = len / CHACHA_BLK_SIZE; in chacha_cipher() local
92 if (sizeof(size_t)>sizeof(unsigned int) && blocks>(1U<<28)) in chacha_cipher()
93 blocks = (1U<<28); in chacha_cipher()
101 ctr32 += (unsigned int)blocks; in chacha_cipher()
102 if (ctr32 < blocks) { in chacha_cipher()
103 blocks -= ctr32; in chacha_cipher()
106 blocks *= CHACHA_BLK_SIZE; in chacha_cipher()
107 ChaCha20_ctr32(out, inp, blocks, key->key.d, key->counter); in chacha_cipher()
108 len -= blocks; in chacha_cipher()
109 inp += blocks; in chacha_cipher()
[all …]
/openssl/providers/implementations/ciphers/
H A Dcipher_aes_cbc_hmac_sha1_hw.c108 int blocks; member
114 int blocks; member
135 } blocks[8]; in tls1_multi_block_encrypt() local
214 edges[i].blocks = 1; in tls1_multi_block_encrypt()
256 memset(blocks, 0, sizeof(blocks)); in tls1_multi_block_encrypt()
288 memset(blocks, 0, sizeof(blocks)); in tls1_multi_block_encrypt()
301 blocks[i].c[20] = 0x80; in tls1_multi_block_encrypt()
318 edges[i].blocks = 1; in tls1_multi_block_encrypt()
364 OPENSSL_cleanse(blocks, sizeof(blocks)); in tls1_multi_block_encrypt()
406 aes_off += blocks; in aesni_cbc_hmac_sha1_cipher()
[all …]
H A Dcipher_aes_cbc_hmac_sha256_hw.c112 int blocks; member
118 int blocks; member
139 } blocks[8]; in tls1_multi_block_encrypt() local
222 edges[i].blocks = 1; in tls1_multi_block_encrypt()
264 memset(blocks, 0, sizeof(blocks)); in tls1_multi_block_encrypt()
296 memset(blocks, 0, sizeof(blocks)); in tls1_multi_block_encrypt()
315 blocks[i].c[32] = 0x80; in tls1_multi_block_encrypt()
338 edges[i].blocks = 1; in tls1_multi_block_encrypt()
387 OPENSSL_cleanse(blocks, sizeof(blocks)); in tls1_multi_block_encrypt()
444 aes_off += blocks; in aesni_cbc_hmac_sha256_cipher()
[all …]
H A Dcipher_chacha20_hw.c70 size_t blocks = inl / CHACHA_BLK_SIZE; in chacha20_cipher() local
77 if (sizeof(size_t) > sizeof(unsigned int) && blocks > (1U << 28)) in chacha20_cipher()
78 blocks = (1U << 28); in chacha20_cipher()
86 ctr32 += (unsigned int)blocks; in chacha20_cipher()
87 if (ctr32 < blocks) { in chacha20_cipher()
88 blocks -= ctr32; in chacha20_cipher()
91 blocks *= CHACHA_BLK_SIZE; in chacha20_cipher()
92 ChaCha20_ctr32(out, in, blocks, ctx->key.d, ctx->counter); in chacha20_cipher()
93 inl -= blocks; in chacha20_cipher()
94 in += blocks; in chacha20_cipher()
[all …]
H A Dcipher_rc4_hmac_md5_hw.c58 size_t md5_off = MD5_CBLOCK - ctx->md.num, blocks; in cipher_hw_rc4_hmac_md5_cipher() local
82 blocks *= MD5_CBLOCK; in cipher_hw_rc4_hmac_md5_cipher()
83 rc4_off += blocks; in cipher_hw_rc4_hmac_md5_cipher()
84 md5_off += blocks; in cipher_hw_rc4_hmac_md5_cipher()
85 ctx->md.Nh += blocks >> 29; in cipher_hw_rc4_hmac_md5_cipher()
86 ctx->md.Nl += blocks <<= 3; in cipher_hw_rc4_hmac_md5_cipher()
87 if (ctx->md.Nl < (unsigned int)blocks) in cipher_hw_rc4_hmac_md5_cipher()
128 blocks *= MD5_CBLOCK; in cipher_hw_rc4_hmac_md5_cipher()
129 rc4_off += blocks; in cipher_hw_rc4_hmac_md5_cipher()
130 md5_off += blocks; in cipher_hw_rc4_hmac_md5_cipher()
[all …]
H A Dcipher_aes_ccm_hw_s390x.inc28 sctx->ccm.s390x.blocks = 0;
92 sctx->ccm.s390x.blocks += 2;
98 sctx->ccm.s390x.blocks += alen >> 4;
108 sctx->ccm.s390x.blocks++;
130 sctx->ccm.s390x.blocks++;
153 sctx->ccm.s390x.blocks += (((len + 15) >> 4) << 1) + 1;
154 if (sctx->ccm.s390x.blocks > (1ULL << 61))
H A Dcipher_aes_ccm.h32 unsigned long long blocks; member
/openssl/crypto/modes/
H A Dctr128.c168 size_t blocks = len / 16; in CRYPTO_ctr128_encrypt_ctr32() local
174 if (sizeof(size_t) > sizeof(unsigned int) && blocks > (1U << 28)) in CRYPTO_ctr128_encrypt_ctr32()
175 blocks = (1U << 28); in CRYPTO_ctr128_encrypt_ctr32()
182 ctr32 += (u32)blocks; in CRYPTO_ctr128_encrypt_ctr32()
183 if (ctr32 < blocks) { in CRYPTO_ctr128_encrypt_ctr32()
184 blocks -= ctr32; in CRYPTO_ctr128_encrypt_ctr32()
187 (*func) (in, out, blocks, key, ivec); in CRYPTO_ctr128_encrypt_ctr32()
193 blocks *= 16; in CRYPTO_ctr128_encrypt_ctr32()
194 len -= blocks; in CRYPTO_ctr128_encrypt_ctr32()
195 out += blocks; in CRYPTO_ctr128_encrypt_ctr32()
[all …]
H A Dccm128.c32 ctx->blocks = 0; in CRYPTO_ccm128_init()
78 (*block) (ctx->nonce.c, ctx->cmac.c, ctx->key), ctx->blocks++; in CRYPTO_ccm128_aad()
110 (*block) (ctx->cmac.c, ctx->cmac.c, ctx->key), ctx->blocks++; in CRYPTO_ccm128_aad()
152 (*block) (ctx->nonce.c, ctx->cmac.c, key), ctx->blocks++; in CRYPTO_ccm128_encrypt()
166 ctx->blocks += ((len + 15) >> 3) | 1; in CRYPTO_ccm128_encrypt()
167 if (ctx->blocks > (U64(1) << 61)) in CRYPTO_ccm128_encrypt()
325 (*block) (ctx->nonce.c, ctx->cmac.c, key), ctx->blocks++; in CRYPTO_ccm128_encrypt_ccm64()
339 ctx->blocks += ((len + 15) >> 3) | 1; in CRYPTO_ccm128_encrypt_ccm64()
340 if (ctx->blocks > (U64(1) << 61)) in CRYPTO_ccm128_encrypt_ccm64()
/openssl/crypto/sm4/asm/
H A Dvpsm4-armv8.pl674 subs $blocks,$blocks,#8
689 sub $blocks,$blocks,#4
789 subs $blocks,$blocks,#4
793 subs $blocks,$blocks,#1
854 subs $blocks,$blocks,#8
880 subs $blocks,$blocks,#4
886 subs $blocks,$blocks,#1
903 subs $blocks,$blocks,1
1014 subs $blocks,$blocks,#4
1042 subs $blocks,$blocks,#8
[all …]
/openssl/include/crypto/
H A Daes_platform.h49 size_t blocks, const AES_KEY *key,
207 size_t blocks, const void *key,
213 size_t blocks, const void *key,
222 size_t blocks,
239 size_t blocks,
246 size_t blocks,
324 size_t blocks, const AES_KEY *key1,
327 size_t blocks, const AES_KEY *key1,
330 size_t blocks, const AES_KEY *key1,
473 size_t blocks, const void *key,
[all …]
H A Dcmll_platform.h42 size_t blocks, const CAMELLIA_KEY *key,
45 size_t blocks, const CAMELLIA_KEY *key,
H A Dpoly1305.h36 poly1305_blocks_f blocks; member
/openssl/test/recipes/30-test_evp_data/
H A Devpciph_aes_cts.txt42 # where aligned blocks are the same as CBC mode, and partial lengths
43 # have the last 2 blocks swapped compared to CS3.
157 # where aligned blocks are the same as CBC mode, and partial lengths
160 # 17 bytes Input (For partial blocks the output should match CS3)
169 # 31 bytes input (For partial blocks the output should match CS3)
178 # 32 bytes input (Aligned blocks should match normal CBC mode)
260 # 32 bytes input (CS3 always swaps the last 2 byte blocks - so it is not equivalent to CBC for a fu…
287 # 64 bytes input (CS3 always swaps the last 2 byte blocks - so it is not equivalent to CBC for a fu…
/openssl/crypto/
H A Dparams_dup.c25 size_t blocks; /* Number of aligned blocks */ member
37 size_t sz = OSSL_PARAM_ALIGN_SIZE * (extra_blocks + out->blocks); in ossl_param_buf_alloc()
93 buf[is_secure].blocks += blks; in ossl_param_dup()
127 if (buf[OSSL_PARAM_BUF_SECURE].blocks > 0 in OSSL_PARAM_dup()
/openssl/doc/man7/
H A Ddes_modes.pod27 The order of the blocks can be rearranged without detection.
59 The chaining operation makes the ciphertext blocks dependent on the
60 current and all preceding plaintext blocks and therefore blocks can not
70 An error will affect the current and the following ciphertext blocks.
195 key length 112 bits, but this attack also requires 2^56 blocks of
/openssl/crypto/chacha/asm/
H A Dchacha-armv8-sve.pl34 my ($veclen_w,$veclen,$blocks) = ("w5","x5","x6");
483 cmp $blocks,$veclen
488 subs $blocks,$blocks,$veclen
515 lsr $blocks,$len,#6
516 cmp $blocks,$veclen
565 add $len,$len,$blocks,lsl #6
/openssl/include/openssl/
H A Dmodes.h37 size_t blocks, const void *key,
41 size_t blocks, const void *key,
187 size_t blocks, const void *key,
/openssl/providers/implementations/rands/
H A Ddrbg_ctr.c382 unsigned int ctr32, blocks; in drbg_ctr_generate() local
424 blocks = (buflen + 15) / 16; in drbg_ctr_generate()
426 ctr32 = GETU32(ctr->V + 12) + blocks; in drbg_ctr_generate()
427 if (ctr32 < blocks) { in drbg_ctr_generate()
430 blocks -= ctr32; in drbg_ctr_generate()
431 buflen = blocks * 16; in drbg_ctr_generate()
/openssl/providers/implementations/digests/
H A Dblake2s_prov.c148 const uint8_t *blocks, in blake2s_compress() argument
183 m[i] = load32(blocks + i * sizeof(m[i])); in blake2s_compress()
243 blocks += increment; in blake2s_compress()
H A Dblake2b_prov.c155 const uint8_t *blocks, in blake2b_compress() argument
190 m[i] = load64(blocks + i * sizeof(m[i])); in blake2b_compress()
252 blocks += increment; in blake2b_compress()
/openssl/crypto/poly1305/
H A Dpoly1305.c450 ctx->func.blocks = poly1305_blocks; in Poly1305_Init()
477 poly1305_blocks_f poly1305_blocks_p = ctx->func.blocks; in Poly1305_Update()
513 poly1305_blocks_f poly1305_blocks_p = ctx->func.blocks; in Poly1305_Final()

Completed in 70 milliseconds

123