Finalize protocol encryption.
Signed-off-by: Karang <arthur.hennequin@free.fr>
Merge pull request #584 from Karang/master

Finalize protocol encryption.