mirror of
https://github.com/ZeusWPI/ZNS.git
synced 2024-10-29 21:14:27 +01:00
fix dnskey modulus
This commit is contained in:
parent
a166ec562b
commit
1161d34194
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ impl PublicKey for RsaPublicKey {
|
|||
let mut reader = Reader::new(key);
|
||||
let e_len = reader.read_u8()?;
|
||||
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 })
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue