| 196 | } |
| 197 | |
| 198 | int JLSRTP::shiftVectorLeft(std::vector<unsigned char> &shifted_vec, std::vector<unsigned char> &original_vec, int shift_value) |
| 199 | { |
| 200 | shifted_vec.clear(); |
| 201 | shifted_vec.resize(original_vec.size()); |
| 202 | |
| 203 | for (unsigned int i = shift_value, j = 0; i < original_vec.size(); i++, j++) { |
| 204 | shifted_vec[j] = original_vec[i]; |
| 205 | } |
| 206 | |
| 207 | return 0; |
| 208 | } |
| 209 | |
| 210 | int JLSRTP::shiftVectorRight(std::vector<unsigned char> &shifted_vec, std::vector<unsigned char> &original_vec, int shift_value) |
| 211 | { |