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

            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> GetVarKey192BitKey()
        {
            var initial = KATData.GetVarKey192BitKey();

            return(TransformKATDataToKATDataOFb(initial));
        }