Skip to main content

Module delete

Module delete 

Source
Expand description

DELETE (CLA 84, INS E4) — PDD §5.3.3 (key) / §5.5 / §5.8 (object), GPCS §11.2.

Object scope: Data '4F' len AID; P2 0x00 delete-object, 0x80 cascade (Table 11-22). Key scope: P1 0x00 last/only (Table 11-21), P2 0x00 delete-object, Data 'D0' KID / 'D2' KVN (both Conditional, Table 11-24); omit one tag for multi-key delete; response single '00' (§11.2.3.1). All verified against GPCS v2.3.1.

Functions§

delete_key
Build DELETE [key]. kid → tag 'D0', kvn → tag 'D2'; None omits the tag (multi-key delete, GPCS Table 11-24). Supplying both deletes a single key. Omission is encoded by leaving the tag off the wire — never a 0xFF/0x00 sentinel byte.
delete_object
Build DELETE [object] for an AID (P2 selects cascade).