public static CreateKeyAndIv ( byte &cryptKey, byte &iv ) : void | ||
cryptKey | byte | |
iv | byte | |
return | void |
public static void CreateKeyAndIv(out byte[] cryptKey, out byte[] iv)
{
using (var aes = CreateSymmetricAlgorithm())
{
cryptKey = aes.Key;
iv = aes.IV;
}
}