Avoid unwrap() in llcrypto.
This commit is contained in:
parent
d7c1d4166a
commit
fb4f3d0029
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue