10
0
Fork 0
mirror of https://github.com/ZeusWPI/ZNS.git synced 2024-10-30 05:24:26 +01:00

fix dnskey modulus

This commit is contained in:
Xander Bil 2024-06-19 22:35:44 +02:00
parent a166ec562b
commit 1161d34194
No known key found for this signature in database
GPG key ID: EC9706B54A278598

View file

@ -51,7 +51,8 @@ impl PublicKey for RsaPublicKey {
let mut reader = Reader::new(key); let mut reader = Reader::new(key);
let e_len = reader.read_u8()?; let e_len = reader.read_u8()?;
let e = reader.read(e_len as usize)?; let e = reader.read(e_len as usize)?;
let n = reader.read(reader.unread_bytes())?; let mut n = reader.read(reader.unread_bytes())?;
n.insert(0, 0);
Ok(RsaPublicKey { e, n }) Ok(RsaPublicKey { e, n })
} }
} }