Creates an Authenticated Encryption key object that can later be used for encryption and/or decryption.
#include "huauthenc.h"
int hu_AuthEncKeySet(sb_Params symParams, sb_Key symKey, int mode, sb_Key *authEncKey, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
A symmetric algorithm parameters object. AES is the only algorithm currently supported.
A symmetric algorithm key object. AES is the only algorithm currently supported.
The mode of operation. The acceptable values are SB_CCM, SB_CCM_STAR and SB_GCM.
The Authenticated Encryption key object.
A global context.
The symParams object is NULL.
The symParams object is NULL.
The authEncKey object is NULL.
Memory allocation failure.
Success.