hu_GlobalContextTag()

Retrieves the tag value from a Global Context for the specified algorithm.

Synopsis:

#include "hurtti.h"
 
sb_Tag hu_GlobalContextTag(sb_GlobalCtx ctx, sb_Tag tag)

Since:

BlackBerry 10.0.0

Arguments:

ctx

Global Context

tag

A tag which specifies which algorithm the tag is being requested for. Currently, only HU_TAG_TYPE_AES is supported.

Library:

libhuapi (For the qcc command, use the -l huapi option to link against this library)

Description:

Returns:

The tag value. This will be 0 if the tag for the requested algorithm could not be determined. This occurs when ctx is NULL, ctx has not had a provider registered, or the adapter being queried does not support RTTI. This function is only supported in SB Crypto-C 5.5 and onwards. HU_TAG_LIB(tag) can be used on the returned tag to extract the provider that is registered.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus