Loading sim/src/image.rs +4 −1 Changes for sim/src/image.rs: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -1267,8 +1267,11 @@ fn make_tlv() -> TlvGen { TlvGen::new_enc_rsa() } } else if Caps::EncEc256.present() { //FIXME: should fail with RSA signature? if Caps::EcdsaP256.present() { TlvGen::new_ecdsa_ecies_p256() } else { TlvGen::new_ecies_p256() } } else { // The non-encrypted configuration. if Caps::RSA2048.present() { Loading sim/src/tlv.rs +10 −0 Changes for sim/src/tlv.rs: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -214,6 +214,16 @@ impl TlvGen { } } #[allow(dead_code)] pub fn new_ecies_p256() -> TlvGen { TlvGen { flags: TlvFlags::ENCRYPTED as u32, kinds: vec![TlvKinds::SHA256, TlvKinds::ENCEC256], size: 4 + 32 + 4 + 32 + 4 + 113, ..Default::default() } } #[allow(dead_code)] pub fn new_ecdsa_ecies_p256() -> TlvGen { TlvGen { Loading Loading
sim/src/image.rs +4 −1 Changes for sim/src/image.rs: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -1267,8 +1267,11 @@ fn make_tlv() -> TlvGen { TlvGen::new_enc_rsa() } } else if Caps::EncEc256.present() { //FIXME: should fail with RSA signature? if Caps::EcdsaP256.present() { TlvGen::new_ecdsa_ecies_p256() } else { TlvGen::new_ecies_p256() } } else { // The non-encrypted configuration. if Caps::RSA2048.present() { Loading
sim/src/tlv.rs +10 −0 Changes for sim/src/tlv.rs: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -214,6 +214,16 @@ impl TlvGen { } } #[allow(dead_code)] pub fn new_ecies_p256() -> TlvGen { TlvGen { flags: TlvFlags::ENCRYPTED as u32, kinds: vec![TlvKinds::SHA256, TlvKinds::ENCEC256], size: 4 + 32 + 4 + 32 + 4 + 113, ..Default::default() } } #[allow(dead_code)] pub fn new_ecdsa_ecies_p256() -> TlvGen { TlvGen { Loading