Files
girinb 485098cd1a link
2025-05-29 15:41:51 +09:00

7 lines
229 B
JavaScript

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');
}
}