import { stringToArrayBuffer } from './stringToArrayBuffer' ; export function deriveSalt ( sizeOrValue ) { return typeof sizeOrValue === 'string' ? new Uint8Array ( stringToArrayBuffer ( sizeOrValue ) ) : new Uint8Array ( sizeOrValue ) ; }