Home
last modified time | relevance | path

Searched refs:digest_len (Results 1 – 25 of 26) sorted by relevance

12

/third_party/selinux/libselinux/utils/
Dselabel_get_digests_all_partial_matches.c32 size_t i, digest_len; in main() local
100 digest_len = 0; in main()
106 &digest_len); in main()
108 sha1_buf = calloc(1, digest_len * 2 + 1); in main()
120 for (i = 0; i < digest_len; i++) in main()
137 for (i = 0; i < digest_len; i++) in main()
146 for (i = 0; i < digest_len; i++) in main()
Dselabel_digest.c9 static size_t digest_len; variable
47 rc = strncmp(selabel_digest, files_ptr + 1, digest_len * 2); in run_check_digest()
140 rc = selabel_digest(hnd, &sha1_digest, &digest_len, &specfiles, in main()
155 sha1_buf = malloc(digest_len * 2 + 1); in main()
164 for (i = 0; i < digest_len; i++) in main()
/third_party/glib/glib/
Dghmac.c285 gsize digest_len; in g_hmac_get_string() local
289 digest_len = g_checksum_type_get_length (hmac->digest_type); in g_hmac_get_string()
290 buffer = g_alloca (digest_len); in g_hmac_get_string()
293 g_hmac_get_digest (hmac, buffer, &digest_len); in g_hmac_get_string()
318 gsize *digest_len) in g_hmac_get_digest() argument
325 g_return_if_fail (*digest_len >= len); in g_hmac_get_digest()
330 g_checksum_get_digest (hmac->digesto, buffer, digest_len); in g_hmac_get_digest()
Dgchecksum.h86 gsize *digest_len);
Dghmac.h61 gsize *digest_len);
Dgchecksum.c178 gsize digest_len) in digest_to_string() argument
180 gsize i, len = digest_len * 2; in digest_to_string()
185 for (i = 0; i < digest_len; i++) in digest_to_string()
1700 gsize *digest_len) in g_checksum_get_digest() argument
1709 g_return_if_fail (*digest_len >= len); in g_checksum_get_digest()
1763 *digest_len = len; in g_checksum_get_digest()
/third_party/selinux/libselinux/include/selinux/
Dlabel.h113 size_t *digest_len);
136 unsigned char **digest, size_t *digest_len,
/third_party/selinux/libselinux/src/
Dlabel.c281 size_t *digest_len) in selabel_get_digests_all_partial_matches() argument
289 digest_len); in selabel_get_digests_all_partial_matches()
347 unsigned char **digest, size_t *digest_len, in selabel_digest() argument
356 *digest_len = DIGEST_SPECFILE_SIZE; in selabel_digest()
Dselinux_restorecon.c297 size_t i, digest_len = 0; in add_xattr_entry() local
311 &digest_len); in add_xattr_entry()
313 if (!xattr_digest || !digest_len) { in add_xattr_entry()
319 sha1_buf = malloc(digest_len * 2 + 1); in add_xattr_entry()
326 for (i = 0; i < digest_len; i++) in add_xattr_entry()
770 size_t digest_len = 0; in check_context_match_for_dir() local
783 &digest_len); in check_context_match_for_dir()
802 memcpy((*new_node)->digest, calculated_digest, digest_len); in check_context_match_for_dir()
Dlabel_internal.h93 size_t *digest_len);
Dlabel_file.c1015 size_t *digest_len) in get_digests_all_partial_matches() argument
1030 *digest_len = SHA1_HASH_SIZE; in get_digests_all_partial_matches()
/third_party/glib/glib/tests/
Dhmac.c399 gsize digest_len, hmac_len; in test_hmac() local
402 hmac_len = digest_len = g_checksum_type_get_length (t->digest_type); in test_hmac()
407 g_hmac_get_digest (hmac, digest, &digest_len); in test_hmac()
409 g_assert_cmpmem (digest, hmac_len, t->result, digest_len); in test_hmac()
/third_party/libsoup/tests/
Dxmlrpc-server-test.c91 gsize digest_len = 16; in do_md5sum() local
103 g_byte_array_set_size (digest, digest_len); in do_md5sum()
104 g_checksum_get_digest (checksum, digest->data, &digest_len); in do_md5sum()
109 digest->data, digest_len, in do_md5sum()
Dxmlrpc-old-server-test.c101 gsize digest_len = 16; in do_md5sum() local
115 g_byte_array_set_size (digest, digest_len); in do_md5sum()
116 g_checksum_get_digest (checksum, digest->data, &digest_len); in do_md5sum()
Dxmlrpc-old-test.c184 gsize digest_len = sizeof (digest); in test_md5sum() local
199 g_checksum_get_digest (checksum, digest, &digest_len); in test_md5sum()
211 digest, digest_len); in test_md5sum()
Dxmlrpc-test.c157 gsize digest_len = sizeof (digest); in test_md5sum() local
172 g_checksum_get_digest (checksum, digest, &digest_len); in test_md5sum()
186 digest, digest_len); in test_md5sum()
/third_party/ffmpeg/libavutil/
Dsha512.c35 uint8_t digest_len; ///< digest length in 64-bit words member
193 ctx->digest_len = bits >> 6; in av_sha512_init()
283 for (i = 0; i < ctx->digest_len; i++) in av_sha512_final()
285 if (ctx->digest_len & 1) /* SHA512/224 is 28 bytes, and is not divisible by 8. */ in av_sha512_final()
Dsha.c35 uint8_t digest_len; ///< digest length in 32-bit words member
275 ctx->digest_len = bits >> 5; in av_sha_init()
354 for (i = 0; i < ctx->digest_len; i++) in av_sha_final()
Dripemd.c34 uint8_t digest_len; ///< digest length in 32-bit words member
466 ctx->digest_len = bits >> 5; in av_ripemd_init()
554 for (i = 0; i < ctx->digest_len; i++) in av_ripemd_final()
/third_party/libsoup/libsoup/
Dsoup-websocket.c183 gsize digest_len = FIXED_DIGEST_LEN; in compute_accept_key() local
198 g_checksum_get_digest (checksum, digest, &digest_len); in compute_accept_key()
201 g_assert (digest_len == FIXED_DIGEST_LEN); in compute_accept_key()
203 return g_base64_encode (digest, digest_len); in compute_accept_key()
/third_party/mbedtls/library/
Dssl_tls13_generic.c890 &ssl->handshake->state_local.finished_in.digest_len, in ssl_tls13_preprocess_finished_message()
914 ssl->handshake->state_local.finished_in.digest_len; in ssl_tls13_parse_finished_message()
1061 &ssl->handshake->state_local.finished_out.digest_len, in ssl_tls13_prepare_finished_message()
1086 size_t verify_data_len = ssl->handshake->state_local.finished_out.digest_len; in ssl_tls13_write_finished_message_body()
Dssl_misc.h769 size_t digest_len; member
780 size_t digest_len; member
/third_party/gstreamer/gstplugins_good/ext/wavpack/
Dgstwavpackenc.c861 gsize digest_len = sizeof (md5_digest); in gst_wavpack_enc_drain() local
863 g_checksum_get_digest (enc->md5_context, md5_digest, &digest_len); in gst_wavpack_enc_drain()
864 if (digest_len == sizeof (md5_digest)) { in gst_wavpack_enc_drain()
/third_party/openssl/apps/
Dts.c507 long digest_len; in create_digest() local
508 *md_value = OPENSSL_hexstr2buf(digest, &digest_len); in create_digest()
509 if (!*md_value || md_value_len != digest_len) { in create_digest()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Dgstaudiocdsrc.c1165 gsize digest_len; in gst_audio_cd_src_calculate_musicbrainz_discid() local
1206 digest_len = 20; in gst_audio_cd_src_calculate_musicbrainz_discid()
1207 g_checksum_get_digest (sha, (guint8 *) & digest, &digest_len); in gst_audio_cd_src_calculate_musicbrainz_discid()
1210 ptr = g_base64_encode (digest, digest_len); in gst_audio_cd_src_calculate_musicbrainz_discid()

12