summaryrefslogtreecommitdiff
path: root/src/h__Writer.cpp
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-06-24 23:45:27 +0200
committerCarl Hetherington <cth@carlh.net>2025-09-15 22:16:23 +0200
commit2eeee990f029779d8d1c2205b99a239bf87fbbe5 (patch)
tree8a5402633b55a447f03e07f7f061318f0a5164a6 /src/h__Writer.cpp
parent6fe97406c72dd95339e4045679507b709dbefae2 (diff)
Hash to a vector of bytes rather than an ASCII string.2758-safe-write
Diffstat (limited to 'src/h__Writer.cpp')
-rwxr-xr-xsrc/h__Writer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/h__Writer.cpp b/src/h__Writer.cpp
index 4eaf72f..3736c12 100755
--- a/src/h__Writer.cpp
+++ b/src/h__Writer.cpp
@@ -320,7 +320,7 @@ ASDCP::h__ASDCPWriter::WriteASDCPHeader(const std::string& PackageLabel, const U
Result_t
ASDCP::h__ASDCPWriter::WriteEKLVPacket(const ASDCP::FrameBuffer& FrameBuf,const byte_t* EssenceUL,
const ui32_t& MinEssenceElementBerLength,
- AESEncContext* Ctx, HMACContext* HMAC, std::string* hash)
+ AESEncContext* Ctx, HMACContext* HMAC, std::vector<uint8_t>* hash)
{
return Write_EKLV_Packet(m_File, *m_Dict, m_HeaderPart, m_Info, m_CtFrameBuf, m_FramesWritten,
m_StreamOffset, FrameBuf, EssenceUL, MinEssenceElementBerLength,
@@ -393,7 +393,7 @@ ASDCP::Write_EKLV_Packet(Kumu::FileWriter& File, const ASDCP::Dictionary& Dict,
const ASDCP::WriterInfo& Info, ASDCP::FrameBuffer& CtFrameBuf, ui32_t& FramesWritten,
ui64_t & StreamOffset, const ASDCP::FrameBuffer& FrameBuf, const byte_t* EssenceUL,
const ui32_t& MinEssenceElementBerLength,
- AESEncContext* Ctx, HMACContext* HMAC, std::string* hash)
+ AESEncContext* Ctx, HMACContext* HMAC, std::vector<uint8_t>* hash)
{
Result_t result = RESULT_OK;
IntegrityPack IntPack;