Lines Matching refs:MTPZ_SWAP
245 #define MTPZ_SWAP(x) mtpz_bswap32(x) macro
435 v6 = MTPZ_SWAP(v6); in mtpz_hash_finalize_hash()
436 v7 = MTPZ_SWAP(v7); in mtpz_hash_finalize_hash()
444 out_int[0] = MTPZ_SWAP(state_box[0]); in mtpz_hash_finalize_hash()
445 out_int[1] = MTPZ_SWAP(state_box[1]); in mtpz_hash_finalize_hash()
446 out_int[2] = MTPZ_SWAP(state_box[2]); in mtpz_hash_finalize_hash()
447 out_int[3] = MTPZ_SWAP(state_box[3]); in mtpz_hash_finalize_hash()
448 out_int[4] = MTPZ_SWAP(state_box[4]); in mtpz_hash_finalize_hash()
468 k = MTPZ_SWAP(i); in mtpz_hash_custom6A5DC()
499 for (i = 0; i < 16; i++) W[i] = MTPZ_SWAP(M[i]); in mtpz_hash_compute_hash()
608 out_int[0] ^= MTPZ_SWAP(dtf[0]); in mtpz_encryption_cipher_advanced()
609 out_int[1] ^= MTPZ_SWAP(dtf[1]); in mtpz_encryption_cipher_advanced()
610 out_int[2] ^= MTPZ_SWAP(dtf[2]); in mtpz_encryption_cipher_advanced()
611 out_int[3] ^= MTPZ_SWAP(dtf[3]); in mtpz_encryption_cipher_advanced()
615 dtf[0] = MTPZ_SWAP(data_int[(offset / 4) + 0]); in mtpz_encryption_cipher_advanced()
616 dtf[1] = MTPZ_SWAP(data_int[(offset / 4) + 1]); in mtpz_encryption_cipher_advanced()
617 dtf[2] = MTPZ_SWAP(data_int[(offset / 4) + 2]); in mtpz_encryption_cipher_advanced()
618 dtf[3] = MTPZ_SWAP(data_int[(offset / 4) + 3]); in mtpz_encryption_cipher_advanced()
624 data_int[(offset / 4) + 0] ^= MTPZ_SWAP(dtf[0]); in mtpz_encryption_cipher_advanced()
625 data_int[(offset / 4) + 1] ^= MTPZ_SWAP(dtf[1]); in mtpz_encryption_cipher_advanced()
626 data_int[(offset / 4) + 2] ^= MTPZ_SWAP(dtf[2]); in mtpz_encryption_cipher_advanced()
627 data_int[(offset / 4) + 3] ^= MTPZ_SWAP(dtf[3]); in mtpz_encryption_cipher_advanced()
629 dtf[0] = MTPZ_SWAP(out_int[0]); in mtpz_encryption_cipher_advanced()
630 dtf[1] = MTPZ_SWAP(out_int[1]); in mtpz_encryption_cipher_advanced()
631 dtf[2] = MTPZ_SWAP(out_int[2]); in mtpz_encryption_cipher_advanced()
632 dtf[3] = MTPZ_SWAP(out_int[3]); in mtpz_encryption_cipher_advanced()
760 …exp_int[0] = MTPZ_SWAP(mtpz_aes_gb9[expanded[o + 19]] ^ mtpz_aes_gb13[expanded[o + 18]] ^ mtpz_aes… in mtpz_encryption_inv_mix_columns()
761 …exp_int[1] = MTPZ_SWAP(mtpz_aes_gb9[expanded[o + 23]] ^ mtpz_aes_gb13[expanded[o + 22]] ^ mtpz_aes… in mtpz_encryption_inv_mix_columns()
762 …exp_int[2] = MTPZ_SWAP(mtpz_aes_gb9[expanded[o + 27]] ^ mtpz_aes_gb13[expanded[o + 26]] ^ mtpz_aes… in mtpz_encryption_inv_mix_columns()
763 …exp_int[3] = MTPZ_SWAP(mtpz_aes_gb9[expanded[o + 31]] ^ mtpz_aes_gb13[expanded[o + 30]] ^ mtpz_aes… in mtpz_encryption_inv_mix_columns()
781 unsigned int v14 = MTPZ_SWAP(u_seed[0]) ^ MTPZ_SWAP(u_expanded[(keyOffset ) / 4]); in mtpz_encryption_decrypt_custom()
782 unsigned int v15 = MTPZ_SWAP(u_seed[1]) ^ MTPZ_SWAP(u_expanded[(keyOffset + 4) / 4]); in mtpz_encryption_decrypt_custom()
783 unsigned int v16 = MTPZ_SWAP(u_seed[2]) ^ MTPZ_SWAP(u_expanded[(keyOffset + 8) / 4]); in mtpz_encryption_decrypt_custom()
784 unsigned int v17 = MTPZ_SWAP(u_seed[3]) ^ MTPZ_SWAP(u_expanded[(keyOffset + 12) / 4]); in mtpz_encryption_decrypt_custom()
796 v14 = v18 ^ MTPZ_SWAP(u_expanded[(keyOffset ) / 4]); in mtpz_encryption_decrypt_custom()
797 v15 = v19 ^ MTPZ_SWAP(u_expanded[(keyOffset + 4) / 4]); in mtpz_encryption_decrypt_custom()
798 v16 = v20 ^ MTPZ_SWAP(u_expanded[(keyOffset + 8) / 4]); in mtpz_encryption_decrypt_custom()
799 v17 = v21 ^ MTPZ_SWAP(u_expanded[(keyOffset + 12) / 4]); in mtpz_encryption_decrypt_custom()
811 v14 = v18 ^ MTPZ_SWAP(u_expanded[(keyOffset ) / 4]); in mtpz_encryption_decrypt_custom()
812 v15 = v19 ^ MTPZ_SWAP(u_expanded[(keyOffset + 4) / 4]); in mtpz_encryption_decrypt_custom()
813 v16 = v20 ^ MTPZ_SWAP(u_expanded[(keyOffset + 8) / 4]); in mtpz_encryption_decrypt_custom()
814 v17 = v21 ^ MTPZ_SWAP(u_expanded[(keyOffset + 12) / 4]); in mtpz_encryption_decrypt_custom()
837 u_data[0] = MTPZ_SWAP(v18 ^ MTPZ_SWAP(u_expanded[(keyOffset ) / 4])); in mtpz_encryption_decrypt_custom()
838 u_data[1] = MTPZ_SWAP(v19 ^ MTPZ_SWAP(u_expanded[(keyOffset + 4) / 4])); in mtpz_encryption_decrypt_custom()
839 u_data[2] = MTPZ_SWAP(v20 ^ MTPZ_SWAP(u_expanded[(keyOffset + 8) / 4])); in mtpz_encryption_decrypt_custom()
840 u_data[3] = MTPZ_SWAP(v21 ^ MTPZ_SWAP(u_expanded[(keyOffset + 12) / 4])); in mtpz_encryption_decrypt_custom()
856 unsigned int v14 = MTPZ_SWAP(u_seed[0]) ^ MTPZ_SWAP(u_expanded[(keyOffset ) / 4]); in mtpz_encryption_encrypt_custom()
857 unsigned int v15 = MTPZ_SWAP(u_seed[1]) ^ MTPZ_SWAP(u_expanded[(keyOffset + 4) / 4]); in mtpz_encryption_encrypt_custom()
858 unsigned int v16 = MTPZ_SWAP(u_seed[2]) ^ MTPZ_SWAP(u_expanded[(keyOffset + 8) / 4]); in mtpz_encryption_encrypt_custom()
859 unsigned int v17 = MTPZ_SWAP(u_seed[3]) ^ MTPZ_SWAP(u_expanded[(keyOffset + 12) / 4]); in mtpz_encryption_encrypt_custom()
872 v14 = v18 ^ MTPZ_SWAP(u_expanded[(keyOffset ) / 4]); in mtpz_encryption_encrypt_custom()
873 v15 = v19 ^ MTPZ_SWAP(u_expanded[(keyOffset + 4) / 4]); in mtpz_encryption_encrypt_custom()
874 v16 = v20 ^ MTPZ_SWAP(u_expanded[(keyOffset + 8) / 4]); in mtpz_encryption_encrypt_custom()
875 v17 = v21 ^ MTPZ_SWAP(u_expanded[(keyOffset + 12) / 4]); in mtpz_encryption_encrypt_custom()
887 v14 = v18 ^ MTPZ_SWAP(u_expanded[(keyOffset ) / 4]); in mtpz_encryption_encrypt_custom()
888 v15 = v19 ^ MTPZ_SWAP(u_expanded[(keyOffset + 4) / 4]); in mtpz_encryption_encrypt_custom()
889 v16 = v20 ^ MTPZ_SWAP(u_expanded[(keyOffset + 8) / 4]); in mtpz_encryption_encrypt_custom()
890 v17 = v21 ^ MTPZ_SWAP(u_expanded[(keyOffset + 12) / 4]); in mtpz_encryption_encrypt_custom()
915 u_data[0] = MTPZ_SWAP(v18 ^ MTPZ_SWAP(u_expanded[(keyOffset ) / 4])); in mtpz_encryption_encrypt_custom()
916 u_data[1] = MTPZ_SWAP(v19 ^ MTPZ_SWAP(u_expanded[(keyOffset + 4) / 4])); in mtpz_encryption_encrypt_custom()
917 u_data[2] = MTPZ_SWAP(v20 ^ MTPZ_SWAP(u_expanded[(keyOffset + 8) / 4])); in mtpz_encryption_encrypt_custom()
918 u_data[3] = MTPZ_SWAP(v21 ^ MTPZ_SWAP(u_expanded[(keyOffset + 12) / 4])); in mtpz_encryption_encrypt_custom()
1600 unsigned int certs_length = MTPZ_SWAP(*(unsigned int *)(act_reader)); in ptp_mtpz_validatehandshakeresponse()
1604 unsigned int rand_length = MTPZ_SWAP(*(unsigned short *)(act_reader) << 16); in ptp_mtpz_validatehandshakeresponse()
1616 unsigned int dev_rand_length = MTPZ_SWAP(*(unsigned short *)(act_reader) << 16); in ptp_mtpz_validatehandshakeresponse()
1622 unsigned int sig_length = MTPZ_SWAP(*(unsigned short *)(act_reader) << 16); in ptp_mtpz_validatehandshakeresponse()
1628 unsigned int machash_length = MTPZ_SWAP(*(unsigned short *)(act_reader) << 16); in ptp_mtpz_validatehandshakeresponse()
1657 MTPZ_SWAP(hashparams[0]), MTPZ_SWAP(hashparams[1]), in ptp_mtpz_opensecuresyncsession()
1658 MTPZ_SWAP(hashparams[2]), MTPZ_SWAP(hashparams[3])); in ptp_mtpz_opensecuresyncsession()