Skip to content

Commit

Permalink
Improve sys::crypto service
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNerma committed Apr 3, 2024
1 parent 4c8a9cf commit 7ed2a5c
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions docs/specs/services/system/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,10 @@ This service provides ways to perform secure cryptography operations from any pr

## Methods

### `0x1000` GENERATE_NUMBER

Generate a 64-bit number using a cryptographically-secure method with a high level of entropy. A TPM will be used if available.

**Arguments:**

_None_

**Return value:**

- Generated number (8 bytes)

**Errors:**

_None_

#### `0x0001` RANDOM_BUFFER
#### `0x1000` RANDOM_BUFFER

Fill a number with random values using a cryptographically-secure method.

Generation is performed using the same methods as for [`GENERATE_NUMBER`](#0x1000-generate_number).

**Arguments:**

- [Buffer pointer](../../kernel/data-structures.md#buffer-pointers) (16 bytes)
Expand Down

0 comments on commit 7ed2a5c

Please sign in to comment.