//
// tls_fips_digest_extra from 0x78df74 to 0x78dff8 (132 bytes)
//
// 2 xrefs:
// > tls1_mac @ 0x78b02c
// > ??> @ 0x5aa7c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall tls_fips_digest_extra(int a1, int a2, int a3, int a4, int a5)
{
int v8; // r0
int v10; // r0
unsigned int v11; // r0
int v12; // r9
v8 = EVP_CIPHER_CTX_cipher(a1);
if ( (EVP_CIPHER_flags(v8) & 0xF0007) != 2 )
return 1;
v10 = EVP_MD_CTX_md(a2);
v11 = EVP_MD_block_size(v10);
if ( v11 == 64 )
v12 = 21;
else
v12 = 29;
return EVP_DigestUpdate(a2, a3, v11 * ((v12 + a5) / v11 + 1 - (v12 + a4) / v11));
}