Lines Matching defs:ctx

23 static c448_error_t oneshot_hash(OSSL_LIB_CTX *ctx, uint8_t *out, size_t outlen,
34 shake256 = EVP_MD_fetch(ctx, "SHAKE256", propq);
57 static c448_error_t hash_init_with_dom(OSSL_LIB_CTX *ctx, EVP_MD_CTX *hashctx,
80 shake256 = EVP_MD_fetch(ctx, "SHAKE256", propq);
99 OSSL_LIB_CTX *ctx,
106 return oneshot_hash(ctx, x, X448_PRIVATE_BYTES, ed,
112 OSSL_LIB_CTX *ctx,
123 if (!oneshot_hash(ctx, secret_scalar_ser, sizeof(secret_scalar_ser),
159 ossl_c448_ed448_sign(OSSL_LIB_CTX *ctx,
185 if (!oneshot_hash(ctx, expanded, sizeof(expanded), privkey,
193 if (!hash_init_with_dom(ctx, hashctx, prehashed, 0, context,
235 if (!hash_init_with_dom(ctx, hashctx, prehashed, 0, context, context_len,
268 OSSL_LIB_CTX *ctx,
275 return ossl_c448_ed448_sign(ctx, signature, privkey, pubkey, hash, 64, 1,
281 OSSL_LIB_CTX *ctx,
334 || !hash_init_with_dom(ctx, hashctx, prehashed, 0, context,
365 OSSL_LIB_CTX *ctx,
371 return ossl_c448_ed448_verify(ctx, signature, pubkey, hash, 64, 1, context,
376 ossl_ed448_sign(OSSL_LIB_CTX *ctx, uint8_t *out_sig, const uint8_t *message,
381 return ossl_c448_ed448_sign(ctx, out_sig, private_key, public_key, message,
387 ossl_ed448_verify(OSSL_LIB_CTX *ctx, const uint8_t *message, size_t message_len,
391 return ossl_c448_ed448_verify(ctx, signature, public_key, message,
397 ossl_ed448ph_sign(OSSL_LIB_CTX *ctx, uint8_t *out_sig, const uint8_t hash[64],
401 return ossl_c448_ed448_sign_prehash(ctx, out_sig, private_key, public_key,
407 ossl_ed448ph_verify(OSSL_LIB_CTX *ctx, const uint8_t hash[64],
412 return ossl_c448_ed448_verify_prehash(ctx, signature, public_key, hash,
418 ossl_ed448_public_from_private(OSSL_LIB_CTX *ctx, uint8_t out_public_key[57],
421 return ossl_c448_ed448_derive_public_key(ctx, out_public_key, private_key,