public static byte[] OpenDetached(DetachedBox detached, byte[] nonce, byte[] key) { return(SecretBox.OpenDetached(detached.CipherText, detached.Mac, nonce, key)); }
public static byte[] OpenDetached(string cipherText, byte[] mac, byte[] nonce, byte[] key) { return(SecretBox.OpenDetached(Utilities.HexToBinary(cipherText), mac, nonce, key)); }