Home
last modified time | relevance | path

Searched refs:block_length (Results 1 – 25 of 44) 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()
/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/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()
/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/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/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/bluetooth/bluez/tools/
Davinfo.c178 uint8_t block_length:4; member
230 uint8_t block_length:4; member
374 if (sbc->block_length & SBC_BLOCK_LENGTH_4) in print_sbc()
376 if (sbc->block_length & SBC_BLOCK_LENGTH_8) in print_sbc()
378 if (sbc->block_length & SBC_BLOCK_LENGTH_12) in print_sbc()
380 if (sbc->block_length & SBC_BLOCK_LENGTH_16) in print_sbc()
/external/bluetooth/bluez/audio/
Dsource.c385 if (supported->block_length & SBC_BLOCK_LENGTH_16) in select_sbc_params()
386 cap->block_length = SBC_BLOCK_LENGTH_16; in select_sbc_params()
387 else if (supported->block_length & SBC_BLOCK_LENGTH_12) in select_sbc_params()
388 cap->block_length = SBC_BLOCK_LENGTH_12; in select_sbc_params()
389 else if (supported->block_length & SBC_BLOCK_LENGTH_8) in select_sbc_params()
390 cap->block_length = SBC_BLOCK_LENGTH_8; in select_sbc_params()
391 else if (supported->block_length & SBC_BLOCK_LENGTH_4) in select_sbc_params()
392 cap->block_length = SBC_BLOCK_LENGTH_4; in select_sbc_params()
Dliba2dp.c394 if (cap->block_length & BT_A2DP_BLOCK_LENGTH_16) in bluetooth_a2dp_init()
395 cap->block_length = BT_A2DP_BLOCK_LENGTH_16; in bluetooth_a2dp_init()
396 else if (cap->block_length & BT_A2DP_BLOCK_LENGTH_12) in bluetooth_a2dp_init()
397 cap->block_length = BT_A2DP_BLOCK_LENGTH_12; in bluetooth_a2dp_init()
398 else if (cap->block_length & BT_A2DP_BLOCK_LENGTH_8) in bluetooth_a2dp_init()
399 cap->block_length = BT_A2DP_BLOCK_LENGTH_8; in bluetooth_a2dp_init()
400 else if (cap->block_length & BT_A2DP_BLOCK_LENGTH_4) in bluetooth_a2dp_init()
401 cap->block_length = BT_A2DP_BLOCK_LENGTH_4; in bluetooth_a2dp_init()
475 switch (active_capabilities.block_length) { in bluetooth_a2dp_setup()
595 switch (data->sbc_capabilities.block_length) { in bluetooth_a2dp_hw_params()
[all …]
Dsink.c418 if (supported->block_length & SBC_BLOCK_LENGTH_16) in select_sbc_params()
419 cap->block_length = SBC_BLOCK_LENGTH_16; in select_sbc_params()
420 else if (supported->block_length & SBC_BLOCK_LENGTH_12) in select_sbc_params()
421 cap->block_length = SBC_BLOCK_LENGTH_12; in select_sbc_params()
422 else if (supported->block_length & SBC_BLOCK_LENGTH_8) in select_sbc_params()
423 cap->block_length = SBC_BLOCK_LENGTH_8; in select_sbc_params()
424 else if (supported->block_length & SBC_BLOCK_LENGTH_4) in select_sbc_params()
425 cap->block_length = SBC_BLOCK_LENGTH_4; in select_sbc_params()
Dpcm_bluetooth.c122 uint8_t block_length; /* A2DP only */ member
573 cap->block_length = cfg->block_length; in bluetooth_a2dp_init()
574 else if (cap->block_length & BT_A2DP_BLOCK_LENGTH_16) in bluetooth_a2dp_init()
575 cap->block_length = BT_A2DP_BLOCK_LENGTH_16; in bluetooth_a2dp_init()
576 else if (cap->block_length & BT_A2DP_BLOCK_LENGTH_12) in bluetooth_a2dp_init()
577 cap->block_length = BT_A2DP_BLOCK_LENGTH_12; in bluetooth_a2dp_init()
578 else if (cap->block_length & BT_A2DP_BLOCK_LENGTH_8) in bluetooth_a2dp_init()
579 cap->block_length = BT_A2DP_BLOCK_LENGTH_8; in bluetooth_a2dp_init()
580 else if (cap->block_length & BT_A2DP_BLOCK_LENGTH_4) in bluetooth_a2dp_init()
581 cap->block_length = BT_A2DP_BLOCK_LENGTH_4; in bluetooth_a2dp_init()
[all …]
Da2dp.h78 uint8_t block_length:4; member
100 uint8_t block_length:4; member
Dgstavdtpsink.c342 cfg->block_length = BT_A2DP_BLOCK_LENGTH_16; in gst_avdtp_sink_init_sbc_pkt_conf()
344 cfg->block_length = BT_A2DP_BLOCK_LENGTH_12; in gst_avdtp_sink_init_sbc_pkt_conf()
346 cfg->block_length = BT_A2DP_BLOCK_LENGTH_8; in gst_avdtp_sink_init_sbc_pkt_conf()
348 cfg->block_length = BT_A2DP_BLOCK_LENGTH_4; in gst_avdtp_sink_init_sbc_pkt_conf()
500 if (sbc->block_length & BT_A2DP_BLOCK_LENGTH_16) { in gst_avdtp_sink_parse_sbc_caps()
504 if (sbc->block_length & BT_A2DP_BLOCK_LENGTH_12) { in gst_avdtp_sink_parse_sbc_caps()
508 if (sbc->block_length & BT_A2DP_BLOCK_LENGTH_8) { in gst_avdtp_sink_parse_sbc_caps()
512 if (sbc->block_length & BT_A2DP_BLOCK_LENGTH_4) { in gst_avdtp_sink_parse_sbc_caps()
/external/bluetooth/bluez/test/
Dipctest.c444 if (cap->block_length & BT_A2DP_BLOCK_LENGTH_16) in setup_a2dp()
445 cap->block_length = BT_A2DP_BLOCK_LENGTH_16; in setup_a2dp()
446 else if (cap->block_length & BT_A2DP_BLOCK_LENGTH_12) in setup_a2dp()
447 cap->block_length = BT_A2DP_BLOCK_LENGTH_12; in setup_a2dp()
448 else if (cap->block_length & BT_A2DP_BLOCK_LENGTH_8) in setup_a2dp()
449 cap->block_length = BT_A2DP_BLOCK_LENGTH_8; in setup_a2dp()
450 else if (cap->block_length & BT_A2DP_BLOCK_LENGTH_4) in setup_a2dp()
451 cap->block_length = BT_A2DP_BLOCK_LENGTH_4; in setup_a2dp()
549 switch (active_capabilities->block_length) { in setup_sbc()
/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/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/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()

12