Botan

SCAN Name Abstraction

License
Botan is released under the Simplified BSD License (see LICENSE.md)

struct  SCANToken;

A class encapsulating a SCAN name (similar to JCE conventions)

http:
//www.users.zetnet.co.uk/hopwood/crypto/scan/

this(string algo_spec);

Parameters
string algo_spec A SCAN-format name

const string  toString();

Returns
original input string

const @property string  algoName();

Returns
algorithm name

const string  algoNameAndArgs();

Returns
algorithm name plus any arguments

const size_t  argCount();

Returns
number of arguments

const bool  argCountBetween(size_t lower, size_t upper);

Parameters
size_t lower is the lower bound
size_t upper is the upper bound
Returns
true if the number of arguments is between lower and upper

const string  arg(size_t i);

Parameters
size_t i which argument
Returns
ith argument

const string  arg(size_t i, in string def_value);

Parameters
size_t i which argument
string def_value the default value
Returns
ith argument or the default value

const size_t  argAsInteger(size_t i, size_t def_value);

Parameters
size_t i which argument
size_t def_value the default value
Returns
ith argument as an integer, or the default value

const string  cipherMode();

Returns
cipher mode (if any)

const string  cipherModePad();

Returns
cipher mode padding (if any)