hu_AuthEncKeySet()

Creates an Authenticated Encryption key object that can later be used for encryption and/or decryption.

Synopsis:

#include "huauthenc.h"
 
int hu_AuthEncKeySet(sb_Params symParams, sb_Key symKey, int mode, sb_Key *authEncKey, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

symParams

A symmetric algorithm parameters object. AES is the only algorithm currently supported.

symKey

A symmetric algorithm key object. AES is the only algorithm currently supported.

mode

The mode of operation. The acceptable values are SB_CCM, SB_CCM_STAR and SB_GCM.

authEncKey

The Authenticated Encryption key object.

sbCtx

A global context.

Library:

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

Description:

Returns:

SB_ERR_NULL_PARAMS

The symParams object is NULL.

SB_ERR_NULL_KEY

The symParams object is NULL.

SB_ERR_NULL_KEY_PTR

The authEncKey object is NULL.

SB_FAIL_ALLOC

Memory allocation failure.

SB_SUCCESS

Success.

Last modified: 2014-05-14



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

comments powered by Disqus