Lines Matching refs:hmacCtx
3315 auto hmacCtx = new HMAC_CTX; in NativeCrypto_HMAC_CTX_new() local
3316 if (hmacCtx == nullptr) { in NativeCrypto_HMAC_CTX_new()
3321 HMAC_CTX_init(hmacCtx); in NativeCrypto_HMAC_CTX_new()
3322 return reinterpret_cast<jlong>(hmacCtx); in NativeCrypto_HMAC_CTX_new()
3326 HMAC_CTX* hmacCtx = reinterpret_cast<HMAC_CTX*>(hmacCtxRef); in NativeCrypto_HMAC_CTX_free() local
3327 JNI_TRACE("HMAC_CTX_free(%p)", hmacCtx); in NativeCrypto_HMAC_CTX_free()
3328 if (hmacCtx == nullptr) { in NativeCrypto_HMAC_CTX_free()
3331 HMAC_CTX_cleanup(hmacCtx); in NativeCrypto_HMAC_CTX_free()
3332 delete hmacCtx; in NativeCrypto_HMAC_CTX_free()
3337 HMAC_CTX* hmacCtx = fromContextObject<HMAC_CTX>(env, hmacCtxRef); in NativeCrypto_HMAC_Init_ex() local
3339 JNI_TRACE("HMAC_Init_ex(%p, %p, %p)", hmacCtx, keyArray, md); in NativeCrypto_HMAC_Init_ex()
3340 if (hmacCtx == nullptr) { in NativeCrypto_HMAC_Init_ex()
3349 if (!HMAC_Init_ex(hmacCtx, keyPtr, keyBytes.size(), md, nullptr)) { in NativeCrypto_HMAC_Init_ex()
3351 JNI_TRACE("HMAC_Init_ex(%p, %p, %p) => fail HMAC_Init_ex", hmacCtx, keyArray, md); in NativeCrypto_HMAC_Init_ex()
3358 HMAC_CTX* hmacCtx = fromContextObject<HMAC_CTX>(env, hmacCtxRef); in NativeCrypto_HMAC_UpdateDirect() local
3360 JNI_TRACE("HMAC_UpdateDirect(%p, %p, %d)", hmacCtx, p, inLength); in NativeCrypto_HMAC_UpdateDirect()
3362 if (hmacCtx == nullptr) { in NativeCrypto_HMAC_UpdateDirect()
3371 if (!HMAC_Update(hmacCtx, p, static_cast<size_t>(inLength))) { in NativeCrypto_HMAC_UpdateDirect()
3372 JNI_TRACE("HMAC_UpdateDirect(%p, %p, %d) => threw exception", hmacCtx, p, inLength); in NativeCrypto_HMAC_UpdateDirect()
3380 HMAC_CTX* hmacCtx = fromContextObject<HMAC_CTX>(env, hmacCtxRef); in NativeCrypto_HMAC_Update() local
3381 JNI_TRACE("HMAC_Update(%p, %p, %d, %d)", hmacCtx, inArray, inOffset, inLength); in NativeCrypto_HMAC_Update()
3383 if (hmacCtx == nullptr) { in NativeCrypto_HMAC_Update()
3398 if (!HMAC_Update(hmacCtx, inPtr + inOffset, static_cast<size_t>(inLength))) { in NativeCrypto_HMAC_Update()
3399 JNI_TRACE("HMAC_Update(%p, %p, %d, %d) => threw exception", hmacCtx, inArray, inOffset, in NativeCrypto_HMAC_Update()
3407 HMAC_CTX* hmacCtx = fromContextObject<HMAC_CTX>(env, hmacCtxRef); in NativeCrypto_HMAC_Final() local
3408 JNI_TRACE("HMAC_Final(%p)", hmacCtx); in NativeCrypto_HMAC_Final()
3410 if (hmacCtx == nullptr) { in NativeCrypto_HMAC_Final()
3416 if (!HMAC_Final(hmacCtx, result, &len)) { in NativeCrypto_HMAC_Final()
3417 JNI_TRACE("HMAC_Final(%p) => threw exception", hmacCtx); in NativeCrypto_HMAC_Final()