public void RunStructFldScenario(AesBinaryOpTest__Encrypt_Vector128_Byte testClass) { var result = Aes.Encrypt(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(testClass._dataTable.outArrayPtr); }
public void RunStructFldScenario_Load(AesBinaryOpTest__Encrypt_Vector128_Byte testClass) { fixed(Vector128 <Byte> *pFld1 = &_fld1) fixed(Vector128 <Byte> *pFld2 = &_fld2) { var result = Aes.Encrypt( AdvSimd.LoadVector128((Byte *)(pFld1)), AdvSimd.LoadVector128((Byte *)(pFld2)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(testClass._dataTable.outArrayPtr); } }