Fixed static encryption (init cipher before doFinal).
Fixed transfer of session key.
Merge remote-tracking branch 'origin/master'