mirror of
https://github.com/trussed-dev/piv-authenticator.git
synced 2026-06-20 04:16:15 -07:00
Add RSA3072 algorithm
This commit is contained in:
committed by
sosthene-nitrokey
parent
f869f4f741
commit
9bde6956ef
@@ -458,8 +458,14 @@ impl IoCmd {
|
||||
.into_iter()
|
||||
.flatten()
|
||||
.collect();
|
||||
let algo = match p.len() {
|
||||
128 => 0x07,
|
||||
192 => 0x05,
|
||||
256 => 0x16,
|
||||
_ => panic!("Invalid RSA key size"),
|
||||
};
|
||||
Self::run_bytes(
|
||||
&build_command(0x00, 0xFE, 0x07, 0x9A, &data, 0),
|
||||
&build_command(0x00, 0xFE, algo, 0x9A, &data, 0),
|
||||
&MATCH_EMPTY,
|
||||
expected_status,
|
||||
card,
|
||||
|
||||
Reference in New Issue
Block a user