Home
last modified time | relevance | path

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

/third_party/openssl/demos/digest/
DEVP_MD_xof.c50 unsigned int digest_len = 20; in main() local
62 digest_len = (unsigned int)digest_len_i; in main()
98 digest = OPENSSL_malloc(digest_len); in main()
105 if (EVP_DigestFinalXOF(ctx, digest, digest_len) == 0) { in main()
111 BIO_dump_indent_fp(stdout, digest, digest_len, 2); in main()
114 if (digest_len == 20) { in main()
/third_party/selinux/libselinux/utils/
Dselabel_get_digests_all_partial_matches.c32 size_t i, digest_len; in main() local
101 digest_len = 0; in main()
107 &digest_len); in main()
109 sha1_buf = calloc(1, digest_len * 2 + 1); in main()
121 for (i = 0; i < digest_len; i++) in main()
138 for (i = 0; i < digest_len; i++) in main()
147 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/selinux/libselinux/include/selinux/
Dlabel.h113 size_t *digest_len);
136 unsigned char **digest, size_t *digest_len,
/third_party/openssl/demos/mac/
Dsiphash.c53 unsigned int digest_len = 8, c_rounds = 2, d_rounds = 4; in main() local
77 *p++ = OSSL_PARAM_construct_uint(OSSL_MAC_PARAM_SIZE, &digest_len); in main()
/third_party/selinux/libselinux/src/
Dlabel.c310 size_t *digest_len) in selabel_get_digests_all_partial_matches() argument
318 digest_len); in selabel_get_digests_all_partial_matches()
376 unsigned char **digest, size_t *digest_len, in selabel_digest() argument
385 *digest_len = DIGEST_SPECFILE_SIZE; in selabel_digest()
Dselinux_restorecon.c311 size_t i, digest_len = 0; in add_xattr_entry() local
326 &digest_len); in add_xattr_entry()
328 if (!xattr_digest || !digest_len) { in add_xattr_entry()
334 sha1_buf = malloc(digest_len * 2 + 1); in add_xattr_entry()
341 for (i = 0; i < digest_len; i++) in add_xattr_entry()
809 size_t digest_len = 0; in check_context_match_for_dir() local
822 &digest_len); in check_context_match_for_dir()
841 memcpy((*new_node)->digest, calculated_digest, digest_len); in check_context_match_for_dir()
Dlabel_internal.h93 size_t *digest_len);
Dlabel_file.c1087 size_t *digest_len) in get_digests_all_partial_matches() argument
1102 *digest_len = SHA1_HASH_SIZE; in get_digests_all_partial_matches()
/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/mbedtls/library/
Dssl_tls13_generic.c1115 … &ssl->handshake->state_local.finished_in.digest_len, in ssl_tls13_preprocess_finished_message()
1139 ssl->handshake->state_local.finished_in.digest_len; in ssl_tls13_parse_finished_message()
1213 … &ssl->handshake->state_local.finished_out.digest_len, in ssl_tls13_prepare_finished_message()
1230 size_t verify_data_len = ssl->handshake->state_local.finished_out.digest_len; in ssl_tls13_write_finished_message_body()
Dssl_misc.h951 size_t digest_len; member
961 size_t digest_len; member
Dssl_tls.c7075 size_t digest_len; in ssl_check_peer_crt_unchanged() local
7081 digest_len = mbedtls_md_get_size(digest_info); in ssl_check_peer_crt_unchanged()
7082 if (digest_len > MBEDTLS_SSL_PEER_CERT_DIGEST_MAX_LEN) { in ssl_check_peer_crt_unchanged()
7091 return memcmp(tmp_digest, peer_cert_digest, digest_len); in ssl_check_peer_crt_unchanged()
/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.c534 long digest_len; in create_digest() local
536 *md_value = OPENSSL_hexstr2buf(digest, &digest_len); in create_digest()
537 if (*md_value == NULL || md_value_len != digest_len) { in create_digest()
/third_party/node/deps/openssl/openssl/apps/
Dts.c534 long digest_len; in create_digest() local
536 *md_value = OPENSSL_hexstr2buf(digest, &digest_len); in create_digest()
537 if (*md_value == NULL || 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()
/third_party/openssl/test/
Dacvp_test.c626 unsigned int digest_len; in dsa_sigver_test() local
646 digest, &digest_len, md, NULL))) in dsa_sigver_test()
652 || !TEST_int_eq(EVP_PKEY_verify(ctx, sig, sig_len, digest, digest_len), in dsa_sigver_test()