include/bls.h.in [37:64]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /* Field size is assumed to be greater than or equal to group size */ #define BGS_ZZZ MODBYTES_XXX /**< BLS Group Size */ #define BFS_ZZZ MODBYTES_XXX /**< BLS Field Size */ #define BLS_OK 0 /**< Function completed without error */ #define BLS_FAIL 41 /**< Invalid signature */ #define BLS_INVALID_G1 42 /**< Not a valid G1 point on the curve */ #define BLS_INVALID_G2 43 /**< Not a valid G2 point on the curve */ /* BLS API functions */ /** @brief Generate Key Pair * @param RNG Pointer to a cryptographically secure random number generator @param S Private key. Generated externally if RNG set to NULL @param W Public Key. W = S*G, where G is fixed generator @return Zero for success or else an error code */ int BLS_ZZZ_KEY_PAIR_GENERATE(csprng *RNG,octet* S,octet *W); /** @brief Calculate a signature * @param SIG signature @param M message to be signed @param S Private key @return Zero for success or else an error code */ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - include/bls256.h.in [37:64]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /* Field size is assumed to be greater than or equal to group size */ #define BGS_ZZZ MODBYTES_XXX /**< BLS Group Size */ #define BFS_ZZZ MODBYTES_XXX /**< BLS Field Size */ #define BLS_OK 0 /**< Function completed without error */ #define BLS_FAIL 41 /**< Invalid signature */ #define BLS_INVALID_G1 42 /**< Not a valid G1 point on the curve */ #define BLS_INVALID_G2 43 /**< Not a valid G2 point on the curve */ /* BLS API functions */ /** @brief Generate Key Pair * @param RNG Pointer to a cryptographically secure random number generator @param S Private key. Generated externally if RNG set to NULL @param W Public Key. W = S*G, where G is fixed generator @return Zero for success or else an error code */ int BLS_ZZZ_KEY_PAIR_GENERATE(csprng *RNG,octet* S,octet *W); /** @brief Calculate a signature * @param SIG signature @param M message to be signed @param S Private key @return Zero for success or else an error code */ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -