initial commit
This commit is contained in:
6
server/node_modules/jose/dist/browser/lib/check_p2s.js
generated
vendored
Normal file
6
server/node_modules/jose/dist/browser/lib/check_p2s.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { JWEInvalid } from '../util/errors.js';
|
||||
export default function checkP2s(p2s) {
|
||||
if (!(p2s instanceof Uint8Array) || p2s.length < 8) {
|
||||
throw new JWEInvalid('PBES2 Salt Input must be 8 or more octets');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user