mirror of
https://github.com/ZeusWPI/ZNS.git
synced 2024-11-22 05:41:11 +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 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 })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue