コード例 #1
0
function unbox_detached (mac, boxed, nonce, key) {
  return sodium.crypto_secretbox_open(concat([zeros, mac, boxed]), nonce, key)
}
コード例 #2
0
function unbox (boxed, nonce, key) {
  return sodium.crypto_secretbox_open(concat([zeros, boxed]), nonce, key)
}