mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Allow encrypted M17 data to be rejected.
This commit is contained in:
@@ -89,6 +89,11 @@ void CM17LICH::setDataType(unsigned char type)
|
||||
m_lich[13U] |= (type << 1) & 0x06U;
|
||||
}
|
||||
|
||||
bool CM17LICH::isNONCENull() const
|
||||
{
|
||||
return ::memcmp(m_lich + 14U, M17_NULL_NONCE, M17_NONCE_LENGTH_BYTES) == 0;
|
||||
}
|
||||
|
||||
void CM17LICH::reset()
|
||||
{
|
||||
::memset(m_lich, 0x00U, 30U);
|
||||
|
||||
Reference in New Issue
Block a user