mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-24 06:25:50 +00:00
fix: throw error if salt is not defined
This commit is contained in:
parent
221cb45be8
commit
64138a37c7
@ -121,7 +121,8 @@ class GenericS2K {
|
|||||||
case 'simple':
|
case 'simple':
|
||||||
break;
|
break;
|
||||||
case 'salted':
|
case 'salted':
|
||||||
this.salt && arr.push(this.salt);
|
if (!this.salt) { throw Error('Salt was not set') }
|
||||||
|
arr.push(this.salt);
|
||||||
break;
|
break;
|
||||||
case 'iterated':
|
case 'iterated':
|
||||||
this.salt &&arr.push(this.salt);
|
this.salt &&arr.push(this.salt);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user