So I have created the c++ algorithm but I have no idea how to convert it into mips
any one know how to do this
Code
void
decrypt(unsigned char *ciphertext, unsigned char *plaintext, unsigned char *key,
unsigned char rounds) {
unsigned char A[16];
unsigned char B[16];
unsigned char C[16];
unsigned char D[16];
key_addition(ciphertext, &key[16 * rounds], C);
inv_shift_rows(C, (unsigned int *) B);
inv_byte_substitution(B, A);
for (unsigned int k = rounds - 1; k > 0; k--) {
key_addition(A, &key[16 * k], D);
inv_mix_column(D, C);
inv_shift_rows(C, (unsigned int *) B);
inv_byte_substitution(B, A);
}
key_addition(A, key, plaintext);
return;
}any one know how to do this


