serde for rsa

tokio-1.0
Avril 4 years ago
parent 5e4c31160d
commit 2f6c9fe861
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1,6 +1,6 @@
[package]
name = "cryptohelpers"
version = "1.4.1"
version = "1.5.0"
license= "MIT"
description = "Collection of helpers and simplifying functions for cryptography things"
authors = ["Avril <flanchan@cumallover.me>"]

@ -0,0 +1 @@
avril@eientei.17525:1601576110

@ -1,4 +1,7 @@
//! Traits for offsets of components
use super::*;
#[cfg_attr(feature="serialise", derive(Serialize,Deserialize))]
pub struct Starts<T: HasOffsets>(T);

@ -51,6 +51,7 @@ use tokio::{
/// It is always assumed that the internal consistancy and state of the components binary representations is correct.
/// Incorrect internal state can cause panics on all operations.
#[derive(Clone, PartialEq, Eq, Hash, Debug)]
#[cfg_attr(feature="serialise", derive(Serialize,Deserialize))]
pub struct RsaPrivateKey
{
data: Vec<u8>,

@ -1,7 +1,9 @@
//! Private offsets
use super::offsets::*;
use super::*;
#[derive(Clone,Copy,Debug,Eq,PartialEq,Hash,Default)]
#[cfg_attr(feature="serialise", derive(Serialize,Deserialize))]
pub struct PrivateOffsetGroup
{
pub n: usize,

@ -47,6 +47,7 @@ use tokio::{
/// It is always assumed that the internal consistancy and state of the components binary representations is correct.
/// Incorrect internal state can cause panics on all operations.
#[derive(Clone, PartialEq, Eq, Hash, Debug)]
#[cfg_attr(feature="serialise", derive(Serialize,Deserialize))]
pub struct RsaPublicKey
{
data: Vec<u8>,

@ -1,7 +1,9 @@
//! Offsets for a public key container
use super::offsets::*;
use super::*;
#[derive(Clone,Copy,Debug,Eq,PartialEq,Hash,Default)]
#[cfg_attr(feature="serialise", derive(Serialize,Deserialize))]
pub struct PublicOffsetGroup
{
pub n: usize,

Loading…
Cancel
Save