Lines Matching refs:expanded

251 void mtpz_encryption_inv_mix_columns(unsigned char *expanded, int offset, int rounds);
252 … mtpz_encryption_decrypt_custom(unsigned char *data, unsigned char *seed, unsigned char *expanded);
253 … mtpz_encryption_encrypt_custom(unsigned char *data, unsigned char *seed, unsigned char *expanded);
554 unsigned char *expanded = NULL; in mtpz_encryption_cipher() local
561 expanded = mtpz_encryption_expand_key((unsigned char *)MTPZ_ENCRYPTION_KEY, 16, 10, &exp_len); in mtpz_encryption_cipher()
568 mtpz_encryption_encrypt_custom(data + offset, NULL, expanded); in mtpz_encryption_cipher()
570 mtpz_encryption_decrypt_custom(data + offset, NULL, expanded); in mtpz_encryption_cipher()
585 unsigned char *expanded = mtpz_encryption_expand_key(key, key_len, len, &exp_len); in mtpz_encryption_cipher_advanced() local
613 mtpz_encryption_encrypt_custom(data + offset, out, expanded); in mtpz_encryption_cipher_advanced()
622 mtpz_encryption_decrypt_custom(data + offset, out, expanded); in mtpz_encryption_cipher_advanced()
641 free(expanded); in mtpz_encryption_cipher_advanced()
751 void mtpz_encryption_inv_mix_columns(unsigned char *expanded, int offset, int rounds) in mtpz_encryption_inv_mix_columns() argument
758 exp_int = (unsigned int *)(expanded + o + 16); in mtpz_encryption_inv_mix_columns()
760 …PZ_SWAP(mtpz_aes_gb9[expanded[o + 19]] ^ mtpz_aes_gb13[expanded[o + 18]] ^ mtpz_aes_gb11[expanded[… in mtpz_encryption_inv_mix_columns()
761 …PZ_SWAP(mtpz_aes_gb9[expanded[o + 23]] ^ mtpz_aes_gb13[expanded[o + 22]] ^ mtpz_aes_gb11[expanded[… in mtpz_encryption_inv_mix_columns()
762 …PZ_SWAP(mtpz_aes_gb9[expanded[o + 27]] ^ mtpz_aes_gb13[expanded[o + 26]] ^ mtpz_aes_gb11[expanded[… in mtpz_encryption_inv_mix_columns()
763 …PZ_SWAP(mtpz_aes_gb9[expanded[o + 31]] ^ mtpz_aes_gb13[expanded[o + 30]] ^ mtpz_aes_gb11[expanded[… in mtpz_encryption_inv_mix_columns()
768 …d mtpz_encryption_decrypt_custom(unsigned char *data, unsigned char *seed, unsigned char *expanded) in mtpz_encryption_decrypt_custom() argument
771 unsigned int *u_expanded = (unsigned int *)expanded; in mtpz_encryption_decrypt_custom()
843 …d mtpz_encryption_encrypt_custom(unsigned char *data, unsigned char *seed, unsigned char *expanded) in mtpz_encryption_encrypt_custom() argument
846 unsigned int *u_expanded = (unsigned int *)expanded; in mtpz_encryption_encrypt_custom()
956 unsigned char *expanded = mtpz_encryption_expand_key(hash, hash_length, len, &exp_len); in mtpz_encryption_encrypt_mac() local
982 mtpz_encryption_encrypt_custom(out, actual_seed, expanded); in mtpz_encryption_encrypt_mac()
984 free(expanded); in mtpz_encryption_encrypt_mac()