#include "opc.hh" void opc::compute_opc(uint8_t p_opc[16]) { if (!_computed) { _rijndael.rijndael_encrypt(_op, p_opc); for (uint8_t i = 0; i < 16; i++) { p_opc[i] ^= _op[i]; } // End of 'for' statement } else { std::memcpy(p_opc, _op, 16); } }