Print RSA import format in Display for Algo
This commit is contained in:
parent
0bf59c7e51
commit
256690d97c
1 changed files with 5 additions and 1 deletions
|
@ -161,7 +161,11 @@ impl fmt::Display for Algo {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
match self {
|
match self {
|
||||||
Self::Rsa(rsa) => {
|
Self::Rsa(rsa) => {
|
||||||
write!(f, "RSA {}, {} ", rsa.len_n, rsa.len_e)
|
write!(
|
||||||
|
f,
|
||||||
|
"RSA {}, {} [format {}]",
|
||||||
|
rsa.len_n, rsa.len_e, rsa.import_format
|
||||||
|
)
|
||||||
}
|
}
|
||||||
Self::Ecc(ecc) => {
|
Self::Ecc(ecc) => {
|
||||||
write!(f, "{:?} ({:?})", ecc.curve, ecc.ecc_type)
|
write!(f, "{:?} ({:?})", ecc.curve, ecc.ecc_type)
|
||||||
|
|
Loading…
Reference in a new issue