17 Commits
Author SHA1 Message Date
Robin Krahl 332af578c9 Update to trussed v0.2.0-rc.1 2026-06-09 10:57:55 +02:00
Robin Krahl d5c14935e4 Update to heapless-bytes v0.5 and trussed-core v0.2 2026-03-23 14:50:46 +01:00
Robin Krahl 0c75880617 Move types into trussed-rsa-types crate and release v0.1.0
This means that applications no longer need to depend on the backend.
2025-08-18 14:41:41 +02:00
Robin Krahl a3b481d529 tests: Replace invalid key
The rsa4096pkcs_inject test is broken with rsa v0.9.7 because it uses an
invalid key.  This patch replaces the invalid key with a valid key
generated with the Python cryptography package:

    from cryptography.hazmat.primitives.asymmetric import rsa

    e = int("010001", 16)
    private_key = rsa.generate_private_key(e, 4096)
    public_numbers = private_key.public_key().public_numbers()
    private_numbers = private_key.private_numbers()
    print(f"n = {hex(public_numbers.n)}")
    print(f"e = {hex(public_numbers.e)}")
    print(f"d = {hex(private_numbers.d)}")
    print(f"p = {hex(private_numbers.p)}")
    print(f"q = {hex(private_numbers.q)}")

Fixes: https://github.com/trussed-dev/trussed-rsa-backend/issues/15
2025-01-07 14:52:57 +01:00
Sosthène Guédon ebbe35483d Update RSA dependency
This will also prepare us for the coming 0.11 release including the fix
for the marvin attack
2023-12-12 12:09:05 +01:00
Robin Krahl b8f5ea5ea3 Fix doc comments
This fixes a clippy warning from a new lint introduced in 1.70.0 and a
rustdoc warning.
2023-11-13 11:22:55 +01:00
Sosthène Guédon 20ba7b72c9 Remove dependance on trussed postcard and hide dependance on postcard 2023-03-01 17:38:05 +01:00
Sosthène Guédon a39ceceeb6 Add licences, a readme and a Makefile 2023-02-16 10:37:22 +01:00
Sosthène Guédon 519a9eaf30 Fix tests 2023-02-08 10:07:05 +01:00
Sosthène Guédon d3ea4acda8 Add virt module wrapping trussed::virt 2023-02-06 18:20:18 +01:00
Sosthène Guédon 7b5a562d5a Fix clippy warnings 2023-02-06 14:57:52 +01:00
Sosthène Guédon 255bddc7e1 Fix compilation 2023-02-06 14:57:20 +01:00
Sosthène Guédon eed9e06ca9 Port 725d4d6c85 to all key sizes 2023-02-06 14:39:50 +01:00
Sosthène Guédon 725d4d6c85 Improve traits and documentation for RSA 4096 2023-02-06 14:27:50 +01:00
Sosthène Guédon ed871eccbe Test that other backends are still reachable 2023-02-06 10:47:29 +01:00
Sosthène Guédon 0ac7f38bab Improve decryption API and test it 2023-02-06 10:29:57 +01:00
Sosthène Guédon 139dfee495 Add custom backend for RSA operations
This adds support for PKCS1v15 operation for RSA keys of size
2048, 3072 and 4096
2023-02-06 10:03:25 +01:00