summaryrefslogtreecommitdiff
path: root/src/AS_DCP_AES.cpp
diff options
context:
space:
mode:
authorjelkins <jelkins@cinecert.com>2020-10-08 09:49:48 -0700
committerjelkins <jelkins@cinecert.com>2020-10-08 09:49:48 -0700
commitee40718aa383cb40beb67be317b3565c218d32c1 (patch)
treed2bd150d132a7dbf8c6bbe0dd6ca0c001292158c /src/AS_DCP_AES.cpp
parent6b98e08246b5b6a191152e3a3a4a69b459d1ae35 (diff)
parentd417531ed59434ecaee487adfdf54646408479bf (diff)
Merge branch 'master' of https://github.com/Jason-elkins/asdcplib into check_optional_values_arent_empty
Diffstat (limited to 'src/AS_DCP_AES.cpp')
-rwxr-xr-xsrc/AS_DCP_AES.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/AS_DCP_AES.cpp b/src/AS_DCP_AES.cpp
index 379e8ab..6409f5b 100755
--- a/src/AS_DCP_AES.cpp
+++ b/src/AS_DCP_AES.cpp
@@ -349,6 +349,13 @@ public:
SHA1_Final(m_SHAValue, &SHA);
m_Final = true;
}
+
+ //
+ void
+ GetMICKey(byte_t* buf) const
+ {
+ memcpy(buf, m_key, KeyLen);
+ }
};
@@ -444,6 +451,20 @@ HMACContext::TestHMACValue(const byte_t* buf) const
}
+//
+Result_t
+HMACContext::GetMICKey(byte_t* buf) const
+{
+ KM_TEST_NULL_L(buf);
+
+ if ( m_Context.empty() )
+ return RESULT_INIT;
+
+ m_Context->GetMICKey(buf);
+ return RESULT_OK;
+}
+
+
//
// end AS_DCP_AES.cpp