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