pike.git / lib / modules / __builtin.pmod / Nettle.pmod / BlockCipher.pike

version» Context lines:

pike.git/lib/modules/__builtin.pmod/Nettle.pmod/BlockCipher.pike:99:    }       string(8bit) crypt(string(8bit) data)    {    int len = sizeof(data);    String.Buffer buf = String.Buffer(len);    while (len > 0) {    string(8bit) chunk = iv->digits(256);    iv++;    if (sizeof(chunk) < _block_size) { -  chunk = "\0"*(_block_size - sizeof(chunk)) + chunk; +  chunk = "\0" * [int(1..)](_block_size - sizeof(chunk)) + chunk;    }    chunk = obj->crypt(chunk);    buf->add(chunk[..len-1]);    len -= _block_size;    }    return [string(8bit)](data ^ (string(8bit))buf);    }    }       protected State `()()    {    return State();    }       //! @ignore   }      _CTR CTR = _CTR();   //! @endignore