export function createTapEncryptedFrame(id, payload, paddingGenerator) {
    const len = payload.length;
    // let padSize = computePadding(8 + len, 16)
    // let padding = paddingGenerator ? paddingGenerator(padSize) : undefined
    return {
        id,
        len,
        payload,
        // padding: padding
    };
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWxzLmV4dGVuc2lvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9jbGllbnQvaW1wbC9zcmMvbGliL21vZGVsL21vZGVscy5leHRlbnNpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sVUFBVSx1QkFBdUIsQ0FDckMsRUFBVSxFQUNWLE9BQW1CLEVBQ25CLGdCQUErQztJQUUvQyxNQUFNLEdBQUcsR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDO0lBQzNCLDRDQUE0QztJQUM1Qyx5RUFBeUU7SUFDekUsT0FBTztRQUNMLEVBQUU7UUFDRixHQUFHO1FBQ0gsT0FBTztRQUVQLG1CQUFtQjtLQUNwQixDQUFDO0FBQ0osQ0FBQyJ9