summaryrefslogtreecommitdiff
path: root/src/AS_DCP_internal.h
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/AS_DCP_internal.h
parent6fe97406c72dd95339e4045679507b709dbefae2 (diff)
Hash to a vector of bytes rather than an ASCII string.2758-safe-write
Diffstat (limited to 'src/AS_DCP_internal.h')
-rwxr-xr-xsrc/AS_DCP_internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/AS_DCP_internal.h b/src/AS_DCP_internal.h
index 9d3fee9..98d0510 100755
--- a/src/AS_DCP_internal.h
+++ b/src/AS_DCP_internal.h
@@ -183,7 +183,7 @@ extern MXF::RIP *g_RIP;
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 = 0);
+ AESEncContext* Ctx, HMACContext* HMAC, std::vector<uint8_t>* hash = 0);
//
class KLReader : public ASDCP::KLVPacket
@@ -859,7 +859,7 @@ extern MXF::RIP *g_RIP;
}
Result_t AddDmsGenericPartUtf8Text(const ASDCP::FrameBuffer& frame_buffer,
- ASDCP::AESEncContext* enc = 0, ASDCP::HMACContext* hmac = 0,
+ ASDCP::AESEncContext* enc = 0, ASDCP::HMACContext* hmac = 0,
const std::string& trackDescription = "Descriptive Track",
const std::string& dataDescription = "")
{
@@ -965,7 +965,7 @@ extern MXF::RIP *g_RIP;
Result_t CreateBodyPart(const MXF::Rational& EditRate, ui32_t BytesPerEditUnit = 0);
Result_t WriteEKLVPacket(const ASDCP::FrameBuffer& FrameBuf,const byte_t* EssenceUL,
const ui32_t& MinEssenceElementBerLength,
- AESEncContext* Ctx, HMACContext* HMAC, std::string* hash = 0);
+ AESEncContext* Ctx, HMACContext* HMAC, std::vector<uint8_t>* hash = 0);
Result_t FakeWriteEKLVPacket(int size);
Result_t WriteASDCPFooter();
};