Home
last modified time | relevance | path

Searched refs:rootKey (Results 1 – 3 of 3) sorted by relevance

/drivers/peripheral/pin_auth/test/uinttest/pin_auth/adaptor/src/
Dadaptor_algorithm_test.cpp249 Buffer *rootKey = CreateBufferBySize(AES256_KEY_SIZE); variable
250 ASSERT_NE(rootKey, nullptr);
251 (void)SecureRandom(rootKey->buf, rootKey->maxSize);
252 rootKey->contentSize = rootKey->maxSize;
253 Buffer *key = Hkdf(salt, rootKey);
257 DestoryBuffer(rootKey);
/drivers/peripheral/pin_auth/hdi_service/adaptor/inc/
Dadaptor_algorithm.h52 Buffer *Hkdf(const Buffer *salt, const Buffer *rootKey);
/drivers/peripheral/pin_auth/hdi_service/adaptor/src/
Dadaptor_algorithm.c576 Buffer *Hkdf(const Buffer *salt, const Buffer *rootKey) in Hkdf() argument
579 !IsBufferValid(rootKey) || rootKey->contentSize != HKDF_KEY_SIZE) { in Hkdf()
598 EVP_PKEY_CTX_set1_hkdf_key(ctx, rootKey->buf, rootKey->contentSize) != OPENSSL_SUCCESS || in Hkdf()