mirror of
https://github.com/zerotier/crypto-glue.git
synced 2026-05-22 16:28:47 -07:00
fixed big endian padding
This commit is contained in:
@@ -270,6 +270,9 @@ impl P384KeyPair {
|
||||
|
||||
// Double check big-endian-ness.
|
||||
output.copy_within(..size, P384_SECRET_KEY_SIZE - size);
|
||||
for i in 0..P384_SECRET_KEY_SIZE - size {
|
||||
output[i] = 0x00;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user