Home
last modified time | relevance | path

Searched refs:kRandomTokenSizeInBytes (Results 1 – 5 of 5) sorted by relevance

/external/federated-compute/fcp/base/
Drandom_token.cc31 static_assert(sizeof(words) == kRandomTokenSizeInBytes, in Generate()
34 kRandomTokenSizeInBytes); in Generate()
40 FCP_CHECK(bytes.size() == kRandomTokenSizeInBytes); in FromBytes()
43 static_assert(sizeof(words) == kRandomTokenSizeInBytes, in FromBytes()
45 memcpy(reinterpret_cast<char*>(words), bytes.data(), kRandomTokenSizeInBytes); in FromBytes()
49 std::array<char, kRandomTokenSizeInBytes> RandomToken::ToBytes() const { in ToBytes()
50 std::array<char, kRandomTokenSizeInBytes> bytes; in ToBytes()
52 kRandomTokenSizeInBytes); in ToBytes()
58 kRandomTokenSizeInBytes); in ToString()
63 reinterpret_cast<char const*>(words_), kRandomTokenSizeInBytes)); in ToPrintableString()
Drandom_token.h30 enum { kRandomTokenSizeInBytes = 16 }; enumerator
63 std::array<char, kRandomTokenSizeInBytes> ToBytes() const;
100 static_assert(sizeof(RandomToken) == kRandomTokenSizeInBytes,
Drandom_token_test.cc79 std::array<char, kRandomTokenSizeInBytes> kBytes{ in TEST()
/external/federated-compute/fcp/tensorflow/
Dserve_slices_op.cc129 OP_REQUIRES(context, callback_token_bytes.size() == kRandomTokenSizeInBytes, in Compute()
132 kRandomTokenSizeInBytes, callback_token_bytes.size()))); in Compute()
Dexternal_dataset_op.cc57 OP_REQUIRES(ctx, token_bytes.size() == kRandomTokenSizeInBytes, in MakeDataset()
60 kRandomTokenSizeInBytes, token_bytes.size()))); in MakeDataset()