not quite so much crypto logging
This commit is contained in:
parent
9288c2e636
commit
20ba6dd62e
@ -217,7 +217,8 @@ function aes_encapsulate($data,$pubkey) {
|
|||||||
$iv = random_string(16,RANDOM_STRING_TEXT);
|
$iv = random_string(16,RANDOM_STRING_TEXT);
|
||||||
$result['data'] = base64url_encode(AES256CBC_encrypt($data,$key,$iv),true);
|
$result['data'] = base64url_encode(AES256CBC_encrypt($data,$key,$iv),true);
|
||||||
if(! openssl_public_encrypt($key,$k,$pubkey)) {
|
if(! openssl_public_encrypt($key,$k,$pubkey)) {
|
||||||
logger('aes_encapsulate: RSA failed. ' . print_r(debug_backtrace(),true));
|
$x = debug_backtrace();
|
||||||
|
logger('aes_encapsulate: RSA failed. ' . print_r($x[0],true));
|
||||||
}
|
}
|
||||||
$result['key'] = base64url_encode($k,true);
|
$result['key'] = base64url_encode($k,true);
|
||||||
openssl_public_encrypt($iv,$i,$pubkey);
|
openssl_public_encrypt($iv,$i,$pubkey);
|
||||||
|
@ -1 +1 @@
|
|||||||
2013-07-23.383
|
2013-07-24.384
|
||||||
|
Reference in New Issue
Block a user