Implement HMAC and PBKDF2 internally with copied BouncyCastle

This unfortunately seems the simplest method.