fixed big endian padding

This commit is contained in:
Monica Moniot
2023-11-30 17:58:57 -05:00
parent 82d3d0ab1c
commit ff32442200
+3
View File
@@ -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;
}
}
}