Home
last modified time | relevance | path

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

/openssl-master/ssl/record/
A Dtls_pad.c29 size_t block_size,
39 size_t block_size, size_t mac_size,
47 size_t block_size, size_t mac_size,
73 size_t block_size, size_t mac_size, in ssl3_cbc_remove_padding_and_mac() argument
89 good &= constant_time_ge_s(block_size, padding_length + 1); in ssl3_cbc_remove_padding_and_mac()
93 block_size, mac_size, good, libctx); in ssl3_cbc_remove_padding_and_mac()
118 size_t block_size, size_t mac_size, in tls1_cbc_remove_padding_and_mac() argument
134 if (block_size != 1) { in tls1_cbc_remove_padding_and_mac()
177 block_size, mac_size, good, libctx); in tls1_cbc_remove_padding_and_mac()
202 size_t block_size, in ssl3_cbc_copy_mac() argument
[all …]
A Drecord_local.h115 size_t block_size, size_t mac_size,
122 size_t block_size, size_t mac_size,
/openssl-master/test/recipes/
A D70-test_sslcbcpadding.t92 my $block_size = 16;
96 my $plaintext_len = $block_size - ($mac_len % $block_size);
99 my $data = "B" x $block_size; # Explicit IV.
/openssl-master/crypto/evp/
A Dcmeth_lib.c23 EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len) in EVP_CIPHER_meth_new() argument
29 cipher->block_size = block_size; in EVP_CIPHER_meth_new()
47 if ((to = EVP_CIPHER_meth_new(cipher->nid, cipher->block_size, in EVP_CIPHER_meth_dup()
A Devp_enc.c321 OPENSSL_assert(ctx->cipher->block_size == 1 in evp_cipher_init_internal()
322 || ctx->cipher->block_size == 8 in evp_cipher_init_internal()
323 || ctx->cipher->block_size == 16); in evp_cipher_init_internal()
375 ctx->block_mask = ctx->cipher->block_size - 1; in evp_cipher_init_internal()
512 bl = ctx->cipher->block_size; in evp_EncryptDecryptUpdate()
622 blocksize = ctx->cipher->block_size; in EVP_EncryptUpdate()
714 b = ctx->cipher->block_size; in EVP_EncryptFinal_ex()
792 b = ctx->cipher->block_size; in EVP_DecryptUpdate()
937 b = ctx->cipher->block_size; in EVP_DecryptFinal_ex()
968 n = ctx->cipher->block_size - n; in EVP_DecryptFinal_ex()
A Devp_lib.c365 cipher->block_size = blksz; in evp_cipher_cache_constants()
390 return cipher->block_size; in EVP_CIPHER_get_block_size()
781 return md->block_size; in EVP_MD_get_block_size()
849 if (md->block_size != 0) in EVP_MD_meth_set_input_blocksize()
852 md->block_size = blocksize; in EVP_MD_meth_set_input_blocksize()
935 return md->block_size; in EVP_MD_meth_get_input_blocksize()
A Ddigest.c895 md->block_size = (int)blksz; in evp_md_cache_constants()
/openssl-master/doc/man3/
A DSSL_CTX_set_record_padding_callback.pod27 int SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size);
28 int SSL_set_block_padding(SSL *ssl, size_t block_size);
46 of the B<block_size>. A B<block_size> of 0 or 1 disables block padding. The limit of
47 B<block_size> is SSL3_RT_MAX_PLAIN_LENGTH.
62 or 0 if B<block_size> is too large.
A DEVP_CIPHER_meth_new.pod24 EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);
/openssl-master/crypto/sha/
A Dsha3.c27 ctx->block_size = bsz; in ossl_sha3_init()
48 size_t bsz = ctx->block_size; in ossl_sha3_update()
89 size_t bsz = ctx->block_size; in ossl_sha3_final()
/openssl-master/include/crypto/
A Devp.h261 int block_size; member
293 int block_size; member
355 bl = EVP_CIPHER_CTX_get0_cipher(ctx)->block_size; \
438 nid##_##nmode, block_size, key_len, iv_len, \
451 #define BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, \ argument
454 BLOCK_CIPHER_def1(cname, cbc, cbc, CBC, kstruct, nid, block_size, key_len, \
471 #define BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, \ argument
474 BLOCK_CIPHER_def1(cname, ecb, ecb, ECB, kstruct, nid, block_size, key_len, \
478 nid, block_size, key_len, iv_len, cbits, flags, \ argument
486 BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, flags, \
[all …]
/openssl-master/providers/implementations/ciphers/
A Dciphercommon_block.c24 size_t block_size, size_t mac_size,
32 size_t block_size, size_t mac_size,
/openssl-master/providers/implementations/digests/
A Dsha3_prov.c71 const size_t bsz = ctx->block_size; in keccak_update()
127 return SHA3_absorb(ctx->A, inp, len, ctx->block_size); in generic_sha3_absorb()
153 size_t rem = len % ctx->block_size; in s390x_sha3_absorb()
/openssl-master/include/internal/
A Dsha3.h36 size_t block_size; /* cached ctx->digest->block_size */ member
/openssl-master/ssl/
A Dssl_conf.c630 int block_size = atoi(value); in cmd_RecordPadding() local
636 if (block_size >= 0) { in cmd_RecordPadding()
638 rv = SSL_CTX_set_block_padding(cctx->ctx, block_size); in cmd_RecordPadding()
640 rv = SSL_set_block_padding(cctx->ssl, block_size); in cmd_RecordPadding()
A Dssl_lib.c4663 int SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size) in SSL_CTX_set_block_padding() argument
4666 if (block_size == 1) in SSL_CTX_set_block_padding()
4668 else if (block_size <= SSL3_RT_MAX_PLAIN_LENGTH) in SSL_CTX_set_block_padding()
4669 ctx->block_padding = block_size; in SSL_CTX_set_block_padding()
4699 int SSL_set_block_padding(SSL *ssl, size_t block_size) in SSL_set_block_padding() argument
4702 if (block_size == 1) in SSL_set_block_padding()
4704 else if (block_size <= SSL3_RT_MAX_PLAIN_LENGTH) in SSL_set_block_padding()
4705 ssl->block_padding = block_size; in SSL_set_block_padding()
/openssl-master/test/
A Devp_test.c1139 int block_size; member
1183 mdat->output_size = mdat->block_size = -1; in mac_test_init()
1245 mdata->block_size = atoi(value); in mac_test_parse()
1246 if (mdata->block_size < 0) in mac_test_parse()
1391 int i, block_size = -1, output_size = -1; in mac_test_run_mac() local
1488 if (expected->block_size >= 0) in mac_test_run_mac()
1490 &block_size); in mac_test_run_mac()
1502 if (expected->block_size >= 0 in mac_test_run_mac()
1503 && !TEST_int_eq(block_size, expected->block_size)) { in mac_test_run_mac()
/openssl-master/include/openssl/
A Dssl.h.in2197 int SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size);
2204 int SSL_set_block_padding(SSL *ssl, size_t block_size);
A Devp.h232 EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);

Completed in 68 milliseconds