pub struct UnsignedSharedSecretKeys {
pub ec_secret_key: X25519Secret,
pub pq_secret_key: MlKemSecret,
pub pq_public_key: MlKemPublic,
}Fields§
§ec_secret_key: X25519Secret§pq_secret_key: MlKemSecret§pq_public_key: MlKemPublicTrait Implementations§
Source§fn hashable_bytes(&self) -> Vec<Box<dyn AsRef<[u8]> + '_>>
fn hashable_bytes(&self) -> Vec<Box<dyn AsRef<[u8]> + '_>>
Return a vector of byte references that represent this data structure. Read more
Source§fn digest(&self) -> CoreWrapper<Sha3_512Core>
fn digest(&self) -> CoreWrapper<Sha3_512Core>
Generate a SHA3-512 digest from the hashable bytes.
Source§fn finalized_digest(&self) -> [u8; 64]
fn finalized_digest(&self) -> [u8; 64]
Generate a finalized SHA3-512 digest as a 64-byte array.
Source§fn from(from: &UnsignedSharedSecretKeys) -> Self
fn from(from: &UnsignedSharedSecretKeys) -> Self
Converts to this type from the input type.
fn random_from_rng(csprng: &mut impl CryptoRngCore) -> Self
Source§type SignedType = SharedSecretKeys
type SignedType = SharedSecretKeys
The type that results from signing this data structure.
Source§fn with_signature(
self,
attestant_ec_signature: Ed25519Signature,
attestant_pq_signature: FnDsaSignature,
) -> SharedSecretKeys
fn with_signature( self, attestant_ec_signature: Ed25519Signature, attestant_pq_signature: FnDsaSignature, ) -> SharedSecretKeys
Combine this with signatures to create the signed variant.
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more