Skip to content

Commit 931b73b

Browse files
authored
Merge branch 'main' into update-vectors-ci
2 parents cb3b07a + 8238483 commit 931b73b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crypto/fipsmodule/rand/rand.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
// rand_thread_state contains the per-thread state for the RNG.
1717
struct 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.

crypto/ube/internal.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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.
3232
OPENSSL_EXPORT int CRYPTO_get_ube_generation_number(uint64_t *current_generation_number);

0 commit comments

Comments
 (0)