From 24557e80cdea503617d32d7d895ba040a443cf7b Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 5 Oct 2023 02:37:03 +0100 Subject: [PATCH] Move declarations closer to usage. --- DVD/CSS.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DVD/CSS.cs b/DVD/CSS.cs index fd02048..8a3cd2f 100644 --- a/DVD/CSS.cs +++ b/DVD/CSS.cs @@ -817,8 +817,6 @@ public class CSS out byte[] key) { var buffer = new byte[10]; - long oLfsr1; - long oLfsr0; long iTry; uint i; int exit = -1; @@ -835,6 +833,8 @@ public class CSS long combined = 0; // Iterate cipher 4 times to reconstruct LFSR2 + long oLfsr1; + long oLfsr0; for(i = 0; i < 4; i++) { // Advance LFSR1 normally