/freebsd-13-stable/contrib/bearssl/src/rsa/ |
H A D | rsa_i15_pkcs1_sign.c | 29 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 D | rsa_i31_pkcs1_sign.c | 29 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 D | rsa_i32_pkcs1_sign.c | 29 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 D | rsa_i15_pkcs1_vrfy.c | 30 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 D | rsa_i31_pkcs1_vrfy.c | 30 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 D | rsa_i32_pkcs1_vrfy.c | 30 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 D | rsa_i62_pkcs1_sign.c | 31 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 D | rsa_i62_pkcs1_vrfy.c | 32 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 D | rsa_pkcs1_sig_pad.c | 29 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 D | rsa_pkcs1_sig_unpad.c | 30 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 D | ssl_ccert_single_rsa.c | 106 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 D | ssl_scert_single_rsa.c | 121 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 D | ssl_hs_client.c | 231 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 D | ssl_hs_server.c | 416 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 D | bearssl_rsa.h | 259 * - 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 D | libsecureboot-priv.h | 51 const unsigned char *hash_oid,
|
H A D | vets.c | 705 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 D | opgp_sig.c | 296 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 D | client.c | 372 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 D | server.c | 545 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 D | inner.h | 1933 * 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,
|