diff options
author | Friendika <info@friendika.com> | 2011-08-19 14:34:28 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-19 14:34:28 -0700 |
commit | 8e24db3ef5c0bd15aba50aa48fd4745fe7191dbb (patch) | |
tree | 85aedde5cc6f3a21b8b0afacb00c4363f954c358 /include/diaspora.php | |
parent | 18c8f4d8b57988ce5e22c261d7ab9d73aa2a3dd5 (diff) | |
download | volse-hubzilla-8e24db3ef5c0bd15aba50aa48fd4745fe7191dbb.tar.gz volse-hubzilla-8e24db3ef5c0bd15aba50aa48fd4745fe7191dbb.tar.bz2 volse-hubzilla-8e24db3ef5c0bd15aba50aa48fd4745fe7191dbb.zip |
incorrect iv length for blocksize
Diffstat (limited to 'include/diaspora.php')
-rw-r--r-- | include/diaspora.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index b14c38f1d..2e8ff6892 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -30,12 +30,12 @@ function diaspora_msg_build($msg,$user,$contact,$prvkey,$pubkey) { $inner_aes_key = random_string(32); $b_inner_aes_key = base64_encode($inner_aes_key); - $inner_iv = random_string(32); + $inner_iv = random_string(16); $b_inner_iv = base64_encode($inner_iv); $outer_aes_key = random_string(32); $b_outer_aes_key = base64_encode($outer_aes_key); - $outer_iv = random_string(32); + $outer_iv = random_string(16); $b_outer_iv = base64_encode($outer_iv); $handle = 'acct:' . $user['nickname'] . '@' . substr($a->get_baseurl(), strpos($a->get_baseurl(),'://') + 3); |