Home
last modified time | relevance | path

Searched refs:digest_length (Results 1 – 12 of 12) sorted by relevance

/external/libchrome/crypto/
Dhmac.cc58 size_t digest_length) const { in Sign()
61 ScopedOpenSSLSafeSizeBuffer<EVP_MAX_MD_SIZE> result(digest, digest_length); in Sign()
78 size_t digest_length = DigestLength(); in VerifyTruncated() local
80 new unsigned char[digest_length]); in VerifyTruncated()
81 if (!Sign(data, computed_digest.get(), digest_length)) in VerifyTruncated()
85 std::min(digest.size(), digest_length)); in VerifyTruncated()
Dhmac.h70 size_t digest_length) const WARN_UNUSED_RESULT;
/external/python/cpython3/Modules/_blake2/
Dblake2b_impl.c117 self->param.digest_length = digest_size; in py_blake2b_new_impl()
326 blake2b_final(&state_cpy, digest, self->param.digest_length); in _blake2_blake2b_digest_impl()
329 self->param.digest_length); in _blake2_blake2b_digest_impl()
347 blake2b_final(&state_cpy, digest, self->param.digest_length); in _blake2_blake2b_hexdigest_impl()
349 return _Py_strhex((const char *)digest, self->param.digest_length); in _blake2_blake2b_hexdigest_impl()
382 return PyLong_FromLong(self->param.digest_length); in py_blake2b_get_digest_size()
Dblake2s_impl.c117 self->param.digest_length = digest_size; in py_blake2s_new_impl()
326 blake2s_final(&state_cpy, digest, self->param.digest_length); in _blake2_blake2s_digest_impl()
329 self->param.digest_length); in _blake2_blake2s_digest_impl()
347 blake2s_final(&state_cpy, digest, self->param.digest_length); in _blake2_blake2s_hexdigest_impl()
349 return _Py_strhex((const char *)digest, self->param.digest_length); in _blake2_blake2s_hexdigest_impl()
382 return PyLong_FromLong(self->param.digest_length); in py_blake2s_get_digest_size()
/external/python/cpython3/Modules/_blake2/impl/
Dblake2s-ref.c85 …_LOCAL_INLINE(int) blake2s_param_set_digest_length( blake2s_param *P, const uint8_t digest_length ) in blake2s_param_set_digest_length() argument
87 P->digest_length = digest_length; in blake2s_param_set_digest_length()
173 P->digest_length = outlen; in blake2s_init()
195 P->digest_length = outlen; in blake2s_init_key()
Dblake2b-ref.c92 …_LOCAL_INLINE(int) blake2b_param_set_digest_length( blake2b_param *P, const uint8_t digest_length ) in blake2b_param_set_digest_length() argument
94 P->digest_length = digest_length; in blake2b_param_set_digest_length()
179 P->digest_length = outlen; in blake2b_init()
202 P->digest_length = outlen; in blake2b_init_key()
Dblake2.h92 uint8_t digest_length; /* 1 */ member
107 uint8_t digest_length; /* 1 */ member
Dblake2s.c108 …_LOCAL_INLINE(int) blake2s_param_set_digest_length( blake2s_param *P, const uint8_t digest_length ) in blake2s_param_set_digest_length() argument
110 P->digest_length = digest_length; in blake2s_param_set_digest_length()
Dblake2b.c121 …_LOCAL_INLINE(int) blake2b_param_set_digest_length( blake2b_param *P, const uint8_t digest_length ) in blake2b_param_set_digest_length() argument
123 P->digest_length = digest_length; in blake2b_param_set_digest_length()
/external/python/cpython3/Lib/test/
Dtest_hashlib.py339 digest_length=None): argument
345 if digest_length:
346 self.assertEqual(len(m.digest(digest_length)),
347 digest_length)
348 self.assertEqual(len(m.hexdigest(digest_length)),
349 2*digest_length)
/external/toybox/toys/lsb/
Dmd5sum.c257 int digest_length; in do_lib_hash() member
283 for (i = 0; i<hash->digest_length; i++) in do_lib_hash()
/external/webrtc/webrtc/base/
Dopensslstreamadapter.cc1052 size_t digest_length; in SSLVerifyCallback() local
1057 &digest_length)) { in SSLVerifyCallback()
1062 Buffer computed_digest(digest, digest_length); in SSLVerifyCallback()