Skip to main content

delete_object

Function delete_object 

Source
pub fn delete_object(aid: &[u8], cascade: bool) -> Result<Capdu, BuildError>
Expand description

Build DELETE [object] for an AID (P2 selects cascade).

CLA=84 INS=E4 P1=00. P2 = 0x80 (delete object + related, e.g. an SD’s contents) when cascade, else 0x00 (delete object only) — Table 11-22. Data = '4F' len <aid>. Le=00.

§Errors

Returns BuildError::Overflow if the encoded inputs would exceed the short-APDU plaintext buffer (CAPDU_MAX).