mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
Convert test keys from base64 to ASCII armor
ASCII armored keys can be easily generated with `sq key generate` and used to encrypt and decrypt test messages with `sq` and `gpg` without converting them to binary using `base64 -d` first.
This commit is contained in:
@@ -632,8 +632,8 @@ pub unsafe extern "C" fn dc_preconfigure_keypair(
|
||||
let ctx = &*context;
|
||||
block_on(async move {
|
||||
let addr = dc_tools::EmailAddress::new(&to_string_lossy(addr))?;
|
||||
let public = key::SignedPublicKey::from_base64(&to_string_lossy(public_data))?;
|
||||
let secret = key::SignedSecretKey::from_base64(&to_string_lossy(secret_data))?;
|
||||
let public = key::SignedPublicKey::from_asc(&to_string_lossy(public_data))?.0;
|
||||
let secret = key::SignedSecretKey::from_asc(&to_string_lossy(secret_data))?.0;
|
||||
let keypair = key::KeyPair {
|
||||
addr,
|
||||
public,
|
||||
|
||||
Reference in New Issue
Block a user