Buckets:
| import { JOSENotSupported } from '../util/errors.js'; | |
| import random from '../runtime/random.js'; | |
| export function bitLength(alg) { | |
| switch (alg) { | |
| case 'A128GCM': | |
| case 'A128GCMKW': | |
| case 'A192GCM': | |
| case 'A192GCMKW': | |
| case 'A256GCM': | |
| case 'A256GCMKW': | |
| return 96; | |
| case 'A128CBC-HS256': | |
| case 'A192CBC-HS384': | |
| case 'A256CBC-HS512': | |
| return 128; | |
| default: | |
| throw new JOSENotSupported(`Unsupported JWE Algorithm: ${alg}`); | |
| } | |
| } | |
| export default (alg) => random(new Uint8Array(bitLength(alg) >> 3)); | |
Xet Storage Details
- Size:
- 607 Bytes
- Xet hash:
- 330ac1666013510309a84ab45e8215f56f96ea24a4b3d74bb545120e5e216de5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.