purify
C++ Purify implementation with native circuit and BPP support
Loading...
Searching...
No Matches
purify::detail::Secret< T > Class Template Reference

#include <secure_cleanup.hpp>

Public Member Functions

 Secret ()=default
 Secret (const Secret &)=delete
Secret & operator= (const Secret &)=delete
 Secret (Secret &&)=delete
Secret & operator= (Secret &&)=delete
 ~Secret ()

Data Fields

T value {}

Detailed Description

template<SecretValue T>
class purify::detail::Secret< T >

Own a value and erase it immediately before destruction.

Definition at line 52 of file secure_cleanup.hpp.

Constructor & Destructor Documentation

◆ Secret() [1/3]

template<SecretValue T>
purify::detail::Secret< T >::Secret ( )
default

Referenced by operator=(), operator=(), Secret(), and Secret().

◆ Secret() [2/3]

template<SecretValue T>
purify::detail::Secret< T >::Secret ( const Secret< T > & )
delete

References Secret().

◆ Secret() [3/3]

template<SecretValue T>
purify::detail::Secret< T >::Secret ( Secret< T > && )
delete

References Secret().

◆ ~Secret()

template<SecretValue T>
purify::detail::Secret< T >::~Secret ( )
inline

Definition at line 60 of file secure_cleanup.hpp.

References purify::detail::secure_erase(), and value.

Member Function Documentation

◆ operator=() [1/2]

template<SecretValue T>
Secret & purify::detail::Secret< T >::operator= ( const Secret< T > & )
delete

References Secret().

◆ operator=() [2/2]

template<SecretValue T>
Secret & purify::detail::Secret< T >::operator= ( Secret< T > && )
delete

References Secret().

Field Documentation

◆ value

template<SecretValue T>
T purify::detail::Secret< T >::value {}

Definition at line 64 of file secure_cleanup.hpp.

Referenced by ~Secret().


The documentation for this class was generated from the following file: