pub struct SigningKey { /* private fields */ }Expand description
RSA 私钥(CRT 参数;Drop 零化秘密分量)。
Implementations§
Source§impl SigningKey
impl SigningKey
Sourcepub fn from_pkcs8_der(der: &[u8]) -> Result<Self, Error>
pub fn from_pkcs8_der(der: &[u8]) -> Result<Self, Error>
从 PKCS#8 DER(内层 PKCS#1 RSAPrivateKey)解析。模长 < 2048 位
返回 Error::Unsupported。
Sourcepub fn from_pkcs1_der(der: &[u8]) -> Result<Self, Error>
pub fn from_pkcs1_der(der: &[u8]) -> Result<Self, Error>
解析 PKCS#1 RSAPrivateKey DER 并做结构一致性校验 (rustls KeyProvider 的 PKCS#1 入口)。
Trait Implementations§
Source§impl Clone for SigningKey
impl Clone for SigningKey
Source§fn clone(&self) -> SigningKey
fn clone(&self) -> SigningKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SigningKey
impl Debug for SigningKey
Source§impl Drop for SigningKey
impl Drop for SigningKey
Auto Trait Implementations§
impl Freeze for SigningKey
impl RefUnwindSafe for SigningKey
impl Send for SigningKey
impl Sync for SigningKey
impl Unpin for SigningKey
impl UnsafeUnpin for SigningKey
impl UnwindSafe for SigningKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more