- primo commit.
This commit is contained in:
SaraP
2021-09-07 16:50:23 +02:00
parent a5a65b4c8d
commit f8c998f6ff
633 changed files with 108631 additions and 0 deletions
@@ -0,0 +1,30 @@
#include "Model/Classes/NMR_KeyStoreResourceData.h"
#include "Common/NMR_Exception.h"
#include <memory>
namespace NMR {
nfUint64 CKeyStoreResourceData::s_nfHandleCount = 0;
CKeyStoreResourceData::CKeyStoreResourceData(
PKeyStoreResourceDataGroup const & rdg,
PPackageModelPath const& path,
bool compression,
eKeyStoreEncryptAlgorithm alg,
std::vector<nfByte> const & iv,
std::vector<nfByte> const & tag,
std::vector<nfByte> const & aad)
: CKeyStoreCEKParams(compression, alg, iv, tag, aad, ++s_nfHandleCount),
m_pGroup(rdg), m_pPath(path)
{
}
void CKeyStoreResourceData::setInitVector(std::vector<nfByte> const & newIV) {
m_rgIv = newIV;
}
void CKeyStoreResourceData::setAuthTag(std::vector<nfByte> const & newTag) {
m_rgTag = newTag;
}
}