@@ -11,8 +11,7 @@ use trussed_core::{
1111 } ,
1212 ClientError , ClientResult , CryptoClient ,
1313} ;
14-
15- use crate :: { RsaImportFormat , RsaPublicParts } ;
14+ use trussed_rsa_types:: { RsaImportFormat , RsaPublicParts } ;
1615
1716impl < C : CryptoClient > Rsa2048Pkcs1v15 for C { }
1817
@@ -46,11 +45,12 @@ pub trait Rsa2048Pkcs1v15: CryptoClient {
4645 /// Serializes an RSA 2048 bit key.
4746 ///
4847 /// The resulting [`serialized_key`](trussed_core::api::reply::SerializeKey::serialized_key) contains a buffer of the parts of the key
49- /// as a serialized [`RsaPublicParts`](crate ::RsaPublicParts):
48+ /// as a serialized [`RsaPublicParts`](trussed_rsa_types ::RsaPublicParts):
5049 /// ```
5150 ///# #[cfg(feature = "virt")]
5251 ///# {
5352 ///# use trussed_rsa_alloc::*;
53+ ///# use trussed_rsa_types::*;
5454 ///# use trussed_core::{syscall,types::Location::{Volatile,Internal}};
5555 ///# virt::with_ram_client("rsa tests", |mut client| {
5656 ///# let sk = syscall!(client.generate_rsa2048pkcs_private_key(Internal)).key;
@@ -189,11 +189,12 @@ pub trait Rsa3072Pkcs1v15: CryptoClient {
189189 /// Serializes an RSA 3072 bit key.
190190 ///
191191 /// The resulting [`serialized_key`](trussed_core::api::reply::SerializeKey::serialized_key) contains a buffer of the parts of the key
192- /// as a serialized [`RsaPublicParts`](crate ::RsaPublicParts):
192+ /// as a serialized [`RsaPublicParts`](trussed_rsa_types ::RsaPublicParts):
193193 /// ```
194194 ///# #[cfg(feature = "virt")]
195195 ///# {
196196 ///# use trussed_rsa_alloc::*;
197+ ///# use trussed_rsa_types::*;
197198 ///# use trussed_core::{syscall,types::Location::{Volatile,Internal}};
198199 ///# virt::with_ram_client("rsa tests", |mut client| {
199200 ///# let sk = syscall!(client.generate_rsa3072pkcs_private_key(Internal)).key;
@@ -332,11 +333,12 @@ pub trait Rsa4096Pkcs1v15: CryptoClient {
332333 /// Serializes an RSA 4096 bit key.
333334 ///
334335 /// The resulting [`serialized_key`](trussed_core::api::reply::SerializeKey::serialized_key) contains a buffer of the parts of the key
335- /// as a serialized [`RsaPublicParts`](crate ::RsaPublicParts):
336+ /// as a serialized [`RsaPublicParts`](trussed_rsa_types ::RsaPublicParts):
336337 /// ```
337338 ///# #[cfg(feature = "virt")]
338339 ///# {
339340 ///# use trussed_rsa_alloc::*;
341+ ///# use trussed_rsa_types::*;
340342 ///# use trussed_core::{syscall,types::Location::{Volatile,Internal}};
341343 ///# virt::with_ram_client("rsa tests", |mut client| {
342344 ///# let sk = syscall!(client.generate_rsa4096pkcs_private_key(Internal)).key;
0 commit comments