private static IEnumerable <OmgNum> Encode(IEnumerable <OmgNum> message, SignSecret secret) { foreach (var num in message) { yield return(OmgOp.Pow(num, secret.E, secret.N)); } }
public static IEnumerable <OmgNum> MakeSignature(string text, MessageConverter converter, SignSecret secret) { string hash = _GetHashString(text); var nums = converter.ToNumbers(hash); return(Encode(nums, secret)); }