From 9294f72adb3c076932558b6f29a4c570e7962764 Mon Sep 17 00:00:00 2001 From: Christian Vogeley Date: Sat, 3 Aug 2013 00:14:59 +0200 Subject: Revert "merge" This reverts commit c0cd147a3a9a86b270ea32026089ced16fb2f50c, reversing changes made to d2d1e54bfe928fe4cdfdcfc7e9acf658cda76898. --- doc/html/crypto_8php.html | 315 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 307 insertions(+), 8 deletions(-) (limited to 'doc/html/crypto_8php.html') diff --git a/doc/html/crypto_8php.html b/doc/html/crypto_8php.html index 7ab5222eb..d58a3ae31 100644 --- a/doc/html/crypto_8php.html +++ b/doc/html/crypto_8php.html @@ -116,8 +116,31 @@ Functions    rsa_verify ($data, $sig, $key, $alg= 'sha256')   - pkcs5_pad ($text, $blocksize) -  + DerToPem ($Der, $Private=false) +  + DerToRsa ($Der) +  + pkcs8_encode ($Modulus, $PublicExponent) +  + pkcs1_encode ($Modulus, $PublicExponent) +  + metopem ($m, $e) +  + pubrsatome ($key, &$m, &$e) +  + rsatopem ($key) +  + pemtorsa ($key) +  + pemtome ($key, &$m, &$e) +  + metorsa ($m, $e) +  + salmon_key ($pubkey) +  +if(!function_exists('aes_decrypt'))
+if(!function_exists('aes_encrypt')) pkcs5_pad ($text, $blocksize) +   pkcs5_unpad ($text)    AES256CBC_encrypt ($data, $key, $iv) @@ -224,7 +247,7 @@ Functions
-

Referenced by get_item_elements(), get_mail_elements(), item_post(), item_store(), post_post(), send_message(), zfinger_init(), zot_build_packet(), and zot_fetch().

+

Referenced by post_post(), zfinger_init(), zot_build_packet(), and zot_fetch().

@@ -252,7 +275,109 @@ Functions
-

Referenced by editpost_content(), encode_item(), encode_mail(), message_post(), new_contact(), post_post(), prepare_body(), private_messages_fetch_conversation(), private_messages_fetch_message(), private_messages_list(), probe_content(), zot_import(), and zot_refresh().

+

Referenced by message_post(), new_contact(), post_post(), probe_content(), zot_import(), and zot_refresh().

+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + +
DerToPem ( $Der,
 $Private = false 
)
+
+ +

Referenced by metopem().

+ +
+
+ +
+
+ + + + + + + + +
DerToRsa ( $Der)
+
+ +

Referenced by metorsa().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
metopem ( $m,
 $e 
)
+
+ +

Referenced by rsatopem().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
metorsa ( $m,
 $e 
)
+
+ +

Referenced by pemtorsa().

@@ -274,12 +399,90 @@ Functions - + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
pemtome ( $key,
$m,
$e 
)
+
+ +

Referenced by pemtorsa(), and salmon_key().

+ +
+
+
- + + + + + + +
pkcs5_pad pemtorsa ( $key)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
pkcs1_encode ( $Modulus,
 $PublicExponent 
)
+
+ +

Referenced by metorsa().

+ +
+
+ +
+
+ + + @@ -318,6 +521,68 @@ Functions

Referenced by AES256CBC_decrypt().

+ + + +
+
+
if (!function_exists('aes_decrypt')) if (!function_exists('aes_encrypt')) pkcs5_pad (   $text,
+ + + + + + + + + + + + + + + + + +
pkcs8_encode ( $Modulus,
 $PublicExponent 
)
+
+ +

Referenced by metopem().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
pubrsatome ( $key,
$m,
$e 
)
+
+ +

Referenced by rsatopem().

+
@@ -350,7 +615,7 @@ Functions
-

Referenced by create_identity(), fix_system_urls(), import_post(), magic_init(), post_post(), zfinger_init(), zot_build_packet(), and zot_fetch().

+

Referenced by create_identity(), fix_system_urls(), import_post(), magic_init(), post_post(), zot_build_packet(), and zot_fetch().

@@ -390,7 +655,41 @@ Functions
-

Referenced by import_site(), import_xchan(), post_init(), post_post(), and zfinger_init().

+

Referenced by import_xchan(), post_init(), post_post(), and zfinger_init().

+ +
+ + +
+
+ + + + + + + + +
rsatopem ( $key)
+
+ +
+
+ +
+
+ + + + + + + + +
salmon_key ( $pubkey)
+
+ +

Referenced by hostxrd_init(), and xrd_init().

-- cgit v1.2.3