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