Struct tink_proto::RsaSsaPssPrivateKey
source · pub struct RsaSsaPssPrivateKey {
pub version: u32,
pub public_key: Option<RsaSsaPssPublicKey>,
pub d: Vec<u8>,
pub p: Vec<u8>,
pub q: Vec<u8>,
pub dp: Vec<u8>,
pub dq: Vec<u8>,
pub crt: Vec<u8>,
}
Expand description
key_type: type.googleapis.com/google.crypto.tink.RsaSsaPssPrivateKey
Fields§
§version: u32
Required.
public_key: Option<RsaSsaPssPublicKey>
Required.
d: Vec<u8>
Private exponent. Unsigned big integer in bigendian representation. Required.
p: Vec<u8>
The following parameters are used to optimize RSA signature computation. The prime factor p of n. Unsigned big integer in bigendian representation. Required.
q: Vec<u8>
The prime factor q of n. Unsigned big integer in bigendian representation. Required.
dp: Vec<u8>
d mod (p - 1). Unsigned big integer in bigendian representation. Required.
dq: Vec<u8>
d mod (q - 1). Unsigned big integer in bigendian representation. Required.
crt: Vec<u8>
Chinese Remainder Theorem coefficient q^(-1) mod p. Unsigned big integer in bigendian representation. Required.
Trait Implementations§
source§impl Clone for RsaSsaPssPrivateKey
impl Clone for RsaSsaPssPrivateKey
source§fn clone(&self) -> RsaSsaPssPrivateKey
fn clone(&self) -> RsaSsaPssPrivateKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RsaSsaPssPrivateKey
impl Debug for RsaSsaPssPrivateKey
source§impl Default for RsaSsaPssPrivateKey
impl Default for RsaSsaPssPrivateKey
source§impl Message for RsaSsaPssPrivateKey
impl Message for RsaSsaPssPrivateKey
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq<RsaSsaPssPrivateKey> for RsaSsaPssPrivateKey
impl PartialEq<RsaSsaPssPrivateKey> for RsaSsaPssPrivateKey
source§fn eq(&self, other: &RsaSsaPssPrivateKey) -> bool
fn eq(&self, other: &RsaSsaPssPrivateKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.