37 const char *keydata = _key.c_str();
38 const size_t keylength = _key.length();
40 for (
size_t i = 0; i < size; ++i)
42 buf[i] = buf[i] ^ keydata[_key_pos];
44 if (_key_pos > keylength) _key_pos = 0;
50 const char *keydata = _key.c_str();
51 const size_t keylength = _key.length();
53 for (
size_t i = 0; i < size; ++i)
55 buf[i] = buf[i] ^ keydata[_key_pos];
57 if (_key_pos > keylength) _key_pos = 0;