Home
last modified time | relevance | path

Searched refs:token_hash (Results 1 – 6 of 6) sorted by relevance

/external/libtextclassifier/native/actions/
Dngram-model.cc145 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()
Dngram-model.h58 std::pair<int, int> GetFirstTokenMatches(uint32 token_hash) const;
/external/rust/crates/quiche/deps/boringssl/src/crypto/trust_token/
Dtrust_token.c593 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()
Dtrust_token_test.cc503 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/
Dtrust_token.c699 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()
Dtrust_token_test.cc579 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()