| 208 | } |
| 209 | |
| 210 | int JLSRTP::shiftVectorRight(std::vector<unsigned char> &shifted_vec, std::vector<unsigned char> &original_vec, int shift_value) |
| 211 | { |
| 212 | shifted_vec.clear(); |
| 213 | shifted_vec.resize(original_vec.size()); |
| 214 | |
| 215 | for (unsigned int i = shift_value, j = 0; i < shifted_vec.size(); i++, j++) { |
| 216 | shifted_vec[i] = original_vec[j]; |
| 217 | } |
| 218 | |
| 219 | return 0; |
| 220 | } |
| 221 | |
| 222 | int JLSRTP::xorVector(std::vector<unsigned char> &a, std::vector<unsigned char> &b, std::vector<unsigned char> &result) |
| 223 | { |