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