incorrect iv length for blocksize
This commit is contained in:
parent
18c8f4d8b5
commit
8e24db3ef5
2
boot.php
2
boot.php
|
@ -7,7 +7,7 @@ require_once('include/text.php');
|
||||||
require_once("include/pgettext.php");
|
require_once("include/pgettext.php");
|
||||||
|
|
||||||
|
|
||||||
define ( 'FRIENDIKA_VERSION', '2.2.1076' );
|
define ( 'FRIENDIKA_VERSION', '2.2.1077' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1081 );
|
define ( 'DB_UPDATE_VERSION', 1081 );
|
||||||
|
|
||||||
|
|
|
@ -182,3 +182,5 @@ function salmon_key($pubkey) {
|
||||||
pemtome($pubkey,$m,$e);
|
pemtome($pubkey,$m,$e);
|
||||||
return 'RSA' . '.' . base64url_encode($m,true) . '.' . base64url_encode($e,true) ;
|
return 'RSA' . '.' . base64url_encode($m,true) . '.' . base64url_encode($e,true) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -30,12 +30,12 @@ function diaspora_msg_build($msg,$user,$contact,$prvkey,$pubkey) {
|
||||||
|
|
||||||
$inner_aes_key = random_string(32);
|
$inner_aes_key = random_string(32);
|
||||||
$b_inner_aes_key = base64_encode($inner_aes_key);
|
$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);
|
$b_inner_iv = base64_encode($inner_iv);
|
||||||
|
|
||||||
$outer_aes_key = random_string(32);
|
$outer_aes_key = random_string(32);
|
||||||
$b_outer_aes_key = base64_encode($outer_aes_key);
|
$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);
|
$b_outer_iv = base64_encode($outer_iv);
|
||||||
|
|
||||||
$handle = 'acct:' . $user['nickname'] . '@' . substr($a->get_baseurl(), strpos($a->get_baseurl(),'://') + 3);
|
$handle = 'acct:' . $user['nickname'] . '@' . substr($a->get_baseurl(), strpos($a->get_baseurl(),'://') + 3);
|
||||||
|
|
Loading…
Reference in a new issue