method

decrypt_and_verify

decrypt_and_verify(data, purpose: nil, **)
public

Decrypt and verify a message. We need to verify the message in order to avoid padding attacks. Reference: www.limited-entropy.com/padding-oracle-attacks/.