Skip to main content

get_data

Function get_data 

Source
pub fn get_data(tag_p1p2: u16) -> Result<Capdu, BuildError>
Expand description

Build a GET DATA for the given 2-byte tag (P1P2).

CLA=80 INS=CA, P1P2 = the object tag big-endian (e.g. '0066' CRD, '00E0' KIT, '0067' CCI, '0042' IIN, '0045' CIN). No command data; Le=00 (Case 2S).

§Errors

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