bdb: Replace sha functions with vb2 library