aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/crypto.php2
-rw-r--r--include/diaspora.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/include/crypto.php b/include/crypto.php
index 1ab9e7b25..6b27e832b 100644
--- a/include/crypto.php
+++ b/include/crypto.php
@@ -182,3 +182,5 @@ function salmon_key($pubkey) {
pemtome($pubkey,$m,$e);
return 'RSA' . '.' . base64url_encode($m,true) . '.' . base64url_encode($e,true) ;
}
+
+
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);