| 1108 | } |
| 1109 | |
| 1110 | int 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 | |
| 1135 | void JLSRTP::AES_ctr128_increment(unsigned char* counter) |
| 1136 | { |
nothing calls this directly
no outgoing calls
no test coverage detected