Bug 1034855 - Implement generateKey() for ECDH
work on deriveBits
Revert "work on deriveBits"

This reverts commit abd44eda5afcc863ba49d780a1f2a6e7baea6f59.
fix loop