2023-05-22 23:04:39 -07:00
|
|
|
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
2021-09-09 01:56:54 -07:00
|
|
|
//
|
2023-05-22 23:04:39 -07:00
|
|
|
// This source code is dual-licensed under either the MIT license found in the
|
|
|
|
|
// LICENSE-MIT file in the root directory of this source tree or the Apache
|
2021-09-27 18:53:06 -07:00
|
|
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
2023-05-22 23:04:39 -07:00
|
|
|
// of this source tree. You may select, at your option, one of the above-listed
|
|
|
|
|
// licenses.
|
2021-09-09 01:56:54 -07:00
|
|
|
|
2022-02-13 04:00:11 -08:00
|
|
|
mod cfrg_vectors;
|
2021-09-09 01:56:54 -07:00
|
|
|
mod mock_rng;
|
2021-09-13 16:02:09 -07:00
|
|
|
mod parser;
|
2022-02-13 04:00:11 -08:00
|
|
|
mod test_cfrg_vectors;
|
2026-06-27 14:35:50 +02:00
|
|
|
|
|
|
|
|
impl crate::CipherSuite for p256::NistP256 {
|
|
|
|
|
const ID: &'static [u8] = <p256::NistP256 as hash2curve::OprfParameters>::ID;
|
|
|
|
|
type Group = p256::NistP256;
|
|
|
|
|
type Hash = sha2::Sha256;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl crate::CipherSuite for p384::NistP384 {
|
|
|
|
|
const ID: &'static [u8] = <p384::NistP384 as hash2curve::OprfParameters>::ID;
|
|
|
|
|
type Group = p384::NistP384;
|
|
|
|
|
type Hash = sha2::Sha384;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl crate::CipherSuite for p521::NistP521 {
|
|
|
|
|
const ID: &'static [u8] = <p521::NistP521 as hash2curve::OprfParameters>::ID;
|
|
|
|
|
type Group = p521::NistP521;
|
|
|
|
|
type Hash = sha2::Sha512;
|
|
|
|
|
}
|