XWIKI-9782: New Crypto Service API

- Add an internal bouncy castle interface for digest
XWIKI-9927: Error in R40000 migration when name column of statistics table is null