pub fn generate(mut bits: usize) -> OsshResult<Self> {
        if bits == 0 {
            bits = 1024;
        }
        if bits != 1024 {
            return Err(Error::from_kind(ErrorKind::InvalidKeySize));
        }
        Ok(DsaKeyPair {
            dsa: Dsa::generate(bits as u32)?,
        })
    }
/// Generate DSA key pair
///
/// The bits parameter should be 1024 bits or `0` to use default length (1024 bits).
Generate DSA key pair
The bits parameter should be 1024 bits or `0` to use default length (1024 bits).
Generate DSA key pair The bits parameter should be 1024 bits or ` 0 ` to use default length ( 1024 bits ) .
pub fn generate(mut bits: usize) -> OsshResult<Self> {
        if bits == 0 {
            bits = 1024;
        }
        if bits != 1024 {
            return Err(Error::from_kind(ErrorKind::InvalidKeySize));
        }
        Ok(DsaKeyPair {
            dsa: Dsa::generate(bits as u32)?,
        })
    }
pub fn generate ( mut bits : usize ) -> OsshResult < Self > { if bits == 0 { bits = 1024 ; } if bits != 1024 { return Err ( Error :: from_kind ( ErrorKind :: InvalidKeySize ) ) ; } Ok ( DsaKeyPair { dsa : Dsa :: generate ( bits as u32 ) ? , } ) }
Generate DSA key pair
The bits parameter should be 1024 bits or `0` to use default length (1024 bits).
Generate DSA key pair The bits parameter should be 1024 bits or ` 0 ` to use default length ( 1024 bits ) .
bits
usize
bits
usize