Home
last modified time | relevance | path

Searched refs:block_length (Results 1 – 25 of 37) sorted by relevance

12

/external/dropbear/libtomcrypt/src/modes/ecb/
Decb_decrypt.c37 if (len % cipher_descriptor[ecb->cipher].block_length) { in ecb_decrypt()
43 …b->cipher].accel_ecb_decrypt(ct, pt, len / cipher_descriptor[ecb->cipher].block_length, &ecb->key); in ecb_decrypt()
49 pt += cipher_descriptor[ecb->cipher].block_length; in ecb_decrypt()
50 ct += cipher_descriptor[ecb->cipher].block_length; in ecb_decrypt()
51 len -= cipher_descriptor[ecb->cipher].block_length; in ecb_decrypt()
Decb_encrypt.c37 if (len % cipher_descriptor[ecb->cipher].block_length) { in ecb_encrypt()
43 …b->cipher].accel_ecb_encrypt(pt, ct, len / cipher_descriptor[ecb->cipher].block_length, &ecb->key); in ecb_encrypt()
49 pt += cipher_descriptor[ecb->cipher].block_length; in ecb_encrypt()
50 ct += cipher_descriptor[ecb->cipher].block_length; in ecb_encrypt()
51 len -= cipher_descriptor[ecb->cipher].block_length; in ecb_encrypt()
Decb_start.c40 ecb->blocklen = cipher_descriptor[cipher].block_length; in ecb_start()
/external/dropbear/libtomcrypt/src/mac/xcbc/
Dxcbc_init.c41 if (cipher_descriptor[cipher].block_length % sizeof(LTC_FAST_TYPE)) { in xcbc_init()
58 for (x = 0; x < cipher_descriptor[cipher].block_length; x++) { in xcbc_init()
65 …err = cipher_descriptor[cipher].setup(xcbc->K[0], cipher_descriptor[cipher].block_length, 0, &xcbc… in xcbc_init()
68 zeromem(xcbc->IV, cipher_descriptor[cipher].block_length); in xcbc_init()
69 xcbc->blocksize = cipher_descriptor[cipher].block_length; in xcbc_init()
Dxcbc_process.c41 if ((xcbc->blocksize > cipher_descriptor[xcbc->cipher].block_length) || (xcbc->blocksize < 0) || in xcbc_process()
Dxcbc_done.c37 if ((xcbc->blocksize > cipher_descriptor[xcbc->cipher].block_length) || (xcbc->blocksize < 0) || in xcbc_done()
/external/dropbear/libtomcrypt/src/mac/f9/
Df9_init.c40 if (cipher_descriptor[cipher].block_length % sizeof(LTC_FAST_TYPE)) { in f9_init()
55 zeromem(f9->IV, cipher_descriptor[cipher].block_length); in f9_init()
56 zeromem(f9->ACC, cipher_descriptor[cipher].block_length); in f9_init()
57 f9->blocksize = cipher_descriptor[cipher].block_length; in f9_init()
Df9_done.c37 if ((f9->blocksize > cipher_descriptor[f9->cipher].block_length) || (f9->blocksize < 0) || in f9_done()
Df9_process.c38 if ((f9->blocksize > cipher_descriptor[f9->cipher].block_length) || (f9->blocksize < 0) || in f9_process()
/external/dropbear/libtomcrypt/src/hashes/chc/
Dchc.c51 kl = cipher_descriptor[cipher].block_length; in chc_register()
63 if (kl != cipher_descriptor[cipher].block_length) { in chc_register()
74 hash_descriptor[idx].blocksize = cipher_descriptor[cipher].block_length; in chc_register()
78 cipher_blocksize = cipher_descriptor[cipher].block_length; in chc_register()
100 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_init()
180 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_process()
204 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_done()
/external/dropbear/libtomcrypt/demos/
Dtv_gen.c203 for (z = 0; (int)z < cipher_descriptor[x].block_length; z++) { in cipher_gen()
209 for (z = 0; (int)z < cipher_descriptor[x].block_length; z++) { in cipher_gen()
216 key[z] = pt[z % cipher_descriptor[x].block_length]; in cipher_gen()
298 kl = cipher_descriptor[x].block_length; in omac_gen()
313 for (y = 0; y <= (int)(cipher_descriptor[x].block_length*2); y++) { in omac_gen()
353 kl = cipher_descriptor[x].block_length; in pmac_gen()
368 for (y = 0; y <= (int)(cipher_descriptor[x].block_length*2); y++) { in pmac_gen()
407 kl = cipher_descriptor[x].block_length; in eax_gen()
422 for (y1 = 0; y1 <= (int)(cipher_descriptor[x].block_length*2); y1++){ in eax_gen()
467 kl = cipher_descriptor[x].block_length; in ocb_gen()
[all …]
/external/dropbear/libtomcrypt/src/mac/omac/
Domac_init.c42 if (cipher_descriptor[cipher].block_length % sizeof(LTC_FAST_TYPE)) { in omac_init()
48 switch (cipher_descriptor[cipher].block_length) { in omac_init()
65 zeromem(omac->Lu[0], cipher_descriptor[cipher].block_length); in omac_init()
/external/qemu/hw/
Dgoldfish_mmc.c78 uint32_t block_length; member
98 QFIELD_INT32(block_length), in QFIELD_INT32()
359 s->block_length = arg; in goldfish_mmc_do_command()
372 arg /= s->block_length; in goldfish_mmc_do_command()
389 arg /= s->block_length; in goldfish_mmc_do_command()
479 s->block_length = val + 1; in goldfish_mmc_write()
/external/dropbear/libtomcrypt/src/modes/f8/
Df8_start.c51 if (cipher_descriptor[cipher].block_length % sizeof(LTC_FAST_TYPE)) { in f8_start()
59 f8->blocklen = cipher_descriptor[cipher].block_length; in f8_start()
/external/flac/libFLAC/
Dmetadata_iterators.c94 …handle, FLAC__IOCallback_Seek seek_cb, FLAC__StreamMetadata_Padding *block, unsigned block_length);
95 …le, FLAC__IOCallback_Read read_cb, FLAC__StreamMetadata_Application *block, unsigned block_length);
96 …ndle, FLAC__IOCallback_Read read_cb, FLAC__StreamMetadata_SeekTable *block, unsigned block_length);
102 …handle, FLAC__IOCallback_Read read_cb, FLAC__StreamMetadata_Unknown *block, unsigned block_length);
109 …FLAC__IOCallback_Write write_cb, const FLAC__StreamMetadata_Padding *block, unsigned block_length);
110 …__IOCallback_Write write_cb, const FLAC__StreamMetadata_Application *block, unsigned block_length);
115 …FLAC__IOCallback_Write write_cb, const FLAC__StreamMetadata_Unknown *block, unsigned block_length);
2146 … handle, FLAC__IOCallback_Seek seek_cb, FLAC__StreamMetadata_Padding *block, unsigned block_length) in read_metadata_block_data_padding_cb_() argument
2150 if(0 != seek_cb(handle, block_length, SEEK_CUR)) in read_metadata_block_data_padding_cb_()
2156 …dle, FLAC__IOCallback_Read read_cb, FLAC__StreamMetadata_Application *block, unsigned block_length) in read_metadata_block_data_application_cb_() argument
[all …]
/external/dropbear/libtomcrypt/src/misc/crypt/
Dcrypt_find_cipher_any.c39 …if (blocklen <= (int)cipher_descriptor[x].block_length && keylen <= (int)cipher_descriptor[x].max_… in find_cipher_any()
/external/dropbear/libtomcrypt/src/modes/ofb/
Dofb_start.c46 ofb->blocklen = cipher_descriptor[cipher].block_length; in ofb_start()
/external/dropbear/libtomcrypt/src/modes/cbc/
Dcbc_start.c50 cbc->blocklen = cipher_descriptor[cipher].block_length; in cbc_start()
/external/dropbear/libtomcrypt/src/modes/cfb/
Dcfb_start.c47 cfb->blocklen = cipher_descriptor[cipher].block_length; in cfb_start()
/external/dropbear/libtomcrypt/src/encauth/ocb/
Docb_encrypt.c38 if (ocb->block_len != cipher_descriptor[ocb->cipher].block_length) { in ocb_encrypt()
Docb_decrypt.c43 if (ocb->block_len != cipher_descriptor[ocb->cipher].block_length) { in ocb_decrypt()
/external/dropbear/libtomcrypt/testprof/
Dx86_prof.c348 results[no_results].spd1 = a1/(sizeof(pt)/cipher_descriptor[x].block_length); in time_cipher()
349 results[no_results].spd2 = a2/(sizeof(pt)/cipher_descriptor[x].block_length); in time_cipher()
420 results[no_results].spd1 = a1/(sizeof(pt)/cipher_descriptor[x].block_length); in time_cipher2()
421 results[no_results].spd2 = a2/(sizeof(pt)/cipher_descriptor[x].block_length); in time_cipher2()
495 results[no_results].spd1 = a1/(sizeof(pt)/cipher_descriptor[x].block_length); in time_cipher3()
496 results[no_results].spd2 = a2/(sizeof(pt)/cipher_descriptor[x].block_length); in time_cipher3()
524 if (cipher_descriptor[x].block_length != 16) continue; in time_cipher4()
572 results[no_results].spd1 = a1/(sizeof(pt)/cipher_descriptor[x].block_length); in time_cipher4()
573 results[no_results].spd2 = a2/(sizeof(pt)/cipher_descriptor[x].block_length); in time_cipher4()
/external/dropbear/libtomcrypt/src/modes/ctr/
Dctr_start.c55 ctr->blocklen = cipher_descriptor[cipher].block_length; in ctr_start()
/external/dropbear/libtomcrypt/src/modes/lrw/
Dlrw_start.c59 if (cipher_descriptor[cipher].block_length != 16) { in lrw_start()
/external/dropbear/libtomcrypt/src/encauth/gcm/
Dgcm_init.c50 if (cipher_descriptor[cipher].block_length != 16) { in gcm_init()

12