コード例 #1
0
            public void RunStructFldScenario(AesBinaryOpTest__EncryptLastByte testClass)
            {
                var result = Aes.EncryptLast(_fld1, _fld2);

                Unsafe.Write(testClass._dataTable.outArrayPtr, result);
                testClass.ValidateResult(testClass._dataTable.outArrayPtr);
            }
コード例 #2
0
            public void RunStructFldScenario_Load(AesBinaryOpTest__EncryptLastByte testClass)
            {
                fixed(Vector128 <Byte> *pFld1 = &_fld1)
                fixed(Vector128 <Byte> *pFld2 = &_fld2)
                {
                    var result = Aes.EncryptLast(
                        Aes.LoadVector128((Byte *)(pFld1)),
                        Aes.LoadVector128((Byte *)(pFld2))
                        );

                    Unsafe.Write(testClass._dataTable.outArrayPtr, result);
                    testClass.ValidateResult(testClass._dataTable.outArrayPtr);
                }
            }