Beispiel #1
0
 static IEnumerable _GetGFSBox192BitKey()
 {
     foreach (var item in KATData.GetGFSBox192BitKey())
     {
         yield return(new TestCaseData(item.CipherText.ToHex(), item));
     }
 }
Beispiel #2
0
        public static List <AlgoArrayResponse> GetGFSBox192BitKey()
        {
            var results = KATData.GetGFSBox192BitKey();

            GFSBoxTransform(results);
            AllTransform(results);
            return(results);
        }
Beispiel #3
0
        public static List <AlgoArrayResponse> GetGfSBox(int keyLen)
        {
            switch (keyLen)
            {
            case 128:
                return(TransformKatDataToCtr(KATData.GetGFSBox128BitKey()));

            case 192:
                return(TransformKatDataToCtr(KATData.GetGFSBox192BitKey()));

            case 256:
                return(TransformKatDataToCtr(KATData.GetGFSBox256BitKey()));

            default:
                throw new ArgumentException($"Invalid keyLen: {keyLen}");
            }
        }
Beispiel #4
0
        public static List <AlgoArrayResponse> GetGFSBox192BitKey()
        {
            var initial = KATData.GetGFSBox192BitKey();

            return(TransformKATDataToKATDataOFb(initial));
        }