Fix issue #46 - Restore the cookie signature check

The issue was a bug in the crypto service implementation

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>