Home
last modified time | relevance | path

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

/openssl/ssl/record/methods/
H A Dtls_pad.c31 size_t block_size,
58 size_t block_size, size_t mac_size, in ssl3_cbc_remove_padding_and_mac() argument
74 good &= constant_time_ge_s(block_size, padding_length + 1); in ssl3_cbc_remove_padding_and_mac()
78 block_size, mac_size, good, libctx); in ssl3_cbc_remove_padding_and_mac()
103 size_t block_size, size_t mac_size, in tls1_cbc_remove_padding_and_mac() argument
109 size_t overhead = ((block_size == 1) ? 0 : 1) /* padding length byte */ in tls1_cbc_remove_padding_and_mac()
119 if (block_size != 1) { in tls1_cbc_remove_padding_and_mac()
162 block_size, mac_size, good, libctx); in tls1_cbc_remove_padding_and_mac()
187 size_t block_size, in ssl3_cbc_copy_mac() argument
230 if (block_size == 1) { in ssl3_cbc_copy_mac()
/openssl/test/recipes/
H 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/providers/implementations/digests/
H A Dsha3_prov.c76 const size_t bsz = ctx->block_size; in keccak_update()
195 size_t rem = len % ctx->block_size; in s390x_sha3_absorb()
263 ctx->bufsz = outlen % ctx->block_size; in s390x_shake_squeeze()
269 len = ctx->block_size - ctx->bufsz; in s390x_shake_squeeze()
276 if (ctx->bufsz == ctx->block_size) in s390x_shake_squeeze()
282 ctx->bufsz = outlen % ctx->block_size; in s390x_shake_squeeze()
291 size_t bsz = ctx->block_size; in s390x_keccakc_final()
347 len = ctx->block_size - ctx->bufsz; in s390x_keccakc_squeeze()
358 len = ctx->block_size - ctx->bufsz; in s390x_keccakc_squeeze()
365 if (ctx->bufsz == ctx->block_size) in s390x_keccakc_squeeze()
[all …]
/openssl/crypto/evp/
H 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()
H A Devp_enc.c380 OPENSSL_assert(ctx->cipher->block_size == 1 in evp_cipher_init_internal()
381 || ctx->cipher->block_size == 8 in evp_cipher_init_internal()
382 || ctx->cipher->block_size == 16); in evp_cipher_init_internal()
439 ctx->block_mask = ctx->cipher->block_size - 1; in evp_cipher_init_internal()
576 bl = ctx->cipher->block_size; in evp_EncryptDecryptUpdate()
686 blocksize = ctx->cipher->block_size; in EVP_EncryptUpdate()
779 b = ctx->cipher->block_size; in EVP_EncryptFinal_ex()
857 b = ctx->cipher->block_size; in EVP_DecryptUpdate()
1002 b = ctx->cipher->block_size; in EVP_DecryptFinal_ex()
1033 n = ctx->cipher->block_size - n; in EVP_DecryptFinal_ex()
H A Devp_lib.c344 cipher->block_size = blksz; in evp_cipher_cache_constants()
369 return (cipher == NULL) ? 0 : cipher->block_size; in EVP_CIPHER_get_block_size()
805 return md->block_size; in EVP_MD_get_block_size()
878 if (md->block_size != 0) in EVP_MD_meth_set_input_blocksize()
881 md->block_size = blocksize; in EVP_MD_meth_set_input_blocksize()
964 return md->block_size; in EVP_MD_meth_get_input_blocksize()
H A Ddigest.c990 md->block_size = (int)blksz; in evp_md_cache_constants()
/openssl/doc/man3/
H A DSSL_CTX_set_record_padding_callback.pod29 int SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size);
30 int SSL_set_block_padding(SSL *ssl, size_t block_size);
50 of the B<block_size>. A B<block_size> of 0 or 1 disables block padding. The limit of
51 B<block_size> is SSL3_RT_MAX_PLAIN_LENGTH.
74 or 0 if B<block_size> is too large.
H A DEVP_CIPHER_meth_new.pod24 EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);
/openssl/include/crypto/
H A Devp.h269 int block_size; member
301 int block_size; member
362 bl = EVP_CIPHER_CTX_get0_cipher(ctx)->block_size; \
443 nid##_##nmode, block_size, key_len, iv_len, \
456 #define BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, \ argument
459 BLOCK_CIPHER_def1(cname, cbc, cbc, CBC, kstruct, nid, block_size, key_len, \
476 #define BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, \ argument
479 BLOCK_CIPHER_def1(cname, ecb, ecb, ECB, kstruct, nid, block_size, key_len, \
483 nid, block_size, key_len, iv_len, cbits, flags, \ argument
491 BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, flags, \
[all …]
/openssl/include/internal/
H A Dssl3_cbc.h18 size_t block_size, size_t mac_size,
26 size_t block_size, size_t mac_size,
H A Dsha3.h43 size_t block_size; /* cached ctx->digest->block_size */ member
/openssl/crypto/pkcs12/
H A Dp12_decr.c29 int block_size; in PKCS12_pbe_crypt_ex() local
47 block_size = EVP_CIPHER_CTX_get_block_size(ctx); in PKCS12_pbe_crypt_ex()
49 if (block_size == 0) { in PKCS12_pbe_crypt_ex()
54 max_out_len = inlen + block_size; in PKCS12_pbe_crypt_ex()
/openssl/crypto/sha/
H A Dsha3.c34 ctx->block_size = bsz; in ossl_sha3_init()
55 size_t bsz = ctx->block_size; in ossl_sha3_update()
105 size_t bsz = ctx->block_size; in ossl_sha3_final()
142 size_t bsz = ctx->block_size; in ossl_sha3_squeeze()
/openssl/test/
H A Devp_test.c1591 int block_size; member
1646 mdat->output_size = mdat->block_size = -1; in mac_test_init()
1703 mdata->block_size = atoi(value); in mac_test_parse()
1704 if (mdata->block_size < 0) in mac_test_parse()
1862 int block_size = -1, output_size = -1; in mac_test_run_mac() local
1974 if (expected->block_size >= 0) in mac_test_run_mac()
1976 &block_size); in mac_test_run_mac()
1988 if (expected->block_size >= 0 in mac_test_run_mac()
1989 && !TEST_int_eq(block_size, expected->block_size)) { in mac_test_run_mac()
/openssl/ssl/
H A Dssl_lib.c5736 int SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size) in SSL_CTX_set_block_padding() argument
5738 return SSL_CTX_set_block_padding_ex(ctx, block_size, block_size); in SSL_CTX_set_block_padding()
5807 int SSL_set_block_padding(SSL *ssl, size_t block_size) in SSL_set_block_padding() argument
5809 return SSL_set_block_padding_ex(ssl, block_size, block_size); in SSL_set_block_padding()
/openssl/include/openssl/
H A Devp.h237 EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);
H A Dssl.h.in2265 int SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size);
2274 int SSL_set_block_padding(SSL *ssl, size_t block_size);

Completed in 121 milliseconds