XilinxProcessorIPLib/drivers/trngpsv/src/CompactAES.c
void aesEncrypt(AES_BLOCK in, AES_BLOCK out)
{
    AES_BLOCK stateA, stateB;
    unsigned int roundval;
    applyKey(stateA, in, 0);

    for (roundval = 1; roundval < rounds; ++roundval)
    {
        mixColumnsSbox(stateB, stateA);
        applyKey(stateA, stateB, roundval);
    }
    shiftRowsSbox(stateA);
    applyKey(out, stateA, roundval);
}
//
// Encrypt a single AES data block in ECB mode
//
Encrypt a single AES data block in ECB mode
Encrypt a single AES data block in ECB mode
void aesEncrypt(AES_BLOCK in, AES_BLOCK out)
{
    AES_BLOCK stateA, stateB;
    unsigned int roundval;
    applyKey(stateA, in, 0);
    for (roundval = 1; roundval < rounds; ++roundval)
    {
        mixColumnsSbox(stateB, stateA);
        applyKey(stateA, stateB, roundval);
    }
    shiftRowsSbox(stateA);
    applyKey(out, stateA, roundval);
}
void aesEncrypt ( AES_BLOCK in , AES_BLOCK out ) { AES_BLOCK stateA , stateB ; unsigned int roundval ; applyKey ( stateA , in , 0 ) ; for ( roundval = 1 ; roundval < rounds ; ++ roundval ) { mixColumnsSbox ( stateB , stateA ) ; applyKey ( stateA , stateB , roundval ) ; } shiftRowsSbox ( stateA ) ; applyKey ( out , stateA , roundval ) ; }
Encrypt a single AES data block in ECB mode
Encrypt a single AES data block in ECB mode