Skip to content

Commit

Permalink
fix: modify LC_MAX to 217
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguang1010 committed Oct 11, 2023
1 parent 6c1e18e commit fcaa78e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imkey-core/ikc-common/src/apdu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ impl Apdu {
(data.len() as u32 - LC_MAX as u32 * (size - 1 as u32)) as u8,
)
} else {
(0x00, 0xE5)
(0x00, LC_MAX as u8)
};
let apdu_header = ApduHeader::new(0x80, ins, p1, p2, lc);
apdu.extend(apdu_header.to_array().iter());
Expand Down
2 changes: 1 addition & 1 deletion imkey-core/ikc-common/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub const TSM_ACTION_COS_UPGRADE: &str = "/seCosUpdate";
pub const TSM_ACTION_COS_CHECK_UPDATE: &str = "/cosCheckUpdate";

//apud related constant
pub const LC_MAX: u32 = 229;
pub const LC_MAX: u32 = 217;

pub const ETH_AID: &str = "695F657468";
pub const EOS_AID: &str = "695F656F73";
Expand Down

0 comments on commit fcaa78e

Please sign in to comment.