Switching default hash preference to SHA256.

This commit is contained in:
seancolyer
2013-04-20 22:16:32 -04:00
parent 21726d5b8b
commit aa8a7f94f1
4 changed files with 631 additions and 627 deletions

View File

@@ -46,7 +46,7 @@ function openpgp_config() {
* configuration was in place
*/
this.default_config = {
prefer_hash_algorithm: 2,
prefer_hash_algorithm: 8,
encryption_cipher: 9,
compression: 1,
show_version: true,

View File

@@ -122,6 +122,8 @@ function openpgp_msg_privatekey() {
var dsa = new DSA();
return dsa.select_hash_algorithm(pkey.publicKey.MPIs[1].toBigInteger()); // q
}
//TODO implement: https://tools.ietf.org/html/rfc4880#section-5.2.3.8
//separate private key preference from digest preferences
return openpgp.config.config.prefer_hash_algorithm;
}