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