Searched refs:kRandomTokenSizeInBytes (Results 1 – 5 of 5) sorted by relevance
/external/federated-compute/fcp/base/ |
D | random_token.cc | 31 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()
|
D | random_token.h | 30 enum { kRandomTokenSizeInBytes = 16 }; enumerator 63 std::array<char, kRandomTokenSizeInBytes> ToBytes() const; 100 static_assert(sizeof(RandomToken) == kRandomTokenSizeInBytes,
|
D | random_token_test.cc | 79 std::array<char, kRandomTokenSizeInBytes> kBytes{ in TEST()
|
/external/federated-compute/fcp/tensorflow/ |
D | serve_slices_op.cc | 129 OP_REQUIRES(context, callback_token_bytes.size() == kRandomTokenSizeInBytes, in Compute() 132 kRandomTokenSizeInBytes, callback_token_bytes.size()))); in Compute()
|
D | external_dataset_op.cc | 57 OP_REQUIRES(ctx, token_bytes.size() == kRandomTokenSizeInBytes, in MakeDataset() 60 kRandomTokenSizeInBytes, token_bytes.size()))); in MakeDataset()
|