fix is valid when param is CryptoBaseBuffer
fix key.size()
fix key sizes
simplify DH example
documentation