mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-19 13:20:50 +00:00
Don't use Unicode in .function file
generate_test_code.py doesn't support UTF-8 in .function files (but does in .data files) when run in a non-UTF-8 locale with Python <=3.6. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
db226b4eec
commit
1f4b63779c
@ -53,7 +53,7 @@ static int check_ecc_private_key(psa_ecc_family_t family, size_t bits,
|
||||
}
|
||||
|
||||
/* Check masked bits on Curve25519 and Curve448 scalars.
|
||||
* See RFC 7748 §4.1 (we expect the "decoded" form here). */
|
||||
* See RFC 7748 \S4.1 (we expect the "decoded" form here). */
|
||||
#if defined(MBEDTLS_PSA_BUILTIN_ECC_MONTGOMERY_255)
|
||||
if (family == PSA_ECC_FAMILY_MONTGOMERY && bits == 255) {
|
||||
TEST_EQUAL(key[0] & 0xf8, key[0]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user