Searched refs:token_hash (Results 1 – 6 of 6) sorted by relevance
/external/libtextclassifier/native/actions/ |
D | ngram-model.cc | 145 uint32 token_hash) const { in GetFirstTokenMatches() 149 const int start = std::lower_bound(start_it, end_it, token_hash).index(); in GetFirstTokenMatches() 150 const int end = std::upper_bound(start_it, end_it, token_hash).index(); in GetFirstTokenMatches()
|
D | ngram-model.h | 58 std::pair<int, int> GetFirstTokenMatches(uint32 token_hash) const;
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/trust_token/ |
D | trust_token.c | 593 uint8_t token_hash[SHA256_DIGEST_LENGTH]; in TRUST_TOKEN_ISSUER_redeem() local 598 SHA256_Final(token_hash, &sha_ctx); in TRUST_TOKEN_ISSUER_redeem() 604 token_hash, sizeof(token_hash)); in TRUST_TOKEN_ISSUER_redeem() 647 !add_cbor_bytes(&srr, token_hash, sizeof(token_hash))) { in TRUST_TOKEN_ISSUER_redeem()
|
D | trust_token_test.cc | 503 uint8_t token_hash[SHA256_DIGEST_LENGTH]; in TEST_P() local 508 SHA256_Final(token_hash, &sha_ctx); in TEST_P() 511 ASSERT_EQ(Bytes(token_hash), Bytes(srr + 41, sizeof(token_hash))); in TEST_P() 516 sizeof(metadata_key), token_hash, sizeof(token_hash), srr[27])); in TEST_P() 525 OPENSSL_memset(srr + 41, 0, sizeof(token_hash)); in TEST_P()
|
/external/boringssl/src/crypto/trust_token/ |
D | trust_token.c | 699 uint8_t token_hash[SHA256_DIGEST_LENGTH]; in TRUST_TOKEN_ISSUER_redeem() local 704 SHA256_Final(token_hash, &sha_ctx); in TRUST_TOKEN_ISSUER_redeem() 707 ctx->metadata_key, ctx->metadata_key_len, token_hash, sizeof(token_hash)); in TRUST_TOKEN_ISSUER_redeem() 750 !add_cbor_bytes(&srr, token_hash, sizeof(token_hash)) || in TRUST_TOKEN_ISSUER_redeem()
|
D | trust_token_test.cc | 579 uint8_t token_hash[SHA256_DIGEST_LENGTH]; in TEST_P() local 584 SHA256_Final(token_hash, &sha_ctx); in TEST_P() 587 ASSERT_EQ(Bytes(token_hash), Bytes(srr + 41, sizeof(token_hash))); in TEST_P() 592 sizeof(metadata_key), token_hash, sizeof(token_hash), srr[27])); in TEST_P() 601 OPENSSL_memset(srr + 41, 0, sizeof(token_hash)); in TEST_P()
|