add encryption mode choice
This commit is contained in:
		| @@ -25,7 +25,12 @@ test ('fail decryption', (t) => { | ||||
| test ('rethrow decryption', (t) => { | ||||
|   const enc = crypto.encrypt_aes ('foo', 'bar'); | ||||
|   t.throws (() => { | ||||
|     crypto.decrypt_aes (enc, 'baz', true); | ||||
|     crypto.decrypt_aes ( | ||||
|       enc, | ||||
|       'baz', | ||||
|       crypto.encryption_mode_cbc_256, | ||||
|       true | ||||
|     ); | ||||
|   }); | ||||
| }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user