Home
last modified time | relevance | path

Searched refs:hmacCtx (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/confirmationui/1.0/default/
DPlatformSpecifics.cpp41 HMAC_CTX hmacCtx; in hmac256() local
42 HMAC_CTX_init(&hmacCtx); in hmac256()
43 if (!HMAC_Init_ex(&hmacCtx, key.data(), key.size(), EVP_sha256(), nullptr)) { in hmac256()
47 if (!HMAC_Update(&hmacCtx, buffer.data(), buffer.size())) { in hmac256()
52 if (!HMAC_Final(&hmacCtx, result.data(), nullptr)) { in hmac256()
/hardware/interfaces/confirmationui/1.0/vts/functional/
DVtsHalConfirmationUIV1_0TargetTest.cpp56 HMAC_CTX hmacCtx; in hmac256() local
57 HMAC_CTX_init(&hmacCtx); in hmac256()
58 if (!HMAC_Init_ex(&hmacCtx, key.data(), key.size(), EVP_sha256(), nullptr)) { in hmac256()
62 if (!HMAC_Update(&hmacCtx, buffer.data(), buffer.size())) { in hmac256()
67 if (!HMAC_Final(&hmacCtx, result.data(), nullptr)) { in hmac256()