pub struct SecretKey(/* private fields */);Expand description
An ML-DSA-65 secret signing key.
The implementation stores the standard 32-byte seed plus its expanded signing state; both are zeroized by the RustCrypto dependency on drop.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SecretKey
impl Freeze for SecretKeywhere
*const ExpandedSigningKey<MlDsa65> is !null: Freeze,
PhantomData<ExpandedSigningKey<MlDsa65>>: Freeze,
*const Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>> is !null: Freeze,
PhantomData<Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>: Freeze,
[u8; 32]: Freeze,
*const Vector<BaseField, UInt<UInt<UInt<UTerm, B1>, B1>, B0>> is !null: Freeze,
PhantomData<Vector<BaseField, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>>: Freeze,
*const PrecomputedValues<MlDsa65> is !null: Freeze,
PhantomData<PrecomputedValues<MlDsa65>>: Freeze,
impl Move for SecretKey
impl RefUnwindSafe for SecretKeywhere
[u8; 32]: RefUnwindSafe,
[u8; 64]: RefUnwindSafe,
[Polynomial<BaseField>; 5]: RefUnwindSafe,
[Polynomial<BaseField>; 6]: RefUnwindSafe,
[NttPolynomial<BaseField>; 5]: RefUnwindSafe,
[NttPolynomial<BaseField>; 6]: RefUnwindSafe,
[NttVector<BaseField, UInt<UInt<UInt<UTerm, B1>, B0>, B1>>; 6]: RefUnwindSafe,
impl Send for SecretKeywhere
BoxRaw<ExpandedSigningKey<MlDsa65>>: Send,
BoxRaw<Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>: Send,
Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>: Send,
BoxRaw<Vector<BaseField, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>>: Send,
BoxRaw<PrecomputedValues<MlDsa65>>: Send,
impl Sync for SecretKeywhere
BoxRaw<ExpandedSigningKey<MlDsa65>>: Sync,
BoxRaw<Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>: Sync,
Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>: Sync,
BoxRaw<Vector<BaseField, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>>: Sync,
BoxRaw<PrecomputedValues<MlDsa65>>: Sync,
impl Unpin for SecretKey
impl UnsafeUnpin for SecretKeywhere
*const ExpandedSigningKey<MlDsa65> is !null: UnsafeUnpin,
PhantomData<ExpandedSigningKey<MlDsa65>>: UnsafeUnpin,
*const Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>> is !null: UnsafeUnpin,
PhantomData<Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>: UnsafeUnpin,
[u8; 32]: UnsafeUnpin,
*const Vector<BaseField, UInt<UInt<UInt<UTerm, B1>, B1>, B0>> is !null: UnsafeUnpin,
PhantomData<Vector<BaseField, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>>: UnsafeUnpin,
*const PrecomputedValues<MlDsa65> is !null: UnsafeUnpin,
PhantomData<PrecomputedValues<MlDsa65>>: UnsafeUnpin,
impl UnwindSafe for SecretKey
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