AEADMode.setAssociatedData

Set associated data that is not included in the ciphertext but that should be authenticated. Must be called after setKey and before finish.

Unless reset by another call, the associated data is kept between messages. Thus, if the AD does not change, calling once (after setKey) is the optimum.

class AEADMode
abstract
void
setAssociatedData
(
const(ubyte)* ad
,
size_t ad_len
)

Parameters

ad const(ubyte)*

the associated data

ad_len size_t

length of add in bytes

Meta