Searched refs:rootKey (Results 1 – 3 of 3) sorted by relevance
249 Buffer *rootKey = CreateBufferBySize(AES256_KEY_SIZE); variable250 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);
52 Buffer *Hkdf(const Buffer *salt, const Buffer *rootKey);
576 Buffer *Hkdf(const Buffer *salt, const Buffer *rootKey) in Hkdf() argument579 !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()