EC parameters not copied correctly

As reported in Github, the memcpy was not valid.

	pkcs15-pubkey.c-20131106-09007
Merge pull request #196 from dengert/master

EC parameters not copied correctly
sc-hsm: Fixed memory checking and removed warning
sc-hsm: Removed compiler warning
pkcs15: Changed encoding for EC public keys in PuKDF to SPKI rather than ECPoint, preserving domain parameter