patch_seq_crypto_aes_gcm_decrypt

Function patch_seq_crypto_aes_gcm_decrypt 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_crypto_aes_gcm_decrypt( stack: Stack, ) -> Stack
Expand description

Decrypt ciphertext using AES-256-GCM

Stack effect: ( String String – String Bool )

Arguments:

  • ciphertext: base64(nonce || ciphertext || tag)
  • key: Hex-encoded 32-byte key (64 hex characters)

Returns:

  • plaintext: The decrypted string
  • success: Bool indicating success

§Safety

Stack must have two String values on top