PEM password callback should have return the copied length