Avoid unwrap() in llcrypto.

This commit is contained in:
Nick Mathewson 2021-03-04 14:32:07 -05:00
parent d7c1d4166a
commit fb4f3d0029
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ impl PublicKey {
}
let asn1 = ASN1Block::Sequence(0, vec![to_asn1_int(self.0.n()), to_asn1_int(self.0.e())]);
simple_asn1::to_der(&asn1).unwrap()
simple_asn1::to_der(&asn1).expect("RSA key not encodeable as DER")
}
/// Compute the RSAIdentity for this public key.