Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IKeystoreQuery::enumKeyBySizeByCipher ( P6UINT32  size,
P6INT8  comparator,
P6CRYPTOCIPHER  cipher,
p6IEnumKeystore **  ppEnum 
)
pure virtual

The returned enumerator can be used to walk all the entires or a subset of the key entries in a keystore.

All the keys with a specified length and of the specified Cipher are returned (e.g., 256 AES Counter mode keys).

Parameters
size[ in ] the number of bits in a key
comparator[ in ] relationship indicator: 0 - find all keys whose length equals the size parameter, 1 - find all keys whose length is greater than the size parameter, -1 - find all keys whose length is less than the size parameter
cipher[ in ] For example, search for all keys to be used with AES counter mode.
ppEnum[ out ] identifiers for all matching keys
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgppEnum is NULL or size is zero.
P6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eInvalidStateA successful call to open() was not made before this call.
P6R::eNotFoundNo keys exist matching the request.