GcryptException.throwIfLenMismatch

Throw if len != expected, with exception message explaining the issue.

class GcryptException
void
throwIfLenMismatch
(,
size_t len
,
size_t expected
,
istring file = __FILE__
,
int line = __LINE__
)

Parameters

id cstring

identifier for message formatting

len size_t

actual length

expected size_t

expected length

file istring

file from which this exception can be thrown

line int

line from which this exception can be thrown

Throws

this if iv_length != block_size

Meta