Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
965 changes: 718 additions & 247 deletions esp-mbedtls-sys/gen/include/config.h

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions esp-mbedtls-sys/gen/sysroot/include/inttypes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __INTTYPES_H__
#define __INTTYPES_H__

#define PRId64 __INT64_FMTd__

#endif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified esp-mbedtls-sys/libs/riscv32imc-unknown-none-elf/libmbedtls.a
Binary file not shown.
Binary file modified esp-mbedtls-sys/libs/riscv32imc-unknown-none-elf/libmbedx509.a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified esp-mbedtls-sys/libs/xtensa-esp32-none-elf/libmbedcrypto.a
Binary file not shown.
Binary file modified esp-mbedtls-sys/libs/xtensa-esp32-none-elf/libmbedtls.a
Binary file not shown.
Binary file modified esp-mbedtls-sys/libs/xtensa-esp32-none-elf/libmbedx509.a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified esp-mbedtls-sys/libs/xtensa-esp32s2-none-elf/libmbedcrypto.a
Binary file not shown.
Binary file modified esp-mbedtls-sys/libs/xtensa-esp32s2-none-elf/libmbedtls.a
Binary file not shown.
Binary file modified esp-mbedtls-sys/libs/xtensa-esp32s2-none-elf/libmbedx509.a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified esp-mbedtls-sys/libs/xtensa-esp32s3-none-elf/libmbedcrypto.a
Binary file not shown.
Binary file modified esp-mbedtls-sys/libs/xtensa-esp32s3-none-elf/libmbedtls.a
Binary file not shown.
Binary file modified esp-mbedtls-sys/libs/xtensa-esp32s3-none-elf/libmbedx509.a
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion esp-mbedtls-sys/mbedtls
Submodule mbedtls updated 1942 files
8 changes: 3 additions & 5 deletions esp-mbedtls-sys/src/accel/esp/exp_mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@ use crypto_bigint::U4096;
use crypto_bigint::{U1024, U2048, U512};
#[cfg(not(feature = "accel-esp32"))]
use crypto_bigint::{U256, U384};
use esp_hal::rsa::{operand_sizes, RsaContext};

use crate::hook::exp_mod::MbedtlsMpiExpMod;
use crate::{
mbedtls_mpi, mbedtls_mpi_add_mpi, mbedtls_mpi_cmp_int, mbedtls_mpi_exp_mod_soft,
mbedtls_mpi_free, mbedtls_mpi_grow, mbedtls_mpi_init, mbedtls_mpi_lset, mbedtls_mpi_mod_mpi,
mbedtls_mpi_set_bit, merr, MbedtlsError,
};

use esp_hal::rsa::{operand_sizes, RsaContext};

use crate::hook::exp_mod::MbedtlsMpiExpMod;

#[cfg(not(feature = "accel-esp32"))]
const SOC_RSA_MIN_BIT_LEN: usize = 256;
#[cfg(feature = "accel-esp32")]
Expand Down Expand Up @@ -332,7 +330,7 @@ fn compute_mprime(m: &mbedtls_mpi) -> u32 {
/// Return the number of words actually used to represent an mpi number.
#[inline(always)]
fn mpi_words(x: &mbedtls_mpi) -> usize {
for index in (0..x.private_n).rev() {
for index in (0..usize::from(x.private_n)).rev() {
if unsafe { x.private_p.add(index).read() } != 0 {
return index + 1;
}
Expand Down
24,981 changes: 13,093 additions & 11,888 deletions esp-mbedtls-sys/src/include/riscv32imac-unknown-none-elf.rs

Large diffs are not rendered by default.

24,981 changes: 13,093 additions & 11,888 deletions esp-mbedtls-sys/src/include/riscv32imc-unknown-none-elf.rs

Large diffs are not rendered by default.

24,981 changes: 13,093 additions & 11,888 deletions esp-mbedtls-sys/src/include/xtensa-esp32-none-elf.rs

Large diffs are not rendered by default.

24,981 changes: 13,093 additions & 11,888 deletions esp-mbedtls-sys/src/include/xtensa-esp32s2-none-elf.rs

Large diffs are not rendered by default.

24,981 changes: 13,093 additions & 11,888 deletions esp-mbedtls-sys/src/include/xtensa-esp32s3-none-elf.rs

Large diffs are not rendered by default.