mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-24 14:35:51 +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':
|
||||
break;
|
||||
case 'salted':
|
||||
this.salt && arr.push(this.salt);
|
||||
if (!this.salt) { throw Error('Salt was not set') }
|
||||
arr.push(this.salt);
|
||||
break;
|
||||
case 'iterated':
|
||||
this.salt &&arr.push(this.salt);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user