const RawBuffer &pwd,
const RawBuffer &iv,
const uint32_t keySizeBits,
- const uint32_t pwdTagSizeBits,
RawBuffer &pwdTag,
const RawBuffer &hash)
{
uint32_t pwd_flag = pwd.empty() ? 0 : 1;
sIn.Push(new TZSerializableFlag(pwd_flag));
if (pwd_flag)
- sIn.Push(new TZSerializablePwdData(pwd, iv, pwdTagSizeBits));
+ sIn.Push(new TZSerializablePwdData(pwd, iv, Params::DEFAULT_AES_GCM_TAG_LEN_BITS));
sIn.Push(new TZSerializableBinary(hash));
TZSerializer sOut;
if (pwd_flag) {
- sOut.Push(new TZSerializableBinary(pwdTagSizeBits / 8));
+ sOut.Push(new TZSerializableBinary(Params::DEFAULT_AES_GCM_TAG_LEN_BYTES));
}
TrustZoneMemory outMemory(m_Context, sOut.GetSize(), TEEC_MEM_OUTPUT);