set encrypt/decrypt keys and ivs
| 1122 | |
| 1123 | // set encrypt/decrypt keys and ivs |
| 1124 | void SSL::setKeys() |
| 1125 | { |
| 1126 | Connection& conn = secure_.use_connection(); |
| 1127 | |
| 1128 | if (secure_.get_parms().entity_ == client_end) { |
| 1129 | crypto_.use_cipher().set_encryptKey(conn.client_write_key_, |
| 1130 | conn.client_write_IV_); |
| 1131 | crypto_.use_cipher().set_decryptKey(conn.server_write_key_, |
| 1132 | conn.server_write_IV_); |
| 1133 | } |
| 1134 | else { |
| 1135 | crypto_.use_cipher().set_encryptKey(conn.server_write_key_, |
| 1136 | conn.server_write_IV_); |
| 1137 | crypto_.use_cipher().set_decryptKey(conn.client_write_key_, |
| 1138 | conn.client_write_IV_); |
| 1139 | } |
| 1140 | } |
| 1141 | |
| 1142 | |
| 1143 |
nothing calls this directly
no test coverage detected