fixed signature scheme for self signed certificate
dont generate new key for self signed certificate
fixed calculation of bcd date from struct tm
removed obsolete type definition
squashed DH_PUBKEY and ECDH_PUBKEY into CVC_PUBKEY
some cleanup