Searched refs:hash_oid (Results 1 - 21 of 21) sorted by relevance

/freebsd-13-stable/contrib/bearssl/src/rsa/
H A Drsa_i15_pkcs1_sign.c29 br_rsa_i15_pkcs1_sign(const unsigned char *hash_oid, argument
33 if (!br_rsa_pkcs1_sig_pad(hash_oid, hash, hash_len, sk->n_bitlen, x)) {
H A Drsa_i31_pkcs1_sign.c29 br_rsa_i31_pkcs1_sign(const unsigned char *hash_oid, argument
33 if (!br_rsa_pkcs1_sig_pad(hash_oid, hash, hash_len, sk->n_bitlen, x)) {
H A Drsa_i32_pkcs1_sign.c29 br_rsa_i32_pkcs1_sign(const unsigned char *hash_oid, argument
33 if (!br_rsa_pkcs1_sig_pad(hash_oid, hash, hash_len, sk->n_bitlen, x)) {
H A Drsa_i15_pkcs1_vrfy.c30 const unsigned char *hash_oid, size_t hash_len,
42 return br_rsa_pkcs1_sig_unpad(sig, xlen, hash_oid, hash_len, hash_out);
29 br_rsa_i15_pkcs1_vrfy(const unsigned char *x, size_t xlen, const unsigned char *hash_oid, size_t hash_len, const br_rsa_public_key *pk, unsigned char *hash_out) argument
H A Drsa_i31_pkcs1_vrfy.c30 const unsigned char *hash_oid, size_t hash_len,
42 return br_rsa_pkcs1_sig_unpad(sig, xlen, hash_oid, hash_len, hash_out);
29 br_rsa_i31_pkcs1_vrfy(const unsigned char *x, size_t xlen, const unsigned char *hash_oid, size_t hash_len, const br_rsa_public_key *pk, unsigned char *hash_out) argument
H A Drsa_i32_pkcs1_vrfy.c30 const unsigned char *hash_oid, size_t hash_len,
42 return br_rsa_pkcs1_sig_unpad(sig, xlen, hash_oid, hash_len, hash_out);
29 br_rsa_i32_pkcs1_vrfy(const unsigned char *x, size_t xlen, const unsigned char *hash_oid, size_t hash_len, const br_rsa_public_key *pk, unsigned char *hash_out) argument
H A Drsa_i62_pkcs1_sign.c31 br_rsa_i62_pkcs1_sign(const unsigned char *hash_oid, argument
35 if (!br_rsa_pkcs1_sig_pad(hash_oid, hash, hash_len, sk->n_bitlen, x)) {
H A Drsa_i62_pkcs1_vrfy.c32 const unsigned char *hash_oid, size_t hash_len,
44 return br_rsa_pkcs1_sig_unpad(sig, xlen, hash_oid, hash_len, hash_out);
31 br_rsa_i62_pkcs1_vrfy(const unsigned char *x, size_t xlen, const unsigned char *hash_oid, size_t hash_len, const br_rsa_public_key *pk, unsigned char *hash_out) argument
H A Drsa_pkcs1_sig_pad.c29 br_rsa_pkcs1_sig_pad(const unsigned char *hash_oid, argument
48 * -- x3 is equal to the encoded OID value length (hash_oid[0]).
62 if (hash_oid == NULL) {
72 x3 = hash_oid[0];
91 memcpy(x + u + 6, hash_oid, x3 + 1);
H A Drsa_pkcs1_sig_unpad.c30 const unsigned char *hash_oid, size_t hash_len,
58 * first byte of hash_oid[]).
89 if (hash_oid == NULL) {
94 x3 = hash_oid[0];
112 memcpy(pad2 + 6, hash_oid, x3 + 1);
29 br_rsa_pkcs1_sig_unpad(const unsigned char *sig, size_t sig_len, const unsigned char *hash_oid, size_t hash_len, unsigned char *hash_out) argument
/freebsd-13-stable/contrib/bearssl/src/ssl/
H A Dssl_ccert_single_rsa.c106 const unsigned char *hash_oid; local
112 hash_oid = NULL;
114 hash_oid = HASH_OID[hash_id - 2];
122 return zc->irsasign(hash_oid, hv, hv_len, zc->sk, data) ? sig_len : 0;
H A Dssl_scert_single_rsa.c121 const unsigned char *hash_oid; local
127 hash_oid = NULL;
129 hash_oid = HASH_OID[algo_id - 2];
137 return pc->irsasign(hash_oid, hv, hv_len, pc->sk, data) ? sig_len : 0;
H A Dssl_hs_client.c231 const unsigned char *hash_oid; local
234 hash_oid = HASH_OID[hash - 2];
236 hash_oid = NULL;
239 hash_oid, hv_len, &pk->key.rsa, tmp)
H A Dssl_hs_server.c416 const unsigned char *hash_oid; local
419 hash_oid = NULL;
421 hash_oid = HASH_OID[id - 2];
427 hash_oid, ctx->hash_CV_len, &pk->key.rsa, tmp)
/freebsd-13-stable/contrib/bearssl/inc/
H A Dbearssl_rsa.h259 * - OID value length MUST be no more than 32 bytes (i.e. `hash_oid[0]`
273 * \param hash_oid encoded hash algorithm OID (or `NULL`).
280 const unsigned char *hash_oid, size_t hash_len,
427 * \param hash_oid encoded hash algorithm OID (or `NULL`).
434 typedef uint32_t (*br_rsa_pkcs1_sign)(const unsigned char *hash_oid,
582 * \param hash_oid encoded hash algorithm OID (or `NULL`).
589 const unsigned char *hash_oid, size_t hash_len,
627 * \param hash_oid encoded hash algorithm OID (or `NULL`).
634 uint32_t br_rsa_i32_pkcs1_sign(const unsigned char *hash_oid,
683 * \param hash_oid encode
[all...]
/freebsd-13-stable/lib/libsecureboot/
H A Dlibsecureboot-priv.h51 const unsigned char *hash_oid,
H A Dvets.c705 const unsigned char *hash_oid,
714 if (!vrfy(sdata, slen, hash_oid, mlen, pkey, vhbuf) ||
750 const unsigned char *hash_oid; local
775 hash_oid = BR_HASH_OID_SHA1;
781 hash_oid = BR_HASH_OID_SHA256;
787 if (!verify_rsa_digest(&pk->key.rsa, hash_oid,
704 verify_rsa_digest(br_rsa_public_key *pkey, const unsigned char *hash_oid, unsigned char *mdata, size_t mlen, unsigned char *sdata, size_t slen) argument
/freebsd-13-stable/lib/libsecureboot/openpgp/
H A Dopgp_sig.c296 const unsigned char *hash_oid; local
339 hash_oid = BR_HASH_OID_SHA1;
344 hash_oid = BR_HASH_OID_SHA256;
356 rc = verify_rsa_digest(key->key, hash_oid,
/freebsd-13-stable/contrib/bearssl/tools/
H A Dclient.c372 const unsigned char *hash_oid; local
377 hash_oid = get_hash_oid(hash_id);
378 if (hash_oid == NULL && hash_id != 0) {
398 hash_oid, hv, hv_len, &zc->sk->key.rsa, data);
H A Dserver.c545 const unsigned char *hash_oid; local
549 hash_oid = get_hash_oid(algo_id);
550 if (hash_oid == NULL && algo_id != 0) {
570 hash_oid, hv, hv_len, &pc->sk->key.rsa, data);
/freebsd-13-stable/contrib/bearssl/src/
H A Dinner.h1933 * Apply proper PKCS#1 v1.5 padding (for signatures). 'hash_oid' is
1936 uint32_t br_rsa_pkcs1_sig_pad(const unsigned char *hash_oid,
1941 * Check PKCS#1 v1.5 padding (for signatures). 'hash_oid' is the encoded
1947 const unsigned char *hash_oid, size_t hash_len,

Completed in 94 milliseconds