-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix a bunch of warnings (#26)
- Loading branch information
1 parent
8784b19
commit 4b81831
Showing
4 changed files
with
186 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
use dep::bignum::BigNum; | ||
use dep::bignum::fields::{Params1024, Params2048}; | ||
use dep::bignum::runtime_bignum::BigNumInstance; | ||
use dep::bignum::fields::Params2048; | ||
use dep::bignum::fields::Params1024; | ||
|
||
struct RSA<BN, BNInstance, let NumBytes: u32>{} | ||
pub struct RSA<BN, BNInstance, let NumBytes: u32> {} | ||
|
||
type BN1024 = BigNum<9, Params1024>; | ||
type BN2048 = BigNum<18, Params2048>; | ||
type BNInst1024 = BigNumInstance<9, Params1024>; | ||
type BNInst2048 = BigNumInstance<18, Params2048>; | ||
pub(crate) type BN1024 = BigNum<9, Params1024>; | ||
pub(crate) type BN2048 = BigNum<18, Params2048>; | ||
pub(crate) type BNInst1024 = BigNumInstance<9, Params1024>; | ||
pub(crate) type BNInst2048 = BigNumInstance<18, Params2048>; | ||
|
||
type RSA1024 = RSA<BN1024, BNInst1024, 128>; | ||
type RSA2048 = RSA<BN2048, BNInst2048, 256>; | ||
pub(crate) type RSA1024 = RSA<BN1024, BNInst1024, 128>; | ||
pub(crate) type RSA2048 = RSA<BN2048, BNInst2048, 256>; |