Working on making the new packet infrastructure run.

This commit is contained in:
Michal Kolodziej
2013-04-22 17:04:20 +02:00
parent 93a7a751fd
commit c190784ffd
14 changed files with 1058 additions and 1020 deletions

View File

@@ -36,19 +36,6 @@ function openpgp_encoding_base64_decode(message) {
return r2s(message);
}
/**
* Wrapper function for jquery library.
* This function escapes HTML characters within a string. This is used
* to prevent XSS.
* @param {String} message Message to escape
* @return {String} Html encoded string
*/
function openpgp_encoding_html_encode(message) {
if (message == null)
return "";
return $('<div/>').text(message).html();
}
/**
* create a EME-PKCS1-v1_5 padding (See RFC4880 13.1.1)
* @param {String} message message to be padded