Method Nettle.BlockCipher16()->CCM.State()->digest()

class Nettle.BlockCipher16
class Nettle.BlockCipher16.CCM.State

Method digest

string(8bit) digest(int(4..16)|void bytes)

Description

Returns the CBC-MAC digest of the specified size.

Parameter bytes

Size in bytes for the desired digest. Any even number in the range [4..16]. If not specified the value from calling digest_size() will be used.

Note

Note that the digest length is folded into the digest, so it doesn't simply imply a truncation.

See also

digest_size(), CCM::digest_size()