Home
last modified time | relevance | path

Searched refs:digest_length (Results 1 – 15 of 15) 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/
Dblake2s_impl.c114 self->param.digest_length = digest_size; in py_blake2s_new_impl()
311 blake2s_final(&state_cpy, digest, self->param.digest_length); in _blake2_blake2s_digest_impl()
314 self->param.digest_length); in _blake2_blake2s_digest_impl()
332 blake2s_final(&state_cpy, digest, self->param.digest_length); in _blake2_blake2s_hexdigest_impl()
334 return _Py_strhex((const char *)digest, self->param.digest_length); in _blake2_blake2s_hexdigest_impl()
367 return PyLong_FromLong(self->param.digest_length); in py_blake2s_get_digest_size()
Dblake2b_impl.c114 self->param.digest_length = digest_size; in py_blake2b_new_impl()
311 blake2b_final(&state_cpy, digest, self->param.digest_length); in _blake2_blake2b_digest_impl()
314 self->param.digest_length); in _blake2_blake2b_digest_impl()
332 blake2b_final(&state_cpy, digest, self->param.digest_length); in _blake2_blake2b_hexdigest_impl()
334 return _Py_strhex((const char *)digest, self->param.digest_length); in _blake2_blake2b_hexdigest_impl()
367 return PyLong_FromLong(self->param.digest_length); in py_blake2b_get_digest_size()
/external/python/cpython3/Modules/_blake2/impl/
Dblake2b-ref.c85 static inline int blake2b_param_set_digest_length( blake2b_param *P, const uint8_t digest_length ) in blake2b_param_set_digest_length() argument
87 P->digest_length = digest_length; in blake2b_param_set_digest_length()
171 S->outlen = P->digest_length; in blake2b_init_param()
183 P->digest_length = ( uint8_t ) outlen; in blake2b_init()
206 P->digest_length = ( uint8_t ) outlen; in blake2b_init_key()
Dblake2s-ref.c78 static inline int blake2s_param_set_digest_length( blake2s_param *P, const uint8_t digest_length ) in blake2s_param_set_digest_length() argument
80 P->digest_length = digest_length; in blake2s_param_set_digest_length()
164 S->outlen = P->digest_length; in blake2s_init_param()
177 P->digest_length = ( uint8_t) outlen; in blake2s_init()
199 P->digest_length = ( uint8_t ) outlen; in blake2s_init_key()
Dblake2s.c115 static inline int blake2s_param_set_digest_length( blake2s_param *P, const uint8_t digest_length ) in blake2s_param_set_digest_length() argument
117 P->digest_length = digest_length; in blake2s_param_set_digest_length()
205 S->outlen = P->digest_length; in blake2s_init_param()
Dblake2b.c127 static inline int blake2b_param_set_digest_length( blake2b_param *P, const uint8_t digest_length ) in blake2b_param_set_digest_length() argument
129 P->digest_length = digest_length; in blake2b_param_set_digest_length()
218 S->outlen = P->digest_length; in blake2b_init_param()
Dblake2sp.c30 P->digest_length = outlen; in blake2sp_init_leaf()
48 P->digest_length = outlen; in blake2sp_init_root()
59 S->outlen = P->digest_length; in blake2sp_init_root()
Dblake2bp.c31 P->digest_length = outlen; in blake2bp_init_leaf()
50 P->digest_length = outlen; in blake2bp_init_root()
62 S->outlen = P->digest_length; in blake2bp_init_root()
Dblake2.h73 uint8_t digest_length; // 1 member
99 uint8_t digest_length; // 1 member
/external/python/cpython3/Lib/test/
Dtest_hashlib.py355 digest_length=None): argument
361 if digest_length:
362 self.assertEqual(len(m.digest(digest_length)),
363 digest_length)
364 self.assertEqual(len(m.hexdigest(digest_length)),
365 2*digest_length)
/external/python/cpython3/Modules/clinic/
D_hashopenssl.c.h599 Py_ssize_t digest_length; in _hashlib_hmac_digest() local
600 digest = PyUnicode_AsUTF8AndSize(args[2], &digest_length); in _hashlib_hmac_digest()
604 if (strlen(digest) != (size_t)digest_length) { in _hashlib_hmac_digest()
/external/toybox/toys/lsb/
Dmd5sum.c255 int digest_length; in do_lib_hash() member
281 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()