Skip to main content

install_for_load

Function install_for_load 

Source
pub fn install_for_load(
    package_aid: &[u8],
    target_sd_aid: &[u8],
    lfdb_hash: &[u8],
) -> Result<Capdu, BuildError>
Expand description

INSTALL [for Load] (P1 0x02, GPCS §11.5.2.1).

Data = Lp‖Package_AID Ls‖Target_SD_AID Lh‖LFDB_Hash Lr=00 Lt=00 (Load Parameters and Load Token empty under AM). Le=00.

§Errors

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