OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:UnguessableToken
(Results
1 - 7
of
7
) sorted by null
/external/libmojo/base/
unguessable_token.cc
13
UnguessableToken
::
UnguessableToken
(uint64_t high, uint64_t low)
16
std::string
UnguessableToken
::ToString() const {
21
UnguessableToken
UnguessableToken
::Create() {
22
UnguessableToken
token;
30
UnguessableToken
UnguessableToken
::Deserialize(uint64_t high, uint64_t low) {
31
// Receiving a zeroed out
UnguessableToken
from another process means that it
34
return
UnguessableToken
(high, low)
[
all
...]
unguessable_token.h
21
// A
UnguessableToken
is an 128-bit token generated from a cryptographically
24
//
UnguessableToken
should be used when a sensitive ID needs to be unguessable,
34
class BASE_EXPORT
UnguessableToken
{
36
// Create a unique
UnguessableToken
.
37
static
UnguessableToken
Create();
39
// Return a
UnguessableToken
built from the high/low bytes provided.
44
static
UnguessableToken
Deserialize(uint64_t high, uint64_t low);
46
// Creates an empty
UnguessableToken
.
48
constexpr
UnguessableToken
() = default;
50
// NOTE: Serializing an empty
UnguessableToken
is an illegal operation
[
all
...]
/external/libmojo/mojo/common/
common_custom_types_struct_traits.h
45
// If base::
UnguessableToken
is no longer 128 bits, the logic below and the
46
// mojom::
UnguessableToken
type should be updated.
47
static_assert(sizeof(base::
UnguessableToken
) == 2 * sizeof(uint64_t),
48
"base::
UnguessableToken
should be of size 2 * sizeof(uint64_t).");
52
base::
UnguessableToken
> {
53
static uint64_t high(const base::
UnguessableToken
& token) {
57
static uint64_t low(const base::
UnguessableToken
& token) {
62
base::
UnguessableToken
* out);
common_custom_types_struct_traits.cc
43
base::
UnguessableToken
>::Read(common::mojom::UnguessableTokenDataView data,
44
base::
UnguessableToken
* out) {
48
// Receiving a zeroed
UnguessableToken
is a security issue.
52
*out = base::
UnguessableToken
::Deserialize(high, low);
common_custom_types_unittest.cc
85
void BounceNonce(const base::
UnguessableToken
& in,
216
TEST_F(CommonCustomTypesTest,
UnguessableToken
) {
222
base::
UnguessableToken
token = base::
UnguessableToken
::Create();
/external/libmojo/ipc/
ipc_message_utils.cc
985
// If base::
UnguessableToken
is no longer 128 bits, the IPC serialization logic
987
static_assert(sizeof(base::
UnguessableToken
) == 2 * sizeof(uint64_t),
988
"base::
UnguessableToken
should be of size 2 * sizeof(uint64_t).");
990
void ParamTraits<base::
UnguessableToken
>::GetSize(base::PickleSizer* sizer,
995
void ParamTraits<base::
UnguessableToken
>::Write(base::Pickle* m,
1003
bool ParamTraits<base::
UnguessableToken
>::Read(const base::Pickle* m,
1011
// Receiving a zeroed
UnguessableToken
is a security issue.
1015
*r = base::
UnguessableToken
::Deserialize(high, low);
1019
void ParamTraits<base::
UnguessableToken
>::Log(const param_type& p,
[
all
...]
ipc_message_utils.h
42
class
UnguessableToken
;
690
struct IPC_EXPORT ParamTraits<base::
UnguessableToken
> {
691
typedef base::
UnguessableToken
param_type;
[
all
...]
Completed in 163 milliseconds