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) -> u32
Returns 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) -> &BigNumRef
Returns the DSA prime parameter of self
.
pub fn q(&self) -> &BigNumRef
[src]
pub fn q(&self) -> &BigNumRef
Returns the DSA sub-prime parameter of self
.
pub fn g(&self) -> &BigNumRef
[src]
pub fn g(&self) -> &BigNumRef
Returns 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 Self
Constructs 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 Self
Constructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType
[src]
fn as_ptr(&self) -> *mut Self::CType
Returns 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>