unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

SecPassword Class Reference

#include <secpassword.hpp>

Public Member Functions

 SecPassword ()
 
 ~SecPassword ()
 
void Clean ()
 
void Get (wchar *Psw, size_t MaxSize)
 
void Set (const wchar *Psw)
 
bool IsSet ()
 
size_t Length ()
 
bool operator== (SecPassword &psw)
 

Public Attributes

bool CrossProcess
 

Private Member Functions

void Process (const wchar *Src, size_t SrcSize, wchar *Dst, size_t DstSize, bool Encode)
 

Private Attributes

wchar Password [MAXPASSWORD]
 
bool PasswordSet
 

Detailed Description

Definition at line 6 of file secpassword.hpp.

Constructor & Destructor Documentation

◆ SecPassword()

SecPassword::SecPassword ( )

Definition at line 57 of file secpassword.cpp.

References CrossProcess, and Set().

◆ ~SecPassword()

SecPassword::~SecPassword ( )

Definition at line 64 of file secpassword.cpp.

References Clean().

Member Function Documentation

◆ Clean()

void SecPassword::Clean ( )

◆ Get()

void SecPassword::Get ( wchar Psw,
size_t  MaxSize 
)

Definition at line 111 of file secpassword.cpp.

References ASIZE, Password, PasswordSet, and Process().

Referenced by Length(), operator==(), and CryptData::SetCryptKeys().

◆ IsSet()

◆ Length()

size_t SecPassword::Length ( )

Definition at line 140 of file secpassword.cpp.

References ASIZE, cleandata(), Get(), Length(), and MAXPASSWORD.

Referenced by Length().

◆ operator==()

bool SecPassword::operator== ( SecPassword psw)

Definition at line 150 of file secpassword.cpp.

References ASIZE, cleandata(), Get(), and MAXPASSWORD.

◆ Process()

void SecPassword::Process ( const wchar Src,
size_t  SrcSize,
wchar Dst,
size_t  DstSize,
bool  Encode 
)
private

Definition at line 102 of file secpassword.cpp.

References CrossProcess, Min, and SecHideData().

Referenced by Get(), and Set().

◆ Set()

void SecPassword::Set ( const wchar Psw)

Member Data Documentation

◆ CrossProcess

bool SecPassword::CrossProcess

Definition at line 28 of file secpassword.hpp.

Referenced by Process(), and SecPassword().

◆ Password

wchar SecPassword::Password[MAXPASSWORD]
private

Definition at line 11 of file secpassword.hpp.

Referenced by Clean(), Get(), and Set().

◆ PasswordSet

bool SecPassword::PasswordSet
private

Definition at line 15 of file secpassword.hpp.

Referenced by Clean(), Get(), IsSet(), and Set().


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