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 HEX-encoded ciphertext with AES-CBC or AES-GCM using a FIXED IV (all-zero for CBC, legacy ASCII key-size string for GCM), so it only matches data from the cipheriv encrypt block. key and data must be hex; auth_tag (hex) is used for GCM ONLY and ignored for CBC. On failure success is false, error carries a code such as INVALID_ALGORITHM, INVALID_KEY or INVALID_CIPHERTEXT, 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
