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

            VarKeyTransform(results);
            AllTransform(results);
            return(results);
        }
예제 #3
0
        public static List <AlgoArrayResponse> GetVarKey(int keyLen)
        {
            switch (keyLen)
            {
            case 128:
                return(TransformKatDataToCtr(KATData.GetVarKey128BitKey()));

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

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

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

            return(TransformKATDataToKATDataOFb(initial));
        }