├── AirplayLibrary
├── AirPlay.sln
├── AirPlay
│ ├── AirPlay.vcxproj
│ ├── AirPlay.vcxproj.filters
│ ├── AirPlay.vcxproj.user
│ ├── airport.key
│ ├── lib
│ │ ├── Makefile.am
│ │ ├── aac_eld
│ │ │ ├── Makefile.am
│ │ │ ├── aac_eld.c
│ │ │ └── aac_eld.h
│ │ ├── airplay.c
│ │ ├── airplay.h
│ │ ├── alac
│ │ │ ├── Makefile.am
│ │ │ ├── alac.c
│ │ │ ├── alac.h
│ │ │ └── stdint_win.h
│ │ ├── audio.c
│ │ ├── audio.h
│ │ ├── compat.h
│ │ ├── digest.c
│ │ ├── digest.h
│ │ ├── dnssd.c
│ │ ├── dnssd.h
│ │ ├── dnssd.m
│ │ ├── dnssdint.h
│ │ ├── fairplay.c
│ │ ├── fairplay.h
│ │ ├── fdkaac
│ │ │ ├── include
│ │ │ │ ├── FDK_archdef.h
│ │ │ │ ├── FDK_audio.h
│ │ │ │ ├── FDK_bitbuffer.h
│ │ │ │ ├── FDK_bitstream.h
│ │ │ │ ├── FDK_core.h
│ │ │ │ ├── FDK_crc.h
│ │ │ │ ├── FDK_hybrid.h
│ │ │ │ ├── FDK_tools_rom.h
│ │ │ │ ├── FDK_trigFcts.h
│ │ │ │ ├── aacdecoder_lib.h
│ │ │ │ ├── aacenc_lib.h
│ │ │ │ ├── abs.h
│ │ │ │ ├── arm
│ │ │ │ │ ├── clz_arm.h
│ │ │ │ │ ├── cplx_mul.h
│ │ │ │ │ ├── fixmadd_arm.h
│ │ │ │ │ ├── fixmul_arm.h
│ │ │ │ │ ├── scale.h
│ │ │ │ │ └── scramble.h
│ │ │ │ ├── audio.h
│ │ │ │ ├── autocorr2nd.h
│ │ │ │ ├── clz.h
│ │ │ │ ├── cmdl_parser.h
│ │ │ │ ├── common_fix.h
│ │ │ │ ├── conv_string.h
│ │ │ │ ├── cplx_mul.h
│ │ │ │ ├── dct.h
│ │ │ │ ├── fft.h
│ │ │ │ ├── fft_rad2.h
│ │ │ │ ├── fixmadd.h
│ │ │ │ ├── fixminmax.h
│ │ │ │ ├── fixmul.h
│ │ │ │ ├── fixpoint_math.h
│ │ │ │ ├── genericStds.h
│ │ │ │ ├── machine_type.h
│ │ │ │ ├── mdct.h
│ │ │ │ ├── mips
│ │ │ │ │ ├── abs_mips.h
│ │ │ │ │ ├── clz_mips.h
│ │ │ │ │ ├── cplx_mul.h
│ │ │ │ │ ├── fixmadd_mips.h
│ │ │ │ │ ├── fixmul_mips.h
│ │ │ │ │ ├── scale.h
│ │ │ │ │ └── scramble.h
│ │ │ │ ├── mpegFileRead.h
│ │ │ │ ├── mpegFileWrite.h
│ │ │ │ ├── pcmutils_lib.h
│ │ │ │ ├── qmf.h
│ │ │ │ ├── sbr_encoder.h
│ │ │ │ ├── sbrdecoder.h
│ │ │ │ ├── scale.h
│ │ │ │ ├── scramble.h
│ │ │ │ ├── tp_data.h
│ │ │ │ ├── tpdec_lib.h
│ │ │ │ ├── tpenc_lib.h
│ │ │ │ ├── wav_file.h
│ │ │ │ └── x86
│ │ │ │ │ ├── abs_x86.h
│ │ │ │ │ └── fixmul_x86.h
│ │ │ └── lib
│ │ │ │ ├── libfdk.def
│ │ │ │ ├── libfdk.dll
│ │ │ │ ├── libfdk.exp
│ │ │ │ └── libfdk.lib
│ │ ├── global.h
│ │ ├── http_parser.c
│ │ ├── http_parser.h
│ │ ├── http_request.c
│ │ ├── http_request.h
│ │ ├── http_response.c
│ │ ├── http_response.h
│ │ ├── httpd.c
│ │ ├── httpd.h
│ │ ├── libfdk.def
│ │ ├── libfdk.dll
│ │ ├── libfdk.exp
│ │ ├── libfdk.lib
│ │ ├── libplist.dll
│ │ ├── logger.c
│ │ ├── logger.h
│ │ ├── memalign.h
│ │ ├── mycrypt.dll
│ │ ├── mycrypt.exp
│ │ ├── mycrypt.h
│ │ ├── mycrypt.ilk
│ │ ├── mycrypt.lib
│ │ ├── mycrypt.pdb
│ │ ├── netutils.c
│ │ ├── netutils.h
│ │ ├── plist.h
│ │ ├── plistlib.c
│ │ ├── plistlib.h
│ │ ├── raop.c
│ │ ├── raop.h
│ │ ├── raop_buffer.c
│ │ ├── raop_buffer.h
│ │ ├── raop_rtp.c
│ │ ├── raop_rtp.h
│ │ ├── sdp.c
│ │ ├── sdp.h
│ │ ├── sockets.h
│ │ ├── threads.h
│ │ ├── utils.c
│ │ └── utils.h
│ ├── main.c
│ └── mediaserver.h
└── README.md
├── AirplaySdkExample
├── Debug
│ ├── AirPlay.dll
│ ├── SDL.dll
│ ├── airport.key
│ ├── avcodec-55.dll
│ ├── avdevice-55.dll
│ ├── avfilter-4.dll
│ ├── avformat-55.dll
│ ├── avutil-52.dll
│ ├── libfdk.dll
│ ├── libiconv-2.dll
│ ├── libplist.dll
│ ├── libpthread-2.dll
│ ├── libxml2-2.dll
│ ├── mycrypt.dll
│ ├── postproc-52.dll
│ ├── swresample-0.dll
│ ├── swscale-2.dll
│ ├── xindawn-airplay-sdk-example.exe
│ └── xindawn-airplay-sdk-example_manifest.rc
├── VideoSource.cpp
├── include
│ ├── SDL
│ │ ├── SDL.h
│ │ ├── SDL_active.h
│ │ ├── SDL_audio.h
│ │ ├── SDL_byteorder.h
│ │ ├── SDL_cdrom.h
│ │ ├── SDL_config.h
│ │ ├── SDL_config_dreamcast.h
│ │ ├── SDL_config_macos.h
│ │ ├── SDL_config_macosx.h
│ │ ├── SDL_config_minimal.h
│ │ ├── SDL_config_nds.h
│ │ ├── SDL_config_os2.h
│ │ ├── SDL_config_symbian.h
│ │ ├── SDL_config_win32.h
│ │ ├── SDL_copying.h
│ │ ├── SDL_cpuinfo.h
│ │ ├── SDL_endian.h
│ │ ├── SDL_error.h
│ │ ├── SDL_events.h
│ │ ├── SDL_getenv.h
│ │ ├── SDL_joystick.h
│ │ ├── SDL_keyboard.h
│ │ ├── SDL_keysym.h
│ │ ├── SDL_loadso.h
│ │ ├── SDL_main.h
│ │ ├── SDL_mouse.h
│ │ ├── SDL_mutex.h
│ │ ├── SDL_name.h
│ │ ├── SDL_opengl.h
│ │ ├── SDL_platform.h
│ │ ├── SDL_quit.h
│ │ ├── SDL_rwops.h
│ │ ├── SDL_stdinc.h
│ │ ├── SDL_syswm.h
│ │ ├── SDL_thread.h
│ │ ├── SDL_timer.h
│ │ ├── SDL_types.h
│ │ ├── SDL_version.h
│ │ ├── SDL_video.h
│ │ ├── begin_code.h
│ │ └── close_code.h
│ ├── _mingw.h
│ ├── inttypes.h
│ ├── libavcodec
│ │ ├── avcodec.h
│ │ ├── avfft.h
│ │ ├── dxva2.h
│ │ ├── old_codec_ids.h
│ │ ├── vaapi.h
│ │ ├── vda.h
│ │ ├── vdpau.h
│ │ ├── version.h
│ │ └── xvmc.h
│ ├── libavdevice
│ │ ├── avdevice.h
│ │ └── version.h
│ ├── libavfilter
│ │ ├── asrc_abuffer.h
│ │ ├── avcodec.h
│ │ ├── avfilter.h
│ │ ├── avfiltergraph.h
│ │ ├── buffersink.h
│ │ ├── buffersrc.h
│ │ └── version.h
│ ├── libavformat
│ │ ├── avformat.h
│ │ ├── avio.h
│ │ └── version.h
│ ├── libavutil
│ │ ├── adler32.h
│ │ ├── aes.h
│ │ ├── attributes.h
│ │ ├── audio_fifo.h
│ │ ├── audioconvert.h
│ │ ├── avassert.h
│ │ ├── avconfig.h
│ │ ├── avstring.h
│ │ ├── avutil.h
│ │ ├── base64.h
│ │ ├── blowfish.h
│ │ ├── bprint.h
│ │ ├── bswap.h
│ │ ├── buffer.h
│ │ ├── channel_layout.h
│ │ ├── common.h
│ │ ├── cpu.h
│ │ ├── crc.h
│ │ ├── dict.h
│ │ ├── downmix_info.h
│ │ ├── error.h
│ │ ├── eval.h
│ │ ├── ffversion.h
│ │ ├── fifo.h
│ │ ├── file.h
│ │ ├── frame.h
│ │ ├── hmac.h
│ │ ├── imgutils.h
│ │ ├── intfloat.h
│ │ ├── intfloat_readwrite.h
│ │ ├── intreadwrite.h
│ │ ├── lfg.h
│ │ ├── log.h
│ │ ├── lzo.h
│ │ ├── macros.h
│ │ ├── mathematics.h
│ │ ├── md5.h
│ │ ├── mem.h
│ │ ├── murmur3.h
│ │ ├── old_pix_fmts.h
│ │ ├── opt.h
│ │ ├── parseutils.h
│ │ ├── pixdesc.h
│ │ ├── pixfmt.h
│ │ ├── random_seed.h
│ │ ├── rational.h
│ │ ├── replaygain.h
│ │ ├── ripemd.h
│ │ ├── samplefmt.h
│ │ ├── sha.h
│ │ ├── sha512.h
│ │ ├── stereo3d.h
│ │ ├── time.h
│ │ ├── timecode.h
│ │ ├── timestamp.h
│ │ ├── version.h
│ │ └── xtea.h
│ ├── libpostproc
│ │ ├── postprocess.h
│ │ └── version.h
│ ├── libswresample
│ │ ├── swresample.h
│ │ └── version.h
│ ├── libswscale
│ │ ├── swscale.h
│ │ └── version.h
│ ├── stdint.h
│ └── xindawn
│ │ └── mediaserver.h
├── lib
│ ├── AirPlay.lib
│ ├── SDL.lib
│ ├── SDLmain.lib
│ ├── avcodec.lib
│ ├── avdevice.lib
│ ├── avfilter.lib
│ ├── avformat.lib
│ ├── avutil.lib
│ ├── postproc.lib
│ ├── swresample.lib
│ └── swscale.lib
├── utils
│ ├── memalign.h
│ ├── sockets.h
│ ├── threads.h
│ ├── vlc.h
│ ├── xdw_list.c
│ ├── xdw_list.h
│ ├── xdw_lock.c
│ ├── xdw_lock.h
│ └── xdw_std.h
├── videosource.h
├── xindawn-airplay-sdk-example.sln
├── xindawn-airplay-sdk-example.vcxproj
├── xindawn-airplay-sdk-example.vcxproj.filters
└── xindawn-airplay-sdk-example.vcxproj.user
├── MyCrypt
├── mycrypt_win32
│ ├── Backup
│ │ ├── mycrypt.sln
│ │ └── mycrypt.v11.suo
│ ├── Curve25519
│ │ ├── curve25519-donna-c64.c
│ │ ├── curve25519-donna-test.c
│ │ ├── curve25519-donna.c
│ │ └── curve25519-donna.h
│ ├── Ed25519
│ │ ├── ed25519_32.dll
│ │ ├── ed25519_64.dll
│ │ ├── license.txt
│ │ ├── readme.md
│ │ ├── src
│ │ │ ├── add_scalar.c
│ │ │ ├── ed25519.h
│ │ │ ├── fe.c
│ │ │ ├── fe.h
│ │ │ ├── fixedint.h
│ │ │ ├── ge.c
│ │ │ ├── ge.h
│ │ │ ├── key_exchange.c
│ │ │ ├── keypair.c
│ │ │ ├── precomp_data.h
│ │ │ ├── sc.c
│ │ │ ├── sc.h
│ │ │ ├── seed.c
│ │ │ ├── sha512.c
│ │ │ ├── sha512.h
│ │ │ ├── sign.c
│ │ │ └── verify.c
│ │ └── test.c
│ ├── _UpgradeReport_Files
│ │ ├── UpgradeReport.css
│ │ ├── UpgradeReport.xslt
│ │ ├── UpgradeReport_Error.png
│ │ ├── UpgradeReport_Information.png
│ │ ├── UpgradeReport_Success.png
│ │ └── UpgradeReport_Warning.png
│ ├── crypto
│ │ ├── Makefile.am
│ │ ├── aes.c
│ │ ├── aes_locl.h
│ │ ├── base64.c
│ │ ├── base64.h
│ │ ├── bigint.c
│ │ ├── bigint.h
│ │ ├── bigint_impl.h
│ │ ├── config.h
│ │ ├── crypto.h
│ │ ├── hmac.c
│ │ ├── md5.c
│ │ ├── new_aes.c
│ │ ├── os_port.h
│ │ ├── rc4.c
│ │ ├── rsakey.c
│ │ ├── rsakey.h
│ │ ├── rsapem.c
│ │ ├── rsapem.h
│ │ └── sha1.c
│ ├── debug
│ │ ├── mycrypt.dll
│ │ ├── mycrypt.exp
│ │ ├── mycrypt.h
│ │ ├── mycrypt.ilk
│ │ ├── mycrypt.lib
│ │ └── mycrypt.pdb
│ ├── mycrypt.sln
│ ├── mycrypt.suo
│ └── mycrypt
│ │ ├── Debug
│ │ ├── CL.read.1.tlog
│ │ ├── CL.write.1.tlog
│ │ ├── add_scalar.obj
│ │ ├── aes.obj
│ │ ├── base64.obj
│ │ ├── bigint.obj
│ │ ├── cl.command.1.tlog
│ │ ├── curve25519-donna.obj
│ │ ├── fe.obj
│ │ ├── ge.obj
│ │ ├── hmac.obj
│ │ ├── key_exchange.obj
│ │ ├── keypair.obj
│ │ ├── link-cvtres.read.1.tlog
│ │ ├── link-cvtres.write.1.tlog
│ │ ├── link.7776-cvtres.read.1.tlog
│ │ ├── link.7776-cvtres.write.1.tlog
│ │ ├── link.7776.read.1.tlog
│ │ ├── link.7776.write.1.tlog
│ │ ├── link.command.1.tlog
│ │ ├── link.read.1.tlog
│ │ ├── link.write.1.tlog
│ │ ├── md5.obj
│ │ ├── mt.command.1.tlog
│ │ ├── mt.read.1.tlog
│ │ ├── mt.write.1.tlog
│ │ ├── mycrypt.Build.CppClean.log
│ │ ├── mycrypt.dll.embed.manifest
│ │ ├── mycrypt.dll.embed.manifest.res
│ │ ├── mycrypt.dll.intermediate.manifest
│ │ ├── mycrypt.lastbuildstate
│ │ ├── mycrypt.log
│ │ ├── mycrypt.write.1.tlog
│ │ ├── mycrypt_manifest.rc
│ │ ├── new_aes.obj
│ │ ├── rc.command.1.tlog
│ │ ├── rc.read.1.tlog
│ │ ├── rc.write.1.tlog
│ │ ├── rc4.obj
│ │ ├── rsakey.obj
│ │ ├── rsapem.obj
│ │ ├── sc.obj
│ │ ├── seed.obj
│ │ ├── sha1.obj
│ │ ├── sha512.obj
│ │ ├── sign.obj
│ │ ├── vc100.idb
│ │ ├── vc100.pdb
│ │ └── verify.obj
│ │ ├── ReadMe.txt
│ │ ├── inttypes.h
│ │ ├── mycrypt.h
│ │ ├── mycrypt.vcproj
│ │ ├── mycrypt.vcproj.WIN-MK2ULPM4DLM.Administrator.user
│ │ ├── mycrypt.vcxproj
│ │ ├── mycrypt.vcxproj.filters
│ │ ├── mycrypt.vcxproj.user
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ └── stdint.h
└── mycrypt_wince
│ ├── Curve25519
│ ├── curve25519-donna-c64.c
│ ├── curve25519-donna-test.c
│ ├── curve25519-donna.c
│ └── curve25519-donna.h
│ ├── Debug
│ └── mycrypt.lib
│ ├── Ed25519
│ ├── ed25519_32.dll
│ ├── ed25519_64.dll
│ ├── license.txt
│ ├── readme.md
│ ├── src
│ │ ├── add_scalar.c
│ │ ├── ed25519.h
│ │ ├── fe.c
│ │ ├── fe.h
│ │ ├── fixedint.h
│ │ ├── ge.c
│ │ ├── ge.h
│ │ ├── key_exchange.c
│ │ ├── keypair.c
│ │ ├── precomp_data.h
│ │ ├── sc.c
│ │ ├── sc.h
│ │ ├── seed.c
│ │ ├── sha512.c
│ │ ├── sha512.h
│ │ ├── sign.c
│ │ └── verify.c
│ └── test.c
│ ├── crypto
│ ├── Makefile.am
│ ├── aes.c
│ ├── aes_locl.h
│ ├── base64.c
│ ├── base64.h
│ ├── bigint.c
│ ├── bigint.h
│ ├── bigint_impl.h
│ ├── config.h
│ ├── crypto.h
│ ├── hmac.c
│ ├── md5.c
│ ├── new_aes.c
│ ├── os_port.h
│ ├── rc4.c
│ ├── rsakey.c
│ ├── rsakey.h
│ ├── rsapem.c
│ ├── rsapem.h
│ └── sha1.c
│ ├── mycrypt.opensdf
│ ├── mycrypt.sln
│ ├── mycrypt.suo
│ ├── mycrypt.v11.suo
│ └── mycrypt
│ ├── Pocket PC 2003 (ARMV4)
│ └── Debug
│ │ ├── mycrypt.dll
│ │ └── mycrypt.lib
│ ├── ReadMe.txt
│ ├── inttypes.h
│ ├── mycrypt.c
│ ├── mycrypt.def
│ ├── mycrypt.h
│ ├── mycrypt.vcproj
│ ├── mycrypt.vcproj.WIN-MK2ULPM4DLM.Administrator.user
│ ├── mycrypt.vcxproj
│ ├── mycrypt.vcxproj.filters
│ ├── mycrypt.vcxproj.user
│ ├── mycryptppc.rc
│ ├── res
│ └── mycrypt.rc2
│ ├── resourceppc.h
│ ├── stdafx.cpp
│ ├── stdafx.h
│ └── stdint.h
├── README.md
├── fairplay-server-master
├── LICENSE
├── Makefile
├── README.md
├── airplay
├── airplay.c
├── fairplay-core.o
├── fairplay-server
├── fairplay-server.c
├── fairplay-server.c~
├── fairplay.c
├── fairplay.h
├── fairplay
│ ├── ReadMe.txt
│ ├── airplay.c
│ ├── fairplay-core.idb
│ ├── fairplay-core.o
│ ├── fairplay-server.c
│ ├── fairplay.c
│ ├── fairplay.h
│ ├── fairplay.sln
│ ├── fairplay.suo
│ ├── fairplay.v11.suo
│ ├── fairplay.vcxproj
│ ├── fairplay.vcxproj.filters
│ ├── fairplay.vcxproj.user
│ ├── fairplay_ex.c
│ ├── remap_segment.h
│ └── threads.h
└── remap_segment.h
└── 抓包
├── 9.3.2.audio-end.TXT
├── 9.3.2.audio-start.TXT
├── airplay.TXT
├── airplay2.TXT
├── airplay_other.TXT
├── airplay_other2.TXT
├── 屏幕带声音转纯声音然后关闭全过程(9.3.2).ncf
└── 纯声音转屏幕带声音(9.3.2).ncf
/AirplayLibrary/AirPlay.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.30723.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AirPlay", "AirPlay\AirPlay.vcxproj", "{D494C2B3-28AB-40A7-A1A4-2CAC4FD1FDFF}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Win32 = Debug|Win32
11 | Release|Win32 = Release|Win32
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {D494C2B3-28AB-40A7-A1A4-2CAC4FD1FDFF}.Debug|Win32.ActiveCfg = Debug|Win32
15 | {D494C2B3-28AB-40A7-A1A4-2CAC4FD1FDFF}.Debug|Win32.Build.0 = Debug|Win32
16 | {D494C2B3-28AB-40A7-A1A4-2CAC4FD1FDFF}.Release|Win32.ActiveCfg = Release|Win32
17 | {D494C2B3-28AB-40A7-A1A4-2CAC4FD1FDFF}.Release|Win32.Build.0 = Release|Win32
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/AirPlay.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | E:\disk\F\Works\Embedded_Phone\mirrorLink\source\apple\airplay\AirPlay\AirplaySdkExample\Debug\xindawn-airplay-sdk-example.exe
5 | WindowsLocalDebugger
6 |
7 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/airport.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIIEpQIBAAKCAQEA59dE8qLieItsH1WgjrcFRKj6eUWqi+bGLOX1HL3U3GhC/j0Qg90u3sG/1CUt
3 | wC5vOYvfDmFI6oSFXi5ELabWJmT2dKHzBJKa3k9ok+8t9ucRqMd6DZHJ2YCCLlDRKSKv6kDqnw4U
4 | wPdpOMXziC/AMj3Z/lUVX1G7WSHCAWKf1zNS1eLvqr+boEjXuBOitnZ/bDzPHrTOZz0Dew0uowxf
5 | /+sG+NCK3eQJVxqcaJ/vEHKIVd2M+5qL71yJQ+87X6oV3eaYvt3zWZYD6z5vYTcrtij2VZ9Zmni/
6 | UAaHqn9JdsBWLUEpVviYnhimNVvYFZeCXg/IdTQ+x4IRdiXNv5hEewIDAQABAoIBAQDl8Axy9XfW
7 | BLmkzkEiqoSwF0PsmVrPzH9KsnwLGH+QZlvjWd8SWYGN7u1507HvhF5N3drJoVU3O14nDY4TFQAa
8 | LlJ9VM35AApXaLyY1ERrN7u9ALKd2LUwYhM7Km539O4yUFYikE2nIPscEsA5ltpxOgUGCY7b7ez5
9 | NtD6nL1ZKauw7aNXmVAvmJTcuPxWmoktF3gDJKK2wxZuNGcJE0uFQEG4Z3BrWP7yoNuSK3dii2jm
10 | lpPHr0O/KnPQtzI3eguhe0TwUem/eYSdyzMyVx/YpwkzwtYL3sR5k0o9rKQLtvLzfAqdBxBurciz
11 | aaA/L0HIgAmOit1GJA2saMxTVPNhAoGBAPfgv1oeZxgxmotiCcMXFEQEWflzhWYTsXrhUIuz5jFu
12 | a39GLS99ZEErhLdrwj8rDDViRVJ5skOp9zFvlYAHs0xh92ji1E7V/ysnKBfsMrPkk5KSKPrnjndM
13 | oPdevWnVkgJ5jxFuNgxkOLMuG9i53B4yMvDTCRiIPMQ++N2iLDaRAoGBAO9v//mU8eVkQaoANf0Z
14 | oMjW8CN4xwWA2cSEIHkd9AfFkftuv8oyLDCG3ZAf0vrhrrtkrfa7ef+AUb69DNggq4mHQAYBp7L+
15 | k5DKzJrKuO0r+R0YbY9pZD1+/g9dVt91d6LQNepUE/yY2PP5CNoFmjedpLHMOPFdVgqDzDFxU8hL
16 | AoGBANDrr7xAJbqBjHVwIzQ4To9pb4BNeqDndk5Qe7fT3+/H1njGaC0/rXE0Qb7q5ySgnsCb3DvA
17 | cJyRM9SJ7OKlGt0FMSdJD5KG0XPIpAVNwgpXXH5MDJg09KHeh0kXo+QA6viFBi21y340NonnEfdf
18 | 54PX4ZGS/Xac1UK+pLkBB+zRAoGAf0AY3H3qKS2lMEI4bzEFoHeK3G895pDaK3TFBVmD7fV0Zhov
19 | 17fegFPMwOII8MisYm9ZfT2Z0s5Ro3s5rkt+nvLAdfC/PYPKzTLalpGSwomSNYJcB9HNMlmhkGzc
20 | 1JnLYT4iyUyx6pcZBmCd8bD0iwY/FzcgNDaUmbX9+XDvRA0CgYEAkE7pIPlE71qvfJQgoA9em0gI
21 | LAuE4Pu13aKiJnfft7hIjbK+5kyb3TysZvoyDnb3HOKvInK7vXbKuU4ISgxB2bB3HcYzQMGsz1qJ
22 | 2gG0N5hvJpzwwhbhXqFKA4zaaSrw622wDniAK5MlIE0tIAKKP4yxNGjoD2QYjhBGuhvkWKY=
23 | -----END RSA PRIVATE KEY-----
24 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/Makefile.am:
--------------------------------------------------------------------------------
1 | SUBDIRS = crypto alac
2 |
3 | AM_CPPFLAGS = -I$(top_srcdir)/include/shairplay
4 |
5 | lib_LTLIBRARIES = libshairplay.la
6 | libshairplay_la_SOURCES = base64.c base64.h digest.c digest.h dnssd.c dnssdint.h http_parser.c http_parser.h http_request.c http_request.h http_response.c http_response.h httpd.c httpd.h logger.c logger.h netutils.c netutils.h raop.c raop_buffer.c raop_buffer.h raop_rtp.c raop_rtp.h rsakey.c rsakey.h rsapem.c rsapem.h sdp.c sdp.h utils.c utils.h compat.h memalign.h sockets.h threads.h
7 | libshairplay_la_CPPFLAGS = $(AM_CPPFLAGS)
8 |
9 | # This library depends on 3rd party libraries
10 | libshairplay_la_LIBADD = crypto/libcrypto.la alac/libalac.la
11 | libshairplay_la_LDFLAGS = -no-undefined -version-info 0:0:0
12 |
13 | ### Update -version-info above with the following rules
14 | # 1. Start with version information of ‘0:0:0’ for each libtool library.
15 | # 2. Update the version information only immediately before a public release of
16 | # your software. More frequent updates are unnecessary, and only guarantee
17 | # that the current interface number gets larger faster.
18 | # 3. If the library source code has changed at all since the last update, then
19 | # increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
20 | # 4. If any interfaces have been added, removed, or changed since the last
21 | # update, increment current, and set revision to 0.
22 | # 5. If any interfaces have been added since the last public release, then
23 | # increment age.
24 | # 6. If any interfaces have been removed or changed since the last public
25 | # release, then set age to 0.
26 | ###
27 |
28 | libshairplay_la_LIBADD += $(LIBADD_DLOPEN)
29 | libshairplay_la_LIBADD += $(LIBM)
30 |
31 | if OS_WIN32
32 | libshairplay_la_CPPFLAGS += -DDLL_EXPORT
33 | libshairplay_la_LDFLAGS += -lws2_32 -lwinmm
34 | else
35 | libshairplay_la_LDFLAGS += -export-symbols-regex '^(raop|dnssd)'
36 | endif
37 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/aac_eld/Makefile.am:
--------------------------------------------------------------------------------
1 | noinst_LTLIBRARIES = libaac_eld.la
2 | libaac_eld_la_SOURCES = aac_eld.c aac_eld.h
3 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/aac_eld/aac_eld.h:
--------------------------------------------------------------------------------
1 | #ifndef __AAC__ELD_DECOMP_H
2 | #define __AAC__ELD_DECOMP_H
3 |
4 | #pragma comment(lib, "libfdk.lib")
5 |
6 | typedef struct aac_eld_file aac_eld_file;
7 |
8 | aac_eld_file *create_aac_eld();
9 | void aac_eld_decode_frame(aac_eld_file *aac_eld,
10 | unsigned char *inbuffer, int inputsize,
11 | void *outbuffer, int *outputsize);
12 | void aac_eld_set_info(aac_eld_file *aac_eld, char *inputbuffer);
13 | void destroy_aac_eld(aac_eld_file *aac_eld);
14 |
15 | #endif /* __ALAC__DECOMP_H */
16 |
17 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/alac/Makefile.am:
--------------------------------------------------------------------------------
1 | noinst_LTLIBRARIES = libalac.la
2 | libalac_la_SOURCES = alac.c alac.h stdint_win.h
3 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/alac/alac.h:
--------------------------------------------------------------------------------
1 | #ifndef __ALAC__DECOMP_H
2 | #define __ALAC__DECOMP_H
3 |
4 | #include
5 |
6 | typedef struct alac_file alac_file;
7 |
8 | alac_file *alac_create(int samplesize, int numchannels);
9 | void alac_decode_frame(alac_file *alac,
10 | unsigned char *inbuffer,
11 | void *outbuffer, int *outputsize);
12 | void alac_set_info(alac_file *alac, char *inputbuffer);
13 | void alac_allocate_buffers(alac_file *alac);
14 | void alac_free(alac_file *alac);
15 |
16 | struct alac_file
17 | {
18 | unsigned char *input_buffer;
19 | int input_buffer_bitaccumulator; /* used so we can do arbitary
20 | bit reads */
21 |
22 | int samplesize;
23 | int numchannels;
24 | int bytespersample;
25 |
26 |
27 | /* buffers */
28 | int32_t *predicterror_buffer_a;
29 | int32_t *predicterror_buffer_b;
30 |
31 | int32_t *outputsamples_buffer_a;
32 | int32_t *outputsamples_buffer_b;
33 |
34 | int32_t *uncompressed_bytes_buffer_a;
35 | int32_t *uncompressed_bytes_buffer_b;
36 |
37 |
38 |
39 | /* stuff from setinfo */
40 | uint32_t setinfo_max_samples_per_frame; /* 0x1000 = 4096 */ /* max samples per frame? */
41 | uint8_t setinfo_7a; /* 0x00 */
42 | uint8_t setinfo_sample_size; /* 0x10 */
43 | uint8_t setinfo_rice_historymult; /* 0x28 */
44 | uint8_t setinfo_rice_initialhistory; /* 0x0a */
45 | uint8_t setinfo_rice_kmodifier; /* 0x0e */
46 | uint8_t setinfo_7f; /* 0x02 */
47 | uint16_t setinfo_80; /* 0x00ff */
48 | uint32_t setinfo_82; /* 0x000020e7 */ /* max sample size?? */
49 | uint32_t setinfo_86; /* 0x00069fe4 */ /* bit rate (avarge)?? */
50 | uint32_t setinfo_8a_rate; /* 0x0000ac44 */
51 | /* end setinfo stuff */
52 |
53 | };
54 |
55 |
56 | #endif /* __ALAC__DECOMP_H */
57 |
58 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/alac/stdint_win.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef ALAC_STDINT_WIN_H__
3 | #define ALAC_STDINT_WIN_H__
4 |
5 | typedef signed char int8_t;
6 | typedef signed short int16_t;
7 | typedef signed int int32_t;
8 | typedef signed __int64 int64_t;
9 | typedef unsigned char uint8_t;
10 | typedef unsigned short uint16_t;
11 | typedef unsigned int uint32_t;
12 | typedef unsigned __int64 uint64_t;
13 |
14 | #endif // ALAC_STDINT_WIN_H__
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/audio.h:
--------------------------------------------------------------------------------
1 |
2 | #include "raop.h"
3 | #ifndef __CX_AUDIO_H__
4 | #define __CX_AUDIO_H__
5 | int audio_prepare(raop_callbacks_t *raop_cbs);
6 | #endif
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/compat.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef COMPAT_H
16 | #define COMPAT_H
17 | #define WIN32
18 | #if defined(WIN32)
19 | #include
20 | #include
21 | #ifndef snprintf
22 | #define snprintf _snprintf
23 | #endif
24 | #else
25 | #include
26 | #include
27 | #include
28 | #include
29 | #include
30 | #include
31 | #include
32 | #include
33 | #include
34 | #include
35 | #endif
36 |
37 | #include "memalign.h"
38 | #include "sockets.h"
39 | #include "threads.h"
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/digest.h:
--------------------------------------------------------------------------------
1 | #ifndef DIGEST_H
2 | #define DIGEST_H
3 |
4 | void digest_generate_nonce(char *result, int resultlen);
5 | int digest_is_valid(const char *our_realm, const char *password,
6 | const char *our_nonce, const char *method,
7 | const char *our_uri, const char *authorization);
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/dnssd.h:
--------------------------------------------------------------------------------
1 | #ifndef DNSSD_H
2 | #define DNSSD_H
3 |
4 | #if defined(WIN32) && defined(DLL_EXPORT)
5 | # define DNSSD_API __declspec(dllexport)
6 | #else
7 | # define DNSSD_API
8 | #endif
9 |
10 | #ifdef __cplusplus
11 | extern "C" {
12 | #endif
13 |
14 | #define DNSSD_ERROR_NOERROR 0
15 | #define DNSSD_ERROR_HWADDRLEN 1
16 | #define DNSSD_ERROR_OUTOFMEM 2
17 | #define DNSSD_ERROR_LIBNOTFOUND 3
18 | #define DNSSD_ERROR_PROCNOTFOUND 4
19 |
20 | typedef struct dnssd_s dnssd_t;
21 |
22 | DNSSD_API dnssd_t *dnssd_init(int *error);
23 |
24 | DNSSD_API int dnssd_register_raop(dnssd_t *dnssd, const char *name, unsigned short port, const char *hwaddr, int hwaddrlen, char* password);
25 | DNSSD_API int dnssd_register_airplay(dnssd_t *dnssd, const char *name, unsigned short port, const char *hwaddr, int hwaddrlen);
26 |
27 | DNSSD_API void dnssd_unregister_raop(dnssd_t *dnssd);
28 | DNSSD_API void dnssd_unregister_airplay(dnssd_t *dnssd);
29 |
30 | DNSSD_API void dnssd_destroy(dnssd_t *dnssd);
31 |
32 | #ifdef __cplusplus
33 | }
34 | #endif
35 | #endif
36 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/dnssdint.h:
--------------------------------------------------------------------------------
1 | #ifndef DNSSDINT_H
2 | #define DNSSDINT_H
3 |
4 | #define RAOP_TXTVERS "1"
5 | #define RAOP_CH "2" /* Audio channels: 2 */
6 | #define RAOP_CN "0,1,3" /* Audio codec: PCM, ALAC 0,1,2,3 */
7 | #define RAOP_ET "0,3,5" /* Encryption type: none, RSA */
8 | #define RAOP_SV "false"
9 | #define RAOP_DA "true"
10 | #define RAOP_SR "44100"
11 | #define RAOP_SS "16" /* Sample size: 16 */
12 | #define RAOP_VN "3"
13 | #define RAOP_TP "UDP"
14 | #define RAOP_MD "0,1,2" /* Metadata: text, artwork, progress */
15 | #define RAOP_SM "false"
16 | #define RAOP_EK "1"
17 | #define RAOP_SF "0x4"
18 | #define RAOP_VS "130.14"
19 | #define RAOP_AM "Shairport,1"
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fairplay.h:
--------------------------------------------------------------------------------
1 | #ifndef __FAIRPLAY_H__
2 | #define __FAIRPLAY_H__
3 |
4 | #ifdef __cplusplus
5 | extern "C" {
6 | #endif
7 |
8 |
9 | unsigned char *fairplay_query(int cmd, const unsigned char *data, int len, int *size_p);
10 |
11 | void sha512msg(const unsigned char *msg1, size_t msg1_len, const unsigned char *msg2, size_t msg2_len, unsigned char *out);
12 | void sha512msg2(const char *msg1, const char *msg2, const char *key, char *digest1, char *digest2);
13 |
14 | #ifdef __cplusplus
15 | }
16 | #endif
17 |
18 |
19 | #endif
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_archdef.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_archdef.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_audio.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_audio.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_bitbuffer.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_bitbuffer.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_bitstream.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_bitstream.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_core.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_core.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_crc.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_crc.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_hybrid.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_hybrid.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_tools_rom.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_tools_rom.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_trigFcts.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/FDK_trigFcts.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/aacdecoder_lib.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/aacdecoder_lib.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/aacenc_lib.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/aacenc_lib.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/abs.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/abs.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/arm/clz_arm.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/arm/clz_arm.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/arm/cplx_mul.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/arm/cplx_mul.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/arm/fixmadd_arm.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/arm/fixmadd_arm.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/arm/fixmul_arm.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/arm/fixmul_arm.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/arm/scale.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/arm/scale.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/arm/scramble.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/arm/scramble.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/audio.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/audio.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/autocorr2nd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/autocorr2nd.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/clz.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/clz.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/cmdl_parser.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/cmdl_parser.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/common_fix.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/common_fix.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/conv_string.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/conv_string.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/cplx_mul.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/cplx_mul.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/dct.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/dct.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/fft.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/fft.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/fft_rad2.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/fft_rad2.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/fixmadd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/fixmadd.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/fixminmax.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/fixminmax.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/fixmul.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/fixmul.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/fixpoint_math.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/fixpoint_math.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/genericStds.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/genericStds.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/machine_type.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/machine_type.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/mdct.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/mdct.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/abs_mips.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/abs_mips.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/clz_mips.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/clz_mips.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/cplx_mul.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/cplx_mul.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/fixmadd_mips.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/fixmadd_mips.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/fixmul_mips.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/fixmul_mips.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/scale.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/scale.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/scramble.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/mips/scramble.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/mpegFileRead.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/mpegFileRead.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/mpegFileWrite.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/mpegFileWrite.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/pcmutils_lib.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/pcmutils_lib.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/qmf.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/qmf.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/sbr_encoder.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/sbr_encoder.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/sbrdecoder.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/sbrdecoder.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/scale.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/scale.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/scramble.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/scramble.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/tp_data.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/tp_data.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/tpdec_lib.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/tpdec_lib.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/tpenc_lib.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/tpenc_lib.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/wav_file.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/wav_file.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/x86/abs_x86.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/x86/abs_x86.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/include/x86/fixmul_x86.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/include/x86/fixmul_x86.h
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/lib/libfdk.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/lib/libfdk.dll
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/lib/libfdk.exp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/lib/libfdk.exp
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/fdkaac/lib/libfdk.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/fdkaac/lib/libfdk.lib
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/global.h:
--------------------------------------------------------------------------------
1 | #ifndef GLOBAL_H
2 | #define GLOBAL_H
3 |
4 | #define GLOBAL_FEATURES 0x7
5 | #define GLOBAL_MODEL "AppleTV2,1"
6 | #define GLOBAL_VERSION "220.68" //"130.14"
7 |
8 | #define GLOBAL_FEATURES_AIRPLAY 0x29ff
9 |
10 | #define AIRPLAY_RMODEL "Android1,0"
11 |
12 | #define MAX_HWADDR_LEN 6
13 |
14 | #ifdef __cplusplus
15 | extern "C" {
16 | #endif
17 |
18 | #include "mycrypt.h"
19 |
20 | struct air_pair_s {
21 | unsigned char cv_pub[32];
22 | unsigned char cv_pri[32];
23 | unsigned char cv_sha[32];
24 | unsigned char cv_his[32];
25 |
26 | unsigned char ed_pub[32];
27 | unsigned char ed_pri[64];
28 | unsigned char ed_his[32];
29 |
30 | unsigned char ctr_key[16];
31 | unsigned char ctr_iv[16];
32 | unsigned char ctr_ec[16];
33 | unsigned int ctr_num;
34 |
35 | AES_KEY aes_key;
36 | };
37 | typedef struct air_pair_s air_pair_t;
38 |
39 | #ifdef __cplusplus
40 | }
41 | #endif
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/http_request.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef HTTP_REQUEST_H
16 | #define HTTP_REQUEST_H
17 |
18 | typedef struct http_request_s http_request_t;
19 |
20 |
21 | http_request_t *http_request_init(void);
22 |
23 | int http_request_add_data(http_request_t *request, const char *data, int datalen);
24 | int http_request_is_complete(http_request_t *request);
25 | int http_request_has_error(http_request_t *request);
26 |
27 | const char *http_request_get_error_name(http_request_t *request);
28 | const char *http_request_get_error_description(http_request_t *request);
29 | const char *http_request_get_method(http_request_t *request);
30 | const char *http_request_get_url(http_request_t *request);
31 | const char *http_request_get_header(http_request_t *request, const char *name);
32 | const char *http_request_get_iheader(http_request_t *request, const char *name);
33 | const char *http_request_get_data(http_request_t *request, int *datalen);
34 |
35 | void http_request_destroy(http_request_t *request);
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/http_response.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef HTTP_RESPONSE_H
16 | #define HTTP_RESPONSE_H
17 |
18 | typedef struct http_response_s http_response_t;
19 |
20 | http_response_t *http_response_init(const char *protocol, int code, const char *message);
21 |
22 | void http_response_add_header(http_response_t *response, const char *name, const char *value);
23 | void http_response_finish(http_response_t *response, const char *data, int datalen);
24 |
25 | void http_response_set_disconnect(http_response_t *response, int disconnect);
26 | int http_response_get_disconnect(http_response_t *response);
27 |
28 | const char *http_response_get_data(http_response_t *response, int *datalen);
29 |
30 | void http_response_destroy(http_response_t *response);
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/httpd.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef HTTPD_H
16 | #define HTTPD_H
17 |
18 | #include "logger.h"
19 | #include "http_request.h"
20 | #include "http_response.h"
21 |
22 | typedef struct httpd_s httpd_t;
23 |
24 | extern unsigned short g_port_seted;
25 | extern unsigned short g_event_port;
26 | extern unsigned __int8 g_set_codec;
27 |
28 | struct httpd_callbacks_s {
29 | void* opaque;
30 | void* (*conn_init)(void *opaque, unsigned char *local, int locallen, unsigned char *remote, int remotelen);
31 | void (*conn_request)(void *ptr, http_request_t *request, http_response_t **response);
32 | void (*conn_destroy)(void *ptr);
33 | void (*conn_datafeed)(void *ptr, unsigned char *data, int size);
34 | };
35 | typedef struct httpd_callbacks_s httpd_callbacks_t;
36 |
37 | httpd_t *httpd_init(logger_t *logger, httpd_callbacks_t *callbacks, int max_connections, int id);
38 | int httpd_is_running(httpd_t *httpd);
39 | int httpd_start(httpd_t *httpd, unsigned short *port);
40 | void httpd_stop(httpd_t *httpd);
41 | void httpd_destroy(httpd_t *httpd);
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/libfdk.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/libfdk.dll
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/libfdk.exp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/libfdk.exp
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/libfdk.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/libfdk.lib
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/libplist.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/libplist.dll
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/logger.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef LOGGER_H
16 | #define LOGGER_H
17 |
18 | /* Define syslog style log levels */
19 | #define LOGGER_EMERG 0 /* system is unusable */
20 | #define LOGGER_ALERT 1 /* action must be taken immediately */
21 | #define LOGGER_CRIT 2 /* critical conditions */
22 | #define LOGGER_ERR 3 /* error conditions */
23 | #define LOGGER_WARNING 4 /* warning conditions */
24 | #define LOGGER_NOTICE 5 /* normal but significant condition */
25 | #define LOGGER_INFO 6 /* informational */
26 | #define LOGGER_DEBUG 7 /* debug-level messages */
27 |
28 | typedef void (*logger_callback_t)(void *cls, int level, const char *msg);
29 |
30 | typedef struct logger_s logger_t;
31 |
32 | logger_t *logger_init();
33 | void logger_destroy(logger_t *logger);
34 |
35 | void logger_set_level(logger_t *logger, int level);
36 | void logger_set_callback(logger_t *logger, logger_callback_t callback, void *cls);
37 |
38 | void logger_log(logger_t *logger, int level, const char *fmt, ...);
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/memalign.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef MEMALIGN_H
16 | #define MEMALIGN_H
17 |
18 | #if defined(WIN32)
19 |
20 | #define SYSTEM_GET_PAGESIZE(ret) do {\
21 | SYSTEM_INFO si;\
22 | GetSystemInfo(&si);\
23 | ret = si.dwPageSize;\
24 | } while(0)
25 | #define SYSTEM_GET_TIME(ret) ret = timeGetTime()
26 |
27 | #define ALIGNED_MALLOC(memptr, alignment, size) do {\
28 | char *ptr = malloc(sizeof(void*) + (size) + (alignment)-1);\
29 | memptr = NULL;\
30 | if (ptr) {\
31 | size_t ptrval = (size_t)ptr + sizeof(void*) + (alignment)-1;\
32 | ptrval = ptrval / (alignment) * (alignment);\
33 | memptr = (void *)ptrval;\
34 | *(((void **)memptr)-1) = ptr;\
35 | }\
36 | } while(0)
37 | #define ALIGNED_FREE(memptr) free(*(((void **)memptr)-1))
38 |
39 | #else
40 |
41 | #define SYSTEM_GET_PAGESIZE(ret) ret = sysconf(_SC_PAGESIZE)
42 | #define SYSTEM_GET_TIME(ret) do {\
43 | struct timeval tv;\
44 | gettimeofday(&tv, NULL);\
45 | ret = (unsigned int)(tv.tv_sec*1000 + tv.tv_usec/1000);\
46 | } while(0)
47 |
48 | #define ALIGNED_MALLOC(memptr, alignment, size) if (posix_memalign((void **)&memptr, alignment, size)) memptr = NULL
49 | #define ALIGNED_FREE(memptr) free(memptr)
50 |
51 | #endif
52 |
53 | #endif
54 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/mycrypt.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/mycrypt.dll
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/mycrypt.exp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/mycrypt.exp
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/mycrypt.ilk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/mycrypt.ilk
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/mycrypt.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/mycrypt.lib
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/mycrypt.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplayLibrary/AirPlay/lib/mycrypt.pdb
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/netutils.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef NETUTILS_H
16 | #define NETUTILS_H
17 |
18 | int netutils_init();
19 | void netutils_cleanup();
20 |
21 | int netutils_init_socket(unsigned short *port, int use_ipv6, int use_udp);
22 | unsigned char *netutils_get_address(void *sockaddr, int *length);
23 | int netutils_parse_address(int family, const char *src, void *dst, int dstlen);
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/plistlib.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include
4 | #include
5 |
6 | #define plist_EXPORTS
7 |
8 | #include "plist.h"
9 |
10 | BOOL init_plist_funcs();
11 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/raop_buffer.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef RAOP_BUFFER_H
16 | #define RAOP_BUFFER_H
17 |
18 | typedef struct raop_buffer_s raop_buffer_t;
19 |
20 | /* From ALACMagicCookieDescription.txt at http://http://alac.macosforge.org/ */
21 | typedef struct {
22 | unsigned int frameLength;
23 | unsigned char compatibleVersion;
24 | unsigned char bitDepth;
25 | unsigned char pb;
26 | unsigned char mb;
27 | unsigned char kb;
28 | unsigned char numChannels;
29 | unsigned short maxRun;
30 | unsigned int maxFrameBytes;
31 | unsigned int avgBitRate;
32 | unsigned int sampleRate;
33 | } ALACSpecificConfig;
34 |
35 | typedef int (*raop_resend_cb_t)(void *opaque, unsigned short seqno, unsigned short count);
36 |
37 | raop_buffer_t *raop_buffer_init(const char *rtpmap, const char *fmtp, const unsigned char *aeskey, const unsigned char *aesiv, int et, int cn);
38 |
39 | const ALACSpecificConfig *raop_buffer_get_config(raop_buffer_t *raop_buffer);
40 | int raop_buffer_queue(raop_buffer_t *raop_buffer, unsigned char *data, unsigned short datalen, int use_seqnum);
41 | const void *raop_buffer_dequeue(raop_buffer_t *raop_buffer, int *length, int no_resend);
42 | void raop_buffer_handle_resends(raop_buffer_t *raop_buffer, raop_resend_cb_t resend_cb, void *opaque);
43 | void raop_buffer_flush(raop_buffer_t *raop_buffer, int next_seq);
44 |
45 | void raop_buffer_destroy(raop_buffer_t *raop_buffer);
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/raop_rtp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef RAOP_RTP_H
16 | #define RAOP_RTP_H
17 |
18 | /* For raop_callbacks_t */
19 | #include "raop.h"
20 | #include "logger.h"
21 |
22 | #define RAOP_AESKEY_LEN 16
23 | #define RAOP_AESIV_LEN 16
24 | #define RAOP_PACKET_LEN 32768
25 |
26 | typedef struct raop_rtp_s raop_rtp_t;
27 |
28 | raop_rtp_t *raop_rtp_init(logger_t *logger, raop_callbacks_t *callbacks, const char *remote,
29 | const char *rtpmap, const char *fmtp,
30 | const unsigned char *aeskey, const unsigned char *aesiv);
31 | void raop_rtp_start(raop_rtp_t *raop_rtp, int use_udp, unsigned short control_rport, unsigned short timing_rport,
32 | unsigned short *control_lport, unsigned short *timing_lport, unsigned short *data_lport);
33 | void raop_rtp_set_volume(raop_rtp_t *raop_rtp, float volume);
34 | void raop_rtp_set_metadata(raop_rtp_t *raop_rtp, const char *data, int datalen);
35 | void raop_rtp_set_coverart(raop_rtp_t *raop_rtp, const char *data, int datalen);
36 | void raop_rtp_remote_control_id(raop_rtp_t *raop_rtp, const char *dacp_id, const char *active_remote_header);
37 | void raop_rtp_set_progress(raop_rtp_t *raop_rtp, unsigned int start, unsigned int curr, unsigned int end);
38 | void raop_rtp_flush(raop_rtp_t *raop_rtp, int next_seq);
39 | void raop_rtp_stop(raop_rtp_t *raop_rtp);
40 | void raop_rtp_destroy(raop_rtp_t *raop_rtp);
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/sdp.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef SDP_H
16 | #define SDP_H
17 |
18 | typedef struct sdp_s sdp_t;
19 |
20 | sdp_t *sdp_init(const char *sdpdata, int sdpdatalen);
21 |
22 | const char *sdp_get_version(sdp_t *sdp);
23 | const char *sdp_get_origin(sdp_t *sdp);
24 | const char *sdp_get_session(sdp_t *sdp);
25 | const char *sdp_get_connection(sdp_t *sdp);
26 | const char *sdp_get_time(sdp_t *sdp);
27 | const char *sdp_get_media(sdp_t *sdp);
28 | const char *sdp_get_rtpmap(sdp_t *sdp);
29 | const char *sdp_get_fmtp(sdp_t *sdp);
30 | const char *sdp_get_rsaaeskey(sdp_t *sdp);
31 | const char *sdp_get_fpaeskey(sdp_t *sdp);
32 | const char *sdp_get_aesiv(sdp_t *sdp);
33 | const char *sdp_get_min_latency(sdp_t *sdp);
34 |
35 | void sdp_destroy(sdp_t *sdp);
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/sockets.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef SOCKETS_H
16 | #define SOCKETS_H
17 |
18 | #if defined(WIN32)
19 | typedef int socklen_t;
20 |
21 | #ifndef SHUT_RD
22 | # define SHUT_RD SD_RECEIVE
23 | #endif
24 | #ifndef SHUT_WR
25 | # define SHUT_WR SD_SEND
26 | #endif
27 | #ifndef SHUT_RDWR
28 | # define SHUT_RDWR SD_BOTH
29 | #endif
30 |
31 | #define SOCKET_GET_ERROR() WSAGetLastError()
32 | #define SOCKET_SET_ERROR(value) WSASetLastError(value)
33 | #define SOCKET_ERRORNAME(name) WSA##name
34 |
35 | #define WSAEAGAIN WSAEWOULDBLOCK
36 | #define WSAENOMEM WSA_NOT_ENOUGH_MEMORY
37 |
38 | #else
39 |
40 | #define closesocket close
41 | #define ioctlsocket ioctl
42 |
43 | #define SOCKET_GET_ERROR() (errno)
44 | #define SOCKET_SET_ERROR(value) (errno = (value))
45 | #define SOCKET_ERRORNAME(name) name
46 |
47 | #endif
48 |
49 | #endif
50 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/threads.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef THREADS_H
16 | #define THREADS_H
17 |
18 | #if defined(WIN32)
19 | #include
20 |
21 | #define sleepms(x) Sleep(x)
22 |
23 | typedef HANDLE thread_handle_t;
24 |
25 | #define THREAD_RETVAL DWORD WINAPI
26 | #define THREAD_CREATE(handle, func, arg) \
27 | handle = CreateThread(NULL, 0, func, arg, 0, NULL)
28 | #define THREAD_JOIN(handle) do { WaitForSingleObject(handle, INFINITE); CloseHandle(handle); } while(0)
29 |
30 | typedef HANDLE mutex_handle_t;
31 |
32 | #define MUTEX_CREATE(handle) handle = CreateMutex(NULL, FALSE, NULL)
33 | #define MUTEX_LOCK(handle) WaitForSingleObject(handle, INFINITE)
34 | #define MUTEX_UNLOCK(handle) ReleaseMutex(handle)
35 | #define MUTEX_DESTROY(handle) CloseHandle(handle)
36 |
37 | #else /* Use pthread library */
38 |
39 | #include
40 | #include
41 |
42 | #define sleepms(x) usleep((x)*1000)
43 |
44 | typedef pthread_t thread_handle_t;
45 |
46 | #define THREAD_RETVAL void *
47 | #define THREAD_CREATE(handle, func, arg) \
48 | if (pthread_create(&(handle), NULL, func, arg)) handle = 0
49 | #define THREAD_JOIN(handle) pthread_join(handle, NULL)
50 |
51 | typedef pthread_mutex_t mutex_handle_t;
52 |
53 | #define MUTEX_CREATE(handle) pthread_mutex_init(&(handle), NULL)
54 | #define MUTEX_LOCK(handle) pthread_mutex_lock(&(handle))
55 | #define MUTEX_UNLOCK(handle) pthread_mutex_unlock(&(handle))
56 | #define MUTEX_DESTROY(handle) pthread_mutex_destroy(&(handle))
57 |
58 | #endif
59 |
60 | #endif /* THREADS_H */
61 |
--------------------------------------------------------------------------------
/AirplayLibrary/AirPlay/lib/utils.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef UTILS_H
16 | #define UTILS_H
17 |
18 | char* bin2hex(const unsigned char *buf, int len);
19 | void* memdup(void* src, int size);
20 | char *utils_strsep(char **stringp, const char *delim);
21 | int utils_read_file(char **dst, const char *pemstr);
22 | int utils_hwaddr_raop(char *str, int strlen, const char *hwaddr, int hwaddrlen);
23 | int utils_hwaddr_airplay(char *str, int strlen, const char *hwaddr, int hwaddrlen);
24 | int recv_wait(int sockt, void *buf, signed int len);
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/AirPlay.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/AirPlay.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/SDL.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/SDL.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/airport.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIIEpQIBAAKCAQEA59dE8qLieItsH1WgjrcFRKj6eUWqi+bGLOX1HL3U3GhC/j0Qg90u3sG/1CUt
3 | wC5vOYvfDmFI6oSFXi5ELabWJmT2dKHzBJKa3k9ok+8t9ucRqMd6DZHJ2YCCLlDRKSKv6kDqnw4U
4 | wPdpOMXziC/AMj3Z/lUVX1G7WSHCAWKf1zNS1eLvqr+boEjXuBOitnZ/bDzPHrTOZz0Dew0uowxf
5 | /+sG+NCK3eQJVxqcaJ/vEHKIVd2M+5qL71yJQ+87X6oV3eaYvt3zWZYD6z5vYTcrtij2VZ9Zmni/
6 | UAaHqn9JdsBWLUEpVviYnhimNVvYFZeCXg/IdTQ+x4IRdiXNv5hEewIDAQABAoIBAQDl8Axy9XfW
7 | BLmkzkEiqoSwF0PsmVrPzH9KsnwLGH+QZlvjWd8SWYGN7u1507HvhF5N3drJoVU3O14nDY4TFQAa
8 | LlJ9VM35AApXaLyY1ERrN7u9ALKd2LUwYhM7Km539O4yUFYikE2nIPscEsA5ltpxOgUGCY7b7ez5
9 | NtD6nL1ZKauw7aNXmVAvmJTcuPxWmoktF3gDJKK2wxZuNGcJE0uFQEG4Z3BrWP7yoNuSK3dii2jm
10 | lpPHr0O/KnPQtzI3eguhe0TwUem/eYSdyzMyVx/YpwkzwtYL3sR5k0o9rKQLtvLzfAqdBxBurciz
11 | aaA/L0HIgAmOit1GJA2saMxTVPNhAoGBAPfgv1oeZxgxmotiCcMXFEQEWflzhWYTsXrhUIuz5jFu
12 | a39GLS99ZEErhLdrwj8rDDViRVJ5skOp9zFvlYAHs0xh92ji1E7V/ysnKBfsMrPkk5KSKPrnjndM
13 | oPdevWnVkgJ5jxFuNgxkOLMuG9i53B4yMvDTCRiIPMQ++N2iLDaRAoGBAO9v//mU8eVkQaoANf0Z
14 | oMjW8CN4xwWA2cSEIHkd9AfFkftuv8oyLDCG3ZAf0vrhrrtkrfa7ef+AUb69DNggq4mHQAYBp7L+
15 | k5DKzJrKuO0r+R0YbY9pZD1+/g9dVt91d6LQNepUE/yY2PP5CNoFmjedpLHMOPFdVgqDzDFxU8hL
16 | AoGBANDrr7xAJbqBjHVwIzQ4To9pb4BNeqDndk5Qe7fT3+/H1njGaC0/rXE0Qb7q5ySgnsCb3DvA
17 | cJyRM9SJ7OKlGt0FMSdJD5KG0XPIpAVNwgpXXH5MDJg09KHeh0kXo+QA6viFBi21y340NonnEfdf
18 | 54PX4ZGS/Xac1UK+pLkBB+zRAoGAf0AY3H3qKS2lMEI4bzEFoHeK3G895pDaK3TFBVmD7fV0Zhov
19 | 17fegFPMwOII8MisYm9ZfT2Z0s5Ro3s5rkt+nvLAdfC/PYPKzTLalpGSwomSNYJcB9HNMlmhkGzc
20 | 1JnLYT4iyUyx6pcZBmCd8bD0iwY/FzcgNDaUmbX9+XDvRA0CgYEAkE7pIPlE71qvfJQgoA9em0gI
21 | LAuE4Pu13aKiJnfft7hIjbK+5kyb3TysZvoyDnb3HOKvInK7vXbKuU4ISgxB2bB3HcYzQMGsz1qJ
22 | 2gG0N5hvJpzwwhbhXqFKA4zaaSrw622wDniAK5MlIE0tIAKKP4yxNGjoD2QYjhBGuhvkWKY=
23 | -----END RSA PRIVATE KEY-----
24 |
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/avcodec-55.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/avcodec-55.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/avdevice-55.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/avdevice-55.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/avfilter-4.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/avfilter-4.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/avformat-55.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/avformat-55.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/avutil-52.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/avutil-52.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/libfdk.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/libfdk.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/libiconv-2.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/libiconv-2.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/libplist.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/libplist.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/libpthread-2.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/libpthread-2.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/libxml2-2.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/libxml2-2.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/mycrypt.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/mycrypt.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/postproc-52.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/postproc-52.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/swresample-0.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/swresample-0.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/swscale-2.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/swscale-2.dll
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/xindawn-airplay-sdk-example.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/xindawn-airplay-sdk-example.exe
--------------------------------------------------------------------------------
/AirplaySdkExample/Debug/xindawn-airplay-sdk-example_manifest.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/Debug/xindawn-airplay-sdk-example_manifest.rc
--------------------------------------------------------------------------------
/AirplaySdkExample/VideoSource.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/VideoSource.cpp
--------------------------------------------------------------------------------
/AirplaySdkExample/include/SDL/SDL_active.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2012 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Lesser General Public
7 | License as published by the Free Software Foundation; either
8 | version 2.1 of the License, or (at your option) any later version.
9 |
10 | This library is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | Lesser General Public License for more details.
14 |
15 | You should have received a copy of the GNU Lesser General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 |
23 | /**
24 | * @file SDL_active.h
25 | * Include file for SDL application focus event handling
26 | */
27 |
28 | #ifndef _SDL_active_h
29 | #define _SDL_active_h
30 |
31 | #include "SDL_stdinc.h"
32 | #include "SDL_error.h"
33 |
34 | #include "begin_code.h"
35 | /* Set up for C function definitions, even when using C++ */
36 | #ifdef __cplusplus
37 | extern "C" {
38 | #endif
39 |
40 | /** @name The available application states */
41 | /*@{*/
42 | #define SDL_APPMOUSEFOCUS 0x01 /**< The app has mouse coverage */
43 | #define SDL_APPINPUTFOCUS 0x02 /**< The app has input focus */
44 | #define SDL_APPACTIVE 0x04 /**< The application is active */
45 | /*@}*/
46 |
47 | /* Function prototypes */
48 | /**
49 | * This function returns the current state of the application, which is a
50 | * bitwise combination of SDL_APPMOUSEFOCUS, SDL_APPINPUTFOCUS, and
51 | * SDL_APPACTIVE. If SDL_APPACTIVE is set, then the user is able to
52 | * see your application, otherwise it has been iconified or disabled.
53 | */
54 | extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void);
55 |
56 |
57 | /* Ends C function definitions when using C++ */
58 | #ifdef __cplusplus
59 | }
60 | #endif
61 | #include "close_code.h"
62 |
63 | #endif /* _SDL_active_h */
64 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/SDL/SDL_byteorder.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2012 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Lesser General Public
7 | License as published by the Free Software Foundation; either
8 | version 2.1 of the License, or (at your option) any later version.
9 |
10 | This library is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | Lesser General Public License for more details.
14 |
15 | You should have received a copy of the GNU Lesser General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 |
23 | /**
24 | * @file SDL_byteorder.h
25 | * @deprecated Use SDL_endian.h instead
26 | */
27 |
28 | /* DEPRECATED */
29 | #include "SDL_endian.h"
30 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/SDL/SDL_config.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2012 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Lesser General Public
7 | License as published by the Free Software Foundation; either
8 | version 2.1 of the License, or (at your option) any later version.
9 |
10 | This library is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | Lesser General Public License for more details.
14 |
15 | You should have received a copy of the GNU Lesser General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 |
23 | #ifndef _SDL_config_h
24 | #define _SDL_config_h
25 |
26 | #include "SDL_platform.h"
27 |
28 | /* Add any platform that doesn't build using the configure system */
29 | #if defined(__DREAMCAST__)
30 | #include "SDL_config_dreamcast.h"
31 | #elif defined(__MACOS__)
32 | #include "SDL_config_macos.h"
33 | #elif defined(__MACOSX__)
34 | #include "SDL_config_macosx.h"
35 | #elif defined(__SYMBIAN32__)
36 | #include "SDL_config_symbian.h" /* must be before win32! */
37 | #elif defined(__WIN32__)
38 | #include "SDL_config_win32.h"
39 | #elif defined(__OS2__)
40 | #include "SDL_config_os2.h"
41 | #else
42 | #include "SDL_config_minimal.h"
43 | #endif /* platform config */
44 |
45 | #endif /* _SDL_config_h */
46 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/SDL/SDL_config_minimal.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2012 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Lesser General Public
7 | License as published by the Free Software Foundation; either
8 | version 2.1 of the License, or (at your option) any later version.
9 |
10 | This library is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | Lesser General Public License for more details.
14 |
15 | You should have received a copy of the GNU Lesser General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 |
23 | #ifndef _SDL_config_minimal_h
24 | #define _SDL_config_minimal_h
25 |
26 | #include "SDL_platform.h"
27 |
28 | /* This is the minimal configuration that can be used to build SDL */
29 |
30 | #include
31 |
32 | typedef signed char int8_t;
33 | typedef unsigned char uint8_t;
34 | typedef signed short int16_t;
35 | typedef unsigned short uint16_t;
36 | typedef signed int int32_t;
37 | typedef unsigned int uint32_t;
38 | typedef unsigned int size_t;
39 | typedef unsigned long uintptr_t;
40 |
41 | /* Enable the dummy audio driver (src/audio/dummy/\*.c) */
42 | #define SDL_AUDIO_DRIVER_DUMMY 1
43 |
44 | /* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
45 | #define SDL_CDROM_DISABLED 1
46 |
47 | /* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
48 | #define SDL_JOYSTICK_DISABLED 1
49 |
50 | /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
51 | #define SDL_LOADSO_DISABLED 1
52 |
53 | /* Enable the stub thread support (src/thread/generic/\*.c) */
54 | #define SDL_THREADS_DISABLED 1
55 |
56 | /* Enable the stub timer support (src/timer/dummy/\*.c) */
57 | #define SDL_TIMERS_DISABLED 1
58 |
59 | /* Enable the dummy video driver (src/video/dummy/\*.c) */
60 | #define SDL_VIDEO_DRIVER_DUMMY 1
61 |
62 | #endif /* _SDL_config_minimal_h */
63 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/SDL/SDL_copying.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2012 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Lesser General Public
7 | License as published by the Free Software Foundation; either
8 | version 2.1 of the License, or (at your option) any later version.
9 |
10 | This library is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | Lesser General Public License for more details.
14 |
15 | You should have received a copy of the GNU Lesser General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 |
23 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/SDL/SDL_error.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2012 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Lesser General Public
7 | License as published by the Free Software Foundation; either
8 | version 2.1 of the License, or (at your option) any later version.
9 |
10 | This library is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | Lesser General Public License for more details.
14 |
15 | You should have received a copy of the GNU Lesser General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 |
23 | /**
24 | * @file SDL_error.h
25 | * Simple error message routines for SDL
26 | */
27 |
28 | #ifndef _SDL_error_h
29 | #define _SDL_error_h
30 |
31 | #include "SDL_stdinc.h"
32 |
33 | #include "begin_code.h"
34 | /* Set up for C function definitions, even when using C++ */
35 | #ifdef __cplusplus
36 | extern "C" {
37 | #endif
38 |
39 | /**
40 | * @name Public functions
41 | */
42 | /*@{*/
43 | extern DECLSPEC void SDLCALL SDL_SetError(const char *fmt, ...);
44 | extern DECLSPEC char * SDLCALL SDL_GetError(void);
45 | extern DECLSPEC void SDLCALL SDL_ClearError(void);
46 | /*@}*/
47 |
48 | /**
49 | * @name Private functions
50 | * @internal Private error message function - used internally
51 | */
52 | /*@{*/
53 | #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM)
54 | #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED)
55 | typedef enum {
56 | SDL_ENOMEM,
57 | SDL_EFREAD,
58 | SDL_EFWRITE,
59 | SDL_EFSEEK,
60 | SDL_UNSUPPORTED,
61 | SDL_LASTERROR
62 | } SDL_errorcode;
63 | extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code);
64 | /*@}*/
65 |
66 | /* Ends C function definitions when using C++ */
67 | #ifdef __cplusplus
68 | }
69 | #endif
70 | #include "close_code.h"
71 |
72 | #endif /* _SDL_error_h */
73 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/SDL/SDL_getenv.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2012 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Lesser General Public
7 | License as published by the Free Software Foundation; either
8 | version 2.1 of the License, or (at your option) any later version.
9 |
10 | This library is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | Lesser General Public License for more details.
14 |
15 | You should have received a copy of the GNU Lesser General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 |
23 | /** @file SDL_getenv.h
24 | * @deprecated Use SDL_stdinc.h instead
25 | */
26 |
27 | /* DEPRECATED */
28 | #include "SDL_stdinc.h"
29 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/SDL/SDL_name.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef _SDLname_h_
3 | #define _SDLname_h_
4 |
5 | #if defined(__STDC__) || defined(__cplusplus)
6 | #define NeedFunctionPrototypes 1
7 | #endif
8 |
9 | #define SDL_NAME(X) SDL_##X
10 |
11 | #endif /* _SDLname_h_ */
12 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/SDL/SDL_quit.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2012 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Lesser General Public
7 | License as published by the Free Software Foundation; either
8 | version 2.1 of the License, or (at your option) any later version.
9 |
10 | This library is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | Lesser General Public License for more details.
14 |
15 | You should have received a copy of the GNU Lesser General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 |
23 | /** @file SDL_quit.h
24 | * Include file for SDL quit event handling
25 | */
26 |
27 | #ifndef _SDL_quit_h
28 | #define _SDL_quit_h
29 |
30 | #include "SDL_stdinc.h"
31 | #include "SDL_error.h"
32 |
33 | /** @file SDL_quit.h
34 | * An SDL_QUITEVENT is generated when the user tries to close the application
35 | * window. If it is ignored or filtered out, the window will remain open.
36 | * If it is not ignored or filtered, it is queued normally and the window
37 | * is allowed to close. When the window is closed, screen updates will
38 | * complete, but have no effect.
39 | *
40 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt)
41 | * and SIGTERM (system termination request), if handlers do not already
42 | * exist, that generate SDL_QUITEVENT events as well. There is no way
43 | * to determine the cause of an SDL_QUITEVENT, but setting a signal
44 | * handler in your application will override the default generation of
45 | * quit events for that signal.
46 | */
47 |
48 | /** @file SDL_quit.h
49 | * There are no functions directly affecting the quit event
50 | */
51 |
52 | #define SDL_QuitRequested() \
53 | (SDL_PumpEvents(), SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUITMASK))
54 |
55 | #endif /* _SDL_quit_h */
56 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/SDL/SDL_types.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2012 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Lesser General Public
7 | License as published by the Free Software Foundation; either
8 | version 2.1 of the License, or (at your option) any later version.
9 |
10 | This library is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | Lesser General Public License for more details.
14 |
15 | You should have received a copy of the GNU Lesser General Public
16 | License along with this library; if not, write to the Free Software
17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 |
23 | /** @file SDL_types.h
24 | * @deprecated Use SDL_stdinc.h instead.
25 | */
26 |
27 | /* DEPRECATED */
28 | #include "SDL_stdinc.h"
29 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/SDL/close_code.h:
--------------------------------------------------------------------------------
1 | /*
2 | SDL - Simple DirectMedia Layer
3 | Copyright (C) 1997-2012 Sam Lantinga
4 |
5 | This library is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU Library General Public
7 | License as published by the Free Software Foundation; either
8 | version 2 of the License, or (at your option) any later version.
9 |
10 | This library is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | Library General Public License for more details.
14 |
15 | You should have received a copy of the GNU Library General Public
16 | License along with this library; if not, write to the Free
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 |
19 | Sam Lantinga
20 | slouken@libsdl.org
21 | */
22 |
23 | /**
24 | * @file close_code.h
25 | * This file reverses the effects of begin_code.h and should be included
26 | * after you finish any function and structure declarations in your headers
27 | */
28 |
29 | #undef _begin_code_h
30 |
31 | /**
32 | * @file close_code.h
33 | * Reset structure packing at previous byte alignment
34 | */
35 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__)
36 | #ifdef __BORLANDC__
37 | #pragma nopackwarning
38 | #endif
39 | #if (defined(__MWERKS__) && defined(__MACOS__))
40 | #pragma options align=reset
41 | #pragma enumsalwaysint reset
42 | #else
43 | #pragma pack(pop)
44 | #endif
45 | #endif /* Compiler needs structure packing set */
46 |
47 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/_mingw.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/include/_mingw.h
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavdevice/version.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | #ifndef AVDEVICE_VERSION_H
20 | #define AVDEVICE_VERSION_H
21 |
22 | /**
23 | * @file
24 | * @ingroup lavd
25 | * Libavdevice version macros
26 | */
27 |
28 | #include "libavutil/version.h"
29 |
30 | #define LIBAVDEVICE_VERSION_MAJOR 55
31 | #define LIBAVDEVICE_VERSION_MINOR 13
32 | #define LIBAVDEVICE_VERSION_MICRO 101
33 |
34 | #define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \
35 | LIBAVDEVICE_VERSION_MINOR, \
36 | LIBAVDEVICE_VERSION_MICRO)
37 | #define LIBAVDEVICE_VERSION AV_VERSION(LIBAVDEVICE_VERSION_MAJOR, \
38 | LIBAVDEVICE_VERSION_MINOR, \
39 | LIBAVDEVICE_VERSION_MICRO)
40 | #define LIBAVDEVICE_BUILD LIBAVDEVICE_VERSION_INT
41 |
42 | #define LIBAVDEVICE_IDENT "Lavd" AV_STRINGIFY(LIBAVDEVICE_VERSION)
43 |
44 | /**
45 | * FF_API_* defines may be placed below to indicate public API that will be
46 | * dropped at a future version bump. The defines themselves are not part of
47 | * the public API and may change, break or disappear at any time.
48 | */
49 |
50 | #endif /* AVDEVICE_VERSION_H */
51 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavfilter/avfiltergraph.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Filter graphs
3 | * copyright (c) 2007 Bobby Bingham
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVFILTER_AVFILTERGRAPH_H
23 | #define AVFILTER_AVFILTERGRAPH_H
24 |
25 | #include "avfilter.h"
26 | #include "libavutil/log.h"
27 |
28 | #endif /* AVFILTER_AVFILTERGRAPH_H */
29 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/adler32.h:
--------------------------------------------------------------------------------
1 | /*
2 | * copyright (c) 2006 Mans Rullgard
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_ADLER32_H
22 | #define AVUTIL_ADLER32_H
23 |
24 | #include
25 | #include "attributes.h"
26 |
27 | /**
28 | * @file
29 | * Public header for libavutil Adler32 hasher
30 | *
31 | * @defgroup lavu_adler32 Adler32
32 | * @ingroup lavu_crypto
33 | * @{
34 | */
35 |
36 | /**
37 | * Calculate the Adler32 checksum of a buffer.
38 | *
39 | * Passing the return value to a subsequent av_adler32_update() call
40 | * allows the checksum of multiple buffers to be calculated as though
41 | * they were concatenated.
42 | *
43 | * @param adler initial checksum value
44 | * @param buf pointer to input buffer
45 | * @param len size of input buffer
46 | * @return updated checksum
47 | */
48 | unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf,
49 | unsigned int len) av_pure;
50 |
51 | /**
52 | * @}
53 | */
54 |
55 | #endif /* AVUTIL_ADLER32_H */
56 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/aes.h:
--------------------------------------------------------------------------------
1 | /*
2 | * copyright (c) 2007 Michael Niedermayer
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_AES_H
22 | #define AVUTIL_AES_H
23 |
24 | #include
25 |
26 | #include "attributes.h"
27 | #include "version.h"
28 |
29 | /**
30 | * @defgroup lavu_aes AES
31 | * @ingroup lavu_crypto
32 | * @{
33 | */
34 |
35 | extern const int av_aes_size;
36 |
37 | struct AVAES;
38 |
39 | /**
40 | * Allocate an AVAES context.
41 | */
42 | struct AVAES *av_aes_alloc(void);
43 |
44 | /**
45 | * Initialize an AVAES context.
46 | * @param key_bits 128, 192 or 256
47 | * @param decrypt 0 for encryption, 1 for decryption
48 | */
49 | int av_aes_init(struct AVAES *a, const uint8_t *key, int key_bits, int decrypt);
50 |
51 | /**
52 | * Encrypt or decrypt a buffer using a previously initialized context.
53 | * @param count number of 16 byte blocks
54 | * @param dst destination array, can be equal to src
55 | * @param src source array, can be equal to dst
56 | * @param iv initialization vector for CBC mode, if NULL then ECB will be used
57 | * @param decrypt 0 for encryption, 1 for decryption
58 | */
59 | void av_aes_crypt(struct AVAES *a, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt);
60 |
61 | /**
62 | * @}
63 | */
64 |
65 | #endif /* AVUTIL_AES_H */
66 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/audioconvert.h:
--------------------------------------------------------------------------------
1 |
2 | #include "version.h"
3 |
4 | #if FF_API_AUDIOCONVERT
5 | #include "channel_layout.h"
6 | #endif
7 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/avconfig.h:
--------------------------------------------------------------------------------
1 | /* Generated by ffconf */
2 | #ifndef AVUTIL_AVCONFIG_H
3 | #define AVUTIL_AVCONFIG_H
4 | #define AV_HAVE_BIGENDIAN 0
5 | #define AV_HAVE_FAST_UNALIGNED 1
6 | #define AV_HAVE_INCOMPATIBLE_LIBAV_ABI 0
7 | #endif /* AVUTIL_AVCONFIG_H */
8 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/ffversion.h:
--------------------------------------------------------------------------------
1 | #ifndef AVUTIL_FFVERSION_H
2 | #define AVUTIL_FFVERSION_H
3 | #define FFMPEG_VERSION "N-62994-g2baf1c8"
4 | #endif /* AVUTIL_FFVERSION_H */
5 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/intfloat.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2011 Mans Rullgard
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_INTFLOAT_H
22 | #define AVUTIL_INTFLOAT_H
23 |
24 | #include
25 | #include "attributes.h"
26 |
27 | union av_intfloat32 {
28 | uint32_t i;
29 | float f;
30 | };
31 |
32 | union av_intfloat64 {
33 | uint64_t i;
34 | double f;
35 | };
36 |
37 | /**
38 | * Reinterpret a 32-bit integer as a float.
39 | */
40 | static av_always_inline float av_int2float(uint32_t i)
41 | {
42 | union av_intfloat32 v;
43 | v.i = i;
44 | return v.f;
45 | }
46 |
47 | /**
48 | * Reinterpret a float as a 32-bit integer.
49 | */
50 | static av_always_inline uint32_t av_float2int(float f)
51 | {
52 | union av_intfloat32 v;
53 | v.f = f;
54 | return v.i;
55 | }
56 |
57 | /**
58 | * Reinterpret a 64-bit integer as a double.
59 | */
60 | static av_always_inline double av_int2double(uint64_t i)
61 | {
62 | union av_intfloat64 v;
63 | v.i = i;
64 | return v.f;
65 | }
66 |
67 | /**
68 | * Reinterpret a double as a 64-bit integer.
69 | */
70 | static av_always_inline uint64_t av_double2int(double f)
71 | {
72 | union av_intfloat64 v;
73 | v.f = f;
74 | return v.i;
75 | }
76 |
77 | #endif /* AVUTIL_INTFLOAT_H */
78 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/intfloat_readwrite.h:
--------------------------------------------------------------------------------
1 | /*
2 | * copyright (c) 2005 Michael Niedermayer
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_INTFLOAT_READWRITE_H
22 | #define AVUTIL_INTFLOAT_READWRITE_H
23 |
24 | #include
25 |
26 | #include "attributes.h"
27 | #include "version.h"
28 |
29 | #if FF_API_INTFLOAT
30 | /* IEEE 80 bits extended float */
31 | typedef struct AVExtFloat {
32 | uint8_t exponent[2];
33 | uint8_t mantissa[8];
34 | } AVExtFloat;
35 |
36 | attribute_deprecated double av_int2dbl(int64_t v) av_const;
37 | attribute_deprecated float av_int2flt(int32_t v) av_const;
38 | attribute_deprecated double av_ext2dbl(const AVExtFloat ext) av_const;
39 | attribute_deprecated int64_t av_dbl2int(double d) av_const;
40 | attribute_deprecated int32_t av_flt2int(float d) av_const;
41 | attribute_deprecated AVExtFloat av_dbl2ext(double d) av_const;
42 | #endif /* FF_API_INTFLOAT */
43 |
44 | #endif /* AVUTIL_INTFLOAT_READWRITE_H */
45 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/lfg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Lagged Fibonacci PRNG
3 | * Copyright (c) 2008 Michael Niedermayer
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVUTIL_LFG_H
23 | #define AVUTIL_LFG_H
24 |
25 | typedef struct AVLFG {
26 | unsigned int state[64];
27 | int index;
28 | } AVLFG;
29 |
30 | void av_lfg_init(AVLFG *c, unsigned int seed);
31 |
32 | /**
33 | * Get the next random unsigned 32-bit number using an ALFG.
34 | *
35 | * Please also consider a simple LCG like state= state*1664525+1013904223,
36 | * it may be good enough and faster for your specific use case.
37 | */
38 | static inline unsigned int av_lfg_get(AVLFG *c){
39 | c->state[c->index & 63] = c->state[(c->index-24) & 63] + c->state[(c->index-55) & 63];
40 | return c->state[c->index++ & 63];
41 | }
42 |
43 | /**
44 | * Get the next random unsigned 32-bit number using a MLFG.
45 | *
46 | * Please also consider av_lfg_get() above, it is faster.
47 | */
48 | static inline unsigned int av_mlfg_get(AVLFG *c){
49 | unsigned int a= c->state[(c->index-55) & 63];
50 | unsigned int b= c->state[(c->index-24) & 63];
51 | return c->state[c->index++ & 63] = 2*a*b+a+b;
52 | }
53 |
54 | /**
55 | * Get the next two numbers generated by a Box-Muller Gaussian
56 | * generator using the random numbers issued by lfg.
57 | *
58 | * @param out array where the two generated numbers are placed
59 | */
60 | void av_bmg_get(AVLFG *lfg, double out[2]);
61 |
62 | #endif /* AVUTIL_LFG_H */
63 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/lzo.h:
--------------------------------------------------------------------------------
1 | /*
2 | * LZO 1x decompression
3 | * copyright (c) 2006 Reimar Doeffinger
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVUTIL_LZO_H
23 | #define AVUTIL_LZO_H
24 |
25 | /**
26 | * @defgroup lavu_lzo LZO
27 | * @ingroup lavu_crypto
28 | *
29 | * @{
30 | */
31 |
32 | #include
33 |
34 | /** @name Error flags returned by av_lzo1x_decode
35 | * @{ */
36 | /// end of the input buffer reached before decoding finished
37 | #define AV_LZO_INPUT_DEPLETED 1
38 | /// decoded data did not fit into output buffer
39 | #define AV_LZO_OUTPUT_FULL 2
40 | /// a reference to previously decoded data was wrong
41 | #define AV_LZO_INVALID_BACKPTR 4
42 | /// a non-specific error in the compressed bitstream
43 | #define AV_LZO_ERROR 8
44 | /** @} */
45 |
46 | #define AV_LZO_INPUT_PADDING 8
47 | #define AV_LZO_OUTPUT_PADDING 12
48 |
49 | /**
50 | * @brief Decodes LZO 1x compressed data.
51 | * @param out output buffer
52 | * @param outlen size of output buffer, number of bytes left are returned here
53 | * @param in input buffer
54 | * @param inlen size of input buffer, number of bytes left are returned here
55 | * @return 0 on success, otherwise a combination of the error flags above
56 | *
57 | * Make sure all buffers are appropriately padded, in must provide
58 | * AV_LZO_INPUT_PADDING, out must provide AV_LZO_OUTPUT_PADDING additional bytes.
59 | */
60 | int av_lzo1x_decode(void *out, int *outlen, const void *in, int *inlen);
61 |
62 | /**
63 | * @}
64 | */
65 |
66 | #endif /* AVUTIL_LZO_H */
67 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/macros.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of FFmpeg.
3 | *
4 | * FFmpeg is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * FFmpeg is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU Lesser General Public
15 | * License along with FFmpeg; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 | */
18 |
19 | /**
20 | * @file
21 | * @ingroup lavu
22 | * Utility Preprocessor macros
23 | */
24 |
25 | #ifndef AVUTIL_MACROS_H
26 | #define AVUTIL_MACROS_H
27 |
28 | /**
29 | * @addtogroup preproc_misc Preprocessor String Macros
30 | *
31 | * String manipulation macros
32 | *
33 | * @{
34 | */
35 |
36 | #define AV_STRINGIFY(s) AV_TOSTRING(s)
37 | #define AV_TOSTRING(s) #s
38 |
39 | #define AV_GLUE(a, b) a ## b
40 | #define AV_JOIN(a, b) AV_GLUE(a, b)
41 |
42 | /**
43 | * @}
44 | */
45 |
46 | #define AV_PRAGMA(s) _Pragma(#s)
47 |
48 | #endif /* AVUTIL_MACROS_H */
49 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/md5.h:
--------------------------------------------------------------------------------
1 | /*
2 | * copyright (c) 2006 Michael Niedermayer
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_MD5_H
22 | #define AVUTIL_MD5_H
23 |
24 | #include
25 |
26 | #include "attributes.h"
27 | #include "version.h"
28 |
29 | /**
30 | * @defgroup lavu_md5 MD5
31 | * @ingroup lavu_crypto
32 | * @{
33 | */
34 |
35 | extern const int av_md5_size;
36 |
37 | struct AVMD5;
38 |
39 | /**
40 | * Allocate an AVMD5 context.
41 | */
42 | struct AVMD5 *av_md5_alloc(void);
43 |
44 | /**
45 | * Initialize MD5 hashing.
46 | *
47 | * @param ctx pointer to the function context (of size av_md5_size)
48 | */
49 | void av_md5_init(struct AVMD5 *ctx);
50 |
51 | /**
52 | * Update hash value.
53 | *
54 | * @param ctx hash function context
55 | * @param src input data to update hash with
56 | * @param len input data length
57 | */
58 | void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, int len);
59 |
60 | /**
61 | * Finish hashing and output digest value.
62 | *
63 | * @param ctx hash function context
64 | * @param dst buffer where output digest value is stored
65 | */
66 | void av_md5_final(struct AVMD5 *ctx, uint8_t *dst);
67 |
68 | /**
69 | * Hash an array of data.
70 | *
71 | * @param dst The output buffer to write the digest into
72 | * @param src The data to hash
73 | * @param len The length of the data, in bytes
74 | */
75 | void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len);
76 |
77 | /**
78 | * @}
79 | */
80 |
81 | #endif /* AVUTIL_MD5_H */
82 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/murmur3.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 Reimar Döffinger
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_MURMUR3_H
22 | #define AVUTIL_MURMUR3_H
23 |
24 | #include
25 |
26 | struct AVMurMur3 *av_murmur3_alloc(void);
27 | void av_murmur3_init_seeded(struct AVMurMur3 *c, uint64_t seed);
28 | void av_murmur3_init(struct AVMurMur3 *c);
29 | void av_murmur3_update(struct AVMurMur3 *c, const uint8_t *src, int len);
30 | void av_murmur3_final(struct AVMurMur3 *c, uint8_t dst[16]);
31 |
32 | #endif /* AVUTIL_MURMUR3_H */
33 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/random_seed.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009 Baptiste Coudurier
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_RANDOM_SEED_H
22 | #define AVUTIL_RANDOM_SEED_H
23 |
24 | #include
25 | /**
26 | * @addtogroup lavu_crypto
27 | * @{
28 | */
29 |
30 | /**
31 | * Get a seed to use in conjunction with random functions.
32 | * This function tries to provide a good seed at a best effort bases.
33 | * Its possible to call this function multiple times if more bits are needed.
34 | * It can be quite slow, which is why it should only be used as seed for a faster
35 | * PRNG. The quality of the seed depends on the platform.
36 | */
37 | uint32_t av_get_random_seed(void);
38 |
39 | /**
40 | * @}
41 | */
42 |
43 | #endif /* AVUTIL_RANDOM_SEED_H */
44 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/replaygain.h:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * This file is part of FFmpeg.
4 | *
5 | * FFmpeg is free software; you can redistribute it and/or
6 | * modify it under the terms of the GNU Lesser General Public
7 | * License as published by the Free Software Foundation; either
8 | * version 2.1 of the License, or (at your option) any later version.
9 | *
10 | * FFmpeg is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | * Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public
16 | * License along with FFmpeg; if not, write to the Free Software
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 | */
19 |
20 | #ifndef AVUTIL_REPLAYGAIN_H
21 | #define AVUTIL_REPLAYGAIN_H
22 |
23 | #include
24 |
25 | /**
26 | * ReplayGain information (see
27 | * http://wiki.hydrogenaudio.org/index.php?title=ReplayGain_1.0_specification).
28 | * The size of this struct is a part of the public ABI.
29 | */
30 | typedef struct AVReplayGain {
31 | /**
32 | * Track replay gain in microbels (divide by 100000 to get the value in dB).
33 | * Should be set to INT32_MIN when unknown.
34 | */
35 | int32_t track_gain;
36 | /**
37 | * Peak track amplitude, with 100000 representing full scale (but values
38 | * may overflow). 0 when unknown.
39 | */
40 | uint32_t track_peak;
41 | /**
42 | * Same as track_gain, but for the whole album.
43 | */
44 | int32_t album_gain;
45 | /**
46 | * Same as track_peak, but for the whole album,
47 | */
48 | uint32_t album_peak;
49 | } AVReplayGain;
50 |
51 | #endif /* AVUTIL_REPLAYGAIN_H */
52 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/sha.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 Michael Niedermayer
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_SHA_H
22 | #define AVUTIL_SHA_H
23 |
24 | #include
25 |
26 | #include "attributes.h"
27 | #include "version.h"
28 |
29 | /**
30 | * @defgroup lavu_sha SHA
31 | * @ingroup lavu_crypto
32 | * @{
33 | */
34 |
35 | extern const int av_sha_size;
36 |
37 | struct AVSHA;
38 |
39 | /**
40 | * Allocate an AVSHA context.
41 | */
42 | struct AVSHA *av_sha_alloc(void);
43 |
44 | /**
45 | * Initialize SHA-1 or SHA-2 hashing.
46 | *
47 | * @param context pointer to the function context (of size av_sha_size)
48 | * @param bits number of bits in digest (SHA-1 - 160 bits, SHA-2 224 or 256 bits)
49 | * @return zero if initialization succeeded, -1 otherwise
50 | */
51 | int av_sha_init(struct AVSHA* context, int bits);
52 |
53 | /**
54 | * Update hash value.
55 | *
56 | * @param context hash function context
57 | * @param data input data to update hash with
58 | * @param len input data length
59 | */
60 | void av_sha_update(struct AVSHA* context, const uint8_t* data, unsigned int len);
61 |
62 | /**
63 | * Finish hashing and output digest value.
64 | *
65 | * @param context hash function context
66 | * @param digest buffer where output digest value is stored
67 | */
68 | void av_sha_final(struct AVSHA* context, uint8_t *digest);
69 |
70 | /**
71 | * @}
72 | */
73 |
74 | #endif /* AVUTIL_SHA_H */
75 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/time.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000-2003 Fabrice Bellard
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef AVUTIL_TIME_H
22 | #define AVUTIL_TIME_H
23 |
24 | #include
25 |
26 | /**
27 | * Get the current time in microseconds.
28 | */
29 | int64_t av_gettime(void);
30 |
31 | /**
32 | * Sleep for a period of time. Although the duration is expressed in
33 | * microseconds, the actual delay may be rounded to the precision of the
34 | * system timer.
35 | *
36 | * @param usec Number of microseconds to sleep.
37 | * @return zero on success or (negative) error code.
38 | */
39 | int av_usleep(unsigned usec);
40 |
41 | #endif /* AVUTIL_TIME_H */
42 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libavutil/xtea.h:
--------------------------------------------------------------------------------
1 | /*
2 | * A 32-bit implementation of the XTEA algorithm
3 | * Copyright (c) 2012 Samuel Pitoiset
4 | *
5 | * This file is part of FFmpeg.
6 | *
7 | * FFmpeg is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public
9 | * License as published by the Free Software Foundation; either
10 | * version 2.1 of the License, or (at your option) any later version.
11 | *
12 | * FFmpeg is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 | * Lesser General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public
18 | * License along with FFmpeg; if not, write to the Free Software
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 | */
21 |
22 | #ifndef AVUTIL_XTEA_H
23 | #define AVUTIL_XTEA_H
24 |
25 | #include
26 |
27 | /**
28 | * @file
29 | * @brief Public header for libavutil XTEA algorithm
30 | * @defgroup lavu_xtea XTEA
31 | * @ingroup lavu_crypto
32 | * @{
33 | */
34 |
35 | typedef struct AVXTEA {
36 | uint32_t key[16];
37 | } AVXTEA;
38 |
39 | /**
40 | * Initialize an AVXTEA context.
41 | *
42 | * @param ctx an AVXTEA context
43 | * @param key a key of 16 bytes used for encryption/decryption
44 | */
45 | void av_xtea_init(struct AVXTEA *ctx, const uint8_t key[16]);
46 |
47 | /**
48 | * Encrypt or decrypt a buffer using a previously initialized context.
49 | *
50 | * @param ctx an AVXTEA context
51 | * @param dst destination array, can be equal to src
52 | * @param src source array, can be equal to dst
53 | * @param count number of 8 byte blocks
54 | * @param iv initialization vector for CBC mode, if NULL then ECB will be used
55 | * @param decrypt 0 for encryption, 1 for decryption
56 | */
57 | void av_xtea_crypt(struct AVXTEA *ctx, uint8_t *dst, const uint8_t *src,
58 | int count, uint8_t *iv, int decrypt);
59 |
60 | /**
61 | * @}
62 | */
63 |
64 | #endif /* AVUTIL_XTEA_H */
65 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libpostproc/version.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Version macros.
3 | *
4 | * This file is part of FFmpeg.
5 | *
6 | * FFmpeg is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * FFmpeg is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with FFmpeg; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef POSTPROC_POSTPROCESS_VERSION_H
22 | #define POSTPROC_POSTPROCESS_VERSION_H
23 |
24 | /**
25 | * @file
26 | * Libpostproc version macros
27 | */
28 |
29 | #include "libavutil/avutil.h"
30 |
31 | #define LIBPOSTPROC_VERSION_MAJOR 52
32 | #define LIBPOSTPROC_VERSION_MINOR 3
33 | #define LIBPOSTPROC_VERSION_MICRO 100
34 |
35 | #define LIBPOSTPROC_VERSION_INT AV_VERSION_INT(LIBPOSTPROC_VERSION_MAJOR, \
36 | LIBPOSTPROC_VERSION_MINOR, \
37 | LIBPOSTPROC_VERSION_MICRO)
38 | #define LIBPOSTPROC_VERSION AV_VERSION(LIBPOSTPROC_VERSION_MAJOR, \
39 | LIBPOSTPROC_VERSION_MINOR, \
40 | LIBPOSTPROC_VERSION_MICRO)
41 | #define LIBPOSTPROC_BUILD LIBPOSTPROC_VERSION_INT
42 |
43 | #define LIBPOSTPROC_IDENT "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION)
44 |
45 | #endif /* POSTPROC_POSTPROCESS_VERSION_H */
46 |
--------------------------------------------------------------------------------
/AirplaySdkExample/include/libswresample/version.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Version macros.
3 | *
4 | * This file is part of libswresample
5 | *
6 | * libswresample is free software; you can redistribute it and/or
7 | * modify it under the terms of the GNU Lesser General Public
8 | * License as published by the Free Software Foundation; either
9 | * version 2.1 of the License, or (at your option) any later version.
10 | *
11 | * libswresample is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 | * Lesser General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public
17 | * License along with libswresample; if not, write to the Free Software
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 | */
20 |
21 | #ifndef SWR_VERSION_H
22 | #define SWR_VERSION_H
23 |
24 | /**
25 | * @file
26 | * Libswresample version macros
27 | */
28 |
29 | #include "libavutil/avutil.h"
30 |
31 | #define LIBSWRESAMPLE_VERSION_MAJOR 0
32 | #define LIBSWRESAMPLE_VERSION_MINOR 18
33 | #define LIBSWRESAMPLE_VERSION_MICRO 100
34 |
35 | #define LIBSWRESAMPLE_VERSION_INT AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, \
36 | LIBSWRESAMPLE_VERSION_MINOR, \
37 | LIBSWRESAMPLE_VERSION_MICRO)
38 | #define LIBSWRESAMPLE_VERSION AV_VERSION(LIBSWRESAMPLE_VERSION_MAJOR, \
39 | LIBSWRESAMPLE_VERSION_MINOR, \
40 | LIBSWRESAMPLE_VERSION_MICRO)
41 | #define LIBSWRESAMPLE_BUILD LIBSWRESAMPLE_VERSION_INT
42 |
43 | #define LIBSWRESAMPLE_IDENT "SwR" AV_STRINGIFY(LIBSWRESAMPLE_VERSION)
44 |
45 | #endif /* SWR_VERSION_H */
46 |
--------------------------------------------------------------------------------
/AirplaySdkExample/lib/AirPlay.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/lib/AirPlay.lib
--------------------------------------------------------------------------------
/AirplaySdkExample/lib/SDL.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/lib/SDL.lib
--------------------------------------------------------------------------------
/AirplaySdkExample/lib/SDLmain.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/lib/SDLmain.lib
--------------------------------------------------------------------------------
/AirplaySdkExample/lib/avcodec.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/lib/avcodec.lib
--------------------------------------------------------------------------------
/AirplaySdkExample/lib/avdevice.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/lib/avdevice.lib
--------------------------------------------------------------------------------
/AirplaySdkExample/lib/avfilter.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/lib/avfilter.lib
--------------------------------------------------------------------------------
/AirplaySdkExample/lib/avformat.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/lib/avformat.lib
--------------------------------------------------------------------------------
/AirplaySdkExample/lib/avutil.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/lib/avutil.lib
--------------------------------------------------------------------------------
/AirplaySdkExample/lib/postproc.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/lib/postproc.lib
--------------------------------------------------------------------------------
/AirplaySdkExample/lib/swresample.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/lib/swresample.lib
--------------------------------------------------------------------------------
/AirplaySdkExample/lib/swscale.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/lib/swscale.lib
--------------------------------------------------------------------------------
/AirplaySdkExample/utils/memalign.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef MEMALIGN_H
16 | #define MEMALIGN_H
17 |
18 | #if defined(WIN32)
19 |
20 | #define SYSTEM_GET_PAGESIZE(ret) do {\
21 | SYSTEM_INFO si;\
22 | GetSystemInfo(&si);\
23 | ret = si.dwPageSize;\
24 | } while(0)
25 | #define SYSTEM_GET_TIME(ret) ret = timeGetTime()
26 |
27 | #define ALIGNED_MALLOC(memptr, alignment, size) do {\
28 | char *ptr = malloc(sizeof(void*) + (size) + (alignment)-1);\
29 | memptr = NULL;\
30 | if (ptr) {\
31 | size_t ptrval = (size_t)ptr + sizeof(void*) + (alignment)-1;\
32 | ptrval = ptrval / (alignment) * (alignment);\
33 | memptr = (void *)ptrval;\
34 | *(((void **)memptr)-1) = ptr;\
35 | }\
36 | } while(0)
37 | #define ALIGNED_FREE(memptr) free(*(((void **)memptr)-1))
38 |
39 | #else
40 |
41 | #define SYSTEM_GET_PAGESIZE(ret) ret = sysconf(_SC_PAGESIZE)
42 | #define SYSTEM_GET_TIME(ret) do {\
43 | struct timeval tv;\
44 | gettimeofday(&tv, NULL);\
45 | ret = (unsigned int)(tv.tv_sec*1000 + tv.tv_usec/1000);\
46 | } while(0)
47 |
48 | #define ALIGNED_MALLOC(memptr, alignment, size) if (posix_memalign((void **)&memptr, alignment, size)) memptr = NULL
49 | #define ALIGNED_FREE(memptr) free(memptr)
50 |
51 | #endif
52 |
53 | #endif
54 |
--------------------------------------------------------------------------------
/AirplaySdkExample/utils/sockets.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef SOCKETS_H
16 | #define SOCKETS_H
17 |
18 | #if defined(WIN32)
19 | typedef int socklen_t;
20 |
21 | #define SD_RECEIVE 0x00
22 | #define SD_SEND 0x01
23 | #define SD_BOTH 0x02
24 |
25 | #ifndef SHUT_RD
26 | # define SHUT_RD SD_RECEIVE
27 | #endif
28 | #ifndef SHUT_WR
29 | # define SHUT_WR SD_SEND
30 | #endif
31 | #ifndef SHUT_RDWR
32 | # define SHUT_RDWR SD_BOTH
33 | #endif
34 |
35 |
36 |
37 | #define SOCKET_GET_ERROR() WSAGetLastError()
38 | #define SOCKET_SET_ERROR(value) WSASetLastError(value)
39 | #define SOCKET_ERRORNAME(name) WSA##name
40 |
41 | #define WSAEAGAIN WSAEWOULDBLOCK
42 | #define WSAENOMEM WSA_NOT_ENOUGH_MEMORY
43 |
44 | //#define close closesocket
45 |
46 | #else
47 |
48 | #define closesocket close
49 | #define ioctlsocket ioctl
50 |
51 | #define SOCKET_GET_ERROR() (errno)
52 | #define SOCKET_SET_ERROR(value) (errno = (value))
53 | #define SOCKET_ERRORNAME(name) name
54 |
55 | #endif
56 |
57 | #endif
58 |
--------------------------------------------------------------------------------
/AirplaySdkExample/utils/vlc.h:
--------------------------------------------------------------------------------
1 | /**
2 | * John Bradley (jrb@turrettech.com)
3 | */
4 | #pragma once
5 |
6 | #define VLC2X
7 |
8 | #ifdef VLC2X
9 |
10 | #pragma include_alias ( , )
11 | #pragma include_alias ( , )
12 | #pragma include_alias ( , )
13 | #pragma include_alias ( , )
14 | #pragma include_alias ( , )
15 | #pragma include_alias ( , )
16 | #pragma include_alias ( , )
17 | #pragma include_alias ( , )
18 | #pragma include_alias ( , )
19 | #pragma include_alias ( , )
20 | #pragma include_alias ( , )
21 | #pragma include_alias ( , )
22 |
23 | #include "vlc2x/vlc.h"
24 |
25 | #ifdef _WIN64
26 | #pragma comment(lib, "libvlc2x-x64.lib")
27 | #else
28 | #pragma comment(lib, "libvlc2x-x86.lib")
29 | #endif
30 |
31 | #else //VLC20
32 |
33 | #include "vlc/vlc.h"
34 |
35 | #ifdef _WIN64
36 | #pragma comment(lib, "libvlc20-x64.lib")
37 | #else
38 | #pragma comment(lib, "libvlc20-x86.lib")
39 | #endif
40 |
41 | #endif
--------------------------------------------------------------------------------
/AirplaySdkExample/utils/xdw_lock.c:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include "xdw_lock.h"
4 |
5 | // On sucess, returns 0.
6 | void *xdw_mutex_init(void)
7 | {
8 | #if 0
9 | pthread_mutex_t *hmutex = malloc(sizeof(pthread_mutex_t));
10 | if(pthread_mutex_init(hmutex, NULL))
11 | {
12 | free(hmutex);
13 | return NULL;
14 | }
15 | return (void *)hmutex;
16 | #else
17 | mutex_handle_t *hmutex;// = malloc(sizeof(mutex_handle_t));
18 | MUTEX_CREATE(hmutex);
19 | return (void *)hmutex;
20 | #endif
21 | }
22 |
23 | // On sucess, returns 0.
24 | int xdw_mutex_lock(void *hmutex)
25 | {
26 | #if 0
27 | return pthread_mutex_lock((pthread_mutex_t *)hmutex);
28 | #else
29 | MUTEX_LOCK((mutex_handle_t *)hmutex);
30 | #endif
31 | }
32 |
33 | // On sucess, returns 0.
34 | int xdw_mutex_unlock(void *hmutex)
35 | {
36 | #if 0
37 | return pthread_mutex_unlock((pthread_mutex_t *)hmutex);
38 | #else
39 | MUTEX_UNLOCK((mutex_handle_t *)hmutex);
40 | #endif
41 | }
42 |
43 | void xdw_mutex_uninit(void *hmutex)
44 | {
45 | #if 0
46 | pthread_mutex_destroy((pthread_mutex_t *)hmutex);
47 | free(hmutex);
48 | #else
49 | MUTEX_DESTROY((mutex_handle_t *)hmutex);
50 | //free(hmutex);
51 | #endif
52 | }
--------------------------------------------------------------------------------
/AirplaySdkExample/utils/xdw_lock.h:
--------------------------------------------------------------------------------
1 | #ifndef __XDW_LOCK_H__
2 | #define __XDW_LOCK_H__
3 |
4 | // On sucess, returns a mutex lock.
5 | void *xdw_mutex_init(void);
6 |
7 | // On sucess, returns 0.
8 | int xdw_mutex_lock(void *hmutex);
9 |
10 | // On sucess, returns 0.
11 | int xdw_mutex_unlock(void *hmutex);
12 |
13 | void xdw_mutex_uninit(void *hmutex);
14 |
15 | #endif // __XDW_LOCK_H__
16 |
--------------------------------------------------------------------------------
/AirplaySdkExample/utils/xdw_std.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/AirplaySdkExample/utils/xdw_std.h
--------------------------------------------------------------------------------
/AirplaySdkExample/xindawn-airplay-sdk-example.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2012
4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xindawn-airplay-sdk-example", "xindawn-airplay-sdk-example.vcxproj", "{038BD231-B558-444B-A443-4411C4BE7698}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|Win32 = Debug|Win32
9 | Release|Win32 = Release|Win32
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {038BD231-B558-444B-A443-4411C4BE7698}.Debug|Win32.ActiveCfg = Debug|Win32
13 | {038BD231-B558-444B-A443-4411C4BE7698}.Debug|Win32.Build.0 = Debug|Win32
14 | {038BD231-B558-444B-A443-4411C4BE7698}.Release|Win32.ActiveCfg = Release|Win32
15 | {038BD231-B558-444B-A443-4411C4BE7698}.Release|Win32.Build.0 = Release|Win32
16 | EndGlobalSection
17 | GlobalSection(SolutionProperties) = preSolution
18 | HideSolutionNode = FALSE
19 | EndGlobalSection
20 | EndGlobal
21 |
--------------------------------------------------------------------------------
/AirplaySdkExample/xindawn-airplay-sdk-example.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 | 源文件
20 |
21 |
22 | 源文件
23 |
24 |
25 | 源文件
26 |
27 |
28 |
--------------------------------------------------------------------------------
/AirplaySdkExample/xindawn-airplay-sdk-example.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Backup/mycrypt.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 9.00
3 | # Visual Studio 2005
4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mycrypt", "mycrypt\mycrypt.vcproj", "{BCEA3443-A563-445C-A71E-C506AE7959FD}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|Win32 = Debug|Win32
9 | Release|Win32 = Release|Win32
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {BCEA3443-A563-445C-A71E-C506AE7959FD}.Debug|Win32.ActiveCfg = Debug|Win32
13 | {BCEA3443-A563-445C-A71E-C506AE7959FD}.Debug|Win32.Build.0 = Debug|Win32
14 | {BCEA3443-A563-445C-A71E-C506AE7959FD}.Release|Win32.ActiveCfg = Release|Win32
15 | {BCEA3443-A563-445C-A71E-C506AE7959FD}.Release|Win32.Build.0 = Release|Win32
16 | EndGlobalSection
17 | GlobalSection(SolutionProperties) = preSolution
18 | HideSolutionNode = FALSE
19 | EndGlobalSection
20 | EndGlobal
21 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Backup/mycrypt.v11.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/Backup/mycrypt.v11.suo
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Curve25519/curve25519-donna.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/Curve25519/curve25519-donna.h
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/ed25519_32.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/Ed25519/ed25519_32.dll
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/ed25519_64.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/Ed25519/ed25519_64.dll
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/license.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015 Orson Peters
2 |
3 | This software is provided 'as-is', without any express or implied warranty. In no event will the
4 | authors be held liable for any damages arising from the use of this software.
5 |
6 | Permission is granted to anyone to use this software for any purpose, including commercial
7 | applications, and to alter it and redistribute it freely, subject to the following restrictions:
8 |
9 | 1. The origin of this software must not be misrepresented; you must not claim that you wrote the
10 | original software. If you use this software in a product, an acknowledgment in the product
11 | documentation would be appreciated but is not required.
12 |
13 | 2. Altered source versions must be plainly marked as such, and must not be misrepresented as
14 | being the original software.
15 |
16 | 3. This notice may not be removed or altered from any source distribution.
17 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/src/ed25519.h:
--------------------------------------------------------------------------------
1 | #ifndef ED25519_H
2 | #define ED25519_H
3 |
4 | #include
5 | #include "os_port.h"
6 |
7 | // #if defined(_WIN32)
8 | // #if defined(ED25519_BUILD_DLL)
9 | // #define ED25519_DECLSPEC __declspec(dllexport)
10 | // #elif defined(ED25519_DLL)
11 | // #define ED25519_DECLSPEC __declspec(dllimport)
12 | // #else
13 | // #define ED25519_DECLSPEC
14 | // #endif
15 | // #else
16 | // #define ED25519_DECLSPEC
17 | // #endif
18 |
19 |
20 | #ifdef __cplusplus
21 | extern "C" {
22 | #endif
23 |
24 | #ifndef ED25519_NO_SEED
25 | EXP_FUNC int STDCALL ed25519_create_seed(unsigned char *seed);
26 | #endif
27 |
28 | EXP_FUNC void STDCALL ed25519_create_keypair(unsigned char *public_key, unsigned char *private_key, const unsigned char *seed);
29 | EXP_FUNC void STDCALL ed25519_sign(unsigned char *signature, const unsigned char *message, size_t message_len, const unsigned char *public_key, const unsigned char *private_key);
30 | EXP_FUNC int STDCALL ed25519_verify(const unsigned char *signature, const unsigned char *message, size_t message_len, const unsigned char *public_key);
31 | EXP_FUNC void STDCALL ed25519_add_scalar(unsigned char *public_key, unsigned char *private_key, const unsigned char *scalar);
32 | EXP_FUNC void STDCALL ed25519_key_exchange(unsigned char *shared_secret, const unsigned char *public_key, const unsigned char *private_key);
33 |
34 |
35 | #ifdef __cplusplus
36 | }
37 | #endif
38 |
39 | #endif
40 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/src/fe.h:
--------------------------------------------------------------------------------
1 | #ifndef FE_H
2 | #define FE_H
3 |
4 | #include "fixedint.h"
5 |
6 |
7 | /*
8 | fe means field element.
9 | Here the field is \Z/(2^255-19).
10 | An element t, entries t[0]...t[9], represents the integer
11 | t[0]+2^26 t[1]+2^51 t[2]+2^77 t[3]+2^102 t[4]+...+2^230 t[9].
12 | Bounds on each t[i] vary depending on context.
13 | */
14 |
15 |
16 | typedef int32_t fe[10];
17 |
18 |
19 | void fe_0(fe h);
20 | void fe_1(fe h);
21 |
22 | void fe_frombytes(fe h, const unsigned char *s);
23 | void fe_tobytes(unsigned char *s, const fe h);
24 |
25 | void fe_copy(fe h, const fe f);
26 | int fe_isnegative(const fe f);
27 | int fe_isnonzero(const fe f);
28 | void fe_cmov(fe f, const fe g, unsigned int b);
29 | void fe_cswap(fe f, fe g, unsigned int b);
30 |
31 | void fe_neg(fe h, const fe f);
32 | void fe_add(fe h, const fe f, const fe g);
33 | void fe_invert(fe out, const fe z);
34 | void fe_sq(fe h, const fe f);
35 | void fe_sq2(fe h, const fe f);
36 | void fe_mul(fe h, const fe f, const fe g);
37 | void fe_mul121666(fe h, fe f);
38 | void fe_pow22523(fe out, const fe z);
39 | void fe_sub(fe h, const fe f, const fe g);
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/src/ge.h:
--------------------------------------------------------------------------------
1 | #ifndef GE_H
2 | #define GE_H
3 |
4 | #include "fe.h"
5 |
6 |
7 | /*
8 | ge means group element.
9 |
10 | Here the group is the set of pairs (x,y) of field elements (see fe.h)
11 | satisfying -x^2 + y^2 = 1 + d x^2y^2
12 | where d = -121665/121666.
13 |
14 | Representations:
15 | ge_p2 (projective): (X:Y:Z) satisfying x=X/Z, y=Y/Z
16 | ge_p3 (extended): (X:Y:Z:T) satisfying x=X/Z, y=Y/Z, XY=ZT
17 | ge_p1p1 (completed): ((X:Z),(Y:T)) satisfying x=X/Z, y=Y/T
18 | ge_precomp (Duif): (y+x,y-x,2dxy)
19 | */
20 |
21 | typedef struct {
22 | fe X;
23 | fe Y;
24 | fe Z;
25 | } ge_p2;
26 |
27 | typedef struct {
28 | fe X;
29 | fe Y;
30 | fe Z;
31 | fe T;
32 | } ge_p3;
33 |
34 | typedef struct {
35 | fe X;
36 | fe Y;
37 | fe Z;
38 | fe T;
39 | } ge_p1p1;
40 |
41 | typedef struct {
42 | fe yplusx;
43 | fe yminusx;
44 | fe xy2d;
45 | } ge_precomp;
46 |
47 | typedef struct {
48 | fe YplusX;
49 | fe YminusX;
50 | fe Z;
51 | fe T2d;
52 | } ge_cached;
53 |
54 | void ge_p3_tobytes(unsigned char *s, const ge_p3 *h);
55 | void ge_tobytes(unsigned char *s, const ge_p2 *h);
56 | int ge_frombytes_negate_vartime(ge_p3 *h, const unsigned char *s);
57 |
58 | void ge_add(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
59 | void ge_sub(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
60 | void ge_double_scalarmult_vartime(ge_p2 *r, const unsigned char *a, const ge_p3 *A, const unsigned char *b);
61 | void ge_madd(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q);
62 | void ge_msub(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q);
63 | void ge_scalarmult_base(ge_p3 *h, const unsigned char *a);
64 |
65 | void ge_p1p1_to_p2(ge_p2 *r, const ge_p1p1 *p);
66 | void ge_p1p1_to_p3(ge_p3 *r, const ge_p1p1 *p);
67 | void ge_p2_0(ge_p2 *h);
68 | void ge_p2_dbl(ge_p1p1 *r, const ge_p2 *p);
69 | void ge_p3_0(ge_p3 *h);
70 | void ge_p3_dbl(ge_p1p1 *r, const ge_p3 *p);
71 | void ge_p3_to_cached(ge_cached *r, const ge_p3 *p);
72 | void ge_p3_to_p2(ge_p2 *r, const ge_p3 *p);
73 |
74 | #endif
75 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/src/key_exchange.c:
--------------------------------------------------------------------------------
1 | #include "ed25519.h"
2 | #include "fe.h"
3 |
4 | EXP_FUNC void STDCALL ed25519_key_exchange(unsigned char *shared_secret, const unsigned char *public_key, const unsigned char *private_key) {
5 | unsigned char e[32];
6 | unsigned int i;
7 |
8 | fe x1;
9 | fe x2;
10 | fe z2;
11 | fe x3;
12 | fe z3;
13 | fe tmp0;
14 | fe tmp1;
15 |
16 | int pos;
17 | unsigned int swap;
18 | unsigned int b;
19 |
20 | /* copy the private key and make sure it's valid */
21 | for (i = 0; i < 32; ++i) {
22 | e[i] = private_key[i];
23 | }
24 |
25 | e[0] &= 248;
26 | e[31] &= 63;
27 | e[31] |= 64;
28 |
29 | /* unpack the public key and convert edwards to montgomery */
30 | /* due to CodesInChaos: montgomeryX = (edwardsY + 1)*inverse(1 - edwardsY) mod p */
31 | fe_frombytes(x1, public_key);
32 | fe_1(tmp1);
33 | fe_add(tmp0, x1, tmp1);
34 | fe_sub(tmp1, tmp1, x1);
35 | fe_invert(tmp1, tmp1);
36 | fe_mul(x1, tmp0, tmp1);
37 |
38 | fe_1(x2);
39 | fe_0(z2);
40 | fe_copy(x3, x1);
41 | fe_1(z3);
42 |
43 | swap = 0;
44 | for (pos = 254; pos >= 0; --pos) {
45 | b = e[pos / 8] >> (pos & 7);
46 | b &= 1;
47 | swap ^= b;
48 | fe_cswap(x2, x3, swap);
49 | fe_cswap(z2, z3, swap);
50 | swap = b;
51 |
52 | /* from montgomery.h */
53 | fe_sub(tmp0, x3, z3);
54 | fe_sub(tmp1, x2, z2);
55 | fe_add(x2, x2, z2);
56 | fe_add(z2, x3, z3);
57 | fe_mul(z3, tmp0, x2);
58 | fe_mul(z2, z2, tmp1);
59 | fe_sq(tmp0, tmp1);
60 | fe_sq(tmp1, x2);
61 | fe_add(x3, z3, z2);
62 | fe_sub(z2, z3, z2);
63 | fe_mul(x2, tmp1, tmp0);
64 | fe_sub(tmp1, tmp1, tmp0);
65 | fe_sq(z2, z2);
66 | fe_mul121666(z3, tmp1);
67 | fe_sq(x3, x3);
68 | fe_add(tmp0, tmp0, z3);
69 | fe_mul(z3, x1, z2);
70 | fe_mul(z2, tmp1, tmp0);
71 | }
72 |
73 | fe_cswap(x2, x3, swap);
74 | fe_cswap(z2, z3, swap);
75 |
76 | fe_invert(z2, z2);
77 | fe_mul(x2, x2, z2);
78 | fe_tobytes(shared_secret, x2);
79 | }
80 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/src/keypair.c:
--------------------------------------------------------------------------------
1 | #include "ed25519.h"
2 | #include "sha512.h"
3 | #include "ge.h"
4 |
5 |
6 | EXP_FUNC void STDCALL ed25519_create_keypair(unsigned char *public_key, unsigned char *private_key, const unsigned char *seed) {
7 | ge_p3 A;
8 |
9 | sha512(seed, 32, private_key);
10 | private_key[0] &= 248;
11 | private_key[31] &= 63;
12 | private_key[31] |= 64;
13 |
14 | ge_scalarmult_base(&A, private_key);
15 | ge_p3_tobytes(public_key, &A);
16 | }
17 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/src/sc.h:
--------------------------------------------------------------------------------
1 | #ifndef SC_H
2 | #define SC_H
3 |
4 | /*
5 | The set of scalars is \Z/l
6 | where l = 2^252 + 27742317777372353535851937790883648493.
7 | */
8 |
9 | void sc_reduce(unsigned char *s);
10 | void sc_muladd(unsigned char *s, const unsigned char *a, const unsigned char *b, const unsigned char *c);
11 |
12 | #endif
13 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/src/seed.c:
--------------------------------------------------------------------------------
1 | #include "ed25519.h"
2 |
3 | #ifndef ED25519_NO_SEED
4 |
5 | #ifdef _WIN32
6 | #include
7 | #include
8 | #else
9 | #include
10 | #endif
11 |
12 | EXP_FUNC int STDCALL ed25519_create_seed(unsigned char *seed) {
13 | #ifdef _WIN32
14 | HCRYPTPROV prov;
15 |
16 | if (!CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
17 | return 1;
18 | }
19 |
20 | if (!CryptGenRandom(prov, 32, seed)) {
21 | CryptReleaseContext(prov, 0);
22 | return 1;
23 | }
24 |
25 | CryptReleaseContext(prov, 0);
26 | #else
27 | FILE *f = fopen("/dev/urandom", "rb");
28 |
29 | if (f == NULL) {
30 | return 1;
31 | }
32 |
33 | fread(seed, 1, 32, f);
34 | fclose(f);
35 | #endif
36 |
37 | return 0;
38 | }
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/src/sha512.h:
--------------------------------------------------------------------------------
1 | #ifndef SHA512_H
2 | #define SHA512_H
3 |
4 | #include
5 | #include "os_port.h"
6 | #include "fixedint.h"
7 |
8 | /* state */
9 | typedef struct sha512_context_ {
10 | uint64_t length, state[8];
11 | size_t curlen;
12 | unsigned char buf[128];
13 | } sha512_context;
14 |
15 |
16 | EXP_FUNC int STDCALL sha512_init(sha512_context * md);
17 | EXP_FUNC int STDCALL sha512_final(sha512_context * md, unsigned char *out);
18 | EXP_FUNC int STDCALL sha512_update(sha512_context * md, const unsigned char *in, size_t inlen);
19 | EXP_FUNC int STDCALL sha512(const unsigned char *message, size_t message_len, unsigned char *out);
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/src/sign.c:
--------------------------------------------------------------------------------
1 | #include "ed25519.h"
2 | #include "sha512.h"
3 | #include "ge.h"
4 | #include "sc.h"
5 |
6 |
7 | EXP_FUNC void STDCALL ed25519_sign(unsigned char *signature, const unsigned char *message, size_t message_len, const unsigned char *public_key, const unsigned char *private_key) {
8 | sha512_context hash;
9 | unsigned char hram[64];
10 | unsigned char r[64];
11 | ge_p3 R;
12 |
13 |
14 | sha512_init(&hash);
15 | sha512_update(&hash, private_key + 32, 32);
16 | sha512_update(&hash, message, message_len);
17 | sha512_final(&hash, r);
18 |
19 | sc_reduce(r);
20 | ge_scalarmult_base(&R, r);
21 | ge_p3_tobytes(signature, &R);
22 |
23 | sha512_init(&hash);
24 | sha512_update(&hash, signature, 32);
25 | sha512_update(&hash, public_key, 32);
26 | sha512_update(&hash, message, message_len);
27 | sha512_final(&hash, hram);
28 |
29 | sc_reduce(hram);
30 | sc_muladd(signature + 32, hram, private_key, r);
31 | }
32 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/Ed25519/src/verify.c:
--------------------------------------------------------------------------------
1 | #include "ed25519.h"
2 | #include "sha512.h"
3 | #include "ge.h"
4 | #include "sc.h"
5 |
6 | static int consttime_equal(const unsigned char *x, const unsigned char *y) {
7 | unsigned char r = 0;
8 |
9 | r = x[0] ^ y[0];
10 | #define F(i) r |= x[i] ^ y[i]
11 | F(1);
12 | F(2);
13 | F(3);
14 | F(4);
15 | F(5);
16 | F(6);
17 | F(7);
18 | F(8);
19 | F(9);
20 | F(10);
21 | F(11);
22 | F(12);
23 | F(13);
24 | F(14);
25 | F(15);
26 | F(16);
27 | F(17);
28 | F(18);
29 | F(19);
30 | F(20);
31 | F(21);
32 | F(22);
33 | F(23);
34 | F(24);
35 | F(25);
36 | F(26);
37 | F(27);
38 | F(28);
39 | F(29);
40 | F(30);
41 | F(31);
42 | #undef F
43 |
44 | return !r;
45 | }
46 |
47 | EXP_FUNC int STDCALL ed25519_verify(const unsigned char *signature, const unsigned char *message, size_t message_len, const unsigned char *public_key) {
48 | unsigned char h[64];
49 | unsigned char checker[32];
50 | sha512_context hash;
51 | ge_p3 A;
52 | ge_p2 R;
53 |
54 | if (signature[63] & 224) {
55 | return 0;
56 | }
57 |
58 | if (ge_frombytes_negate_vartime(&A, public_key) != 0) {
59 | return 0;
60 | }
61 |
62 | sha512_init(&hash);
63 | sha512_update(&hash, signature, 32);
64 | sha512_update(&hash, public_key, 32);
65 | sha512_update(&hash, message, message_len);
66 | sha512_final(&hash, h);
67 |
68 | sc_reduce(h);
69 | ge_double_scalarmult_vartime(&R, h, &A, signature + 32);
70 | ge_tobytes(checker, &R);
71 |
72 | if (!consttime_equal(checker, signature)) {
73 | return 0;
74 | }
75 |
76 | return 1;
77 | }
78 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/_UpgradeReport_Files/UpgradeReport_Error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/_UpgradeReport_Files/UpgradeReport_Error.png
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/_UpgradeReport_Files/UpgradeReport_Information.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/_UpgradeReport_Files/UpgradeReport_Information.png
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/_UpgradeReport_Files/UpgradeReport_Success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/_UpgradeReport_Files/UpgradeReport_Success.png
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/_UpgradeReport_Files/UpgradeReport_Warning.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/_UpgradeReport_Files/UpgradeReport_Warning.png
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/crypto/Makefile.am:
--------------------------------------------------------------------------------
1 | noinst_LTLIBRARIES = libcrypto.la
2 | libcrypto_la_SOURCES = bigint.c bigint.h bigint_impl.h aes.c hmac.c md5.c rc4.c sha1.c crypto.h os_port.h config.h new_aes.c aes_locl.h
3 |
4 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/crypto/base64.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef BASE64_H
16 | #define BASE64_H
17 |
18 | #include "os_port.h"
19 |
20 | typedef struct base64_s base64_t;
21 |
22 | EXP_FUNC base64_t* STDCALL base64_init(const char *charlist, int use_padding, int skip_spaces);
23 |
24 | EXP_FUNC int STDCALL base64_encoded_length(base64_t *base64, int srclen);
25 |
26 | EXP_FUNC int STDCALL base64_encode(base64_t *base64, char *dst, const unsigned char *src, int srclen);
27 | EXP_FUNC int STDCALL base64_decode(base64_t *base64, unsigned char **dst, const char *src, int srclen);
28 |
29 | EXP_FUNC void STDCALL base64_destroy(base64_t *base64);
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/crypto/config.h:
--------------------------------------------------------------------------------
1 |
2 | #define CONFIG_BIGINT_BARRETT 1
3 | #define CONFIG_BIGINT_CRT 1
4 | #define CONFIG_BIGINT_SQUARE 1
5 | #define CONFIG_BIGINT_32BIT 1
6 |
7 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/crypto/rsakey.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef RSAKEY_H
16 | #define RSAKEY_H
17 |
18 | #include "os_port.h"
19 |
20 | typedef struct rsakey_s rsakey_t;
21 |
22 | EXP_FUNC rsakey_t* STDCALL
23 | rsakey_init(const unsigned char *modulus, int mod_len,
24 | const unsigned char *pub_exp, int pub_len,
25 | const unsigned char *priv_exp, int priv_len,
26 | const unsigned char *p, int p_len,
27 | const unsigned char *q, int q_len,
28 | const unsigned char *dP, int dP_len,
29 | const unsigned char *dQ, int dQ_len,
30 | const unsigned char *qInv, int qInv_len);
31 | EXP_FUNC rsakey_t* STDCALL
32 | rsakey_init_pem(const char *pemstr);
33 |
34 | EXP_FUNC int STDCALL
35 | rsakey_sign(rsakey_t *rsakey, char *dst, int dstlen, const char *b64digest,
36 | unsigned char *ipaddr, int ipaddrlen,
37 | unsigned char *hwaddr, int hwaddrlen);
38 |
39 | EXP_FUNC int STDCALL
40 | rsakey_base64_decode(rsakey_t *rsakey, unsigned char **output, const char *b64input);
41 |
42 | EXP_FUNC int STDCALL
43 | rsakey_decrypt(rsakey_t *rsakey, unsigned char *dst, int dstlen, const char *b64input);
44 |
45 | EXP_FUNC int STDCALL
46 | rsakey_parseiv(rsakey_t *rsakey, unsigned char *dst, int dstlen, const char *b64input);
47 |
48 | EXP_FUNC void STDCALL
49 | rsakey_destroy(rsakey_t *rsakey);
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/crypto/rsapem.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef RSAPEM_H
16 | #define RSAPEM_H
17 |
18 | typedef struct rsapem_s rsapem_t;
19 |
20 | rsapem_t *rsapem_init(const char *pemstr);
21 | int rsapem_read_vector(rsapem_t *rsapem, unsigned char **data);
22 | void rsapem_destroy(rsapem_t *rsapem);
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/debug/mycrypt.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/debug/mycrypt.dll
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/debug/mycrypt.exp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/debug/mycrypt.exp
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/debug/mycrypt.ilk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/debug/mycrypt.ilk
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/debug/mycrypt.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/debug/mycrypt.lib
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/debug/mycrypt.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/debug/mycrypt.pdb
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2012
4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mycrypt", "mycrypt\mycrypt.vcxproj", "{BCEA3443-A563-445C-A71E-C506AE7959FD}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|Win32 = Debug|Win32
9 | Release|Win32 = Release|Win32
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {BCEA3443-A563-445C-A71E-C506AE7959FD}.Debug|Win32.ActiveCfg = Debug|Win32
13 | {BCEA3443-A563-445C-A71E-C506AE7959FD}.Debug|Win32.Build.0 = Debug|Win32
14 | {BCEA3443-A563-445C-A71E-C506AE7959FD}.Release|Win32.ActiveCfg = Release|Win32
15 | {BCEA3443-A563-445C-A71E-C506AE7959FD}.Release|Win32.Build.0 = Release|Win32
16 | EndGlobalSection
17 | GlobalSection(SolutionProperties) = preSolution
18 | HideSolutionNode = FALSE
19 | EndGlobalSection
20 | EndGlobal
21 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt.suo
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/CL.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/CL.read.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/CL.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/CL.write.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/add_scalar.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/add_scalar.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/aes.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/aes.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/base64.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/base64.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/bigint.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/bigint.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/cl.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/cl.command.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/curve25519-donna.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/curve25519-donna.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/fe.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/fe.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/ge.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/ge.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/hmac.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/hmac.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/key_exchange.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/key_exchange.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/keypair.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/keypair.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/link-cvtres.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/link-cvtres.read.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/link-cvtres.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/link-cvtres.write.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/link.7776-cvtres.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/link.7776-cvtres.read.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/link.7776-cvtres.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/link.7776-cvtres.write.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/link.7776.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/link.7776.read.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/link.7776.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/link.7776.write.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/link.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/link.command.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/link.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/link.read.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/link.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/link.write.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/md5.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/md5.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/mt.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/mt.command.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/mt.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/mt.read.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/mt.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/mt.write.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/mycrypt.dll.embed.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/mycrypt.dll.embed.manifest.res:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/mycrypt.dll.embed.manifest.res
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/mycrypt.dll.intermediate.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/mycrypt.lastbuildstate:
--------------------------------------------------------------------------------
1 | #v4.0:v100:false
2 | Debug|Win32|E:\disk\F\Works\Embedded_Phone\mirrorLink\source\apple\airplay\AirPlay\MyCrypt\mycrypt_win32\|
3 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/mycrypt.write.1.tlog:
--------------------------------------------------------------------------------
1 | ^E:\disk\F\Works\Embedded_Phone\mirrorLink\source\apple\airplay\AirPlay\MyCrypt\mycrypt_win32\mycrypt\mycrypt.vcxproj
2 | E:\disk\F\Works\Embedded_Phone\mirrorLink\source\apple\airplay\AirPlay\MyCrypt\mycrypt_win32\Debug\mycrypt.lib
3 | E:\disk\F\Works\Embedded_Phone\mirrorLink\source\apple\airplay\AirPlay\MyCrypt\mycrypt_win32\Debug\mycrypt.lib
4 | E:\disk\F\Works\Embedded_Phone\mirrorLink\source\apple\airplay\AirPlay\MyCrypt\mycrypt_win32\Debug\mycrypt.exp
5 | E:\disk\F\Works\Embedded_Phone\mirrorLink\source\apple\airplay\AirPlay\MyCrypt\mycrypt_win32\Debug\mycrypt.exp
6 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/mycrypt_manifest.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/mycrypt_manifest.rc
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/new_aes.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/new_aes.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/rc.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/rc.command.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/rc.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/rc.read.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/rc.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/rc.write.1.tlog
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/rc4.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/rc4.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/rsakey.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/rsakey.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/rsapem.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/rsapem.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/sc.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/sc.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/seed.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/seed.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/sha1.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/sha1.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/sha512.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/sha512.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/sign.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/sign.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/vc100.idb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/vc100.idb
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/vc100.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/vc100.pdb
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/Debug/verify.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/Debug/verify.obj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/ReadMe.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/ReadMe.txt
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/mycrypt.vcproj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/mycrypt.vcproj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/mycrypt.vcproj.WIN-MK2ULPM4DLM.Administrator.user:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
11 |
35 |
36 |
39 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/mycrypt.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/stdafx.cpp
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_win32/mycrypt/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_win32/mycrypt/stdafx.h
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Curve25519/curve25519-donna.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/Curve25519/curve25519-donna.h
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Debug/mycrypt.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/Debug/mycrypt.lib
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/ed25519_32.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/Ed25519/ed25519_32.dll
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/ed25519_64.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/Ed25519/ed25519_64.dll
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/license.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015 Orson Peters
2 |
3 | This software is provided 'as-is', without any express or implied warranty. In no event will the
4 | authors be held liable for any damages arising from the use of this software.
5 |
6 | Permission is granted to anyone to use this software for any purpose, including commercial
7 | applications, and to alter it and redistribute it freely, subject to the following restrictions:
8 |
9 | 1. The origin of this software must not be misrepresented; you must not claim that you wrote the
10 | original software. If you use this software in a product, an acknowledgment in the product
11 | documentation would be appreciated but is not required.
12 |
13 | 2. Altered source versions must be plainly marked as such, and must not be misrepresented as
14 | being the original software.
15 |
16 | 3. This notice may not be removed or altered from any source distribution.
17 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/src/ed25519.h:
--------------------------------------------------------------------------------
1 | #ifndef ED25519_H
2 | #define ED25519_H
3 |
4 | #include
5 | #include "os_port.h"
6 |
7 | // #if defined(_WIN32)
8 | // #if defined(ED25519_BUILD_DLL)
9 | // #define ED25519_DECLSPEC __declspec(dllexport)
10 | // #elif defined(ED25519_DLL)
11 | // #define ED25519_DECLSPEC __declspec(dllimport)
12 | // #else
13 | // #define ED25519_DECLSPEC
14 | // #endif
15 | // #else
16 | // #define ED25519_DECLSPEC
17 | // #endif
18 |
19 |
20 | #ifdef __cplusplus
21 | extern "C" {
22 | #endif
23 |
24 | #ifndef ED25519_NO_SEED
25 | EXP_FUNC int STDCALL ed25519_create_seed(unsigned char *seed);
26 | #endif
27 |
28 | EXP_FUNC void STDCALL ed25519_create_keypair(unsigned char *public_key, unsigned char *private_key, const unsigned char *seed);
29 | EXP_FUNC void STDCALL ed25519_sign(unsigned char *signature, const unsigned char *message, size_t message_len, const unsigned char *public_key, const unsigned char *private_key);
30 | EXP_FUNC int STDCALL ed25519_verify(const unsigned char *signature, const unsigned char *message, size_t message_len, const unsigned char *public_key);
31 | EXP_FUNC void STDCALL ed25519_add_scalar(unsigned char *public_key, unsigned char *private_key, const unsigned char *scalar);
32 | EXP_FUNC void STDCALL ed25519_key_exchange(unsigned char *shared_secret, const unsigned char *public_key, const unsigned char *private_key);
33 |
34 |
35 | #ifdef __cplusplus
36 | }
37 | #endif
38 |
39 | #endif
40 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/src/fe.h:
--------------------------------------------------------------------------------
1 | #ifndef FE_H
2 | #define FE_H
3 |
4 | #include "fixedint.h"
5 |
6 |
7 | /*
8 | fe means field element.
9 | Here the field is \Z/(2^255-19).
10 | An element t, entries t[0]...t[9], represents the integer
11 | t[0]+2^26 t[1]+2^51 t[2]+2^77 t[3]+2^102 t[4]+...+2^230 t[9].
12 | Bounds on each t[i] vary depending on context.
13 | */
14 |
15 |
16 | typedef int32_t fe[10];
17 |
18 |
19 | void fe_0(fe h);
20 | void fe_1(fe h);
21 |
22 | void fe_frombytes(fe h, const unsigned char *s);
23 | void fe_tobytes(unsigned char *s, const fe h);
24 |
25 | void fe_copy(fe h, const fe f);
26 | int fe_isnegative(const fe f);
27 | int fe_isnonzero(const fe f);
28 | void fe_cmov(fe f, const fe g, unsigned int b);
29 | void fe_cswap(fe f, fe g, unsigned int b);
30 |
31 | void fe_neg(fe h, const fe f);
32 | void fe_add(fe h, const fe f, const fe g);
33 | void fe_invert(fe out, const fe z);
34 | void fe_sq(fe h, const fe f);
35 | void fe_sq2(fe h, const fe f);
36 | void fe_mul(fe h, const fe f, const fe g);
37 | void fe_mul121666(fe h, fe f);
38 | void fe_pow22523(fe out, const fe z);
39 | void fe_sub(fe h, const fe f, const fe g);
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/src/ge.h:
--------------------------------------------------------------------------------
1 | #ifndef GE_H
2 | #define GE_H
3 |
4 | #include "fe.h"
5 |
6 |
7 | /*
8 | ge means group element.
9 |
10 | Here the group is the set of pairs (x,y) of field elements (see fe.h)
11 | satisfying -x^2 + y^2 = 1 + d x^2y^2
12 | where d = -121665/121666.
13 |
14 | Representations:
15 | ge_p2 (projective): (X:Y:Z) satisfying x=X/Z, y=Y/Z
16 | ge_p3 (extended): (X:Y:Z:T) satisfying x=X/Z, y=Y/Z, XY=ZT
17 | ge_p1p1 (completed): ((X:Z),(Y:T)) satisfying x=X/Z, y=Y/T
18 | ge_precomp (Duif): (y+x,y-x,2dxy)
19 | */
20 |
21 | typedef struct {
22 | fe X;
23 | fe Y;
24 | fe Z;
25 | } ge_p2;
26 |
27 | typedef struct {
28 | fe X;
29 | fe Y;
30 | fe Z;
31 | fe T;
32 | } ge_p3;
33 |
34 | typedef struct {
35 | fe X;
36 | fe Y;
37 | fe Z;
38 | fe T;
39 | } ge_p1p1;
40 |
41 | typedef struct {
42 | fe yplusx;
43 | fe yminusx;
44 | fe xy2d;
45 | } ge_precomp;
46 |
47 | typedef struct {
48 | fe YplusX;
49 | fe YminusX;
50 | fe Z;
51 | fe T2d;
52 | } ge_cached;
53 |
54 | void ge_p3_tobytes(unsigned char *s, const ge_p3 *h);
55 | void ge_tobytes(unsigned char *s, const ge_p2 *h);
56 | int ge_frombytes_negate_vartime(ge_p3 *h, const unsigned char *s);
57 |
58 | void ge_add(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
59 | void ge_sub(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
60 | void ge_double_scalarmult_vartime(ge_p2 *r, const unsigned char *a, const ge_p3 *A, const unsigned char *b);
61 | void ge_madd(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q);
62 | void ge_msub(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q);
63 | void ge_scalarmult_base(ge_p3 *h, const unsigned char *a);
64 |
65 | void ge_p1p1_to_p2(ge_p2 *r, const ge_p1p1 *p);
66 | void ge_p1p1_to_p3(ge_p3 *r, const ge_p1p1 *p);
67 | void ge_p2_0(ge_p2 *h);
68 | void ge_p2_dbl(ge_p1p1 *r, const ge_p2 *p);
69 | void ge_p3_0(ge_p3 *h);
70 | void ge_p3_dbl(ge_p1p1 *r, const ge_p3 *p);
71 | void ge_p3_to_cached(ge_cached *r, const ge_p3 *p);
72 | void ge_p3_to_p2(ge_p2 *r, const ge_p3 *p);
73 |
74 | #endif
75 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/src/key_exchange.c:
--------------------------------------------------------------------------------
1 | #include "ed25519.h"
2 | #include "fe.h"
3 |
4 | EXP_FUNC void STDCALL ed25519_key_exchange(unsigned char *shared_secret, const unsigned char *public_key, const unsigned char *private_key) {
5 | unsigned char e[32];
6 | unsigned int i;
7 |
8 | fe x1;
9 | fe x2;
10 | fe z2;
11 | fe x3;
12 | fe z3;
13 | fe tmp0;
14 | fe tmp1;
15 |
16 | int pos;
17 | unsigned int swap;
18 | unsigned int b;
19 |
20 | /* copy the private key and make sure it's valid */
21 | for (i = 0; i < 32; ++i) {
22 | e[i] = private_key[i];
23 | }
24 |
25 | e[0] &= 248;
26 | e[31] &= 63;
27 | e[31] |= 64;
28 |
29 | /* unpack the public key and convert edwards to montgomery */
30 | /* due to CodesInChaos: montgomeryX = (edwardsY + 1)*inverse(1 - edwardsY) mod p */
31 | fe_frombytes(x1, public_key);
32 | fe_1(tmp1);
33 | fe_add(tmp0, x1, tmp1);
34 | fe_sub(tmp1, tmp1, x1);
35 | fe_invert(tmp1, tmp1);
36 | fe_mul(x1, tmp0, tmp1);
37 |
38 | fe_1(x2);
39 | fe_0(z2);
40 | fe_copy(x3, x1);
41 | fe_1(z3);
42 |
43 | swap = 0;
44 | for (pos = 254; pos >= 0; --pos) {
45 | b = e[pos / 8] >> (pos & 7);
46 | b &= 1;
47 | swap ^= b;
48 | fe_cswap(x2, x3, swap);
49 | fe_cswap(z2, z3, swap);
50 | swap = b;
51 |
52 | /* from montgomery.h */
53 | fe_sub(tmp0, x3, z3);
54 | fe_sub(tmp1, x2, z2);
55 | fe_add(x2, x2, z2);
56 | fe_add(z2, x3, z3);
57 | fe_mul(z3, tmp0, x2);
58 | fe_mul(z2, z2, tmp1);
59 | fe_sq(tmp0, tmp1);
60 | fe_sq(tmp1, x2);
61 | fe_add(x3, z3, z2);
62 | fe_sub(z2, z3, z2);
63 | fe_mul(x2, tmp1, tmp0);
64 | fe_sub(tmp1, tmp1, tmp0);
65 | fe_sq(z2, z2);
66 | fe_mul121666(z3, tmp1);
67 | fe_sq(x3, x3);
68 | fe_add(tmp0, tmp0, z3);
69 | fe_mul(z3, x1, z2);
70 | fe_mul(z2, tmp1, tmp0);
71 | }
72 |
73 | fe_cswap(x2, x3, swap);
74 | fe_cswap(z2, z3, swap);
75 |
76 | fe_invert(z2, z2);
77 | fe_mul(x2, x2, z2);
78 | fe_tobytes(shared_secret, x2);
79 | }
80 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/src/keypair.c:
--------------------------------------------------------------------------------
1 | #include "ed25519.h"
2 | #include "sha512.h"
3 | #include "ge.h"
4 |
5 |
6 | EXP_FUNC void STDCALL ed25519_create_keypair(unsigned char *public_key, unsigned char *private_key, const unsigned char *seed) {
7 | ge_p3 A;
8 |
9 | sha512(seed, 32, private_key);
10 | private_key[0] &= 248;
11 | private_key[31] &= 63;
12 | private_key[31] |= 64;
13 |
14 | ge_scalarmult_base(&A, private_key);
15 | ge_p3_tobytes(public_key, &A);
16 | }
17 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/src/sc.h:
--------------------------------------------------------------------------------
1 | #ifndef SC_H
2 | #define SC_H
3 |
4 | /*
5 | The set of scalars is \Z/l
6 | where l = 2^252 + 27742317777372353535851937790883648493.
7 | */
8 |
9 | void sc_reduce(unsigned char *s);
10 | void sc_muladd(unsigned char *s, const unsigned char *a, const unsigned char *b, const unsigned char *c);
11 |
12 | #endif
13 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/src/seed.c:
--------------------------------------------------------------------------------
1 | #include "ed25519.h"
2 |
3 | #ifndef ED25519_NO_SEED
4 |
5 | #ifdef _WIN32
6 | #include
7 | #include
8 | #else
9 | #include
10 | #endif
11 |
12 | EXP_FUNC int STDCALL ed25519_create_seed(unsigned char *seed) {
13 | #ifdef _WIN32
14 | HCRYPTPROV prov;
15 |
16 | if (!CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
17 | return 1;
18 | }
19 |
20 | if (!CryptGenRandom(prov, 32, seed)) {
21 | CryptReleaseContext(prov, 0);
22 | return 1;
23 | }
24 |
25 | CryptReleaseContext(prov, 0);
26 | #else
27 | FILE *f = fopen("/dev/urandom", "rb");
28 |
29 | if (f == NULL) {
30 | return 1;
31 | }
32 |
33 | fread(seed, 1, 32, f);
34 | fclose(f);
35 | #endif
36 |
37 | return 0;
38 | }
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/src/sha512.h:
--------------------------------------------------------------------------------
1 | #ifndef SHA512_H
2 | #define SHA512_H
3 |
4 | #include
5 | #include "os_port.h"
6 | #include "fixedint.h"
7 |
8 | /* state */
9 | typedef struct sha512_context_ {
10 | uint64_t length, state[8];
11 | size_t curlen;
12 | unsigned char buf[128];
13 | } sha512_context;
14 |
15 |
16 | EXP_FUNC int STDCALL sha512_init(sha512_context * md);
17 | EXP_FUNC int STDCALL sha512_final(sha512_context * md, unsigned char *out);
18 | EXP_FUNC int STDCALL sha512_update(sha512_context * md, const unsigned char *in, size_t inlen);
19 | EXP_FUNC int STDCALL sha512(const unsigned char *message, size_t message_len, unsigned char *out);
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/src/sign.c:
--------------------------------------------------------------------------------
1 | #include "ed25519.h"
2 | #include "sha512.h"
3 | #include "ge.h"
4 | #include "sc.h"
5 |
6 |
7 | EXP_FUNC void STDCALL ed25519_sign(unsigned char *signature, const unsigned char *message, size_t message_len, const unsigned char *public_key, const unsigned char *private_key) {
8 | sha512_context hash;
9 | unsigned char hram[64];
10 | unsigned char r[64];
11 | ge_p3 R;
12 |
13 |
14 | sha512_init(&hash);
15 | sha512_update(&hash, private_key + 32, 32);
16 | sha512_update(&hash, message, message_len);
17 | sha512_final(&hash, r);
18 |
19 | sc_reduce(r);
20 | ge_scalarmult_base(&R, r);
21 | ge_p3_tobytes(signature, &R);
22 |
23 | sha512_init(&hash);
24 | sha512_update(&hash, signature, 32);
25 | sha512_update(&hash, public_key, 32);
26 | sha512_update(&hash, message, message_len);
27 | sha512_final(&hash, hram);
28 |
29 | sc_reduce(hram);
30 | sc_muladd(signature + 32, hram, private_key, r);
31 | }
32 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/Ed25519/src/verify.c:
--------------------------------------------------------------------------------
1 | #include "ed25519.h"
2 | #include "sha512.h"
3 | #include "ge.h"
4 | #include "sc.h"
5 |
6 | static int consttime_equal(const unsigned char *x, const unsigned char *y) {
7 | unsigned char r = 0;
8 |
9 | r = x[0] ^ y[0];
10 | #define F(i) r |= x[i] ^ y[i]
11 | F(1);
12 | F(2);
13 | F(3);
14 | F(4);
15 | F(5);
16 | F(6);
17 | F(7);
18 | F(8);
19 | F(9);
20 | F(10);
21 | F(11);
22 | F(12);
23 | F(13);
24 | F(14);
25 | F(15);
26 | F(16);
27 | F(17);
28 | F(18);
29 | F(19);
30 | F(20);
31 | F(21);
32 | F(22);
33 | F(23);
34 | F(24);
35 | F(25);
36 | F(26);
37 | F(27);
38 | F(28);
39 | F(29);
40 | F(30);
41 | F(31);
42 | #undef F
43 |
44 | return !r;
45 | }
46 |
47 | EXP_FUNC int STDCALL ed25519_verify(const unsigned char *signature, const unsigned char *message, size_t message_len, const unsigned char *public_key) {
48 | unsigned char h[64];
49 | unsigned char checker[32];
50 | sha512_context hash;
51 | ge_p3 A;
52 | ge_p2 R;
53 |
54 | if (signature[63] & 224) {
55 | return 0;
56 | }
57 |
58 | if (ge_frombytes_negate_vartime(&A, public_key) != 0) {
59 | return 0;
60 | }
61 |
62 | sha512_init(&hash);
63 | sha512_update(&hash, signature, 32);
64 | sha512_update(&hash, public_key, 32);
65 | sha512_update(&hash, message, message_len);
66 | sha512_final(&hash, h);
67 |
68 | sc_reduce(h);
69 | ge_double_scalarmult_vartime(&R, h, &A, signature + 32);
70 | ge_tobytes(checker, &R);
71 |
72 | if (!consttime_equal(checker, signature)) {
73 | return 0;
74 | }
75 |
76 | return 1;
77 | }
78 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/crypto/Makefile.am:
--------------------------------------------------------------------------------
1 | noinst_LTLIBRARIES = libcrypto.la
2 | libcrypto_la_SOURCES = bigint.c bigint.h bigint_impl.h aes.c hmac.c md5.c rc4.c sha1.c crypto.h os_port.h config.h new_aes.c aes_locl.h
3 |
4 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/crypto/base64.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef BASE64_H
16 | #define BASE64_H
17 |
18 | #include "os_port.h"
19 |
20 | typedef struct base64_s base64_t;
21 |
22 | EXP_FUNC base64_t* STDCALL base64_init(const char *charlist, int use_padding, int skip_spaces);
23 |
24 | EXP_FUNC int STDCALL base64_encoded_length(base64_t *base64, int srclen);
25 |
26 | EXP_FUNC int STDCALL base64_encode(base64_t *base64, char *dst, const unsigned char *src, int srclen);
27 | EXP_FUNC int STDCALL base64_decode(base64_t *base64, unsigned char **dst, const char *src, int srclen);
28 |
29 | EXP_FUNC void STDCALL base64_destroy(base64_t *base64);
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/crypto/config.h:
--------------------------------------------------------------------------------
1 |
2 | #define CONFIG_BIGINT_BARRETT 1
3 | #define CONFIG_BIGINT_CRT 1
4 | #define CONFIG_BIGINT_SQUARE 1
5 | #define CONFIG_BIGINT_32BIT 1
6 |
7 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/crypto/rsakey.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef RSAKEY_H
16 | #define RSAKEY_H
17 |
18 | #include "os_port.h"
19 |
20 | typedef struct rsakey_s rsakey_t;
21 |
22 | EXP_FUNC rsakey_t* STDCALL
23 | rsakey_init(const unsigned char *modulus, int mod_len,
24 | const unsigned char *pub_exp, int pub_len,
25 | const unsigned char *priv_exp, int priv_len,
26 | const unsigned char *p, int p_len,
27 | const unsigned char *q, int q_len,
28 | const unsigned char *dP, int dP_len,
29 | const unsigned char *dQ, int dQ_len,
30 | const unsigned char *qInv, int qInv_len);
31 | EXP_FUNC rsakey_t* STDCALL
32 | rsakey_init_pem(const char *pemstr);
33 |
34 | EXP_FUNC int STDCALL
35 | rsakey_sign(rsakey_t *rsakey, char *dst, int dstlen, const char *b64digest,
36 | unsigned char *ipaddr, int ipaddrlen,
37 | unsigned char *hwaddr, int hwaddrlen);
38 |
39 | EXP_FUNC int STDCALL
40 | rsakey_base64_decode(rsakey_t *rsakey, unsigned char **output, const char *b64input);
41 |
42 | EXP_FUNC int STDCALL
43 | rsakey_decrypt(rsakey_t *rsakey, unsigned char *dst, int dstlen, const char *b64input);
44 |
45 | EXP_FUNC int STDCALL
46 | rsakey_parseiv(rsakey_t *rsakey, unsigned char *dst, int dstlen, const char *b64input);
47 |
48 | EXP_FUNC void STDCALL
49 | rsakey_destroy(rsakey_t *rsakey);
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/crypto/rsapem.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef RSAPEM_H
16 | #define RSAPEM_H
17 |
18 | typedef struct rsapem_s rsapem_t;
19 |
20 | rsapem_t *rsapem_init(const char *pemstr);
21 | int rsapem_read_vector(rsapem_t *rsapem, unsigned char **data);
22 | void rsapem_destroy(rsapem_t *rsapem);
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt.opensdf:
--------------------------------------------------------------------------------
1 | A d m i n i s t r a t o r D E S K T O P - B N 9 E O C E
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 9.00
3 | # Visual Studio 2005
4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mycrypt", "mycrypt\mycrypt.vcproj", "{BD583B35-DCA1-4B3D-94C8-33A12482B343}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|Pocket PC 2003 (ARMV4) = Debug|Pocket PC 2003 (ARMV4)
9 | Release|Pocket PC 2003 (ARMV4) = Release|Pocket PC 2003 (ARMV4)
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {BD583B35-DCA1-4B3D-94C8-33A12482B343}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
13 | {BD583B35-DCA1-4B3D-94C8-33A12482B343}.Debug|Pocket PC 2003 (ARMV4).Build.0 = Debug|Pocket PC 2003 (ARMV4)
14 | {BD583B35-DCA1-4B3D-94C8-33A12482B343}.Debug|Pocket PC 2003 (ARMV4).Deploy.0 = Debug|Pocket PC 2003 (ARMV4)
15 | {BD583B35-DCA1-4B3D-94C8-33A12482B343}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Pocket PC 2003 (ARMV4)
16 | {BD583B35-DCA1-4B3D-94C8-33A12482B343}.Release|Pocket PC 2003 (ARMV4).Build.0 = Release|Pocket PC 2003 (ARMV4)
17 | {BD583B35-DCA1-4B3D-94C8-33A12482B343}.Release|Pocket PC 2003 (ARMV4).Deploy.0 = Release|Pocket PC 2003 (ARMV4)
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/mycrypt.suo
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt.v11.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/mycrypt.v11.suo
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/Pocket PC 2003 (ARMV4)/Debug/mycrypt.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/mycrypt/Pocket PC 2003 (ARMV4)/Debug/mycrypt.dll
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/Pocket PC 2003 (ARMV4)/Debug/mycrypt.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/mycrypt/Pocket PC 2003 (ARMV4)/Debug/mycrypt.lib
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | MICROSOFT 基础类库:mycrypt 项目概述
3 | ========================================================================
4 |
5 |
6 | 应用程序向导已为您创建了此 mycrypt DLL。此 DLL 不仅
7 | 演示了 Microsoft 基础类的基本使用方法,还可
8 | 作为您编写 DLL 的起点。
9 |
10 | 此文件概述了组成 mycrypt DLL 的每个文件
11 | 的内容。
12 |
13 | mycrypt.vcproj
14 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件。
15 | 它包含有关生成该文件所使用的 Visual C++ 版本的信息,以及
16 | 有关在应用程序向导中选择的平台、配置和项目功能
17 | 的信息。
18 |
19 | _mycrypt.h
20 | 这是 DLL 的主头文件。它声明
21 | CmycryptApp 类。
22 |
23 | mycrypt.cpp
24 | 这是主 DLL 源文件。它包含类 CmycryptApp。
25 |
26 |
27 | mycryptppc.rc
28 | 这是项目使用的所有 Microsoft Windows 资源的清单
29 | (当针对 Pocket PC 平台或
30 | 支持相同的用户界面模型的平台进行编译时)。它包括
31 | 存储在 RES 子目录中的图标、位图和光标。如果
32 | .rc 文件保持不变,数据节中的
33 | 将作为定义将保持为它们所定义为的数值的十六进制版本,
34 | 而不是定义的友好名称。
35 |
36 |
37 |
38 | res\mycrypt.rc2
39 | 此文件包含不由 Microsoft
40 | Visual C++ 编辑的资源。您应将所有无法由资源编辑器编辑的资源
41 | 放置到此文件中。
42 |
43 | mycrypt.def
44 | 此文件包含关于在 Microsoft Windows 上运行所必需
45 | 的 DLL 的信息。它定义此 DLL 的
46 | 名称和说明等参数。它还从
47 | 此 DLL 导出函数。
48 |
49 | /////////////////////////////////////////////////////////////////////////////
50 | 其他标准文件:
51 |
52 | StdAfx.h,StdAfx.cpp
53 | 这些文件用于生成名为 mycrypt.pch 的预编译头 (PCH) 文件
54 | 和名为 StdAfx.obj 的预编译类型文件。
55 |
56 |
57 | resourceppc.h
58 | 这是标准头文件,它定义新的资源 ID。
59 | Microsoft Visual C++ 读取并更新此文件。
60 |
61 |
62 |
63 | /////////////////////////////////////////////////////////////////////////////
64 | 其他注释:
65 |
66 | 应用程序向导使用“TODO:”指示应添加到或自定义的源代码部分。
67 | 应添加或自定义的源代码部分。
68 |
69 | /////////////////////////////////////////////////////////////////////////////
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/mycrypt.c:
--------------------------------------------------------------------------------
1 | #include "mycrypt.h"
2 |
3 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/mycrypt.def:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/mycrypt/mycrypt.def
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/mycrypt.vcproj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/mycrypt/mycrypt.vcproj
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/mycrypt.vcproj.WIN-MK2ULPM4DLM.Administrator.user:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
11 |
35 |
38 |
42 |
43 |
46 |
70 |
73 |
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/mycrypt.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/mycryptppc.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/mycrypt/mycryptppc.rc
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/res/mycrypt.rc2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/mycrypt/res/mycrypt.rc2
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/resourceppc.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/mycrypt/resourceppc.h
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/mycrypt/stdafx.cpp
--------------------------------------------------------------------------------
/MyCrypt/mycrypt_wince/mycrypt/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/MyCrypt/mycrypt_wince/mycrypt/stdafx.h
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # AirPlay
2 | * fairplay-server可以运行在一台Linux虚拟机下,提供服务
3 | * 主程序为AirplaySdkExample\Debug\xindawn-airplay-sdk-example.exe
4 | * 编译环境vs2010
5 |
6 | iPhone手机可以把屏幕镜像和音频等投射到AppleTV上,中间走的是AirPlay协议,这个是苹果的私有协议并没有对外公开,所以如果要实现类似AppleTV的功能的话基本只能通过逆向分析和抓包分析,之前为了实现将iPhone手机屏幕投射到车机屏幕上逆向了市面上一些同类产品,同时抓包研究分析,整个过程还是挺困难的。实际上AirPlay并不仅仅包含屏幕镜像和音频,同时还包括图片和视频推送等功能,而且自IOS4.2以来到现在整个协议也经历了多次升级和变化,网上虽然也可以找到一些资料,但是这些资料通常都比较古老,和最新的协议差别已经比较大了,参考价值有限。我这里因为手头机器有限,所以只针对于IOS9.3.2到IOS10.2.1之间的版本做了适配,这个范围以外的版本没做研究,而且只实现了屏幕镜像和音频的功能,视频推送部分没做研究,图片推送因为现在已经和屏幕镜像统一成一个流程,所以也是支持的。
7 |
--------------------------------------------------------------------------------
/fairplay-server-master/LICENSE:
--------------------------------------------------------------------------------
1 | The code is released under GPL.
2 |
--------------------------------------------------------------------------------
/fairplay-server-master/Makefile:
--------------------------------------------------------------------------------
1 | CC=gcc
2 | #CFLAGS = -m32 -g -O2 -DRUN_DAEMON
3 | CFLAGS = -m32 -g -O2 -DDEBUG
4 | LDFLAGS = -lpthread
5 |
6 | all:
7 | $(CC) $(CFLAGS) fairplay-server.c fairplay.c fairplay-core.o -o fairplay-server $(LDFLAGS)
8 | $(CC) $(CFLAGS) airplay.c fairplay.c fairplay-core.o -o airplay $(LDFLAGS)
9 | clean:
10 | rm -f fairplay-server airplay
11 |
--------------------------------------------------------------------------------
/fairplay-server-master/airplay:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/fairplay-server-master/airplay
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay-core.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/fairplay-server-master/fairplay-core.o
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay-server:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/fairplay-server-master/fairplay-server
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay.h:
--------------------------------------------------------------------------------
1 | /*************************************************************************
2 | > File Name: fairplay.h
3 | > Author:
4 | > Mail:
5 | > Created Time: 2016年05月26日 星期四 17时27分15秒
6 | ************************************************************************/
7 |
8 | #ifndef _FAIRPLAY_H
9 | #define _FAIRPLAY_H
10 |
11 | extern unsigned int remap_addr(unsigned int addr);
12 | extern unsigned int mmu_remap(unsigned int addr, int otype, int vtype, int size, unsigned char* v);
13 | extern unsigned int readMem_char(unsigned int addr);
14 | extern unsigned int readMem_short(unsigned int addr);
15 | extern unsigned int readMem_int(unsigned int addr);
16 | extern unsigned int writeMem_char(unsigned char c, unsigned int addr);
17 | extern unsigned int writeMem_short(unsigned short s, unsigned int addr);
18 | extern unsigned int writeMem_int(unsigned int i, unsigned int addr);
19 | extern void * ref_memcpy(unsigned int addr1, unsigned int addr2, int size);
20 | extern unsigned int ref_malloc(int size);
21 | extern unsigned int make_stack(int size);
22 | extern unsigned int pop_stack();
23 | extern int airplay_load_hwinfo(unsigned char *buf);
24 | extern int airplay_initialize_sap(unsigned char *hwinfo, unsigned char **buf);
25 | extern int airplay_process_fpsetup_message(char type, char *hwinfo, char *sapbuf, char *data, unsigned char **buf_p, int *size_p, char *a8);
26 | extern int airplay_get_encryption_key(char *sapbuf, char *ptr, int len, unsigned char **buf_p, int *size_p);
27 |
28 | #endif
29 |
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | 控制台应用程序:fairplay 项目概述
3 | ========================================================================
4 |
5 | 应用程序向导已为您创建了此 fairplay 应用程序。
6 |
7 | 本文件概要介绍组成 fairplay 应用程序的每个文件的内容。
8 |
9 |
10 | fairplay.vcxproj
11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
12 |
13 | fairplay.vcxproj.filters
14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。
15 |
16 | fairplay.cpp
17 | 这是主应用程序源文件。
18 |
19 | /////////////////////////////////////////////////////////////////////////////
20 | 其他标准文件:
21 |
22 | StdAfx.h, StdAfx.cpp
23 | 这些文件用于生成名为 fairplay.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。
24 |
25 | /////////////////////////////////////////////////////////////////////////////
26 | 其他注释:
27 |
28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。
29 |
30 | /////////////////////////////////////////////////////////////////////////////
31 |
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay/fairplay-core.idb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/fairplay-server-master/fairplay/fairplay-core.idb
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay/fairplay-core.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/fairplay-server-master/fairplay/fairplay-core.o
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay/fairplay.h:
--------------------------------------------------------------------------------
1 | /*************************************************************************
2 | > File Name: fairplay.h
3 | > Author:
4 | > Mail:
5 | > Created Time: 2016年05月26日 星期四 17时27分15秒
6 | ************************************************************************/
7 |
8 | #ifndef _FAIRPLAY_H
9 | #define _FAIRPLAY_H
10 |
11 | extern unsigned int remap_addr(unsigned int addr);
12 | extern unsigned int mmu_remap(unsigned int addr, int otype, int vtype, int size, unsigned char* v);
13 | extern unsigned int readMem_char(unsigned int addr);
14 | extern unsigned int readMem_short(unsigned int addr);
15 | extern unsigned int readMem_int(unsigned int addr);
16 | extern unsigned int writeMem_char(unsigned char c, unsigned int addr);
17 | extern unsigned int writeMem_short(unsigned short s, unsigned int addr);
18 | extern unsigned int writeMem_int(unsigned int i, unsigned int addr);
19 | extern void * ref_memcpy(unsigned int addr1, unsigned int addr2, int size);
20 | extern unsigned int ref_malloc(int size);
21 | extern unsigned int make_stack(int size);
22 | extern unsigned int pop_stack();
23 | extern int airplay_load_hwinfo(unsigned char *buf);
24 | extern int airplay_initialize_sap(unsigned char *hwinfo, unsigned char **buf);
25 | extern int airplay_process_fpsetup_message(char type, char *hwinfo, char *sapbuf, char *data, unsigned char **buf_p, int *size_p, char *a8);
26 | extern int airplay_get_encryption_key(char *sapbuf, char *ptr, int len, unsigned char **buf_p, int *size_p);
27 |
28 | #endif
29 |
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay/fairplay.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2012
4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fairplay", "fairplay.vcxproj", "{80BFF2ED-8F57-41CE-8E89-F1194B227CAB}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|Win32 = Debug|Win32
9 | Release|Win32 = Release|Win32
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {80BFF2ED-8F57-41CE-8E89-F1194B227CAB}.Debug|Win32.ActiveCfg = Debug|Win32
13 | {80BFF2ED-8F57-41CE-8E89-F1194B227CAB}.Debug|Win32.Build.0 = Debug|Win32
14 | {80BFF2ED-8F57-41CE-8E89-F1194B227CAB}.Release|Win32.ActiveCfg = Release|Win32
15 | {80BFF2ED-8F57-41CE-8E89-F1194B227CAB}.Release|Win32.Build.0 = Release|Win32
16 | EndGlobalSection
17 | GlobalSection(SolutionProperties) = preSolution
18 | HideSolutionNode = FALSE
19 | EndGlobalSection
20 | EndGlobal
21 |
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay/fairplay.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/fairplay-server-master/fairplay/fairplay.suo
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay/fairplay.v11.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/fairplay-server-master/fairplay/fairplay.v11.suo
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay/fairplay.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 源文件
23 |
24 |
25 | 源文件
26 |
27 |
28 | 源文件
29 |
30 |
31 | 源文件
32 |
33 |
34 |
35 |
36 | 头文件
37 |
38 |
39 | 头文件
40 |
41 |
42 |
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay/fairplay.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/fairplay-server-master/fairplay/threads.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 | *
4 | * This library is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU Lesser General Public
6 | * License as published by the Free Software Foundation; either
7 | * version 2.1 of the License, or (at your option) any later version.
8 | *
9 | * This library is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 | * Lesser General Public License for more details.
13 | */
14 |
15 | #ifndef THREADS_H
16 | #define THREADS_H
17 |
18 | #if defined(WIN32)
19 | #include
20 | #include
21 |
22 | #define sleepms(x) Sleep(x)
23 |
24 | typedef HANDLE thread_handle_t;
25 |
26 | #define THREAD_RETVAL DWORD WINAPI
27 | #define THREAD_CREATE(handle, func, arg) \
28 | handle = CreateThread(NULL, 0, func, arg, 0, NULL)
29 | #define THREAD_JOIN(handle) do { WaitForSingleObject(handle, INFINITE); CloseHandle(handle); } while(0)
30 |
31 | typedef HANDLE mutex_handle_t;
32 |
33 | #define MUTEX_CREATE(handle) handle = CreateMutex(NULL, FALSE, NULL)
34 | #define MUTEX_LOCK(handle) WaitForSingleObject(handle, INFINITE)
35 | #define MUTEX_UNLOCK(handle) ReleaseMutex(handle)
36 | #define MUTEX_DESTROY(handle) CloseHandle(handle)
37 |
38 | #else /* Use pthread library */
39 |
40 | #include
41 | #include
42 |
43 | #define sleepms(x) usleep((x)*1000)
44 |
45 | typedef pthread_t thread_handle_t;
46 |
47 | #define THREAD_RETVAL void *
48 | #define THREAD_CREATE(handle, func, arg) \
49 | if (pthread_create(&(handle), NULL, func, arg)) handle = 0
50 | #define THREAD_JOIN(handle) pthread_join(handle, NULL)
51 |
52 | typedef pthread_mutex_t mutex_handle_t;
53 |
54 | #define MUTEX_CREATE(handle) pthread_mutex_init(&(handle), NULL)
55 | #define MUTEX_LOCK(handle) pthread_mutex_lock(&(handle))
56 | #define MUTEX_UNLOCK(handle) pthread_mutex_unlock(&(handle))
57 | #define MUTEX_DESTROY(handle) pthread_mutex_destroy(&(handle))
58 |
59 | #endif
60 |
61 | #endif /* THREADS_H */
62 |
--------------------------------------------------------------------------------
/抓包/9.3.2.audio-end.TXT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/抓包/9.3.2.audio-end.TXT
--------------------------------------------------------------------------------
/抓包/9.3.2.audio-start.TXT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/抓包/9.3.2.audio-start.TXT
--------------------------------------------------------------------------------
/抓包/airplay.TXT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/抓包/airplay.TXT
--------------------------------------------------------------------------------
/抓包/airplay2.TXT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/抓包/airplay2.TXT
--------------------------------------------------------------------------------
/抓包/airplay_other.TXT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/抓包/airplay_other.TXT
--------------------------------------------------------------------------------
/抓包/airplay_other2.TXT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/抓包/airplay_other2.TXT
--------------------------------------------------------------------------------
/抓包/屏幕带声音转纯声音然后关闭全过程(9.3.2).ncf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/抓包/屏幕带声音转纯声音然后关闭全过程(9.3.2).ncf
--------------------------------------------------------------------------------
/抓包/纯声音转屏幕带声音(9.3.2).ncf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/phonegapX/AirPlay/94ae91c35673df6e48b7ed743022d4528a6fbdce/抓包/纯声音转屏幕带声音(9.3.2).ncf
--------------------------------------------------------------------------------