Fix non-BC EC private key usage

This is a port of the previous patch to BC 1.47

Change-Id: I67d95635e05379fdbd09560c5be622de08f6018f
3 files changed