Skip to content

Commit

Permalink
Note that the byte order in mpi_fill_random_internal() is deliberate
Browse files Browse the repository at this point in the history
Signed-off-by: Gilles Peskine <[email protected]>
  • Loading branch information
gilles-peskine-arm committed Jun 3, 2021
1 parent c0b68bf commit 23422e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/bignum.c
Original file line number Diff line number Diff line change
Expand Up @@ -2405,6 +2405,8 @@ int mbedtls_mpi_gcd( mbedtls_mpi *G, const mbedtls_mpi *A, const mbedtls_mpi *B

/* Fill X with n_bytes random bytes.
* X must already have room for those bytes.
* The ordering of the bytes returned from the RNG is suitable for
* deterministic ECDSA (see RFC 6979 §3.3 and mbedtls_mpi_random()).
* The size and sign of X are unchanged.
* n_bytes must not be 0.
*/
Expand Down

0 comments on commit 23422e4

Please sign in to comment.