Home
last modified time | relevance | path

Searched refs:msb (Results 1 – 4 of 4) sorted by relevance

/openthread-3.7.0/third_party/mbedtls/repo/tests/src/
Dasn1_helpers.c24 unsigned char msb; in mbedtls_test_asn1_skip_integer() local
44 msb = (*p)[0]; in mbedtls_test_asn1_skip_integer()
45 TEST_ASSERT(msb != 0); in mbedtls_test_asn1_skip_integer()
47 while (msb != 0) { in mbedtls_test_asn1_skip_integer()
48 msb >>= 1; in mbedtls_test_asn1_skip_integer()
/openthread-3.7.0/third_party/mbedtls/repo/library/
Drsa.c2125 size_t msb; in rsa_rsassa_pss_sign_no_mode_check() local
2184 msb = mbedtls_mpi_bitlen(&ctx->N) - 1; in rsa_rsassa_pss_sign_no_mode_check()
2203 if (msb % 8 == 0) { in rsa_rsassa_pss_sign_no_mode_check()
2213 msb = mbedtls_mpi_bitlen(&ctx->N) - 1; in rsa_rsassa_pss_sign_no_mode_check()
2214 sig[0] &= 0xFF >> (olen * 8 - msb); in rsa_rsassa_pss_sign_no_mode_check()
2543 size_t observed_salt_len, msb; in mbedtls_rsa_rsassa_pss_verify_ext() local
2588 msb = mbedtls_mpi_bitlen(&ctx->N) - 1; in mbedtls_rsa_rsassa_pss_verify_ext()
2590 if (buf[0] >> (8 - siglen * 8 + msb)) { in mbedtls_rsa_rsassa_pss_verify_ext()
2595 if (msb % 8 == 0) { in mbedtls_rsa_rsassa_pss_verify_ext()
2610 buf[0] &= 0xFF >> (siglen * 8 - msb); in mbedtls_rsa_rsassa_pss_verify_ext()
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ctr_drbg.function484 uint64_t lsb = 10, msb = 20;
485 MBEDTLS_PUT_UINT64_BE(msb, c, 0);
Dtest_suite_ecp.data453 ECP check privkey #7 (montgomery curve25519, msb OK)
457 ECP check privkey #8 (montgomery curve25519, msb not OK)
485 ECP check privkey #15 (montgomery curve448, msb OK)
489 ECP check privkey #15 (montgomery curve448, msb not OK)
668 ECP read key #7 (Curve25519, msb OK)
700 ECP read key #15 (Curve448, msb OK)