//
// tls_fips_digest_extra from 0x9a2b78 to 0x9a2bfc (132 bytes)
//
// 2 xrefs:
// > tls1_mac @ 0x99fc30
// > ??> @ 0x744fc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:06:49 +0000
//
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));
}