Updated to correctly handle condition where pSignature is NULL in C_Sign()