Generates a shared secret of fixed length by applying IEEE 1363 KDF1 to the output of an ECDH key agreement.
#include "huecc.h"
int hu_ECDHKDFIEEESharedGen(sb_Params eccParams, sb_PrivateKey privateKey, sb_PublicKey remotePublicKey, size_t addInfoLen, const unsigned char *addInfo, size_t secretLen, unsigned char *sharedSecret, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ECC parameters object.
An ECC private key object.
An ECC public key object.
The length (in bytes) of additional information. (Optional)
Additional information for use with the KDF. (Optional - set to NULL if not used.)
The length (in bytes) of the shared secret. The only acceptable value is SB_SHA1_DIGEST_LEN.
The shared secret value.
A global context.
The eccParams object is NULL.
The tag for the params object is not of the expected type.
privateKey object is NULL.
privateKey object is invalid.
The publicKey object is NULL.
The publicKey object is invalid.
Additional information is NULL.
The shared secret buffer is NULL.
The shared secret length is invalid.
Memory allocation failure.
Success.