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

            VarTxtTransform(results);
            AllTransform(results);
            return(results);
        }
Exemple #3
0
        public static List <AlgoArrayResponse> GetVarTxt(int keyLen)
        {
            switch (keyLen)
            {
            case 128:
                return(TransformKatDataToCtr(KATData.GetVarTxt128BitKey()));

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

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

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

            return(TransformKATDataToKATDataOFb(initial));
        }