// Deserialize RSA data (for key distribution (but the other end (how many parentheses deep can I go?))) public static RSA Deserialize(byte[] function, out int read) { byte[][] rd = Support.DeserializeBytes(function, 2); read = rd[0].Length + rd[1].Length + 8; return(new RSA(rd[0], rd[1])); }
public static Rijndael128 Deserialize(byte[] message, out int read) { byte[][] output = Support.DeserializeBytes(message, 1); read = output[0].Length + 8; return(new Rijndael128(output[0])); }