| /freebsd/contrib/bearssl/src/rsa/ |
| H A D | rsa_pkcs1_sig_pad.c | 29 br_rsa_pkcs1_sig_pad(const unsigned char *hash_oid, in br_rsa_pkcs1_sig_pad() argument 62 if (hash_oid == NULL) { in br_rsa_pkcs1_sig_pad() 72 x3 = hash_oid[0]; in br_rsa_pkcs1_sig_pad() 91 memcpy(x + u + 6, hash_oid, x3 + 1); in br_rsa_pkcs1_sig_pad()
|
| H A D | rsa_pkcs1_sig_unpad.c | 30 const unsigned char *hash_oid, size_t hash_len, in br_rsa_pkcs1_sig_unpad() argument 89 if (hash_oid == NULL) { in br_rsa_pkcs1_sig_unpad() 94 x3 = hash_oid[0]; in br_rsa_pkcs1_sig_unpad() 112 memcpy(pad2 + 6, hash_oid, x3 + 1); in br_rsa_pkcs1_sig_unpad()
|
| H A D | rsa_i15_pkcs1_sign.c | 29 br_rsa_i15_pkcs1_sign(const unsigned char *hash_oid, in br_rsa_i15_pkcs1_sign() argument 33 if (!br_rsa_pkcs1_sig_pad(hash_oid, hash, hash_len, sk->n_bitlen, x)) { in br_rsa_i15_pkcs1_sign()
|
| H A D | rsa_i31_pkcs1_sign.c | 29 br_rsa_i31_pkcs1_sign(const unsigned char *hash_oid, in br_rsa_i31_pkcs1_sign() argument 33 if (!br_rsa_pkcs1_sig_pad(hash_oid, hash, hash_len, sk->n_bitlen, x)) { in br_rsa_i31_pkcs1_sign()
|
| H A D | rsa_i32_pkcs1_sign.c | 29 br_rsa_i32_pkcs1_sign(const unsigned char *hash_oid, in br_rsa_i32_pkcs1_sign() argument 33 if (!br_rsa_pkcs1_sig_pad(hash_oid, hash, hash_len, sk->n_bitlen, x)) { in br_rsa_i32_pkcs1_sign()
|
| H A D | rsa_i62_pkcs1_sign.c | 31 br_rsa_i62_pkcs1_sign(const unsigned char *hash_oid, in br_rsa_i62_pkcs1_sign() argument 35 if (!br_rsa_pkcs1_sig_pad(hash_oid, hash, hash_len, sk->n_bitlen, x)) { in br_rsa_i62_pkcs1_sign()
|
| H A D | rsa_i15_pkcs1_vrfy.c | 30 const unsigned char *hash_oid, size_t hash_len, in br_rsa_i15_pkcs1_vrfy() argument 42 return br_rsa_pkcs1_sig_unpad(sig, xlen, hash_oid, hash_len, hash_out); in br_rsa_i15_pkcs1_vrfy()
|
| H A D | rsa_i31_pkcs1_vrfy.c | 30 const unsigned char *hash_oid, size_t hash_len, in br_rsa_i31_pkcs1_vrfy() argument 42 return br_rsa_pkcs1_sig_unpad(sig, xlen, hash_oid, hash_len, hash_out); in br_rsa_i31_pkcs1_vrfy()
|
| H A D | rsa_i32_pkcs1_vrfy.c | 30 const unsigned char *hash_oid, size_t hash_len, in br_rsa_i32_pkcs1_vrfy() argument 42 return br_rsa_pkcs1_sig_unpad(sig, xlen, hash_oid, hash_len, hash_out); in br_rsa_i32_pkcs1_vrfy()
|
| H A D | rsa_i62_pkcs1_vrfy.c | 32 const unsigned char *hash_oid, size_t hash_len, in br_rsa_i62_pkcs1_vrfy() argument 44 return br_rsa_pkcs1_sig_unpad(sig, xlen, hash_oid, hash_len, hash_out); in br_rsa_i62_pkcs1_vrfy()
|
| /freebsd/contrib/bearssl/inc/ |
| H A D | bearssl_rsa.h | 280 const unsigned char *hash_oid, size_t hash_len, 434 typedef uint32_t (*br_rsa_pkcs1_sign)(const unsigned char *hash_oid, 589 const unsigned char *hash_oid, size_t hash_len, 634 uint32_t br_rsa_i32_pkcs1_sign(const unsigned char *hash_oid, 690 const unsigned char *hash_oid, size_t hash_len, 735 uint32_t br_rsa_i31_pkcs1_sign(const unsigned char *hash_oid, 799 const unsigned char *hash_oid, size_t hash_len, 856 uint32_t br_rsa_i62_pkcs1_sign(const unsigned char *hash_oid, 980 const unsigned char *hash_oid, size_t hash_len, 1025 uint32_t br_rsa_i15_pkcs1_sign(const unsigned char *hash_oid,
|
| /freebsd/contrib/bearssl/src/ssl/ |
| H A D | ssl_ccert_single_rsa.c | 106 const unsigned char *hash_oid; in cc_do_sign() local 112 hash_oid = NULL; in cc_do_sign() 114 hash_oid = HASH_OID[hash_id - 2]; in cc_do_sign() 122 return zc->irsasign(hash_oid, hv, hv_len, zc->sk, data) ? sig_len : 0; in cc_do_sign()
|
| H A D | ssl_scert_single_rsa.c | 121 const unsigned char *hash_oid; in sr_do_sign() local 127 hash_oid = NULL; in sr_do_sign() 129 hash_oid = HASH_OID[algo_id - 2]; in sr_do_sign() 137 return pc->irsasign(hash_oid, hv, hv_len, pc->sk, data) ? sig_len : 0; in sr_do_sign()
|
| H A D | ssl_hs_client.c | 231 const unsigned char *hash_oid; in verify_SKE_sig() local 234 hash_oid = HASH_OID[hash - 2]; in verify_SKE_sig() 236 hash_oid = NULL; in verify_SKE_sig() 239 hash_oid, hv_len, &pk->key.rsa, tmp) in verify_SKE_sig()
|
| H A D | ssl_hs_server.c | 416 const unsigned char *hash_oid; in verify_CV_sig() local 419 hash_oid = NULL; in verify_CV_sig() 421 hash_oid = HASH_OID[id - 2]; in verify_CV_sig() 427 hash_oid, ctx->hash_CV_len, &pk->key.rsa, tmp) in verify_CV_sig()
|
| H A D | ssl_hs_client.t0 | 176 const unsigned char *hash_oid; 179 hash_oid = HASH_OID[hash - 2]; 181 hash_oid = NULL; 184 hash_oid, hv_len, &pk->key.rsa, tmp)
|
| H A D | ssl_hs_server.t0 | 361 const unsigned char *hash_oid; 364 hash_oid = NULL; 366 hash_oid = HASH_OID[id - 2]; 372 hash_oid, ctx->hash_CV_len, &pk->key.rsa, tmp)
|
| /freebsd/lib/libsecureboot/openpgp/ |
| H A D | opgp_sig.c | 292 const unsigned char *hash_oid; 335 hash_oid = BR_HASH_OID_SHA1; 340 hash_oid = BR_HASH_OID_SHA256; 345 hash_oid = BR_HASH_OID_SHA384; 350 hash_oid = BR_HASH_OID_SHA512; 363 rc = verify_rsa_digest(key->key, hash_oid,
|
| /freebsd/lib/libsecureboot/ |
| H A D | vets.c | 838 const unsigned char *hash_oid, in verify_rsa_digest() argument 847 if (!vrfy(sdata, slen, hash_oid, mlen, pkey, vhbuf) || in verify_rsa_digest() 883 const unsigned char *hash_oid; in verify_rsa() local 908 hash_oid = BR_HASH_OID_SHA1; in verify_rsa() 914 hash_oid = BR_HASH_OID_SHA256; in verify_rsa() 920 if (!verify_rsa_digest(&pk->key.rsa, hash_oid, in verify_rsa()
|
| H A D | libsecureboot-priv.h | 53 const unsigned char *hash_oid,
|
| /freebsd/contrib/bearssl/tools/ |
| H A D | client.c | 372 const unsigned char *hash_oid; in cc_do_sign() local 377 hash_oid = get_hash_oid(hash_id); in cc_do_sign() 378 if (hash_oid == NULL && hash_id != 0) { in cc_do_sign() 398 hash_oid, hv, hv_len, &zc->sk->key.rsa, data); in cc_do_sign()
|
| H A D | server.c | 545 const unsigned char *hash_oid; in sp_do_sign() local 549 hash_oid = get_hash_oid(algo_id); in sp_do_sign() 550 if (hash_oid == NULL && algo_id != 0) { in sp_do_sign() 570 hash_oid, hv, hv_len, &pc->sk->key.rsa, data); in sp_do_sign()
|
| /freebsd/crypto/openssl/ssl/ |
| H A D | t1_lib.c | 503 sinf->hash_oid = NULL; in add_provider_sigalgs() 507 OPENSSL_free(sinf->hash_oid); in add_provider_sigalgs() 508 sinf->hash_oid = OPENSSL_strdup(p->data); in add_provider_sigalgs() 509 if (sinf->hash_oid == NULL) in add_provider_sigalgs() 625 OBJ_create(sinf->hash_oid, sinf->hash_name, NULL); in add_provider_sigalgs() 651 OPENSSL_free(sinf->hash_oid); in add_provider_sigalgs() 652 sinf->hash_oid = NULL; in add_provider_sigalgs()
|
| H A D | ssl_local.h | 759 char *hash_oid; /* hash algorithm OID */ member
|
| /freebsd/contrib/bearssl/src/ |
| H A D | inner.h | 1956 uint32_t br_rsa_pkcs1_sig_pad(const unsigned char *hash_oid, 1967 const unsigned char *hash_oid, size_t hash_len,
|