static IEnumerable _GetGFSBox128BitKey() { foreach (var item in KATData.GetGFSBox128BitKey()) { yield return(new TestCaseData(item.CipherText.ToHex(), item)); } }
public static List <AlgoArrayResponse> GetGFSBox128BitKey() { var results = KATData.GetGFSBox128BitKey(); GFSBoxTransform(results); AllTransform(results); return(results); }
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}"); } }
public static List <AlgoArrayResponse> GetGFSBox128BitKey() { var initial = KATData.GetGFSBox128BitKey(); return(TransformKATDataToKATDataOFb(initial)); }