Home
last modified time | relevance | path

Searched refs:blocksize (Results 1 – 25 of 29) sorted by relevance

12

/openssl/providers/implementations/ciphers/
H A Dciphercommon_block.c43 size_t blockmask = ~(blocksize - 1); in ossl_cipher_fillblock()
44 size_t bufremain = blocksize - *buflen; in ossl_cipher_fillblock()
46 assert(*buflen <= blocksize); in ossl_cipher_fillblock()
47 assert(blocksize > 0 && (blocksize & (blocksize - 1)) == 0); in ossl_cipher_fillblock()
69 if (*buflen + *inlen > blocksize) { in ossl_cipher_trailingdata()
87 for (i = *buflen; i < blocksize; i++) in ossl_cipher_padblock()
96 if (len != blocksize) { in ossl_cipher_unpadblock()
105 pad = buf[blocksize - 1]; in ossl_cipher_unpadblock()
106 if (pad == 0 || pad > blocksize) { in ossl_cipher_unpadblock()
161 buf += blocksize; in ossl_cipher_tlsunpadblock()
[all …]
H A Dciphercommon_local.h12 void ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize);
13 int ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize);
15 unsigned char *buf, size_t *buflen, size_t blocksize,
H A Dciphercommon.c254 size_t blksz = ctx->blocksize; in ossl_cipher_generic_block_update()
398 size_t blksz = ctx->blocksize; in ossl_cipher_generic_block_final()
709 ctx->blocksize = blkbits / 8; in ossl_cipher_generic_initkey()
H A Dcipher_aes_hw_aesni.inc68 if (len < ctx->blocksize)
H A Dciphercommon_hw.c32 size_t i, bl = dat->blocksize; in ossl_cipher_hw_generic_ecb()
H A Dcipher_des_hw.c54 size_t i, bl = ctx->blocksize; in cipher_hw_des_ecb_cipher()
/openssl/providers/implementations/kdfs/
H A Dkrb5kdf.c292 if (constant_len == blocksize) { in n_fold()
298 gcd = blocksize; in n_fold()
307 lcm = blocksize * constant_len / gcd; in n_fold()
310 memset(block, 0, blocksize); in n_fold()
318 b = l % blocksize; in n_fold()
384 size_t blocksize; in KRB5KDF() local
417 blocksize = EVP_CIPHER_CTX_get_block_size(ctx); in KRB5KDF()
419 if (blocksize == 0) { in KRB5KDF()
425 if (constant_len > blocksize) { in KRB5KDF()
431 n_fold(block, blocksize, constant, constant_len); in KRB5KDF()
[all …]
/openssl/crypto/ec/
H A Dec_mult.c62 ret->blocksize = 8; /* default */ in ec_pre_comp_new()
475 blocksize = pre_comp->blocksize; in ossl_ec_wNAF_mul()
596 numblocks = (tmp_len + blocksize - 1) / blocksize; in ossl_ec_wNAF_mul()
611 wNAF_len[i] = blocksize; in ossl_ec_wNAF_mul()
617 tmp_len -= blocksize; in ossl_ec_wNAF_mul()
642 pp += blocksize; in ossl_ec_wNAF_mul()
869 blocksize = 8; in ossl_ec_wNAF_precompute_mult()
876 numblocks = (bits + blocksize - 1) / blocksize; /* max. number of blocks in ossl_ec_wNAF_precompute_mult()
930 if (blocksize <= 2) { in ossl_ec_wNAF_precompute_mult()
937 for (k = 2; k < blocksize; k++) { in ossl_ec_wNAF_precompute_mult()
[all …]
/openssl/engines/
H A De_devcrypto.c113 unsigned int blocksize, num; member
118 int blocksize; member
224 cipher_ctx->blocksize = cipher_d->blocksize; in cipher_init()
304 nblocks = (inl + cipher_ctx->blocksize - 1) in cipher_do_cipher()
305 / cipher_ctx->blocksize; in cipher_do_cipher()
337 if (inl > cipher_ctx->blocksize) { in ctr_do_cipher()
338 nblocks = inl/cipher_ctx->blocksize; in ctr_do_cipher()
339 len = nblocks * cipher_ctx->blocksize; in ctr_do_cipher()
349 memset(cipher_ctx->partial, 0, cipher_ctx->blocksize); in ctr_do_cipher()
351 cipher_ctx->blocksize) < 1) in ctr_do_cipher()
[all …]
/openssl/crypto/evp/
H A Devp_enc.c663 int blocksize; in EVP_EncryptUpdate() local
686 blocksize = ctx->cipher->block_size; in EVP_EncryptUpdate()
694 inl_ + (size_t)(blocksize == 1 ? 0 : blocksize), in EVP_EncryptUpdate()
725 int blocksize; in EVP_EncryptFinal_ex() local
747 blocksize = EVP_CIPHER_CTX_get_block_size(ctx); in EVP_EncryptFinal_ex()
755 blocksize == 1 ? 0 : blocksize); in EVP_EncryptFinal_ex()
812 int blocksize; in EVP_DecryptUpdate() local
834 blocksize = EVP_CIPHER_CTX_get_block_size(ctx); in EVP_DecryptUpdate()
841 inl_ + (size_t)(blocksize == 1 ? 0 : blocksize), in EVP_DecryptUpdate()
946 int blocksize; in EVP_DecryptFinal_ex() local
[all …]
H A Dbio_enc.c106 int ret = 0, i, blocksize; in enc_read() local
134 blocksize = EVP_CIPHER_CTX_get_block_size(ctx->cipher); in enc_read()
136 if (blocksize == 0) in enc_read()
139 if (blocksize == 1) in enc_read()
140 blocksize = 0; in enc_read()
179 int j = outl - blocksize, buf_len; in enc_read()
H A De_camellia.c142 # define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \ argument
144 nid##_##keylen##_##nmode,blocksize,keylen/8,ivlen, \
153 nid##_##keylen##_##nmode,blocksize, \
167 # define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \ argument
169 nid##_##keylen##_##nmode,blocksize,keylen/8,ivlen, \
H A Devp_lib.c398 size_t blocksize = EVP_CIPHER_CTX_get_block_size(ctx); in EVP_Cipher() local
400 if (blocksize == 0) in EVP_Cipher()
405 inl + (blocksize == 1 ? 0 : blocksize), in EVP_Cipher()
410 inl + (blocksize == 1 ? 0 : blocksize), in EVP_Cipher()
414 blocksize == 1 ? 0 : blocksize); in EVP_Cipher()
876 int EVP_MD_meth_set_input_blocksize(EVP_MD *md, int blocksize) in EVP_MD_meth_set_input_blocksize() argument
881 md->block_size = blocksize; in EVP_MD_meth_set_input_blocksize()
H A De_aes.c424 nid##_##keylen##_##nmode,blocksize,keylen/8,ivlen, \
433 nid##_##keylen##_##nmode,blocksize, \
445 # define BLOCK_CIPHER_custom(nid,keylen,blocksize,ivlen,mode,MODE,flags) \ argument
447 nid##_##keylen##_##mode,blocksize, \
458 nid##_##keylen##_##mode,blocksize, \
810 nid##_##keylen##_##nmode,blocksize,keylen/8,ivlen, \
819 nid##_##keylen##_##nmode,blocksize, \
833 nid##_##keylen##_##mode,blocksize, \
844 nid##_##keylen##_##mode,blocksize, \
2366 nid##_##keylen##_##nmode,blocksize,keylen/8,ivlen, \
[all …]
H A De_sm4.c36 # define BLOCK_CIPHER_generic(nid,blocksize,ivlen,nmode,mode,MODE,flags) \ argument
38 nid##_##nmode,blocksize,128/8,ivlen, \
H A De_aria.c162 # define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \ argument
164 nid##_##keylen##_##nmode,blocksize,keylen/8,ivlen, \
/openssl/doc/man7/
H A DEVP_CIPHER-SM4.pod44 to be a multiple of the blocksize. Only the final EVP_EncryptUpdate() or
46 of the blocksize but is larger than one block. In that case ciphertext
H A DEVP_MD-common.pod15 =item "blocksize" (B<OSSL_DIGEST_PARAM_BLOCK_SIZE>) <unsigned integer>
18 The length of the "blocksize" parameter should not exceed that of a
H A DEVP_CIPHER-AES.pod74 to be a multiple of the blocksize. Only the final EVP_EncryptUpdate() or
76 of the blocksize but is larger than one block. In that case ciphertext
H A Dprovider-digest.pod189 =item "blocksize" (B<OSSL_DIGEST_PARAM_BLOCK_SIZE>) <unsigned integer>
192 The length of the "blocksize" parameter should not exceed that of a B<size_t>.
/openssl/providers/implementations/include/prov/
H A Dciphercommon.h66 size_t blocksize; member
266 size_t i, bl = ctx->blocksize; \
363 size_t blocksize,
366 size_t blocksize,
/openssl/ssl/record/methods/
H A Ddtls_meth.c740 size_t blocksize = 0; in dtls_get_max_record_overhead() local
744 blocksize = EVP_CIPHER_CTX_get_block_size(rl->enc_ctx); in dtls_get_max_record_overhead()
753 assert(rl->enc_ctx == NULL || ((blocksize == 0 || rl->eivlen > 0) in dtls_get_max_record_overhead()
768 return DTLS1_RT_HEADER_LENGTH + rl->eivlen + blocksize + rl->taglen; in dtls_get_max_record_overhead()
/openssl/ssl/
H A Dd1_lib.c934 size_t mac_overhead, int_overhead, blocksize, ext_overhead; in DTLS_get_data_mtu() local
948 &blocksize, &ext_overhead)) in DTLS_get_data_mtu()
963 if (blocksize) in DTLS_get_data_mtu()
964 mtu -= (mtu % blocksize); in DTLS_get_data_mtu()
H A Dssl_ciph.c2160 size_t *int_overhead, size_t *blocksize, in ssl_cipher_get_overhead() argument
2211 *blocksize = (size_t)blk; in ssl_cipher_get_overhead()
/openssl/doc/man3/
H A DEVP_MD_meth_new.pod29 int EVP_MD_meth_set_input_blocksize(EVP_MD *md, int blocksize);
80 for the method B<md> to B<blocksize> bytes.

Completed in 106 milliseconds

12