MCPcopy Create free account
hub / github.com/SIPp/sipp / setAESSessionEncryptionKey

Method setAESSessionEncryptionKey

src/jlsrtp.cpp:1110–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1108}
1109
1110int JLSRTP::setAESSessionEncryptionKey()
1111{
1112 int rc = 0;
1113 int retVal = 0;
1114
1115 if (_cipherstate.cipher != nullptr)
1116 {
1117 rc = EVP_EncryptInit_ex(_cipherstate.cipher, nullptr, nullptr, _session_enc_key.data(), nullptr);
1118 if (rc == 1)
1119 {
1120 retVal = 0;
1121 }
1122 else
1123 {
1124 retVal = -2;
1125 }
1126 }
1127 else
1128 {
1129 retVal = -1;
1130 }
1131
1132 return retVal;
1133}
1134
1135void JLSRTP::AES_ctr128_increment(unsigned char* counter)
1136{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected