fn gen_encrypt_keypair() -> (PublicEncryptKey, SecretEncryptKey) {
    let (encrypt_pk, encrypt_sk) = box_::gen_keypair();
    let pub_enc_key = PublicEncryptKey { inner: encrypt_pk };
    let sec_enc_key = SecretEncryptKey {
        inner: Arc::new(SecretEncryptKeyInner {
            encrypt: encrypt_sk,
        }),
    };
    (pub_enc_key, sec_enc_key)
}
/// Randomly generates a secret key and a corresponding public key.
Randomly generates a secret key and a corresponding public key.
Randomly generates a secret key and a corresponding public key .
fn gen_encrypt_keypair() -> (PublicEncryptKey, SecretEncryptKey) {
    let (encrypt_pk, encrypt_sk) = box_::gen_keypair();
    let pub_enc_key = PublicEncryptKey { inner: encrypt_pk };
    let sec_enc_key = SecretEncryptKey {
        inner: Arc::new(SecretEncryptKeyInner {
            encrypt: encrypt_sk,
        }),
    };
    (pub_enc_key, sec_enc_key)
}
fn gen_encrypt_keypair ( ) -> ( PublicEncryptKey , SecretEncryptKey ) { let ( encrypt_pk , encrypt_sk ) = box_ :: gen_keypair ( ) ; let pub_enc_key = PublicEncryptKey { inner : encrypt_pk } ; let sec_enc_key = SecretEncryptKey { inner : Arc :: new ( SecretEncryptKeyInner { encrypt : encrypt_sk , } ) , } ; ( pub_enc_key , sec_enc_key ) }
Randomly generates a secret key and a corresponding public key.
Randomly generates a secret key and a corresponding public key .