Minor tweaks in Display impl for Algo.
This commit is contained in:
parent
c4fcafc25b
commit
9d87cddb60
1 changed files with 8 additions and 2 deletions
|
@ -165,8 +165,14 @@ impl fmt::Display for Algo {
|
||||||
Self::Rsa(rsa) => {
|
Self::Rsa(rsa) => {
|
||||||
write!(
|
write!(
|
||||||
f,
|
f,
|
||||||
"RSA {}, {} [format {}]",
|
"RSA {} [e {}{}]",
|
||||||
rsa.len_n, rsa.len_e, rsa.import_format
|
rsa.len_n,
|
||||||
|
rsa.len_e,
|
||||||
|
if rsa.import_format != 0 {
|
||||||
|
format!(", format {}", rsa.import_format)
|
||||||
|
} else {
|
||||||
|
"".to_string()
|
||||||
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Self::Ecc(ecc) => {
|
Self::Ecc(ecc) => {
|
||||||
|
|
Loading…
Reference in a new issue