cipheriv decrypt
This block is part of the crypto group and was last modified in core v10.4.28.
cipheriv decrypt v10.4.28 decrypting data
- algorithm
valueThe algorithm to use
- key required
valueThe key used to encrypt (mostly scrypt output)
- data required
valueThe data to be decrypted
- auth tag required
valueThe auth tag used during the encryption
- success
condition - decrypted
valueThe decrypted plaintext
- error
valueIf an error occured, this pin is filled
Decrypts the versioned HEX envelope produced by value_cipher_encrypt and authenticates it before returning plaintext. Legacy fixed-IV CBC/GCM ciphertext remains readable during migration; auth_tag is used only for legacy GCM. key and data must be hex. On failure success is false and output is not written.
A typical wiring for cipheriv decrypt: value feeds the key pin; value feeds the data pin; value feeds the auth_tag pin; the success out pin feeds branch.
Version history
Introduced in v10.4.28.
Back to
crypto Return to the main group to view all sub-groups Back to crypto Return to the group to view all blocks within this group 