File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1515
1616// rand_thread_state contains the per-thread state for the RNG.
1717struct rand_thread_local_state {
18- // Thread-local CTR-DRBG state. UBE volatile state.
18+ // Thread-local CTR-DRBG state. UBE unique state.
1919 CTR_DRBG_STATE drbg ;
2020
2121 // generate_calls_since_seed is the number of generate calls made on |drbg|
@@ -31,7 +31,7 @@ struct rand_thread_local_state {
3131 // generation_number caches the UBE generation number.
3232 uint64_t generation_number ;
3333
34- // Entropy source. UBE volatile state.
34+ // Entropy source. UBE unique state.
3535 struct entropy_source_t * entropy_source ;
3636
3737 // Backward and forward references to nodes in a doubly-linked list.
Original file line number Diff line number Diff line change @@ -16,17 +16,17 @@ extern "C" {
1616// following property: if queried in an address space and then subsequently
1717// queried, after an UBE occurred, a greater value will be observed.
1818//
19- // This function should be used to protect volatile memory. First cache a UBE
20- // generation number associating it to the volatile memory at
21- // creation/initialization time. Before using the volatile memory check whether
19+ // This function should be used to protect unique memory. First cache a UBE
20+ // generation number associating it to the unique memory at
21+ // creation/initialization time. Before using the unique memory check whether
2222// the generation number has changed. Note, however, that detection methods rely
2323// on technology that is unique to a platform. Hence, support for UBE detection
2424// also depends on the platform AWS-LC is executed on.
2525//
2626// The parameter |current_generation_number| must be synchronized by the caller.
2727//
2828// Returns 1 on success and 0 if not supported. 0 means that UBE detection is
29- // not supported and any volatile state must randomize before usage.
29+ // not supported and any unique state must randomize before usage.
3030// In case of an error or if UBE detection is unavailable, all subsequent
3131// entries will immediately return.
3232OPENSSL_EXPORT int CRYPTO_get_ube_generation_number (uint64_t * current_generation_number );
You can’t perform that action at this time.
0 commit comments