some bugfixes, added cryptopp impls.