finished CGA-TSIG signing code