Home
last modified time | relevance | path

Searched refs:lifetime (Results 1 - 25 of 104) sorted by relevance

12345

/third_party/mbedtls/include/psa/
H A Dcrypto_struct.h276 psa_key_lifetime_t MBEDTLS_PRIVATE(lifetime);
312 psa_key_lifetime_t lifetime = attributes->MBEDTLS_PRIVATE(lifetime); in psa_set_key_id() local
316 if (PSA_KEY_LIFETIME_IS_VOLATILE(lifetime)) { in psa_set_key_id()
317 attributes->MBEDTLS_PRIVATE(lifetime) = in psa_set_key_id()
320 PSA_KEY_LIFETIME_GET_LOCATION(lifetime)); in psa_set_key_id()
339 psa_key_lifetime_t lifetime) in psa_set_key_lifetime()
341 attributes->MBEDTLS_PRIVATE(lifetime) = lifetime; in psa_set_key_lifetime()
342 if (PSA_KEY_LIFETIME_IS_VOLATILE(lifetime)) { in psa_set_key_lifetime()
338 psa_set_key_lifetime(psa_key_attributes_t *attributes, psa_key_lifetime_t lifetime) psa_set_key_lifetime() argument
[all...]
H A Dcrypto_values.h2297 /** The default lifetime for volatile keys.
2302 * A key with this lifetime is typically stored in the RAM area of the
2310 /** The default lifetime for persistent keys.
2318 * This lifetime value is the default storage area for the calling
2342 #define PSA_KEY_LIFETIME_GET_PERSISTENCE(lifetime) \
2343 ((psa_key_persistence_t) ((lifetime) & 0x000000ff))
2345 #define PSA_KEY_LIFETIME_GET_LOCATION(lifetime) \
2346 ((psa_key_location_t) ((lifetime) >> 8))
2348 /** Whether a key lifetime indicates that the key is volatile.
2359 * \param lifetime Th
[all...]
/third_party/rust/crates/cxx/gen/build/src/syntax/
H A Dimpls.rs112 for lifetime in lifetimes { in hash()
113 lifetime.hash(state); in hash()
158 lifetime, in eq()
167 lifetime: lifetime2, in eq()
173 pinned == pinned2 && lifetime == lifetime2 && mutable == mutable2 && inner == inner2 in eq()
182 lifetime, in hash()
189 lifetime.hash(state); in hash()
237 lifetime, in eq()
245 lifetime: lifetime2, in eq()
251 lifetime in eq()
[all...]
/third_party/rust/crates/cxx/gen/lib/src/syntax/
H A Dimpls.rs112 for lifetime in lifetimes { in hash()
113 lifetime.hash(state); in hash()
158 lifetime, in eq()
167 lifetime: lifetime2, in eq()
173 pinned == pinned2 && lifetime == lifetime2 && mutable == mutable2 && inner == inner2 in eq()
182 lifetime, in hash()
189 lifetime.hash(state); in hash()
237 lifetime, in eq()
245 lifetime: lifetime2, in eq()
251 lifetime in eq()
[all...]
H A Dcheck.rs612 fn check_reserved_lifetime(cx: &mut Check, lifetime: &Lifetime) { in check_reserved_lifetime()
613 if lifetime.ident == "static" { in check_reserved_lifetime()
617 cx.error(lifetime, error::RESERVED_LIFETIME); in check_reserved_lifetime()
624 for lifetime in &generics.lifetimes { in check_lifetimes()
625 check_reserved_lifetime(cx, lifetime); in check_lifetimes()
632 check_reserved_lifetime(cx, &def.lifetime); in check_generics()
680 let lifetime = &receiver.lifetime; in span_for_receiver_error()
684 quote!(#ampersand #lifetime #mutability #var) in span_for_receiver_error()
687 quote!(#ampersand #lifetime #mutabilit in span_for_receiver_error()
[all...]
/third_party/rust/crates/cxx/macro/src/syntax/
H A Dimpls.rs112 for lifetime in lifetimes { in hash()
113 lifetime.hash(state); in hash()
158 lifetime, in eq()
167 lifetime: lifetime2, in eq()
173 pinned == pinned2 && lifetime == lifetime2 && mutable == mutable2 && inner == inner2 in eq()
182 lifetime, in hash()
189 lifetime.hash(state); in hash()
237 lifetime, in eq()
245 lifetime: lifetime2, in eq()
251 lifetime in eq()
[all...]
/third_party/rust/crates/cxx/syntax/
H A Dimpls.rs112 for lifetime in lifetimes { in hash()
113 lifetime.hash(state); in hash()
158 lifetime, in eq()
167 lifetime: lifetime2, in eq()
173 pinned == pinned2 && lifetime == lifetime2 && mutable == mutable2 && inner == inner2 in eq()
182 lifetime, in hash()
189 lifetime.hash(state); in hash()
237 lifetime, in eq()
245 lifetime: lifetime2, in eq()
251 lifetime in eq()
[all...]
H A Dcheck.rs612 fn check_reserved_lifetime(cx: &mut Check, lifetime: &Lifetime) { in check_reserved_lifetime()
613 if lifetime.ident == "static" { in check_reserved_lifetime()
617 cx.error(lifetime, error::RESERVED_LIFETIME); in check_reserved_lifetime()
624 for lifetime in &generics.lifetimes { in check_lifetimes()
625 check_reserved_lifetime(cx, lifetime); in check_lifetimes()
632 check_reserved_lifetime(cx, &def.lifetime); in check_generics()
680 let lifetime = &receiver.lifetime; in span_for_receiver_error()
684 quote!(#ampersand #lifetime #mutability #var) in span_for_receiver_error()
687 quote!(#ampersand #lifetime #mutabilit in span_for_receiver_error()
[all...]
/third_party/rust/crates/cxx/gen/cmd/src/syntax/
H A Dimpls.rs112 for lifetime in lifetimes { in hash()
113 lifetime.hash(state); in hash()
158 lifetime, in eq()
167 lifetime: lifetime2, in eq()
173 pinned == pinned2 && lifetime == lifetime2 && mutable == mutable2 && inner == inner2 in eq()
182 lifetime, in hash()
189 lifetime.hash(state); in hash()
237 lifetime, in eq()
245 lifetime: lifetime2, in eq()
251 lifetime in eq()
[all...]
H A Dcheck.rs612 fn check_reserved_lifetime(cx: &mut Check, lifetime: &Lifetime) { in check_reserved_lifetime()
613 if lifetime.ident == "static" { in check_reserved_lifetime()
617 cx.error(lifetime, error::RESERVED_LIFETIME); in check_reserved_lifetime()
624 for lifetime in &generics.lifetimes { in check_lifetimes()
625 check_reserved_lifetime(cx, lifetime); in check_lifetimes()
632 check_reserved_lifetime(cx, &def.lifetime); in check_generics()
680 let lifetime = &receiver.lifetime; in span_for_receiver_error()
684 quote!(#ampersand #lifetime #mutability #var) in span_for_receiver_error()
687 quote!(#ampersand #lifetime #mutabilit in span_for_receiver_error()
[all...]
/third_party/mbedtls/library/
H A Dpsa_crypto_slot_management.c200 (!PSA_KEY_LIFETIME_IS_VOLATILE(slot->attr.lifetime))) { in psa_reserve_free_key_slot()
262 if (psa_get_se_driver(slot->attr.lifetime, &drv, &drv_context)) { in psa_load_persistent_key_into_slot()
293 psa_key_lifetime_t lifetime = PSA_KEY_LIFETIME_VOLATILE; in psa_load_builtin_key_into_slot() local
305 slot->attr.id, &lifetime, &slot_number); in psa_load_builtin_key_into_slot()
313 psa_set_key_lifetime(&attributes, lifetime); in psa_load_builtin_key_into_slot()
410 (*p_slot)->attr.lifetime = PSA_KEY_LIFETIME_PERSISTENT; in psa_get_and_lock_key_slot()
502 psa_status_t psa_validate_key_location(psa_key_lifetime_t lifetime, in psa_validate_key_location() argument
505 if (psa_key_lifetime_is_external(lifetime)) { in psa_validate_key_location()
507 /* Check whether a driver is registered against this lifetime */ in psa_validate_key_location()
508 psa_se_drv_table_entry_t *driver = psa_get_se_driver_entry(lifetime); in psa_validate_key_location()
527 psa_validate_key_persistence(psa_key_lifetime_t lifetime) psa_validate_key_persistence() argument
[all...]
H A Dpsa_crypto_slot_management.h229 /** Test whether a lifetime designates a key in an external cryptoprocessor.
231 * \param lifetime The lifetime to test.
234 * The lifetime designates an external key. There should be a
235 * registered driver for this lifetime, otherwise the key cannot
238 * The lifetime designates a key that is volatile or in internal
241 static inline int psa_key_lifetime_is_external(psa_key_lifetime_t lifetime) in psa_key_lifetime_is_external() argument
243 return PSA_KEY_LIFETIME_GET_LOCATION(lifetime) in psa_key_lifetime_is_external()
253 * \param[in] lifetime The key lifetime attribut
[all...]
H A Dssl_ticket.c78 /* The lifetime of a key is the configured lifetime of the tickets when in ssl_ticket_gen_key()
81 key->lifetime = ctx->ticket_lifetime; in ssl_ticket_gen_key()
124 if (key->lifetime != 0) { in ssl_ticket_update_keys()
133 (uint64_t) (current_time - key_time) < key->lifetime) { in ssl_ticket_update_keys()
157 uint32_t lifetime) in mbedtls_ssl_ticket_rotate()
201 ctx->ticket_lifetime = lifetime; in mbedtls_ssl_ticket_rotate()
206 key->lifetime = lifetime; in mbedtls_ssl_ticket_rotate()
217 uint32_t lifetime) in mbedtls_ssl_ticket_setup()
154 mbedtls_ssl_ticket_rotate(mbedtls_ssl_ticket_context *ctx, const unsigned char *name, size_t nlength, const unsigned char *k, size_t klength, uint32_t lifetime) mbedtls_ssl_ticket_rotate() argument
214 mbedtls_ssl_ticket_setup(mbedtls_ssl_ticket_context *ctx, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, mbedtls_cipher_type_t cipher, uint32_t lifetime) mbedtls_ssl_ticket_setup() argument
[all...]
H A Dpsa_crypto_se.h71 /** Return the secure element driver information for a lifetime value.
73 * \param lifetime The lifetime value to query.
83 * \p lifetime corresponds to a registered driver.
85 * \p lifetime does not correspond to a registered driver.
87 int psa_get_se_driver(psa_key_lifetime_t lifetime,
91 /** Return the secure element driver table entry for a lifetime value.
93 * \param lifetime The lifetime value to query.
95 * \return The driver table entry for \p lifetime, o
[all...]
H A Dpsa_crypto_se.c68 psa_key_lifetime_t lifetime) in psa_get_se_driver_entry()
71 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION(lifetime); in psa_get_se_driver_entry()
99 int psa_get_se_driver(psa_key_lifetime_t lifetime, in psa_get_se_driver() argument
103 psa_se_drv_table_entry_t *driver = psa_get_se_driver_entry(lifetime); in psa_get_se_driver()
67 psa_get_se_driver_entry( psa_key_lifetime_t lifetime) psa_get_se_driver_entry() argument
H A Dpsa_crypto_storage.c228 uint8_t lifetime[sizeof(psa_key_lifetime_t)]; member
247 MBEDTLS_PUT_UINT32_LE(attr->lifetime, storage_format->lifetime, 0); in psa_format_key_data_for_storage()
307 attr->lifetime = MBEDTLS_GET_UINT32_LE(storage_format->lifetime, 0); in psa_parse_key_data_from_storage()
/third_party/mbedtls/tests/src/drivers/
H A Dplatform_builtin_keys.c34 psa_key_lifetime_t lifetime; member
73 psa_key_lifetime_t *lifetime, in mbedtls_psa_platform_get_builtin_key()
83 *lifetime = builtin_key->lifetime; in mbedtls_psa_platform_get_builtin_key()
71 mbedtls_psa_platform_get_builtin_key( mbedtls_svc_key_id_t key_id, psa_key_lifetime_t *lifetime, psa_drv_slot_number_t *slot_number) mbedtls_psa_platform_get_builtin_key() argument
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/rsn_supp/
H A Dtdls.c107 u32 lifetime; member
638 * On TPK lifetime expiration, we have an option of either tearing down in wpa_tdls_tpk_timeout()
648 wpa_printf(MSG_DEBUG, "TDLS: TPK lifetime expired for " MACSTR in wpa_tdls_tpk_timeout()
656 wpa_printf(MSG_DEBUG, "TDLS: TPK lifetime expired for " MACSTR in wpa_tdls_tpk_timeout()
1200 peer->lifetime = TPK_LIFETIME; in wpa_tdls_send_tpk_m1()
1204 "lifetime"); in wpa_tdls_send_tpk_m1()
1205 peer->lifetime = 301; in wpa_tdls_send_tpk_m1()
1209 "lifetime"); in wpa_tdls_send_tpk_m1()
1210 peer->lifetime = 0xffffffff; in wpa_tdls_send_tpk_m1()
1214 sizeof(timeoutie), peer->lifetime); in wpa_tdls_send_tpk_m1()
1250 u32 lifetime; wpa_tdls_send_tpk_m2() local
1343 u32 lifetime; wpa_tdls_send_tpk_m3() local
1796 u32 lifetime = 0; wpa_tdls_process_tpk_m1() local
2152 u32 lifetime = peer->lifetime; wpa_tdls_enable_link() local
2191 u32 lifetime; wpa_tdls_process_tpk_m2() local
2481 u32 lifetime; wpa_tdls_process_tpk_m3() local
2631 struct wpa_tdls_timeoutie *lifetime = (struct wpa_tdls_timeoutie *) ie; wpa_add_tdls_timeoutie() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/
H A Dtdls.c107 u32 lifetime; member
650 * On TPK lifetime expiration, we have an option of either tearing down
660 wpa_printf(MSG_DEBUG, "TDLS: TPK lifetime expired for " MACSTR_SEC
668 wpa_printf(MSG_DEBUG, "TDLS: TPK lifetime expired for " MACSTR_SEC
1216 peer->lifetime = TPK_LIFETIME;
1220 "lifetime");
1221 peer->lifetime = 301;
1225 "lifetime");
1226 peer->lifetime = 0xffffffff;
1230 sizeof(timeoutie), peer->lifetime);
[all...]
/third_party/mbedtls/scripts/mbedtls_dev/
H A Dpsa_storage.py105 lifetime: Exprable = 'PSA_KEY_LIFETIME_PERSISTENT',
113 self.lifetime = as_expr(lifetime) #type: Expr
156 self.lifetime, self.type, self.bits,
171 """The numerical value of the location encoded in the key's lifetime."""
172 return self.lifetime.value() >> 8
181 id=1, lifetime=0x00000001,
192 id=1, lifetime='PSA_KEY_LIFETIME_PERSISTENT',
/third_party/mbedtls/tests/scripts/
H A Dgenerate_psa_tests.py495 key.lifetime.string, key.type.string,
509 if 'READ_ONLY' in key.lifetime.string:
512 tc.set_arguments([key.lifetime.string,
523 lifetime: str,
525 """Construct a test key for the given lifetime."""
526 short = lifetime
530 description = 'lifetime: ' + short
532 id=1, lifetime=lifetime,
543 for lifetime i
[all...]
/third_party/mbedtls/include/mbedtls/
H A Dssl_ticket.h53 /*! Lifetime of the key in seconds. This is also the lifetime of the
56 uint32_t MBEDTLS_PRIVATE(lifetime);
75 uint32_t MBEDTLS_PRIVATE(ticket_lifetime); /*!< lifetime of tickets in seconds */
104 * \param lifetime Tickets lifetime in seconds
111 * \note It is recommended to pick a reasonable lifetime so as not
114 * \note The TLS 1.3 specification states that ticket lifetime must
115 * be smaller than seven days. If ticket lifetime has been
127 uint32_t lifetime);
134 * before ticket lifetime expire
[all...]
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-eventlib-foreign/
H A Dminimal-http-server-eventlib-foreign.c31 int lifetime = 5, reported; variable
185 if (--lifetime) in foreign_timer_service()
203 lifetime = 11; in foreign_timer_service()
210 lifetime = 6; in foreign_timer_service()
/third_party/skia/third_party/externals/angle2/src/common/
H A DMemoryBuffer.cpp94 ScratchBuffer::ScratchBuffer(uint32_t lifetime) : mLifetime(lifetime), mResetCounter(lifetime) {} in ScratchBuffer() argument
/third_party/rust/crates/serde/serde/src/
H A Dmacros.rs76 /// The macro assumes the convention that your `Deserializer` lifetime parameter
78 /// called `V`. A different type parameter and a different lifetime can be
112 (<$visitor:ident: Visitor<$lifetime:tt>> $($func:ident)*) => {
113 $(forward_to_deserialize_any_helper!{$func<$lifetime, $visitor>})*

Completed in 19 milliseconds

12345