MCPcopy Create free account
hub / github.com/Haivision/srt / CCryptoControl

Method CCryptoControl

srtcore/crypto.cpp:601–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599}
600
601srt::CCryptoControl::CCryptoControl(SRTSOCKET id)
602 : m_SocketID(id)
603 , m_iSndKmKeyLen(0)
604 , m_iRcvKmKeyLen(0)
605 , m_SndKmState(SRT_KM_S_UNSECURED)
606 , m_RcvKmState(SRT_KM_S_UNSECURED)
607 , m_KmRefreshRatePkt(0)
608 , m_KmPreAnnouncePkt(0)
609 , m_iCryptoMode(CSrtConfig::CIPHER_MODE_AUTO)
610 , m_bUseGcm153(false)
611 , m_bErrorReported(false)
612{
613 m_KmSecret.len = 0;
614 //send
615 m_SndKmMsg[0].MsgLen = 0;
616 m_SndKmMsg[0].iPeerRetry = 0;
617 m_SndKmMsg[1].MsgLen = 0;
618 m_SndKmMsg[1].iPeerRetry = 0;
619 m_hSndCrypto = NULL;
620 //recv
621 m_hRcvCrypto = NULL;
622}
623
624bool srt::CCryptoControl::init(HandshakeSide side, const CSrtConfig& cfg, bool bidirectional SRT_ATR_UNUSED, bool bUseGcm153 SRT_ATR_UNUSED)
625{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected