class CMAC extends MAC (View source)

Class providing CMAC functionality

Methods

static string
getAlgorithms(bool $aliases = false, string $prefix = null)

Returns hash algorithms

from  Hash
static bool
hasAlgorithm(string $algorithm)

Finds out whether algorithm exists

from  Hash
static 
__callStatic(string $name, array $arguments)

Hash magic method for calling static methods

from  Hash
__construct(string $algorithm, string $key)

Create a MAC (used by MAC subclasses - HMAC and CMAC)

from  MAC
string
getAlgorithmName()

Returns hash algorithm string

from  Hash
null
update(string $data)

Updates hash

from  Hash
string
digest()

Return hash digest in raw foramt

from  Hash
string
hexdigest()

Return hash digest in hex format

from  Hash
int
getBlockSize()

Returns hash block size

from  Hash
int
getSize()

Returns hash size

from  Hash

Details

static string getAlgorithms(bool $aliases = false, string $prefix = null)

Returns hash algorithms

Parameters

bool $aliases
string $prefix

Return Value

string

static bool hasAlgorithm(string $algorithm)

Finds out whether algorithm exists

Parameters

string $algorithm

Return Value

bool

static __callStatic(string $name, array $arguments)

Hash magic method for calling static methods

Parameters

string $name
array $arguments

__construct(string $algorithm, string $key)

Create a MAC (used by MAC subclasses - HMAC and CMAC)

Parameters

string $algorithm
string $key

string getAlgorithmName()

Returns hash algorithm string

Return Value

string

null update(string $data)

Updates hash

Parameters

string $data

Return Value

null

string digest()

Return hash digest in raw foramt

Return Value

string

string hexdigest()

Return hash digest in hex format

Return Value

string

int getBlockSize()

Returns hash block size

Return Value

int

int getSize()

Returns hash size

Return Value

int