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

In pins 4
  • algorithm
    value

    The algorithm to use

    Default aes-192-cbc

  • key required
    value

    The key used to encrypt (mostly scrypt output)

  • data required
    value

    The data to be decrypted

  • auth tag required
    value

    The auth tag used during the encryption

Out pins 3
  • success
    condition
  • decrypted
    value

    The decrypted plaintext

  • error
    value

    If 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.

Studio canvas example for the cipheriv decrypt block: typical wiring for cipheriv decrypt.

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