AEADCipherTest

Runs decryption and encryption using AEADCipher cipher with given keys, plaintexts, and ciphertexts.

version(unittest)
@safe
void
AEADCipherTest
(,
in string[] hexKeys
,
in string[] hexIVs
,
in string[] hexPlaintexts
,
in string[] hexAAD
,
in string[] hexCipherTexts
,
in uint[] macSize
)

Parameters

hexKeys string[]

the keys encoded in hex

hexIVs string[]

hex encoded nonces

hexPlaintexts string[]

the plaintexts encoded in hex

hexAAD string[]

additional authenticated data

macSize uint[]

MAC sizes in bits

Throws

AssertionError if encryption or decryption failed

Meta