{"type": "func", "start": 8359692, "end": 8359804, "name": "ENGINE_get_digest", "pseudocode": "// \n// ENGINE_get_digest from 0x7f8f0c to 0x7f8f7c (112 bytes)\n// \n// 2 xrefs:\n// > EVP_DigestInit_ex @ 0x7fb8b4\n// > <???> @ 0x6272c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall ENGINE_get_digest(int a1, int a2)\n{\n  int (__fastcall *digests)(int, int *, _DWORD, int); // r12\n  int v6; // [sp+Ch] [bp-8h] BYREF\n\n  digests = (int (__fastcall *)(int, int *, _DWORD, int))ENGINE_get_digests(a1);\n  if ( digests && digests(a1, &v6, 0, a2) )\n    return v6;\n  ERR_put_error(38, 186, 147, \"crypto/engine/tb_digest.c\", 74);\n  return 0;\n}", "assembly": "; \n; ENGINE_get_digest from 0x7f8f0c to 0x7f8f7c (112 bytes)\n; \n; 2 xrefs:\n; > EVP_DigestInit_ex @ 0x7fb8b4\n; > <???> @ 0x6272c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4,R5,LR}                                             ; +0x0, 0x7f8f0c\nSUB             SP, SP, #0x14                                          ; +0x4, 0x7f8f10\nMOV             R4, R1                                                 ; +0x8, 0x7f8f14\nMOV             R5, R0                                                 ; +0xc, 0x7f8f18\nBL              ENGINE_get_digests                                     ; +0x10, 0x7f8f1c\nSUBS            R12, R0, #0                                            ; +0x14, 0x7f8f20\nBEQ             loc_7F8F50                                             ; +0x18, 0x7f8f24\nMOV             R0, R5                                                 ; +0x1c, 0x7f8f28\nMOV             R3, R4                                                 ; +0x20, 0x7f8f2c\nADD             R1, SP, #0x14+var_8                                    ; +0x24, 0x7f8f30\nMOV             R2, #0                                                 ; +0x28, 0x7f8f34\nBLX             R12                                                    ; +0x2c, 0x7f8f38\nCMP             R0, #0                                                 ; +0x30, 0x7f8f3c\nBEQ             loc_7F8F50                                             ; +0x34, 0x7f8f40\nLDR             R0, [SP,#0x14+var_8]                                   ; +0x38, 0x7f8f44\nADD             SP, SP, #0x14                                          ; +0x3c, 0x7f8f48\nPOP             {R4,R5,PC}                                             ; +0x40, 0x7f8f4c\nMOV             R3, #0x4A ; 'J'                                        ; +0x44, 0x7f8f50\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x48, 0x7f8f54\nLDR             R3, =(aCryptoEngineTb_1 - 0x7F8F70); \"crypto/engine/tb_digest.c\" ; +0x4c, 0x7f8f58\nMOV             R0, #0x26 ; '&'                                        ; +0x50, 0x7f8f5c\nMOV             R1, #0xBA                                              ; +0x54, 0x7f8f60\nMOV             R2, #0x93                                              ; +0x58, 0x7f8f64\nADD             R3, PC, R3; \"crypto/engine/tb_digest.c\"                ; +0x5c, 0x7f8f68\nBL              ERR_put_error                                          ; +0x60, 0x7f8f6c\nMOV             R0, #0                                                 ; +0x64, 0x7f8f70\nADD             SP, SP, #0x14                                          ; +0x68, 0x7f8f74\nPOP             {R4,R5,PC}                                             ; +0x6c, 0x7f8f78", "xrefs": ["EVP_DigestInit_ex @ 0x7fb8b4", "<???> @ 0x6272c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}