11// Copyright (C) Nitrokey GmbH
22// SPDX-License-Identifier: Apache-2.0 or MIT
33
4- use trussed :: {
4+ use trussed_core :: {
55 api:: {
66 reply,
77 request:: { DeserializeKey , UnsafeInjectKey } ,
88 } ,
9- client:: { ClientError , ClientResult , CryptoClient } ,
109 types:: {
1110 KeyId , KeySerialization , Location , Mechanism , SignatureSerialization , StorageAttributes ,
1211 } ,
12+ ClientError , ClientResult , CryptoClient ,
1313} ;
1414
1515use crate :: { RsaImportFormat , RsaPublicParts } ;
1616
1717impl < C : CryptoClient > Rsa2048Pkcs1v15 for C { }
1818
19- /// Helper trait to work with RSA 2048 bit keys through a [`Client`](trussed::Client)
19+ /// Helper trait to work with RSA 2048 bit keys through a [`CryptoClient`][]
2020///
21- /// This trait is implemented by all implementors of [`CryptoClient`](trussed::client::CryptoClient)
21+ /// This trait is implemented by all implementors of [`CryptoClient`][]
2222pub trait Rsa2048Pkcs1v15 : CryptoClient {
2323 fn generate_rsa2048pkcs_private_key (
2424 & mut self ,
@@ -45,13 +45,13 @@ pub trait Rsa2048Pkcs1v15: CryptoClient {
4545
4646 /// Serializes an RSA 2048 bit key.
4747 ///
48- /// The resulting [`serialized_key`](trussed ::api::reply::SerializeKey::serialized_key) contains a buffer of the parts of the key
48+ /// The resulting [`serialized_key`](trussed_core ::api::reply::SerializeKey::serialized_key) contains a buffer of the parts of the key
4949 /// as a serialized [`RsaPublicParts`](crate::RsaPublicParts):
5050 /// ```
5151 ///# #[cfg(feature = "virt")]
5252 ///# {
5353 ///# use trussed_rsa_alloc::*;
54- ///# use trussed ::{syscall,types::Location::{Volatile,Internal}};
54+ ///# 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;
5757 ///# let pk = syscall!(client.derive_rsa2048pkcs_public_key(sk, Volatile)).key;
@@ -159,9 +159,9 @@ pub trait Rsa2048Pkcs1v15: CryptoClient {
159159
160160impl < C : CryptoClient > Rsa3072Pkcs1v15 for C { }
161161
162- /// Helper trait to work with RSA 3072 bit keys through a [`Client`](trussed::Client)
162+ /// Helper trait to work with RSA 3072 bit keys through a [`CryptoClient`][]
163163///
164- /// This trait is implemented by all implementors of [`CryptoClient`](trussed::client::CryptoClient)
164+ /// This trait is implemented by all implementors of [`CryptoClient`][]
165165pub trait Rsa3072Pkcs1v15 : CryptoClient {
166166 fn generate_rsa3072pkcs_private_key (
167167 & mut self ,
@@ -188,13 +188,13 @@ pub trait Rsa3072Pkcs1v15: CryptoClient {
188188
189189 /// Serializes an RSA 3072 bit key.
190190 ///
191- /// The resulting [`serialized_key`](trussed ::api::reply::SerializeKey::serialized_key) contains a buffer of the parts of the key
191+ /// The resulting [`serialized_key`](trussed_core ::api::reply::SerializeKey::serialized_key) contains a buffer of the parts of the key
192192 /// as a serialized [`RsaPublicParts`](crate::RsaPublicParts):
193193 /// ```
194194 ///# #[cfg(feature = "virt")]
195195 ///# {
196196 ///# use trussed_rsa_alloc::*;
197- ///# use trussed ::{syscall,types::Location::{Volatile,Internal}};
197+ ///# use trussed_core ::{syscall,types::Location::{Volatile,Internal}};
198198 ///# virt::with_ram_client("rsa tests", |mut client| {
199199 ///# let sk = syscall!(client.generate_rsa3072pkcs_private_key(Internal)).key;
200200 ///# let pk = syscall!(client.derive_rsa3072pkcs_public_key(sk, Volatile)).key;
@@ -302,9 +302,9 @@ pub trait Rsa3072Pkcs1v15: CryptoClient {
302302
303303impl < C : CryptoClient > Rsa4096Pkcs1v15 for C { }
304304
305- /// Helper trait to work with RSA 4096 bit keys through a [`Client`](trussed::Client)
305+ /// Helper trait to work with RSA 4096 bit keys through a [`CryptoClient`][]
306306///
307- /// This trait is implemented by all implementors of [`CryptoClient`](trussed::client::CryptoClient)
307+ /// This trait is implemented by all implementors of [`CryptoClient`][]
308308pub trait Rsa4096Pkcs1v15 : CryptoClient {
309309 fn generate_rsa4096pkcs_private_key (
310310 & mut self ,
@@ -331,13 +331,13 @@ pub trait Rsa4096Pkcs1v15: CryptoClient {
331331
332332 /// Serializes an RSA 4096 bit key.
333333 ///
334- /// The resulting [`serialized_key`](trussed ::api::reply::SerializeKey::serialized_key) contains a buffer of the parts of the key
334+ /// The resulting [`serialized_key`](trussed_core ::api::reply::SerializeKey::serialized_key) contains a buffer of the parts of the key
335335 /// as a serialized [`RsaPublicParts`](crate::RsaPublicParts):
336336 /// ```
337337 ///# #[cfg(feature = "virt")]
338338 ///# {
339339 ///# use trussed_rsa_alloc::*;
340- ///# use trussed ::{syscall,types::Location::{Volatile,Internal}};
340+ ///# use trussed_core ::{syscall,types::Location::{Volatile,Internal}};
341341 ///# virt::with_ram_client("rsa tests", |mut client| {
342342 ///# let sk = syscall!(client.generate_rsa4096pkcs_private_key(Internal)).key;
343343 ///# let pk = syscall!(client.derive_rsa4096pkcs_public_key(sk, Volatile)).key;
0 commit comments