• Home
  • Raw
  • Download

Lines Matching refs:sig_params

225 load_pkcs11_private_key(const struct libfsverity_signature_params *sig_params  in load_pkcs11_private_key()  argument
337 load_pkcs11_private_key(const struct libfsverity_signature_params *sig_params, in load_pkcs11_private_key() argument
342 if (!sig_params->pkcs11_engine) { in load_pkcs11_private_key()
346 if (!sig_params->pkcs11_module) { in load_pkcs11_private_key()
357 sig_params->pkcs11_engine, 0) || in load_pkcs11_private_key()
362 sig_params->pkcs11_module, 0) || in load_pkcs11_private_key()
368 *pkey_ret = ENGINE_load_private_key(engine, sig_params->pkcs11_keyid, in load_pkcs11_private_key()
383 get_private_key(const struct libfsverity_signature_params *sig_params, in get_private_key() argument
386 if (sig_params->pkcs11_engine || sig_params->pkcs11_module || in get_private_key()
387 sig_params->pkcs11_keyid) { in get_private_key()
388 if (sig_params->keyfile) { in get_private_key()
392 return load_pkcs11_private_key(sig_params, pkey_ret); in get_private_key()
394 if (!sig_params->keyfile) { in get_private_key()
398 return read_private_key(sig_params->keyfile, pkey_ret); in get_private_key()
403 const struct libfsverity_signature_params *sig_params, in libfsverity_sign_digest() argument
413 if (!digest || !sig_params || !sig_ret || !sig_size_ret) { in libfsverity_sign_digest()
418 if (!libfsverity_mem_is_zeroed(sig_params->reserved1, in libfsverity_sign_digest()
419 sizeof(sig_params->reserved1)) || in libfsverity_sign_digest()
420 !libfsverity_mem_is_zeroed(sig_params->reserved2, in libfsverity_sign_digest()
421 sizeof(sig_params->reserved2))) { in libfsverity_sign_digest()
432 err = read_certificate(sig_params->certfile, &cert); in libfsverity_sign_digest()
436 err = get_private_key(sig_params, &pkey); in libfsverity_sign_digest()