XWIKI-9782: New Crypto Service API

- Fix checkstyle
XWIKI-9782: New Crypto Service API

 - minor test improvement