{"type": "func", "start": 10430348, "end": 10430424, "name": "DES_set_key_checked", "pseudocode": "// \n// DES_set_key_checked from 0x9f278c to 0x9f27d8 (76 bytes)\n// \n// 2 xrefs:\n// > DES_set_key @ 0x9f2800\n// > <???> @ 0x7a2dc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:30 +0000\n// \n\nint __fastcall DES_set_key_checked(unsigned __int8 *a1, int a2)\n{\n  _BOOL4 is_weak_key; // r5\n\n  if ( !DES_check_key_parity(a1) )\n    return -1;\n  is_weak_key = DES_is_weak_key(a1);\n  if ( is_weak_key )\n    return -2;\n  DES_set_key_unchecked(a1, a2);\n  return is_weak_key;\n}", "assembly": "; \n; DES_set_key_checked from 0x9f278c to 0x9f27d8 (76 bytes)\n; \n; 2 xrefs:\n; > DES_set_key @ 0x9f2800\n; > <???> @ 0x7a2dc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:30 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x9f278c\nMOV             R6, R1                                                 ; +0x4, 0x9f2790\nMOV             R4, R0                                                 ; +0x8, 0x9f2794\nBL              DES_check_key_parity                                   ; +0xc, 0x9f2798\nCMP             R0, #0                                                 ; +0x10, 0x9f279c\nBEQ             loc_9F27C8                                             ; +0x14, 0x9f27a0\nMOV             R0, R4; void *                                         ; +0x18, 0x9f27a4\nBL              DES_is_weak_key                                        ; +0x1c, 0x9f27a8\nSUBS            R5, R0, #0                                             ; +0x20, 0x9f27ac\nBNE             loc_9F27D0                                             ; +0x24, 0x9f27b0\nMOV             R0, R4                                                 ; +0x28, 0x9f27b4\nMOV             R1, R6                                                 ; +0x2c, 0x9f27b8\nBL              DES_set_key_unchecked                                  ; +0x30, 0x9f27bc\nMOV             R0, R5                                                 ; +0x34, 0x9f27c0\nPOP             {R4-R6,PC}                                             ; +0x38, 0x9f27c4\nMOV             R5, #0xFFFFFFFF                                        ; +0x3c, 0x9f27c8\nB               loc_9F27C0                                             ; +0x40, 0x9f27cc\nMOV             R5, #0xFFFFFFFE                                        ; +0x44, 0x9f27d0\nB               loc_9F27C0                                             ; +0x48, 0x9f27d4", "xrefs": ["DES_set_key @ 0x9f2800", "<???> @ 0x7a2dc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}