return privkey in generateKey callback