mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-19 22:58:38 +00:00
Switching default hash preference to SHA256.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user