BN_zero(3) OpenSSL BN_zero(3) NNAAMMEE BN_zero, BN_one, BN_value_one, BN_set_word, BN_get_word - BIGNUM assignment operations SSYYNNOOPPSSIISS #include int BN_zero(BIGNUM *a); int BN_one(BIGNUM *a); const BIGNUM *BN_value_one(void); int BN_set_word(BIGNUM *a, BN_ULONG w); BN_ULONG BN_get_word(BIGNUM *a); DDEESSCCRRIIPPTTIIOONN BBNN__UULLOONNGG is a macro that will be an unsigned integral type optimied for the most efficient implementation on the local platform. _B_N___z_e_r_o_(_), _B_N___o_n_e_(_) and _B_N___s_e_t___w_o_r_d_(_) set aa to the values 0, 1 and ww respectively. _B_N___z_e_r_o_(_) and _B_N___o_n_e_(_) are macros. _B_N___v_a_l_u_e___o_n_e_(_) returns a BBIIGGNNUUMM constant of value 1. This constant is useful for use in comparisons and assignment. _B_N___g_e_t___w_o_r_d_(_) returns aa, if it can be represented as a BBNN__UULLOONNGG. RREETTUURRNN VVAALLUUEESS _B_N___g_e_t___w_o_r_d_(_) returns the value aa, or all-bits-set if aa cannot be rep- resented as a BBNN__UULLOONNGG. _B_N___z_e_r_o_(_), _B_N___o_n_e_(_) and _B_N___s_e_t___w_o_r_d_(_) return 1 on success, 0 otherwise. _B_N___v_a_l_u_e___o_n_e_(_) returns the constant. BBUUGGSS If a BBIIGGNNUUMM is equal to the value of all-bits-set, it will collide with the error condition returned by _B_N___g_e_t___w_o_r_d_(_) which uses that as an error value. BBNN__UULLOONNGG should probably be a typedef. SSEEEE AALLSSOO _b_n(3), _B_N___b_n_2_b_i_n(3) HHIISSTTOORRYY _B_N___z_e_r_o_(_), _B_N___o_n_e_(_) and _B_N___s_e_t___w_o_r_d_(_) are available in all versions of SSLeay and OpenSSL. _B_N___v_a_l_u_e___o_n_e_(_) and _B_N___g_e_t___w_o_r_d_(_) were added in SSLeay 0.8. _B_N___v_a_l_u_e___o_n_e_(_) was changed to return a true const BIGNUM * in OpenSSL 0.9.7. 1.0.2u 2019-12-20 BN_zero(3)