static IEnumerable _GetKeySBox192BitKey() { foreach (var item in KATData.GetKeySBox192BitKey()) { yield return(new TestCaseData(item.CipherText.ToHex(), item)); } }
public static List <AlgoArrayResponse> GetKeySBox192BitKey() { var results = KATData.GetKeySBox192BitKey(); KeySBoxTransform(results); AllTransform(results); return(results); }
public static List <AlgoArrayResponse> GetKeySBox(int keyLen) { switch (keyLen) { case 128: return(TransformKatDataToCtr(KATData.GetKeySBox128BitKey())); case 192: return(TransformKatDataToCtr(KATData.GetKeySBox192BitKey())); case 256: return(TransformKatDataToCtr(KATData.GetKeySBox256BitKey())); default: throw new ArgumentException($"Invalid keyLen: {keyLen}"); } }
public static List <AlgoArrayResponse> GetKeySBox192BitKey() { var initial = KATData.GetKeySBox192BitKey(); return(TransformKATDataToKATDataOFb(initial)); }