Home
last modified time | relevance | path

Searched refs:cksumtype (Results 1 – 25 of 49) sorted by relevance

12

/src/crypto/krb5/src/lib/crypto/krb/
H A Dmake_checksum.c33 krb5_k_make_checksum(krb5_context context, krb5_cksumtype cksumtype, in krb5_k_make_checksum() argument
43 if (cksumtype == 0 && key != NULL) { in krb5_k_make_checksum()
45 &cksumtype); in krb5_k_make_checksum()
49 ctp = find_cksumtype(cksumtype); in krb5_k_make_checksum()
68 cksum->checksum_type = cksumtype; in krb5_k_make_checksum()
84 krb5_c_make_checksum(krb5_context context, krb5_cksumtype cksumtype, in krb5_c_make_checksum() argument
96 ret = krb5_k_make_checksum(context, cksumtype, key, usage, input, cksum); in krb5_c_make_checksum()
H A Dmake_checksum_iov.c31 krb5_cksumtype cksumtype, in krb5_k_make_checksum_iov() argument
42 if (cksumtype == 0 && key != NULL) { in krb5_k_make_checksum_iov()
44 &cksumtype); in krb5_k_make_checksum_iov()
48 ctp = find_cksumtype(cksumtype); in krb5_k_make_checksum_iov()
78 krb5_cksumtype cksumtype, in krb5_c_make_checksum_iov() argument
92 ret = krb5_k_make_checksum_iov(context, cksumtype, key, usage, in krb5_c_make_checksum_iov()
H A Dverify_checksum.c36 krb5_cksumtype cksumtype; in krb5_k_verify_checksum() local
46 cksumtype = cksum->checksum_type; in krb5_k_verify_checksum()
47 if (cksumtype == 0 && key != NULL) { in krb5_k_verify_checksum()
49 &cksumtype); in krb5_k_verify_checksum()
53 ctp = find_cksumtype(cksumtype); in krb5_k_verify_checksum()
H A Dmandatory_sumtype.c30 krb5_cksumtype *cksumtype) in krb5int_c_mandatory_cksumtype() argument
37 *cksumtype = ktp->required_ctype; in krb5int_c_mandatory_cksumtype()
H A Dchecksum_length.c31 krb5_c_checksum_length(krb5_context context, krb5_cksumtype cksumtype, in krb5_c_checksum_length() argument
36 ctp = find_cksumtype(cksumtype); in krb5_c_checksum_length()
H A Dcksumtype_to_string.c31 krb5_cksumtype_to_string(krb5_cksumtype cksumtype, char *buffer, size_t buflen) in krb5_cksumtype_to_string() argument
35 ctp = find_cksumtype(cksumtype); in krb5_cksumtype_to_string()
/src/crypto/krb5/src/lib/gssapi/krb5/
H A Dk5sealv3iov.c51 krb5_cksumtype cksumtype; in gss_krb5int_make_seal_token_v3_iov() local
66 cksumtype = ctx->acceptor_subkey_cksumtype; in gss_krb5int_make_seal_token_v3_iov()
69 cksumtype = ctx->cksumtype; in gss_krb5int_make_seal_token_v3_iov()
72 assert(cksumtype != 0); in gss_krb5int_make_seal_token_v3_iov()
237 code = kg_make_checksum_iov_v3(context, cksumtype, in gss_krb5int_make_seal_token_v3_iov()
295 krb5_cksumtype cksumtype; in gss_krb5int_unseal_v3_iov() local
335 cksumtype = ctx->acceptor_subkey_cksumtype; in gss_krb5int_unseal_v3_iov()
338 cksumtype = ctx->cksumtype; in gss_krb5int_unseal_v3_iov()
419 code = kg_verify_checksum_iov_v3(context, cksumtype, rrc, in gss_krb5int_unseal_v3_iov()
441 code = kg_verify_checksum_iov_v3(context, cksumtype, rrc, in gss_krb5int_unseal_v3_iov()
H A Dwrap_size_limit.c128 krb5_cksumtype cksumtype; in krb5_gss_wrap_size_limit() local
132 cksumtype = ctx->have_acceptor_subkey ? ctx->acceptor_subkey_cksumtype in krb5_gss_wrap_size_limit()
133 : ctx->cksumtype; in krb5_gss_wrap_size_limit()
135 err = krb5_c_checksum_length(ctx->k5_context, cksumtype, &cksumsize); in krb5_gss_wrap_size_limit()
H A Dverify_mic.c95 krb5_cksumtype cksumtype; in verify_mic_v3() local
119 cksumtype = ctx->acceptor_subkey_cksumtype; in verify_mic_v3()
122 cksumtype = ctx->cksumtype; in verify_mic_v3()
126 if (!kg_verify_checksum_v3(context, key, usage, cksumtype, KG2_TOK_MIC_MSG, in verify_mic_v3()
H A Dk5sealv3.c80 krb5_cksumtype cksumtype; in gss_krb5int_make_seal_token_v3() local
96 cksumtype = ctx->acceptor_subkey_cksumtype; in gss_krb5int_make_seal_token_v3()
99 cksumtype = ctx->cksumtype; in gss_krb5int_make_seal_token_v3()
199 err = krb5_c_checksum_length(context, cksumtype, &cksumsize); in gss_krb5int_make_seal_token_v3()
241 err = krb5_k_make_checksum(context, cksumtype, key, in gss_krb5int_make_seal_token_v3()
H A Dunwrap.c281 krb5_cksumtype cksumtype; in unwrap_v3() local
309 cksumtype = ctx->acceptor_subkey_cksumtype; in unwrap_v3()
312 cksumtype = ctx->cksumtype; in unwrap_v3()
330 ret = krb5_c_checksum_length(context, cksumtype, &cksumsize); in unwrap_v3()
342 if (!kg_verify_checksum_v3(context, key, usage, cksumtype, in unwrap_v3()
H A Dutil_crypt.c79 krb5_cksumtype *cksumtype) in kg_setup_keys() argument
86 *cksumtype = 0; in kg_setup_keys()
95 cksumtype); in kg_setup_keys()
316 krb5_cksumtype cksumtype, in kg_verify_checksum_v3() argument
343 return krb5_k_verify_checksum_iov(context, cksumtype, key, usage, iov, 3, in kg_verify_checksum_v3()
/src/crypto/krb5/src/lib/krb5/krb/
H A Dauthdata_enc.c97 krb5_cksumtype cksumtype; in krb5_make_authdata_kdc_issued() local
108 &cksumtype); in krb5_make_authdata_kdc_issued()
112 if (!krb5_c_is_keyed_cksum(cksumtype)) in krb5_make_authdata_kdc_issued()
119 code = krb5_c_make_checksum(context, cksumtype, in krb5_make_authdata_kdc_issued()
H A Dpac_sign.c100 const krb5_keyblock *key, krb5_cksumtype *cksumtype) in insert_checksum() argument
106 ret = krb5int_c_mandatory_cksumtype(context, key->enctype, cksumtype); in insert_checksum()
110 ret = krb5_c_checksum_length(context, *cksumtype, &len); in insert_checksum()
136 store_32_le((krb5_ui_4)*cksumtype, cksumdata.data); in insert_checksum()
188 const krb5_keyblock *key, krb5_cksumtype cksumtype, in compute_pac_checksum() argument
206 return krb5_c_make_checksum_iov(context, cksumtype, key, in compute_pac_checksum()
H A Dauth_con.c287 …n_set_req_cksumtype(krb5_context context, krb5_auth_context auth_context, krb5_cksumtype cksumtype) in krb5_auth_con_set_req_cksumtype() argument
289 auth_context->req_cksumtype = cksumtype; in krb5_auth_con_set_req_cksumtype()
294 …_set_safe_cksumtype(krb5_context context, krb5_auth_context auth_context, krb5_cksumtype cksumtype) in krb5_auth_con_set_safe_cksumtype() argument
296 auth_context->safe_cksumtype = cksumtype; in krb5_auth_con_set_safe_cksumtype()
H A Dpac.c485 krb5_cksumtype cksumtype; in verify_checksum() local
496 cksumtype = load_32_le(buffer.data); in verify_checksum()
497 if (buffer_type == KRB5_PAC_SERVER_CHECKSUM && cksumtype == CKSUMTYPE_SHA1) in verify_checksum()
499 if (!krb5_c_is_keyed_cksum(cksumtype)) in verify_checksum()
504 ret = krb5_c_checksum_length(context, cksumtype, &cksumlen); in verify_checksum()
509 checksum.checksum_type = cksumtype; in verify_checksum()
/src/crypto/heimdal/lib/krb5/
H A Dmit_glue.c44 krb5_cksumtype cksumtype, in krb5_c_make_checksum() argument
57 ret = krb5_create_checksum(context, crypto, usage, cksumtype, in krb5_c_make_checksum()
74 ret = krb5_c_make_checksum(context, cksum->cksumtype, in krb5_c_verify_checksum()
79 if (data_cksum.cksumtype == cksum->cksumtype in krb5_c_verify_checksum()
95 *type = cksum->cksumtype; in krb5_c_get_checksum()
115 cksum->cksumtype = type; in krb5_c_set_checksum()
175 krb5_c_checksum_length (krb5_context context, krb5_cksumtype cksumtype, in krb5_c_checksum_length() argument
178 return krb5_checksumsize(context, cksumtype, length); in krb5_c_checksum_length()
H A Dauth_context.c62 p->cksumtype = CKSUMTYPE_NONE; in krb5_auth_con_init()
355 krb5_cksumtype cksumtype) in krb5_auth_con_setcksumtype() argument
357 auth_context->cksumtype = cksumtype; in krb5_auth_con_setcksumtype()
364 krb5_cksumtype *cksumtype) in krb5_auth_con_getcksumtype() argument
366 *cksumtype = auth_context->cksumtype; in krb5_auth_con_getcksumtype()
H A Drd_safe.c50 safe->cksum.cksumtype = 0; in verify_checksum()
123 if (!krb5_checksum_is_keyed(context, safe.cksum.cksumtype) in krb5_rd_safe()
124 || !krb5_checksum_is_collision_proof(context, safe.cksum.cksumtype)) { in krb5_rd_safe()
H A Dpac.c105 result->cksumtype = CKSUMTYPE_HMAC_MD5; in HMAC_MD5_any_checksum()
539 cksum.cksumtype = type; in verify_checksum()
554 if (!krb5_checksum_is_keyed(context, cksum.cksumtype)) { in verify_checksum()
557 cksum.cksumtype); in verify_checksum()
570 if (cksum.cksumtype == CKSUMTYPE_HMAC_MD5) { in verify_checksum()
613 uint32_t cksumtype, in create_checksum() argument
630 if (cksumtype == (uint32_t)CKSUMTYPE_HMAC_MD5) { in create_checksum()
1002 uint32_t *cksumtype, in pac_checksum() argument
1019 *cksumtype = CKSUMTYPE_HMAC_MD5; in pac_checksum()
1027 *cksumtype = (uint32_t)cktype; in pac_checksum()
H A Dcrypto.c376 result->cksumtype = ct->type; in create_checksum()
442 ct = _krb5_find_checksum(cksum->cksumtype); in verify_checksum()
446 cksum->cksumtype); in verify_checksum()
534 ct = _krb5_find_checksum(cksum->cksumtype); in krb5_verify_checksum()
538 cksum->cksumtype); in krb5_verify_checksum()
1037 cksum.cksumtype = CHECKSUMTYPE(et->keyed_checksum); in decrypt_internal_derived()
1110 cksum.cksumtype = CHECKSUMTYPE(et->checksum); in decrypt_internal()
1523 cksum.cksumtype = CHECKSUMTYPE(et->keyed_checksum); in krb5_decrypt_iov_ivec()
1597 *type = cksum.cksumtype; in krb5_create_checksum_iov()
1670 cksum.cksumtype = CHECKSUMTYPE(et->keyed_checksum); in krb5_verify_checksum_iov()
[all …]
H A Dcrypto-aes.c99 result.cksumtype = ct->type; in AES_PRF()
/src/crypto/krb5/src/plugins/preauth/securid_sam2/
H A Dsecurid_sam2_main.c122 krb5_cksumtype cksumtype; in sam_make_challenge() local
149 &cksumtype); in sam_make_challenge()
153 retval = krb5_c_make_checksum(context, cksumtype, cksum_key, in sam_make_challenge()
/src/crypto/heimdal/lib/gssapi/krb5/
H A D8003.c129 result->cksumtype = CKSUMTYPE_GSSAPI; in _gsskrb5_create_8003_checksum()
186 if(cksum->cksumtype != CKSUMTYPE_GSSAPI || cksum->checksum.length < 24) { in _gsskrb5_verify_8003_checksum()
/src/usr.sbin/makefs/zfs/
H A Dvdev.c113 vdev_pwrite_data(zfs_opt_t *zfs, uint8_t datatype, uint8_t cksumtype, in vdev_pwrite_data() argument
119 assert(cksumtype == ZIO_CHECKSUM_FLETCHER_4); in vdev_pwrite_data()
122 blkptr_set(bp, loc, sz, datatype, level, fill, cksumtype, &cksum); in vdev_pwrite_data()

12