mirror of
				https://github.com/openpgpjs/openpgpjs.git
				synced 2025-10-14 00:59:29 +00:00 
			
		
		
		
	 7f37a8aaca
			
		
	
	
		7f37a8aaca
		
			
		
	
	
	
	
		
			
			Refactor functions to take the configuration as a parameter.
This allows setting a config option for a single function call, whereas
setting `openpgp.config` could lead to concurrency-related issues when
multiple async function calls are made at the same time.
`openpgp.config` is used as default for unset config values in top-level
functions.
`openpgp.config` is used as default config object in low-level functions
(i.e., when calling a low-level function, it may be required to pass
`{ ...openpgp.config, modifiedConfig: modifiedValue }`).
Also,
- remove `config.rsaBlinding`: blinding is now always applied to RSA decryption
- remove `config.debug`: debugging mode can be enabled by setting
  `process.env.NODE_ENV = 'development'`
- remove `config.useNative`: native crypto is always used when available
		
	
			
		
			
				
	
	
		
			16 lines
		
	
	
		
			405 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			405 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| module.exports = () => describe('Crypto', function () {
 | |
|   require('./cipher')();
 | |
|   require('./hash')();
 | |
|   require('./random.js')();
 | |
|   require('./crypto.js')();
 | |
|   require('./elliptic.js')();
 | |
|   require('./ecdh.js')();
 | |
|   require('./pkcs5.js')();
 | |
|   require('./aes_kw.js')();
 | |
|   require('./gcm.js')();
 | |
|   require('./eax.js')();
 | |
|   require('./ocb.js')();
 | |
|   require('./rsa.js')();
 | |
|   require('./validate.js')();
 | |
| });
 |