Home
last modified time | relevance | path

Searched refs:AES_BLOCK_SIZE (Results 1 – 25 of 26) sorted by relevance

12

/openssl-master/crypto/aes/
A Daes_ige.c87 memcpy(ivec + AES_BLOCK_SIZE, iv2p->data, AES_BLOCK_SIZE); in AES_ige_encrypt()
112 memcpy(ivec + AES_BLOCK_SIZE, iv2.data, AES_BLOCK_SIZE); in AES_ige_encrypt()
140 memcpy(ivec + AES_BLOCK_SIZE, iv2p->data, AES_BLOCK_SIZE); in AES_ige_encrypt()
166 memcpy(ivec + AES_BLOCK_SIZE, iv2.data, AES_BLOCK_SIZE); in AES_ige_encrypt()
222 len -= AES_BLOCK_SIZE; in AES_bi_ige_encrypt()
223 in += AES_BLOCK_SIZE; in AES_bi_ige_encrypt()
224 out += AES_BLOCK_SIZE; in AES_bi_ige_encrypt()
232 out -= AES_BLOCK_SIZE; in AES_bi_ige_encrypt()
257 len -= AES_BLOCK_SIZE; in AES_bi_ige_encrypt()
266 in -= AES_BLOCK_SIZE; in AES_bi_ige_encrypt()
[all …]
/openssl-master/engines/
A De_padlock.c173 # define AES_BLOCK_SIZE 16 macro
330 if (chunk >= AES_BLOCK_SIZE) in padlock_cfb_cipher()
334 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { in padlock_cfb_cipher()
338 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { in padlock_cfb_cipher()
352 if ((chunk = nbytes & ~(AES_BLOCK_SIZE - 1))) { in padlock_cfb_cipher()
404 if (chunk >= AES_BLOCK_SIZE) in padlock_ofb_cipher()
407 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { in padlock_ofb_cipher()
420 if ((chunk = nbytes & ~(AES_BLOCK_SIZE - 1))) { in padlock_ofb_cipher()
451 memcpy(ctx->iv, ivec, AES_BLOCK_SIZE); in padlock_ctr32_encrypt_glue()
476 # define EVP_CIPHER_block_size_ECB AES_BLOCK_SIZE
[all …]
A De_ossltest.c805 if (len % AES_BLOCK_SIZE) in ossltest_aes128_cbc_hmac_sha1_cipher()
813 AES_BLOCK_SIZE) & -AES_BLOCK_SIZE)) in ossltest_aes128_cbc_hmac_sha1_cipher()
835 if (len < (AES_BLOCK_SIZE + SHA_DIGEST_LENGTH + 1)) in ossltest_aes128_cbc_hmac_sha1_cipher()
839 in += AES_BLOCK_SIZE; in ossltest_aes128_cbc_hmac_sha1_cipher()
840 out += AES_BLOCK_SIZE; in ossltest_aes128_cbc_hmac_sha1_cipher()
841 len -= AES_BLOCK_SIZE; in ossltest_aes128_cbc_hmac_sha1_cipher()
882 if (len < AES_BLOCK_SIZE) in ossltest_aes128_cbc_hmac_sha1_ctrl()
884 len -= AES_BLOCK_SIZE; in ossltest_aes128_cbc_hmac_sha1_ctrl()
890 AES_BLOCK_SIZE) & -AES_BLOCK_SIZE) in ossltest_aes128_cbc_hmac_sha1_ctrl()
A De_afalg.h40 # ifndef AES_BLOCK_SIZE
41 # define AES_BLOCK_SIZE 16 macro
A De_dasync.c651 if (len < AES_BLOCK_SIZE) in dasync_cipher_ctrl_helper()
653 len -= AES_BLOCK_SIZE; in dasync_cipher_ctrl_helper()
656 return ((len + SHA_DIGEST_LENGTH + AES_BLOCK_SIZE) in dasync_cipher_ctrl_helper()
657 & -AES_BLOCK_SIZE) - len; in dasync_cipher_ctrl_helper()
A De_afalg.c726 AES_BLOCK_SIZE, in afalg_aes_cbc()
/openssl-master/providers/implementations/ciphers/
A Dcipher_aes_ocb.h14 #define OCB_MAX_TAG_LEN AES_BLOCK_SIZE
15 #define OCB_MAX_DATA_LEN AES_BLOCK_SIZE
16 #define OCB_MAX_AAD_LEN AES_BLOCK_SIZE
A Dcipher_aes_ccm.h35 unsigned char b[AES_BLOCK_SIZE];
39 unsigned char b[AES_BLOCK_SIZE];
A Dcipher_aes_cbc_hmac_sha1_hw.c64 vctx->removetlsfixed = SHA_DIGEST_LENGTH + AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_init_key()
386 if (len % AES_BLOCK_SIZE) in aesni_cbc_hmac_sha1_cipher()
394 AES_BLOCK_SIZE) & -AES_BLOCK_SIZE)) in aesni_cbc_hmac_sha1_cipher()
397 iv = AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_cipher()
463 memcpy(ctx->base.iv, in, AES_BLOCK_SIZE); in aesni_cbc_hmac_sha1_cipher()
465 in += AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_cipher()
466 out += AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_cipher()
467 len -= AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_cipher()
680 if (len < AES_BLOCK_SIZE) in aesni_cbc_hmac_sha1_set_tls1_aad()
682 len -= AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_set_tls1_aad()
[all …]
A Dcipher_aes_ocb.c169 nextblocks = ossl_cipher_fillblock(buf, bufsz, AES_BLOCK_SIZE, &in, &inl); in aes_ocb_block_update_internal()
171 nextblocks = inl & ~(AES_BLOCK_SIZE-1); in aes_ocb_block_update_internal()
173 if (*bufsz == AES_BLOCK_SIZE) { in aes_ocb_block_update_internal()
174 if (outsize < AES_BLOCK_SIZE) { in aes_ocb_block_update_internal()
178 if (!ciph(ctx, buf, out, AES_BLOCK_SIZE)) { in aes_ocb_block_update_internal()
183 outlint = AES_BLOCK_SIZE; in aes_ocb_block_update_internal()
185 out += AES_BLOCK_SIZE; in aes_ocb_block_update_internal()
201 && !ossl_cipher_trailingdata(buf, bufsz, AES_BLOCK_SIZE, &in, &inl)) { in aes_ocb_block_update_internal()
A Dcipher_aes_cbc_hmac_sha256_hw.c66 vctx->removetlsfixed = SHA256_DIGEST_LENGTH + AES_BLOCK_SIZE; in aesni_cbc_hmac_sha256_init_key()
409 if (len % AES_BLOCK_SIZE) in aesni_cbc_hmac_sha256_cipher()
417 AES_BLOCK_SIZE) & -AES_BLOCK_SIZE)) in aesni_cbc_hmac_sha256_cipher()
420 iv = AES_BLOCK_SIZE; in aesni_cbc_hmac_sha256_cipher()
501 iv = AES_BLOCK_SIZE; in aesni_cbc_hmac_sha256_cipher()
733 if (len < AES_BLOCK_SIZE) in aesni_cbc_hmac_sha256_set_tls1_aad()
735 len -= AES_BLOCK_SIZE; in aesni_cbc_hmac_sha256_set_tls1_aad()
742 AES_BLOCK_SIZE) & -AES_BLOCK_SIZE) in aesni_cbc_hmac_sha256_set_tls1_aad()
A Dcipher_aes_xts.c168 || inl < AES_BLOCK_SIZE) in aes_xts_cipher()
177 if (inl > XTS_MAX_BLOCKS_PER_DATA_UNIT * AES_BLOCK_SIZE) { in aes_xts_cipher()
A Dcipher_aes_cbc_hmac_sha.c206 if (!ossl_assert(ctx->base.removetlsfixed >= AES_BLOCK_SIZE)) { in aes_set_ctx_params()
214 ctx->base.removetlsfixed -= AES_BLOCK_SIZE; in aes_set_ctx_params()
A Dcipher_aes_gcm_hw_s390x.inc88 unsigned char out[AES_BLOCK_SIZE];
/openssl-master/crypto/evp/
A De_aes_cbc_hmac_sha1.c424 if (len % AES_BLOCK_SIZE) in aesni_cbc_hmac_sha1_cipher()
432 AES_BLOCK_SIZE) & -AES_BLOCK_SIZE)) in aesni_cbc_hmac_sha1_cipher()
435 iv = AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_cipher()
509 in += AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_cipher()
510 out += AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_cipher()
511 len -= AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_cipher()
519 AES_BLOCK_SIZE); in aesni_cbc_hmac_sha1_cipher()
521 out + len - AES_BLOCK_SIZE, AES_BLOCK_SIZE, in aesni_cbc_hmac_sha1_cipher()
830 AES_BLOCK_SIZE) & -AES_BLOCK_SIZE) in aesni_cbc_hmac_sha1_ctrl()
914 AES_BLOCK_SIZE, 16, AES_BLOCK_SIZE,
[all …]
A De_aes_cbc_hmac_sha256.c439 if (len % AES_BLOCK_SIZE) in aesni_cbc_hmac_sha256_cipher()
447 AES_BLOCK_SIZE) & -AES_BLOCK_SIZE)) in aesni_cbc_hmac_sha256_cipher()
450 iv = AES_BLOCK_SIZE; in aesni_cbc_hmac_sha256_cipher()
532 iv = AES_BLOCK_SIZE; in aesni_cbc_hmac_sha256_cipher()
801 if (len < AES_BLOCK_SIZE) in aesni_cbc_hmac_sha256_ctrl()
803 len -= AES_BLOCK_SIZE; in aesni_cbc_hmac_sha256_ctrl()
811 AES_BLOCK_SIZE) & -AES_BLOCK_SIZE) in aesni_cbc_hmac_sha256_ctrl()
898 AES_BLOCK_SIZE, 16, AES_BLOCK_SIZE,
918 AES_BLOCK_SIZE, 32, AES_BLOCK_SIZE,
A De_aes.c3247 || len < AES_BLOCK_SIZE) in aes_xts_cipher()
3256 if (len > XTS_MAX_BLOCKS_PER_DATA_UNIT * AES_BLOCK_SIZE) { in aes_xts_cipher()
3932 remaining = AES_BLOCK_SIZE - (*buf_len); in aes_ocb_cipher()
3946 if (!CRYPTO_ocb128_aad(&octx->ocb, buf, AES_BLOCK_SIZE)) in aes_ocb_cipher()
3950 AES_BLOCK_SIZE)) in aes_ocb_cipher()
3954 AES_BLOCK_SIZE)) in aes_ocb_cipher()
3957 written_len = AES_BLOCK_SIZE; in aes_ocb_cipher()
3960 out += AES_BLOCK_SIZE; in aes_ocb_cipher()
3964 trailing_len = len % AES_BLOCK_SIZE; in aes_ocb_cipher()
/openssl-master/test/
A Digetest.c33 static unsigned char saved_iv[AES_BLOCK_SIZE * 4];
154 unsigned char iv[AES_BLOCK_SIZE * 2]; in test_ige_vectors()
226 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_ige_enc_dec()
244 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_ige_enc_chaining()
266 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_ige_dec_chaining()
292 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_ige_garble_forwards()
330 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_bi_ige_enc_dec()
351 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_bi_ige_garble1()
382 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_bi_ige_garble2()
413 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_bi_ige_garble3()
A Dcmactest.c110 unsigned char buf[AES_BLOCK_SIZE]; in test_cmac_run()
172 unsigned char buf[AES_BLOCK_SIZE]; in test_cmac_copy()
A Dthreadstest.c338 const unsigned char key[AES_BLOCK_SIZE] = { in thread_general_worker()
342 const unsigned char iv[AES_BLOCK_SIZE] = { in thread_general_worker()
A Devp_extra_test.c2169 size_t maclen = AES_BLOCK_SIZE; in get_cmac_val()
2177 || !TEST_size_t_eq(maclen, AES_BLOCK_SIZE)) in get_cmac_val()
2194 unsigned char mac[AES_BLOCK_SIZE]; in test_CMAC_keygen()
2196 unsigned char mac2[AES_BLOCK_SIZE]; in test_CMAC_keygen()
4167 unsigned char buf[AES_BLOCK_SIZE]; in test_cipher_with_engine()
/openssl-master/providers/implementations/rands/
A Ddrbg_ctr.c104 int i, outlen = AES_BLOCK_SIZE; in ctr_BCC_block()
144 bltmp[(AES_BLOCK_SIZE * 1) + 3] = 1; in ctr_BCC_init()
145 bltmp[(AES_BLOCK_SIZE * 2) + 3] = 2; in ctr_BCC_init()
205 int outlen = AES_BLOCK_SIZE; in ctr_df()
239 AES_BLOCK_SIZE) in ctr_df()
240 || outlen != AES_BLOCK_SIZE) in ctr_df()
243 AES_BLOCK_SIZE) in ctr_df()
244 || outlen != AES_BLOCK_SIZE) in ctr_df()
248 ctr->KX + 16, AES_BLOCK_SIZE) in ctr_df()
249 || outlen != AES_BLOCK_SIZE) in ctr_df()
[all …]
/openssl-master/include/openssl/
A Daes.h26 # define AES_BLOCK_SIZE 16 macro
/openssl-master/providers/implementations/include/prov/
A Dciphercommon_gcm.h72 unsigned char buf[AES_BLOCK_SIZE]; /* Buffer of partial blocks processed via update calls */
/openssl-master/include/crypto/
A Daes_platform.h50 const unsigned char ivec[AES_BLOCK_SIZE]);

Completed in 59 milliseconds

12