Lines Matching refs:variantsize
18 #define IMPLEMENT_BLAKE_functions(variant, VARIANT, variantsize) \ argument
87 static int ossl_blake##variantsize##_init(void *ctx) \
98 static OSSL_FUNC_digest_init_fn blake##variantsize##_internal_init; \
99 static OSSL_FUNC_digest_newctx_fn blake##variantsize##_newctx; \
100 static OSSL_FUNC_digest_freectx_fn blake##variantsize##_freectx; \
101 static OSSL_FUNC_digest_dupctx_fn blake##variantsize##_dupctx; \
102 static OSSL_FUNC_digest_final_fn blake##variantsize##_internal_final; \
103 static OSSL_FUNC_digest_get_params_fn blake##variantsize##_get_params; \
105 static int blake##variantsize##_internal_init(void *ctx, const OSSL_PARAM params[]) \
108 && ossl_blake##variantsize##_init(ctx); \
111 static void *blake##variantsize##_newctx(void *prov_ctx) \
119 static void blake##variantsize##_freectx(void *vctx) \
127 static void *blake##variantsize##_dupctx(void *ctx) \
138 static void blake##variantsize##_copyctx(void *voutctx, void *vinctx) \
147 static int blake##variantsize##_internal_final(void *ctx, unsigned char *out, \
170 static int blake##variantsize##_get_params(OSSL_PARAM params[]) \
175 const OSSL_DISPATCH ossl_blake##variantsize##_functions[] = { \
176 {OSSL_FUNC_DIGEST_NEWCTX, (void (*)(void))blake##variantsize##_newctx}, \
178 {OSSL_FUNC_DIGEST_FINAL, (void (*)(void))blake##variantsize##_internal_final}, \
179 {OSSL_FUNC_DIGEST_FREECTX, (void (*)(void))blake##variantsize##_freectx}, \
180 {OSSL_FUNC_DIGEST_DUPCTX, (void (*)(void))blake##variantsize##_dupctx}, \
181 {OSSL_FUNC_DIGEST_COPYCTX, (void (*)(void))blake##variantsize##_copyctx}, \
182 {OSSL_FUNC_DIGEST_GET_PARAMS, (void (*)(void))blake##variantsize##_get_params}, \
185 {OSSL_FUNC_DIGEST_INIT, (void (*)(void))blake##variantsize##_internal_init}, \