Struct openssl::dsa::DsaRef [−][src]
pub struct DsaRef<T>(_, _);
Reference to Dsa.
Methods
impl<T> DsaRef<T> where
T: HasPublic, [src]
impl<T> DsaRef<T> where
T: HasPublic, pub fn public_key_to_pem(&self) -> Result<Vec<u8>, ErrorStack>[src]
pub fn public_key_to_pem(&self) -> Result<Vec<u8>, ErrorStack>Serialies the public key into a PEM-encoded SubjectPublicKeyInfo structure.
The output will have a header of -----BEGIN PUBLIC KEY-----.
This corresponds to PEM_write_bio_DSA_PUBKEY.
pub fn public_key_to_der(&self) -> Result<Vec<u8>, ErrorStack>[src]
pub fn public_key_to_der(&self) -> Result<Vec<u8>, ErrorStack>Serializes the public key into a DER-encoded SubjectPublicKeyInfo structure.
This corresponds to i2d_DSA_PUBKEY.
impl<T> DsaRef<T> where
T: HasParams, [src]
impl<T> DsaRef<T> where
T: HasParams, pub fn size(&self) -> u32[src]
pub fn size(&self) -> u32Returns the maximum size of the signature output by self in bytes.
OpenSSL documentation at DSA_size
pub fn p(&self) -> &BigNumRef[src]
pub fn p(&self) -> &BigNumRefReturns the DSA prime parameter of self.
pub fn q(&self) -> &BigNumRef[src]
pub fn q(&self) -> &BigNumRefReturns the DSA sub-prime parameter of self.
pub fn g(&self) -> &BigNumRef[src]
pub fn g(&self) -> &BigNumRefReturns the DSA base parameter of self.
Trait Implementations
impl<T> Borrow<DsaRef<T>> for Dsa<T>[src]
impl<T> Borrow<DsaRef<T>> for Dsa<T>impl<T> AsRef<DsaRef<T>> for Dsa<T>[src]
impl<T> AsRef<DsaRef<T>> for Dsa<T>impl<T> ForeignTypeRef for DsaRef<T>[src]
impl<T> ForeignTypeRef for DsaRef<T>type CType = DSA
The raw C type.
ⓘImportant traits for &'a mut Runsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self[src]
ⓘImportant traits for &'a mut R
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a SelfConstructs a shared instance of this type from its raw type.
ⓘImportant traits for &'a mut Runsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self[src]
ⓘImportant traits for &'a mut R
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut SelfConstructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType[src]
fn as_ptr(&self) -> *mut Self::CTypeReturns a raw pointer to the wrapped value.
impl<T> Send for DsaRef<T>[src]
impl<T> Send for DsaRef<T>impl<T> Sync for DsaRef<T>[src]
impl<T> Sync for DsaRef<T>