Fix digest not implemented error

Raise NotImplementedError if not implemented …
- Fix signature to avoid ArgumentError
- Correct name of NotImplementedError exception