Lines Matching defs:data

415 Blowfish_stream2word(const uint8_t *data, uint16_t databytes, uint16_t *current)
427 temp = (temp << 8) | data[j];
473 Blowfish_expandstate(blf_ctx *c, const uint8_t *data, uint16_t databytes,
494 datal ^= Blowfish_stream2word(data, databytes, &j);
495 datar ^= Blowfish_stream2word(data, databytes, &j);
504 datal ^= Blowfish_stream2word(data, databytes, &j);
505 datar ^= Blowfish_stream2word(data, databytes, &j);
525 blf_enc(blf_ctx *c, uint32_t *data, uint16_t blocks)
530 d = data;
538 blf_dec(blf_ctx *c, uint32_t *data, uint16_t blocks)
543 d = data;
551 blf_ecb_encrypt(blf_ctx *c, uint8_t *data, uint32_t len)
557 l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
558 r = data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7];
560 data[0] = l >> 24 & 0xff;
561 data[1] = l >> 16 & 0xff;
562 data[2] = l >> 8 & 0xff;
563 data[3] = l & 0xff;
564 data[4] = r >> 24 & 0xff;
565 data[5] = r >> 16 & 0xff;
566 data[6] = r >> 8 & 0xff;
567 data[7] = r & 0xff;
568 data += 8;
573 blf_ecb_decrypt(blf_ctx *c, uint8_t *data, uint32_t len)
579 l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
580 r = data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7];
582 data[0] = l >> 24 & 0xff;
583 data[1] = l >> 16 & 0xff;
584 data[2] = l >> 8 & 0xff;
585 data[3] = l & 0xff;
586 data[4] = r >> 24 & 0xff;
587 data[5] = r >> 16 & 0xff;
588 data[6] = r >> 8 & 0xff;
589 data[7] = r & 0xff;
590 data += 8;
595 blf_cbc_encrypt(blf_ctx *c, uint8_t *iv, uint8_t *data, uint32_t len)
602 data[j] ^= iv[j];
603 l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
604 r = data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7];
606 data[0] = l >> 24 & 0xff;
607 data[1] = l >> 16 & 0xff;
608 data[2] = l >> 8 & 0xff;
609 data[3] = l & 0xff;
610 data[4] = r >> 24 & 0xff;
611 data[5] = r >> 16 & 0xff;
612 data[6] = r >> 8 & 0xff;
613 data[7] = r & 0xff;
614 iv = data;
615 data += 8;
620 blf_cbc_decrypt(blf_ctx *c, uint8_t *iva, uint8_t *data, uint32_t len)
626 iv = data + len - 16;
627 data = data + len - 8;
629 l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
630 r = data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7];
632 data[0] = l >> 24 & 0xff;
633 data[1] = l >> 16 & 0xff;
634 data[2] = l >> 8 & 0xff;
635 data[3] = l & 0xff;
636 data[4] = r >> 24 & 0xff;
637 data[5] = r >> 16 & 0xff;
638 data[6] = r >> 8 & 0xff;
639 data[7] = r & 0xff;
641 data[j] ^= iv[j];
643 data -= 8;
645 l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];
646 r = data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7];
648 data[0] = l >> 24 & 0xff;
649 data[1] = l >> 16 & 0xff;
650 data[2] = l >> 8 & 0xff;
651 data[3] = l & 0xff;
652 data[4] = r >> 24 & 0xff;
653 data[5] = r >> 16 & 0xff;
654 data[6] = r >> 8 & 0xff;
655 data[7] = r & 0xff;
657 data[j] ^= iva[j];
662 report(uint32_t data[], uint16_t len)
667 i / 2, data[i], data[i + 1]);
677 uint32_t data[10];
685 data[i] = i;
688 blf_enc(&c, data, 5);
689 blf_dec(&c, data, 1);
690 blf_dec(&c, data + 2, 4);
692 report(data, 10);