protected override unsafe void GenerateKeyExpansion(byte[] key) { _keyExpansion = new uint[8]; fixed(uint *keyExpansion = _keyExpansion) fixed(byte *keyPtr = key) CryptoUtils.UInt32FromBigEndian(keyExpansion, 8, keyPtr); }
private static unsafe void LoadRegisters(byte[] inputBuffer, int inputOffset, out uint a0, out uint a1) { fixed(byte *input = inputBuffer) { var block = input + inputOffset; a0 = CryptoUtils.UInt32FromBigEndian(block + sizeof(uint)); a1 = CryptoUtils.UInt32FromBigEndian(block); } }