keyfork-shard: limit size of encrypted payload, can fit at max a 256 bit shard
This commit is contained in:
parent
1879a250c8
commit
a646b21f58
|
@ -129,7 +129,7 @@ pub fn remote_decrypt(w: &mut impl Write) -> Result<(), Box<dyn std::error::Erro
|
|||
(Some(pubkey), Some(payload)) => (pubkey, payload),
|
||||
_ => {
|
||||
let validator = MnemonicSetValidator {
|
||||
word_lengths: [24, 48],
|
||||
word_lengths: [24, 39],
|
||||
};
|
||||
|
||||
let [pubkey_mnemonic, payload_mnemonic] = pm.prompt_validated_wordlist(
|
||||
|
|
|
@ -62,7 +62,7 @@ use super::{
|
|||
};
|
||||
|
||||
// 256 bit share is 49 bytes + some amount of hunk bytes, gives us reasonable padding
|
||||
const ENC_LEN: u8 = 4 * 16;
|
||||
const ENC_LEN: u8 = 52;
|
||||
|
||||
/// Errors encountered while performing operations using OpenPGP.
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
|
|
Loading…
Reference in New Issue