implement and use new macros BN_get_sign(), BN_set_sign()