Trusted QSL API

    struct PubInfo
    {
    	char	name[NAME_SIZE];
    	char	callSign[CALLSIGN_SIZE];
    	char	pubkey[KEY_SIZE];
    };

    struct CertInfo
    {
    	PubInfo		pubKeyInfo;
    	char		CA[CA_SIZE];
    	char		CAUrl[URL_SIZE];
    	char		expiration[DATE_SIZE];
    	char		CASignature[SIGN_SIZE];
    };

int tQSL_genKeyPair(char *secretKeyRing, char *pubKeyRing, struct KeyInfo *keyInfo);

int tQSL_deleteKey(char *keyRing,struct keyId);

int tQSL_genCert(struct pubKeyId kid,struct KeyId keyId,struct CertInfo cert);

int tQSL_signMessage(struct KeyId keyid,char *secretKeyRing,char *message,char *sign);

int tQSL_authMessage(struct KeyId keyid,char *pubKeyRing,char *message,char *sign);