summaryrefslogtreecommitdiffstats
path: root/vendor/p384/benches/field.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/p384/benches/field.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/p384/benches/field.rs')
-rw-r--r--vendor/p384/benches/field.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/p384/benches/field.rs b/vendor/p384/benches/field.rs
index 6dcd524c6..f1b1d4529 100644
--- a/vendor/p384/benches/field.rs
+++ b/vendor/p384/benches/field.rs
@@ -7,14 +7,14 @@ use hex_literal::hex;
use p384::FieldElement;
fn test_field_element_x() -> FieldElement {
- FieldElement::from_sec1(
+ FieldElement::from_bytes(
hex!("c2b47944fb5de342d03285880177ca5f7d0f2fcad7678cce4229d6e1932fcac11bfc3c3e97d942a3c56bf34123013dbf").into()
)
.unwrap()
}
fn test_field_element_y() -> FieldElement {
- FieldElement::from_sec1(
+ FieldElement::from_bytes(
hex!("37257906a8223866eda0743c519616a76a758ae58aee81c5fd35fbf3a855b7754a36d4a0672df95d6c44a81cf7620c2d").into()
)
.unwrap()