changed CVC_get_pubkey into CVC_pubkey2pkey