Home
last modified time | relevance | path

Searched refs:hv_len (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/bearssl/src/ssl/
H A Dssl_ccert_single_rsa.c102 int hash_id, size_t hv_len, unsigned char *data, size_t len) in cc_do_sign() argument
110 memcpy(hv, data, hv_len); 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 Dssl_scert_single_rsa.c116 unsigned algo_id, unsigned char *data, size_t hv_len, size_t len) in sr_do_sign() argument
124 memcpy(hv, data, hv_len); 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 Dssl_hs_client.c198 size_t hv_len; in verify_SKE_sig() local
217 hv_len = br_multihash_out(&mhc, hash, hv); in verify_SKE_sig()
218 if (hv_len == 0) { in verify_SKE_sig()
227 hv_len = 36; in verify_SKE_sig()
239 hash_oid, hv_len, &pk->key.rsa, tmp) in verify_SKE_sig()
240 || memcmp(tmp, hv, hv_len) != 0) in verify_SKE_sig()
245 if (!ctx->eng.iecdsa(ctx->eng.iec, hv, hv_len, &pk->key.ec, in verify_SKE_sig()
374 size_t hv_len; in make_client_sign() local
383 hv_len = br_multihash_out(&ctx->eng.mhash, in make_client_sign()
390 hv_len = 36; in make_client_sign()
[all …]
H A Dssl_scert_single_ec.c98 unsigned algo_id, unsigned char *data, size_t hv_len, size_t len) in se_do_sign() argument
110 memcpy(hv, data, hv_len); in se_do_sign()
H A Dssl_ccert_single_ec.c108 int hash_id, size_t hv_len, unsigned char *data, size_t len) in cc_do_sign() argument
115 memcpy(hv, data, hv_len); in cc_do_sign()
H A Dssl_hs_server.c270 size_t hv_len, sig_len; in do_ecdhe_part1() local
313 hv_len = 64 + 4 + ctx->eng.ecdhe_point_len; in do_ecdhe_part1()
316 hv_len = hash_data(ctx, ctx->eng.pad, algo_id & 0xFF, in do_ecdhe_part1()
317 ctx->eng.pad, hv_len); in do_ecdhe_part1()
318 if (hv_len == 0) { in do_ecdhe_part1()
324 algo_id, ctx->eng.pad, hv_len, sizeof ctx->eng.pad); in do_ecdhe_part1()
H A Dssl_hs_client.t0143 size_t hv_len;
162 hv_len = br_multihash_out(&mhc, hash, hv);
163 if (hv_len == 0) {
172 hv_len = 36;
184 hash_oid, hv_len, &pk->key.rsa, tmp)
185 || memcmp(tmp, hv, hv_len) != 0)
190 if (!ctx->eng.iecdsa(ctx->eng.iec, hv, hv_len, &pk->key.ec,
319 size_t hv_len;
328 hv_len = br_multihash_out(&ctx->eng.mhash,
335 hv_len = 36;
[all …]
H A Dssl_hs_server.t0215 size_t hv_len, sig_len;
258 hv_len = 64 + 4 + ctx->eng.ecdhe_point_len;
261 hv_len = hash_data(ctx, ctx->eng.pad, algo_id & 0xFF,
262 ctx->eng.pad, hv_len);
263 if (hv_len == 0) {
269 algo_id, ctx->eng.pad, hv_len, sizeof ctx->eng.pad);
/freebsd/contrib/bearssl/tools/
H A Dserver.c508 unsigned algo_id, unsigned char *data, size_t hv_len, size_t len) in sp_do_sign() argument
516 memcpy(hv, data, hv_len); in sp_do_sign()
524 algo_id, (unsigned long)hv_len); in sp_do_sign()
537 hc->update(&zc.vtable, data, hv_len); in sp_do_sign()
539 hv_len = (hc->desc >> BR_HASHDESC_OUT_OFF) in sp_do_sign()
570 hash_oid, hv, hv_len, &pc->sk->key.rsa, data); in sp_do_sign()
H A Dclient.c363 int hash_id, size_t hv_len, unsigned char *data, size_t len) in cc_do_sign() argument
369 memcpy(hv, data, hv_len); in cc_do_sign()
398 hash_oid, hv, hv_len, &zc->sk->key.rsa, data); in cc_do_sign()
/freebsd/contrib/bearssl/inc/
H A Dbearssl_ssl.h2543 int hash_id, size_t hv_len, unsigned char *data, size_t len);
3233 unsigned char *data, size_t hv_len, size_t len);