Added standard library stubs for digest. Closes #2633.