LibreOffice Module sc (master) 1
|
OOXML password definitions: algorithmName, hashValue, saltValue, spinCount. More...
#include <tabprotection.hxx>
Public Member Functions | |
ScOoxPasswordHash () | |
spin count, iteration runs More... | |
bool | hasPassword () const |
void | clear () |
bool | verifyPassword (const OUString &aPassText) const |
Public Attributes | |
OUString | maAlgorithmName |
OUString | maHashValue |
"SHA-512", ... More... | |
OUString | maSaltValue |
base64 encoded hash value More... | |
sal_uInt32 | mnSpinCount |
base64 encoded salt value More... | |
OOXML password definitions: algorithmName, hashValue, saltValue, spinCount.
Definition at line 41 of file tabprotection.hxx.
|
inline |
spin count, iteration runs
Definition at line 48 of file tabprotection.hxx.
|
inline |
Definition at line 50 of file tabprotection.hxx.
References maHashValue, and maSaltValue.
Referenced by ScTableProtectionImpl::setPassword().
|
inline |
Definition at line 49 of file tabprotection.hxx.
References maHashValue.
Referenced by ScEnhancedProtection::hasPassword(), ScTableProtectionImpl::isProtectedWithPass(), XclExpSheetProtection::SaveXml(), and verifyPassword().
bool ScOoxPasswordHash::verifyPassword | ( | const OUString & | aPassText | ) | const |
Definition at line 93 of file tabprotection.cxx.
References comphelper::Hash::APPEND, comphelper::DocPasswordHelper::GetOoxHashAsBase64(), hasPassword(), maAlgorithmName, maHashValue, maSaltValue, and mnSpinCount.
Referenced by ScTableProtectionImpl::verifyPassword().
OUString ScOoxPasswordHash::maAlgorithmName |
Definition at line 43 of file tabprotection.hxx.
Referenced by oox::xls::WorksheetSettings::importProtectedRange(), XclExpSheetProtection::SaveXml(), ScTableProtectionImpl::setPasswordHash(), and verifyPassword().
OUString ScOoxPasswordHash::maHashValue |
"SHA-512", ...
Definition at line 44 of file tabprotection.hxx.
Referenced by clear(), hasPassword(), oox::xls::WorksheetSettings::importProtectedRange(), XclExpSheetProtection::SaveXml(), ScTableProtectionImpl::setPasswordHash(), and verifyPassword().
OUString ScOoxPasswordHash::maSaltValue |
base64 encoded hash value
Definition at line 45 of file tabprotection.hxx.
Referenced by clear(), oox::xls::WorksheetSettings::importProtectedRange(), XclExpSheetProtection::SaveXml(), ScTableProtectionImpl::setPasswordHash(), and verifyPassword().
sal_uInt32 ScOoxPasswordHash::mnSpinCount |
base64 encoded salt value
Definition at line 46 of file tabprotection.hxx.
Referenced by oox::xls::WorksheetSettings::importProtectedRange(), XclExpSheetProtection::SaveXml(), ScTableProtectionImpl::setPasswordHash(), and verifyPassword().