Searched refs:macaroon (Results 1 – 5 of 5) sorted by relevance
/external/libweave/third_party/libuweave/src/ |
D | macaroon.c | 155 bool uw_macaroon_validate_(const UwMacaroon* macaroon, in uw_macaroon_validate_() argument 165 if (root_key == NULL || root_key_len == 0 || macaroon == NULL || in uw_macaroon_validate_() 167 !verify_mac_tag_(root_key, root_key_len, context, macaroon->caveats, in uw_macaroon_validate_() 168 macaroon->num_caveats, macaroon->mac_tag)) { in uw_macaroon_validate_() 176 for (size_t i = 0; i < macaroon->num_caveats; i++) { in uw_macaroon_validate_() 177 if (!uw_macaroon_caveat_validate_(macaroon->caveats[i], context, &state, in uw_macaroon_validate_() 189 bool uw_macaroon_serialize_(const UwMacaroon* macaroon, in uw_macaroon_serialize_() argument 193 if (macaroon == NULL || out == NULL || in uw_macaroon_serialize_() 206 if (!uw_macaroon_encoding_encode_array_len_((uint32_t)(macaroon->num_caveats), in uw_macaroon_serialize_() 213 for (size_t i = 0; i < macaroon->num_caveats; i++) { in uw_macaroon_serialize_() [all …]
|
D | macaroon.h | 75 const UwMacaroon* macaroon, 82 bool uw_macaroon_serialize_(const UwMacaroon* macaroon,
|
/external/libweave/src/privet/ |
D | auth_manager.cc | 173 UwMacaroon macaroon{}; in CreateMacaroonToken() local 174 CHECK(uw_macaroon_create_from_root_key_(&macaroon, secret.data(), in CreateMacaroonToken() 180 CHECK(uw_macaroon_serialize_(&macaroon, serialized_token.data(), in CreateMacaroonToken() 188 const UwMacaroon& macaroon, in ExtendMacaroonToken() argument 194 UwMacaroon prev_macaroon = macaroon; in ExtendMacaroonToken() 217 UwMacaroon* macaroon, in LoadMacaroon() argument 221 buffer->size(), macaroon)) { in LoadMacaroon() 229 const UwMacaroon& macaroon, in VerifyMacaroon() argument 237 if (!uw_macaroon_validate_(&macaroon, secret.data(), secret.size(), &context, in VerifyMacaroon() 347 UwMacaroon macaroon{}; in ParseAccessToken() local [all …]
|
/external/libweave/third_party/libuweave/ |
D | update.sh | 18 git mv -kf temp_libuweave/src/macaroon* libuweave/src/
|
/external/libweave/ |
D | file_lists.mk | 164 third_party/libuweave/src/macaroon.c \
|