diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100755
index 0000000..c150f8d
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,18 @@
+cmake_minimum_required(VERSION 3.4.1)
+
+project(uxplay)
+
+set (CMAKE_CXX_STANDARD 11)
+
+add_subdirectory(lib/curve25519)
+add_subdirectory(lib/ed25519)
+add_subdirectory(lib/playfair)
+add_subdirectory(lib/plist)
+add_subdirectory(lib)
+add_subdirectory(renderers)
+
+add_executable( uxplay uxplay.cpp)
+target_link_libraries ( uxplay renderers airplay )
+
+install(PROGRAMS uxplay DESTINATION bin)
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..f288702
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
new file mode 100755
index 0000000..6089f46
--- /dev/null
+++ b/lib/CMakeLists.txt
@@ -0,0 +1,24 @@
+cmake_minimum_required(VERSION 3.4.1)
+include_directories( curve25519 ed25519 playfair plist/plist )
+
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Ofast -march=native -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g")
+
+aux_source_directory(. play_src)
+set(DIR_SRCS ${play_src})
+
+add_library( airplay
+ STATIC
+ ${DIR_SRCS}
+ )
+
+target_link_libraries( airplay
+ pthread
+ curve25519
+ ed25519
+ playfair
+ plist )
+
+ find_package(OpenSSL REQUIRED)
+ target_link_libraries( airplay OpenSSL::Crypto )
+ target_link_libraries( airplay dns_sd )
+
diff --git a/lib/byteutils.c b/lib/byteutils.c
new file mode 100755
index 0000000..e3122ae
--- /dev/null
+++ b/lib/byteutils.c
@@ -0,0 +1,106 @@
+/*
+ * Copyright (c) 2019 dsafa22, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include
+#include
+#include "byteutils.h"
+
+#ifndef htonll
+#include
+#define htonll(x) htobe64(x)
+#define ntohll(x) be64toh(x)
+#endif
+
+// The functions in this file assume a little endian cpu architecture!
+
+/**
+ * Reads a little endian unsigned 16 bit integer from the buffer at position offset
+ */
+uint16_t byteutils_get_short(unsigned char* b, int offset) {
+ return *((uint16_t*)(b + offset));
+}
+
+/**
+ * Reads a little endian unsigned 32 bit integer from the buffer at position offset
+ */
+uint32_t byteutils_get_int(unsigned char* b, int offset) {
+ return *((uint32_t*)(b + offset));
+}
+
+/**
+ * Reads a little endian unsigned 64 bit integer from the buffer at position offset
+ */
+uint64_t byteutils_get_long(unsigned char* b, int offset) {
+ return *((uint64_t*)(b + offset));
+}
+
+/**
+ * Reads a big endian unsigned 16 bit integer from the buffer at position offset
+ */
+uint16_t byteutils_get_short_be(unsigned char* b, int offset) {
+ return ntohs(byteutils_get_short(b, offset));
+}
+
+/**
+ * Reads a big endian unsigned 32 bit integer from the buffer at position offset
+ */
+uint32_t byteutils_get_int_be(unsigned char* b, int offset) {
+ return ntohl(byteutils_get_int(b, offset));
+}
+
+/**
+ * Reads a big endian unsigned 64 bit integer from the buffer at position offset
+ */
+uint64_t byteutils_get_long_be(unsigned char* b, int offset) {
+ return ntohll(byteutils_get_long(b, offset));
+}
+
+/**
+ * Reads a float from the buffer at position offset
+ */
+float byteutils_get_float(unsigned char* b, int offset) {
+ return *((float*)(b + offset));
+}
+
+/**
+ * Writes a little endian unsigned 32 bit integer to the buffer at position offset
+ */
+void byteutils_put_int(unsigned char* b, int offset, uint32_t value) {
+ *((uint32_t*)(b + offset)) = value;
+}
+
+/**
+ * Reads an ntp timestamp and returns it as micro seconds since the Unix epoch
+ */
+uint64_t byteutils_get_ntp_timestamp(unsigned char *b, int offset) {
+ uint64_t seconds = ntohl(((unsigned int) byteutils_get_int(b, offset))) - SECONDS_FROM_1900_TO_1970;
+ uint64_t fraction = ntohl((unsigned int) byteutils_get_int(b, offset + 4));
+ return (seconds * 1000000L) + ((fraction * 1000000L) >> 32);
+}
+
+/**
+ * Writes a time given as micro seconds since the Unix time epoch as an ntp timestamp
+ * into the buffer at position offset
+ */
+void byteutils_put_ntp_timestamp(unsigned char *b, int offset, uint64_t us_since_1970) {
+ uint64_t seconds = us_since_1970 / 1000000L;
+ uint64_t microseconds = us_since_1970 % 1000000L;
+ seconds += SECONDS_FROM_1900_TO_1970;
+ uint64_t fraction = (microseconds << 32) / 1000000L;
+
+ // Write in big endian!
+ byteutils_put_int(b, offset, htonl(seconds));
+ byteutils_put_int(b, offset + 4, htonl(fraction));
+}
+
diff --git a/lib/byteutils.h b/lib/byteutils.h
new file mode 100755
index 0000000..9f8a4c5
--- /dev/null
+++ b/lib/byteutils.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2019 dsafa22, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef AIRPLAYSERVER_BYTEUTILS_H
+#define AIRPLAYSERVER_BYTEUTILS_H
+#include
+
+uint16_t byteutils_get_short(unsigned char* b, int offset);
+uint32_t byteutils_get_int(unsigned char* b, int offset);
+uint64_t byteutils_get_long(unsigned char* b, int offset);
+uint16_t byteutils_get_short_be(unsigned char* b, int offset);
+uint32_t byteutils_get_int_be(unsigned char* b, int offset);
+uint64_t byteutils_get_long_be(unsigned char* b, int offset);
+float byteutils_get_float(unsigned char* b, int offset);
+
+#define SECONDS_FROM_1900_TO_1970 2208988800ULL
+
+uint64_t byteutils_get_ntp_timestamp(unsigned char *b, int offset);
+void byteutils_put_ntp_timestamp(unsigned char *b, int offset, uint64_t us_since_1970);
+
+#endif //AIRPLAYSERVER_BYTEUTILS_H
diff --git a/lib/compat.h b/lib/compat.h
new file mode 100755
index 0000000..927fc96
--- /dev/null
+++ b/lib/compat.h
@@ -0,0 +1,41 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef COMPAT_H
+#define COMPAT_H
+
+#if defined(WIN32)
+#include
+#include
+#ifndef snprintf
+#define snprintf _snprintf
+#endif
+#else
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#endif
+
+#include "memalign.h"
+#include "sockets.h"
+#include "threads.h"
+
+#endif
diff --git a/lib/crypto.c b/lib/crypto.c
new file mode 100644
index 0000000..6714255
--- /dev/null
+++ b/lib/crypto.c
@@ -0,0 +1,209 @@
+/**
+ * RPiPlay - An open-source AirPlay mirroring server for Raspberry Pi
+ * Copyright (C) 2019 Florian Draschbacher
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "crypto.h"
+
+#include
+#include
+
+#include
+#include
+#include
+
+struct aes_ctx_s {
+ EVP_CIPHER_CTX *cipher_ctx;
+ uint8_t key[AES_128_BLOCK_SIZE];
+ uint8_t iv[AES_128_BLOCK_SIZE];
+ aes_direction_t direction;
+ uint8_t block_offset;
+};
+
+uint8_t waste[AES_128_BLOCK_SIZE];
+
+// Common AES utilities
+
+void handle_error(const char* location) {
+ long error = ERR_get_error();
+ const char* error_str = ERR_error_string(error, NULL);
+ printf("Crypto error at %s: %s\n", location, error_str);
+ assert(false);
+}
+
+aes_ctx_t *aes_init(const uint8_t *key, const uint8_t *iv, const EVP_CIPHER *type, aes_direction_t direction) {
+ aes_ctx_t *ctx = malloc(sizeof(aes_ctx_t));
+ assert(ctx != NULL);
+ ctx->cipher_ctx = EVP_CIPHER_CTX_new();
+ assert(ctx->cipher_ctx != NULL);
+
+ ctx->block_offset = 0;
+ ctx->direction = direction;
+
+ if (direction == AES_ENCRYPT) {
+ if (!EVP_EncryptInit_ex(ctx->cipher_ctx, type, NULL, key, iv)) {
+ handle_error(__func__);
+ }
+ } else {
+ if (!EVP_DecryptInit_ex(ctx->cipher_ctx, type, NULL, key, iv)) {
+ handle_error(__func__);
+ }
+ }
+
+ memcpy(ctx->key, key, AES_128_BLOCK_SIZE);
+ memcpy(ctx->iv, iv, AES_128_BLOCK_SIZE);
+ return ctx;
+}
+
+void aes_encrypt(aes_ctx_t *ctx, const uint8_t *in, uint8_t *out, int in_len) {
+ int out_len = 0;
+ if (!EVP_EncryptUpdate(ctx->cipher_ctx, out, &out_len, in, in_len)) {
+ handle_error(__func__);
+ }
+
+ assert(out_len <= in_len);
+}
+
+void aes_decrypt(aes_ctx_t *ctx, const uint8_t *in, uint8_t *out, int in_len) {
+ int out_len = 0;
+ if (!EVP_DecryptUpdate(ctx->cipher_ctx, out, &out_len, in, in_len)) {
+ handle_error(__func__);
+ }
+
+ assert(out_len <= in_len);
+}
+
+void aes_destroy(aes_ctx_t *ctx) {
+ if (ctx) {
+ EVP_CIPHER_CTX_free(ctx->cipher_ctx);
+ free(ctx);
+ }
+}
+
+void aes_reset(aes_ctx_t *ctx, const EVP_CIPHER *type, aes_direction_t direction) {
+ if (!EVP_CIPHER_CTX_reset(ctx->cipher_ctx)) {
+ handle_error(__func__);
+ }
+
+ if (direction == AES_ENCRYPT) {
+ if (!EVP_EncryptInit_ex(ctx->cipher_ctx, type, NULL, ctx->key, ctx->iv)) {
+ handle_error(__func__);
+ }
+ } else {
+ if (!EVP_DecryptInit_ex(ctx->cipher_ctx, type, NULL, ctx->key, ctx->iv)) {
+ handle_error(__func__);
+ }
+ }
+}
+
+// AES CTR
+
+aes_ctx_t *aes_ctr_init(const uint8_t *key, const uint8_t *iv) {
+ return aes_init(key, iv, EVP_aes_128_ctr(), AES_ENCRYPT);
+}
+
+void aes_ctr_encrypt(aes_ctx_t *ctx, const uint8_t *in, uint8_t *out, int len) {
+ aes_encrypt(ctx, in, out, len);
+ ctx->block_offset = (ctx->block_offset + len) % AES_128_BLOCK_SIZE;
+}
+
+void aes_ctr_start_fresh_block(aes_ctx_t *ctx) {
+ // Is there a better way to do this?
+ if (ctx->block_offset == 0) return;
+ aes_ctr_encrypt(ctx, waste, waste, AES_128_BLOCK_SIZE - ctx->block_offset);
+}
+
+void aes_ctr_decrypt(aes_ctx_t *ctx, const uint8_t *in, uint8_t *out, int len) {
+ aes_encrypt(ctx, in, out, len);
+}
+
+void aes_ctr_reset(aes_ctx_t *ctx) {
+ aes_reset(ctx, EVP_aes_128_ctr(), AES_ENCRYPT);
+}
+
+void aes_ctr_destroy(aes_ctx_t *ctx) {
+ aes_destroy(ctx);
+}
+
+// AES CBC
+
+aes_ctx_t *aes_cbc_init(const uint8_t *key, const uint8_t *iv, aes_direction_t direction) {
+ return aes_init(key, iv, EVP_aes_128_cbc(), direction);
+}
+
+void aes_cbc_encrypt(aes_ctx_t *ctx, const uint8_t *in, uint8_t *out, int len) {
+ assert(ctx->direction == AES_ENCRYPT);
+ aes_encrypt(ctx, in, out, len);
+}
+
+void aes_cbc_decrypt(aes_ctx_t *ctx, const uint8_t *in, uint8_t *out, int len) {
+ assert(ctx->direction == AES_DECRYPT);
+ aes_decrypt(ctx, in, out, len);
+}
+
+void aes_cbc_reset(aes_ctx_t *ctx) {
+ aes_reset(ctx, EVP_aes_128_ctr(), ctx->direction);
+}
+
+void aes_cbc_destroy(aes_ctx_t *ctx) {
+ aes_destroy(ctx);
+}
+
+// SHA 512
+
+struct sha_ctx_s {
+ EVP_MD_CTX *digest_ctx;
+};
+
+sha_ctx_t *sha_init() {
+ sha_ctx_t *ctx = malloc(sizeof(sha_ctx_t));
+ assert(ctx != NULL);
+ ctx->digest_ctx = EVP_MD_CTX_new();
+ assert(ctx->digest_ctx != NULL);
+
+ if (!EVP_DigestInit_ex(ctx->digest_ctx, EVP_sha512(), NULL)) {
+ handle_error(__func__);
+ }
+ return ctx;
+}
+
+void sha_update(sha_ctx_t *ctx, const uint8_t *in, int len) {
+ if (!EVP_DigestUpdate(ctx->digest_ctx, in, len)) {
+ handle_error(__func__);
+ }
+}
+
+void sha_final(sha_ctx_t *ctx, uint8_t *out, unsigned int *len) {
+ if (!EVP_DigestFinal_ex(ctx->digest_ctx, out, len)) {
+ handle_error(__func__);
+ }
+}
+
+void sha_reset(sha_ctx_t *ctx) {
+ if (!EVP_MD_CTX_reset(ctx->digest_ctx) ||
+ !EVP_DigestInit_ex(ctx->digest_ctx, EVP_sha512(), NULL)) {
+
+ handle_error(__func__);
+ }
+}
+
+void sha_destroy(sha_ctx_t *ctx) {
+ if (ctx) {
+ EVP_MD_CTX_free(ctx->digest_ctx);
+ free(ctx);
+ }
+}
diff --git a/lib/crypto.h b/lib/crypto.h
new file mode 100644
index 0000000..a77f550
--- /dev/null
+++ b/lib/crypto.h
@@ -0,0 +1,67 @@
+/**
+ * RPiPlay - An open-source AirPlay mirroring server for Raspberry Pi
+ * Copyright (C) 2019 Florian Draschbacher
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * Helper methods for various crypto operations.
+ * Uses OpenSSL behind the scenes.
+*/
+
+#ifndef CRYPTO_H
+#define CRYPTO_H
+
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// 128bit AES in CTR mode
+
+#define AES_128_BLOCK_SIZE 16
+
+typedef enum aes_direction_e { AES_DECRYPT, AES_ENCRYPT } aes_direction_t;
+
+typedef struct aes_ctx_s aes_ctx_t;
+
+aes_ctx_t *aes_ctr_init(const uint8_t *key, const uint8_t *iv);
+void aes_ctr_reset(aes_ctx_t *ctx);
+void aes_ctr_encrypt(aes_ctx_t *ctx, const uint8_t *in, uint8_t *out, int len);
+void aes_ctr_decrypt(aes_ctx_t *ctx, const uint8_t *in, uint8_t *out, int len);
+void aes_ctr_start_fresh_block(aes_ctx_t *ctx);
+void aes_ctr_destroy(aes_ctx_t *ctx);
+
+aes_ctx_t *aes_cbc_init(const uint8_t *key, const uint8_t *iv, aes_direction_t direction);
+void aes_cbc_reset(aes_ctx_t *ctx);
+void aes_cbc_encrypt(aes_ctx_t *ctx, const uint8_t *in, uint8_t *out, int len);
+void aes_cbc_decrypt(aes_ctx_t *ctx, const uint8_t *in, uint8_t *out, int len);
+void aes_cbc_destroy(aes_ctx_t *ctx);
+
+// SHA512
+
+typedef struct sha_ctx_s sha_ctx_t;
+sha_ctx_t *sha_init();
+void sha_update(sha_ctx_t *ctx, const uint8_t *in, int len);
+void sha_final(sha_ctx_t *ctx, uint8_t *out, unsigned int *len);
+void sha_reset(sha_ctx_t *ctx);
+void sha_destroy(sha_ctx_t *ctx);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
diff --git a/lib/curve25519/CMakeLists.txt b/lib/curve25519/CMakeLists.txt
new file mode 100755
index 0000000..fbaeea3
--- /dev/null
+++ b/lib/curve25519/CMakeLists.txt
@@ -0,0 +1,6 @@
+cmake_minimum_required(VERSION 3.4.1)
+aux_source_directory(. curve25519_src)
+set(DIR_SRCS ${curve25519_src})
+add_library( curve25519
+ STATIC
+ ${DIR_SRCS})
\ No newline at end of file
diff --git a/lib/curve25519/curve25519-donna.c b/lib/curve25519/curve25519-donna.c
new file mode 100755
index 0000000..ed15d6c
--- /dev/null
+++ b/lib/curve25519/curve25519-donna.c
@@ -0,0 +1,860 @@
+/* Copyright 2008, Google Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * curve25519-donna: Curve25519 elliptic curve, public key function
+ *
+ * http://code.google.com/p/curve25519-donna/
+ *
+ * Adam Langley
+ *
+ * Derived from public domain C code by Daniel J. Bernstein
+ *
+ * More information about curve25519 can be found here
+ * http://cr.yp.to/ecdh.html
+ *
+ * djb's sample implementation of curve25519 is written in a special assembly
+ * language called qhasm and uses the floating point registers.
+ *
+ * This is, almost, a clean room reimplementation from the curve25519 paper. It
+ * uses many of the tricks described therein. Only the crecip function is taken
+ * from the sample implementation. */
+
+#include
+#include
+
+#ifdef _MSC_VER
+#define inline __inline
+#endif
+
+typedef uint8_t u8;
+typedef int32_t s32;
+typedef int64_t limb;
+
+/* Field element representation:
+ *
+ * Field elements are written as an array of signed, 64-bit limbs, least
+ * significant first. The value of the field element is:
+ * x[0] + 2^26·x[1] + x^51·x[2] + 2^102·x[3] + ...
+ *
+ * i.e. the limbs are 26, 25, 26, 25, ... bits wide. */
+
+/* Sum two numbers: output += in */
+static void fsum(limb *output, const limb *in) {
+ unsigned i;
+ for (i = 0; i < 10; i += 2) {
+ output[0+i] = output[0+i] + in[0+i];
+ output[1+i] = output[1+i] + in[1+i];
+ }
+}
+
+/* Find the difference of two numbers: output = in - output
+ * (note the order of the arguments!). */
+static void fdifference(limb *output, const limb *in) {
+ unsigned i;
+ for (i = 0; i < 10; ++i) {
+ output[i] = in[i] - output[i];
+ }
+}
+
+/* Multiply a number by a scalar: output = in * scalar */
+static void fscalar_product(limb *output, const limb *in, const limb scalar) {
+ unsigned i;
+ for (i = 0; i < 10; ++i) {
+ output[i] = in[i] * scalar;
+ }
+}
+
+/* Multiply two numbers: output = in2 * in
+ *
+ * output must be distinct to both inputs. The inputs are reduced coefficient
+ * form, the output is not.
+ *
+ * output[x] <= 14 * the largest product of the input limbs. */
+static void fproduct(limb *output, const limb *in2, const limb *in) {
+ output[0] = ((limb) ((s32) in2[0])) * ((s32) in[0]);
+ output[1] = ((limb) ((s32) in2[0])) * ((s32) in[1]) +
+ ((limb) ((s32) in2[1])) * ((s32) in[0]);
+ output[2] = 2 * ((limb) ((s32) in2[1])) * ((s32) in[1]) +
+ ((limb) ((s32) in2[0])) * ((s32) in[2]) +
+ ((limb) ((s32) in2[2])) * ((s32) in[0]);
+ output[3] = ((limb) ((s32) in2[1])) * ((s32) in[2]) +
+ ((limb) ((s32) in2[2])) * ((s32) in[1]) +
+ ((limb) ((s32) in2[0])) * ((s32) in[3]) +
+ ((limb) ((s32) in2[3])) * ((s32) in[0]);
+ output[4] = ((limb) ((s32) in2[2])) * ((s32) in[2]) +
+ 2 * (((limb) ((s32) in2[1])) * ((s32) in[3]) +
+ ((limb) ((s32) in2[3])) * ((s32) in[1])) +
+ ((limb) ((s32) in2[0])) * ((s32) in[4]) +
+ ((limb) ((s32) in2[4])) * ((s32) in[0]);
+ output[5] = ((limb) ((s32) in2[2])) * ((s32) in[3]) +
+ ((limb) ((s32) in2[3])) * ((s32) in[2]) +
+ ((limb) ((s32) in2[1])) * ((s32) in[4]) +
+ ((limb) ((s32) in2[4])) * ((s32) in[1]) +
+ ((limb) ((s32) in2[0])) * ((s32) in[5]) +
+ ((limb) ((s32) in2[5])) * ((s32) in[0]);
+ output[6] = 2 * (((limb) ((s32) in2[3])) * ((s32) in[3]) +
+ ((limb) ((s32) in2[1])) * ((s32) in[5]) +
+ ((limb) ((s32) in2[5])) * ((s32) in[1])) +
+ ((limb) ((s32) in2[2])) * ((s32) in[4]) +
+ ((limb) ((s32) in2[4])) * ((s32) in[2]) +
+ ((limb) ((s32) in2[0])) * ((s32) in[6]) +
+ ((limb) ((s32) in2[6])) * ((s32) in[0]);
+ output[7] = ((limb) ((s32) in2[3])) * ((s32) in[4]) +
+ ((limb) ((s32) in2[4])) * ((s32) in[3]) +
+ ((limb) ((s32) in2[2])) * ((s32) in[5]) +
+ ((limb) ((s32) in2[5])) * ((s32) in[2]) +
+ ((limb) ((s32) in2[1])) * ((s32) in[6]) +
+ ((limb) ((s32) in2[6])) * ((s32) in[1]) +
+ ((limb) ((s32) in2[0])) * ((s32) in[7]) +
+ ((limb) ((s32) in2[7])) * ((s32) in[0]);
+ output[8] = ((limb) ((s32) in2[4])) * ((s32) in[4]) +
+ 2 * (((limb) ((s32) in2[3])) * ((s32) in[5]) +
+ ((limb) ((s32) in2[5])) * ((s32) in[3]) +
+ ((limb) ((s32) in2[1])) * ((s32) in[7]) +
+ ((limb) ((s32) in2[7])) * ((s32) in[1])) +
+ ((limb) ((s32) in2[2])) * ((s32) in[6]) +
+ ((limb) ((s32) in2[6])) * ((s32) in[2]) +
+ ((limb) ((s32) in2[0])) * ((s32) in[8]) +
+ ((limb) ((s32) in2[8])) * ((s32) in[0]);
+ output[9] = ((limb) ((s32) in2[4])) * ((s32) in[5]) +
+ ((limb) ((s32) in2[5])) * ((s32) in[4]) +
+ ((limb) ((s32) in2[3])) * ((s32) in[6]) +
+ ((limb) ((s32) in2[6])) * ((s32) in[3]) +
+ ((limb) ((s32) in2[2])) * ((s32) in[7]) +
+ ((limb) ((s32) in2[7])) * ((s32) in[2]) +
+ ((limb) ((s32) in2[1])) * ((s32) in[8]) +
+ ((limb) ((s32) in2[8])) * ((s32) in[1]) +
+ ((limb) ((s32) in2[0])) * ((s32) in[9]) +
+ ((limb) ((s32) in2[9])) * ((s32) in[0]);
+ output[10] = 2 * (((limb) ((s32) in2[5])) * ((s32) in[5]) +
+ ((limb) ((s32) in2[3])) * ((s32) in[7]) +
+ ((limb) ((s32) in2[7])) * ((s32) in[3]) +
+ ((limb) ((s32) in2[1])) * ((s32) in[9]) +
+ ((limb) ((s32) in2[9])) * ((s32) in[1])) +
+ ((limb) ((s32) in2[4])) * ((s32) in[6]) +
+ ((limb) ((s32) in2[6])) * ((s32) in[4]) +
+ ((limb) ((s32) in2[2])) * ((s32) in[8]) +
+ ((limb) ((s32) in2[8])) * ((s32) in[2]);
+ output[11] = ((limb) ((s32) in2[5])) * ((s32) in[6]) +
+ ((limb) ((s32) in2[6])) * ((s32) in[5]) +
+ ((limb) ((s32) in2[4])) * ((s32) in[7]) +
+ ((limb) ((s32) in2[7])) * ((s32) in[4]) +
+ ((limb) ((s32) in2[3])) * ((s32) in[8]) +
+ ((limb) ((s32) in2[8])) * ((s32) in[3]) +
+ ((limb) ((s32) in2[2])) * ((s32) in[9]) +
+ ((limb) ((s32) in2[9])) * ((s32) in[2]);
+ output[12] = ((limb) ((s32) in2[6])) * ((s32) in[6]) +
+ 2 * (((limb) ((s32) in2[5])) * ((s32) in[7]) +
+ ((limb) ((s32) in2[7])) * ((s32) in[5]) +
+ ((limb) ((s32) in2[3])) * ((s32) in[9]) +
+ ((limb) ((s32) in2[9])) * ((s32) in[3])) +
+ ((limb) ((s32) in2[4])) * ((s32) in[8]) +
+ ((limb) ((s32) in2[8])) * ((s32) in[4]);
+ output[13] = ((limb) ((s32) in2[6])) * ((s32) in[7]) +
+ ((limb) ((s32) in2[7])) * ((s32) in[6]) +
+ ((limb) ((s32) in2[5])) * ((s32) in[8]) +
+ ((limb) ((s32) in2[8])) * ((s32) in[5]) +
+ ((limb) ((s32) in2[4])) * ((s32) in[9]) +
+ ((limb) ((s32) in2[9])) * ((s32) in[4]);
+ output[14] = 2 * (((limb) ((s32) in2[7])) * ((s32) in[7]) +
+ ((limb) ((s32) in2[5])) * ((s32) in[9]) +
+ ((limb) ((s32) in2[9])) * ((s32) in[5])) +
+ ((limb) ((s32) in2[6])) * ((s32) in[8]) +
+ ((limb) ((s32) in2[8])) * ((s32) in[6]);
+ output[15] = ((limb) ((s32) in2[7])) * ((s32) in[8]) +
+ ((limb) ((s32) in2[8])) * ((s32) in[7]) +
+ ((limb) ((s32) in2[6])) * ((s32) in[9]) +
+ ((limb) ((s32) in2[9])) * ((s32) in[6]);
+ output[16] = ((limb) ((s32) in2[8])) * ((s32) in[8]) +
+ 2 * (((limb) ((s32) in2[7])) * ((s32) in[9]) +
+ ((limb) ((s32) in2[9])) * ((s32) in[7]));
+ output[17] = ((limb) ((s32) in2[8])) * ((s32) in[9]) +
+ ((limb) ((s32) in2[9])) * ((s32) in[8]);
+ output[18] = 2 * ((limb) ((s32) in2[9])) * ((s32) in[9]);
+}
+
+/* Reduce a long form to a short form by taking the input mod 2^255 - 19.
+ *
+ * On entry: |output[i]| < 14*2^54
+ * On exit: |output[0..8]| < 280*2^54 */
+static void freduce_degree(limb *output) {
+ /* Each of these shifts and adds ends up multiplying the value by 19.
+ *
+ * For output[0..8], the absolute entry value is < 14*2^54 and we add, at
+ * most, 19*14*2^54 thus, on exit, |output[0..8]| < 280*2^54. */
+ output[8] += output[18] << 4;
+ output[8] += output[18] << 1;
+ output[8] += output[18];
+ output[7] += output[17] << 4;
+ output[7] += output[17] << 1;
+ output[7] += output[17];
+ output[6] += output[16] << 4;
+ output[6] += output[16] << 1;
+ output[6] += output[16];
+ output[5] += output[15] << 4;
+ output[5] += output[15] << 1;
+ output[5] += output[15];
+ output[4] += output[14] << 4;
+ output[4] += output[14] << 1;
+ output[4] += output[14];
+ output[3] += output[13] << 4;
+ output[3] += output[13] << 1;
+ output[3] += output[13];
+ output[2] += output[12] << 4;
+ output[2] += output[12] << 1;
+ output[2] += output[12];
+ output[1] += output[11] << 4;
+ output[1] += output[11] << 1;
+ output[1] += output[11];
+ output[0] += output[10] << 4;
+ output[0] += output[10] << 1;
+ output[0] += output[10];
+}
+
+#if (-1 & 3) != 3
+#error "This code only works on a two's complement system"
+#endif
+
+/* return v / 2^26, using only shifts and adds.
+ *
+ * On entry: v can take any value. */
+static inline limb
+div_by_2_26(const limb v)
+{
+ /* High word of v; no shift needed. */
+ const uint32_t highword = (uint32_t) (((uint64_t) v) >> 32);
+ /* Set to all 1s if v was negative; else set to 0s. */
+ const int32_t sign = ((int32_t) highword) >> 31;
+ /* Set to 0x3ffffff if v was negative; else set to 0. */
+ const int32_t roundoff = ((uint32_t) sign) >> 6;
+ /* Should return v / (1<<26) */
+ return (v + roundoff) >> 26;
+}
+
+/* return v / (2^25), using only shifts and adds.
+ *
+ * On entry: v can take any value. */
+static inline limb
+div_by_2_25(const limb v)
+{
+ /* High word of v; no shift needed*/
+ const uint32_t highword = (uint32_t) (((uint64_t) v) >> 32);
+ /* Set to all 1s if v was negative; else set to 0s. */
+ const int32_t sign = ((int32_t) highword) >> 31;
+ /* Set to 0x1ffffff if v was negative; else set to 0. */
+ const int32_t roundoff = ((uint32_t) sign) >> 7;
+ /* Should return v / (1<<25) */
+ return (v + roundoff) >> 25;
+}
+
+/* Reduce all coefficients of the short form input so that |x| < 2^26.
+ *
+ * On entry: |output[i]| < 280*2^54 */
+static void freduce_coefficients(limb *output) {
+ unsigned i;
+
+ output[10] = 0;
+
+ for (i = 0; i < 10; i += 2) {
+ limb over = div_by_2_26(output[i]);
+ /* The entry condition (that |output[i]| < 280*2^54) means that over is, at
+ * most, 280*2^28 in the first iteration of this loop. This is added to the
+ * next limb and we can approximate the resulting bound of that limb by
+ * 281*2^54. */
+ output[i] -= over << 26;
+ output[i+1] += over;
+
+ /* For the first iteration, |output[i+1]| < 281*2^54, thus |over| <
+ * 281*2^29. When this is added to the next limb, the resulting bound can
+ * be approximated as 281*2^54.
+ *
+ * For subsequent iterations of the loop, 281*2^54 remains a conservative
+ * bound and no overflow occurs. */
+ over = div_by_2_25(output[i+1]);
+ output[i+1] -= over << 25;
+ output[i+2] += over;
+ }
+ /* Now |output[10]| < 281*2^29 and all other coefficients are reduced. */
+ output[0] += output[10] << 4;
+ output[0] += output[10] << 1;
+ output[0] += output[10];
+
+ output[10] = 0;
+
+ /* Now output[1..9] are reduced, and |output[0]| < 2^26 + 19*281*2^29
+ * So |over| will be no more than 2^16. */
+ {
+ limb over = div_by_2_26(output[0]);
+ output[0] -= over << 26;
+ output[1] += over;
+ }
+
+ /* Now output[0,2..9] are reduced, and |output[1]| < 2^25 + 2^16 < 2^26. The
+ * bound on |output[1]| is sufficient to meet our needs. */
+}
+
+/* A helpful wrapper around fproduct: output = in * in2.
+ *
+ * On entry: |in[i]| < 2^27 and |in2[i]| < 2^27.
+ *
+ * output must be distinct to both inputs. The output is reduced degree
+ * (indeed, one need only provide storage for 10 limbs) and |output[i]| < 2^26. */
+static void
+fmul(limb *output, const limb *in, const limb *in2) {
+ limb t[19];
+ fproduct(t, in, in2);
+ /* |t[i]| < 14*2^54 */
+ freduce_degree(t);
+ freduce_coefficients(t);
+ /* |t[i]| < 2^26 */
+ memcpy(output, t, sizeof(limb) * 10);
+}
+
+/* Square a number: output = in**2
+ *
+ * output must be distinct from the input. The inputs are reduced coefficient
+ * form, the output is not.
+ *
+ * output[x] <= 14 * the largest product of the input limbs. */
+static void fsquare_inner(limb *output, const limb *in) {
+ output[0] = ((limb) ((s32) in[0])) * ((s32) in[0]);
+ output[1] = 2 * ((limb) ((s32) in[0])) * ((s32) in[1]);
+ output[2] = 2 * (((limb) ((s32) in[1])) * ((s32) in[1]) +
+ ((limb) ((s32) in[0])) * ((s32) in[2]));
+ output[3] = 2 * (((limb) ((s32) in[1])) * ((s32) in[2]) +
+ ((limb) ((s32) in[0])) * ((s32) in[3]));
+ output[4] = ((limb) ((s32) in[2])) * ((s32) in[2]) +
+ 4 * ((limb) ((s32) in[1])) * ((s32) in[3]) +
+ 2 * ((limb) ((s32) in[0])) * ((s32) in[4]);
+ output[5] = 2 * (((limb) ((s32) in[2])) * ((s32) in[3]) +
+ ((limb) ((s32) in[1])) * ((s32) in[4]) +
+ ((limb) ((s32) in[0])) * ((s32) in[5]));
+ output[6] = 2 * (((limb) ((s32) in[3])) * ((s32) in[3]) +
+ ((limb) ((s32) in[2])) * ((s32) in[4]) +
+ ((limb) ((s32) in[0])) * ((s32) in[6]) +
+ 2 * ((limb) ((s32) in[1])) * ((s32) in[5]));
+ output[7] = 2 * (((limb) ((s32) in[3])) * ((s32) in[4]) +
+ ((limb) ((s32) in[2])) * ((s32) in[5]) +
+ ((limb) ((s32) in[1])) * ((s32) in[6]) +
+ ((limb) ((s32) in[0])) * ((s32) in[7]));
+ output[8] = ((limb) ((s32) in[4])) * ((s32) in[4]) +
+ 2 * (((limb) ((s32) in[2])) * ((s32) in[6]) +
+ ((limb) ((s32) in[0])) * ((s32) in[8]) +
+ 2 * (((limb) ((s32) in[1])) * ((s32) in[7]) +
+ ((limb) ((s32) in[3])) * ((s32) in[5])));
+ output[9] = 2 * (((limb) ((s32) in[4])) * ((s32) in[5]) +
+ ((limb) ((s32) in[3])) * ((s32) in[6]) +
+ ((limb) ((s32) in[2])) * ((s32) in[7]) +
+ ((limb) ((s32) in[1])) * ((s32) in[8]) +
+ ((limb) ((s32) in[0])) * ((s32) in[9]));
+ output[10] = 2 * (((limb) ((s32) in[5])) * ((s32) in[5]) +
+ ((limb) ((s32) in[4])) * ((s32) in[6]) +
+ ((limb) ((s32) in[2])) * ((s32) in[8]) +
+ 2 * (((limb) ((s32) in[3])) * ((s32) in[7]) +
+ ((limb) ((s32) in[1])) * ((s32) in[9])));
+ output[11] = 2 * (((limb) ((s32) in[5])) * ((s32) in[6]) +
+ ((limb) ((s32) in[4])) * ((s32) in[7]) +
+ ((limb) ((s32) in[3])) * ((s32) in[8]) +
+ ((limb) ((s32) in[2])) * ((s32) in[9]));
+ output[12] = ((limb) ((s32) in[6])) * ((s32) in[6]) +
+ 2 * (((limb) ((s32) in[4])) * ((s32) in[8]) +
+ 2 * (((limb) ((s32) in[5])) * ((s32) in[7]) +
+ ((limb) ((s32) in[3])) * ((s32) in[9])));
+ output[13] = 2 * (((limb) ((s32) in[6])) * ((s32) in[7]) +
+ ((limb) ((s32) in[5])) * ((s32) in[8]) +
+ ((limb) ((s32) in[4])) * ((s32) in[9]));
+ output[14] = 2 * (((limb) ((s32) in[7])) * ((s32) in[7]) +
+ ((limb) ((s32) in[6])) * ((s32) in[8]) +
+ 2 * ((limb) ((s32) in[5])) * ((s32) in[9]));
+ output[15] = 2 * (((limb) ((s32) in[7])) * ((s32) in[8]) +
+ ((limb) ((s32) in[6])) * ((s32) in[9]));
+ output[16] = ((limb) ((s32) in[8])) * ((s32) in[8]) +
+ 4 * ((limb) ((s32) in[7])) * ((s32) in[9]);
+ output[17] = 2 * ((limb) ((s32) in[8])) * ((s32) in[9]);
+ output[18] = 2 * ((limb) ((s32) in[9])) * ((s32) in[9]);
+}
+
+/* fsquare sets output = in^2.
+ *
+ * On entry: The |in| argument is in reduced coefficients form and |in[i]| <
+ * 2^27.
+ *
+ * On exit: The |output| argument is in reduced coefficients form (indeed, one
+ * need only provide storage for 10 limbs) and |out[i]| < 2^26. */
+static void
+fsquare(limb *output, const limb *in) {
+ limb t[19];
+ fsquare_inner(t, in);
+ /* |t[i]| < 14*2^54 because the largest product of two limbs will be <
+ * 2^(27+27) and fsquare_inner adds together, at most, 14 of those
+ * products. */
+ freduce_degree(t);
+ freduce_coefficients(t);
+ /* |t[i]| < 2^26 */
+ memcpy(output, t, sizeof(limb) * 10);
+}
+
+/* Take a little-endian, 32-byte number and expand it into polynomial form */
+static void
+fexpand(limb *output, const u8 *input) {
+#define F(n,start,shift,mask) \
+ output[n] = ((((limb) input[start + 0]) | \
+ ((limb) input[start + 1]) << 8 | \
+ ((limb) input[start + 2]) << 16 | \
+ ((limb) input[start + 3]) << 24) >> shift) & mask;
+ F(0, 0, 0, 0x3ffffff);
+ F(1, 3, 2, 0x1ffffff);
+ F(2, 6, 3, 0x3ffffff);
+ F(3, 9, 5, 0x1ffffff);
+ F(4, 12, 6, 0x3ffffff);
+ F(5, 16, 0, 0x1ffffff);
+ F(6, 19, 1, 0x3ffffff);
+ F(7, 22, 3, 0x1ffffff);
+ F(8, 25, 4, 0x3ffffff);
+ F(9, 28, 6, 0x1ffffff);
+#undef F
+}
+
+#if (-32 >> 1) != -16
+#error "This code only works when >> does sign-extension on negative numbers"
+#endif
+
+/* s32_eq returns 0xffffffff iff a == b and zero otherwise. */
+static s32 s32_eq(s32 a, s32 b) {
+ a = ~(a ^ b);
+ a &= a << 16;
+ a &= a << 8;
+ a &= a << 4;
+ a &= a << 2;
+ a &= a << 1;
+ return a >> 31;
+}
+
+/* s32_gte returns 0xffffffff if a >= b and zero otherwise, where a and b are
+ * both non-negative. */
+static s32 s32_gte(s32 a, s32 b) {
+ a -= b;
+ /* a >= 0 iff a >= b. */
+ return ~(a >> 31);
+}
+
+/* Take a fully reduced polynomial form number and contract it into a
+ * little-endian, 32-byte array.
+ *
+ * On entry: |input_limbs[i]| < 2^26 */
+static void
+fcontract(u8 *output, limb *input_limbs) {
+ int i;
+ int j;
+ s32 input[10];
+ s32 mask;
+
+ /* |input_limbs[i]| < 2^26, so it's valid to convert to an s32. */
+ for (i = 0; i < 10; i++) {
+ input[i] = input_limbs[i];
+ }
+
+ for (j = 0; j < 2; ++j) {
+ for (i = 0; i < 9; ++i) {
+ if ((i & 1) == 1) {
+ /* This calculation is a time-invariant way to make input[i]
+ * non-negative by borrowing from the next-larger limb. */
+ const s32 mask = input[i] >> 31;
+ const s32 carry = -((input[i] & mask) >> 25);
+ input[i] = input[i] + (carry << 25);
+ input[i+1] = input[i+1] - carry;
+ } else {
+ const s32 mask = input[i] >> 31;
+ const s32 carry = -((input[i] & mask) >> 26);
+ input[i] = input[i] + (carry << 26);
+ input[i+1] = input[i+1] - carry;
+ }
+ }
+
+ /* There's no greater limb for input[9] to borrow from, but we can multiply
+ * by 19 and borrow from input[0], which is valid mod 2^255-19. */
+ {
+ const s32 mask = input[9] >> 31;
+ const s32 carry = -((input[9] & mask) >> 25);
+ input[9] = input[9] + (carry << 25);
+ input[0] = input[0] - (carry * 19);
+ }
+
+ /* After the first iteration, input[1..9] are non-negative and fit within
+ * 25 or 26 bits, depending on position. However, input[0] may be
+ * negative. */
+ }
+
+ /* The first borrow-propagation pass above ended with every limb
+ except (possibly) input[0] non-negative.
+
+ If input[0] was negative after the first pass, then it was because of a
+ carry from input[9]. On entry, input[9] < 2^26 so the carry was, at most,
+ one, since (2**26-1) >> 25 = 1. Thus input[0] >= -19.
+
+ In the second pass, each limb is decreased by at most one. Thus the second
+ borrow-propagation pass could only have wrapped around to decrease
+ input[0] again if the first pass left input[0] negative *and* input[1]
+ through input[9] were all zero. In that case, input[1] is now 2^25 - 1,
+ and this last borrow-propagation step will leave input[1] non-negative. */
+ {
+ const s32 mask = input[0] >> 31;
+ const s32 carry = -((input[0] & mask) >> 26);
+ input[0] = input[0] + (carry << 26);
+ input[1] = input[1] - carry;
+ }
+
+ /* All input[i] are now non-negative. However, there might be values between
+ * 2^25 and 2^26 in a limb which is, nominally, 25 bits wide. */
+ for (j = 0; j < 2; j++) {
+ for (i = 0; i < 9; i++) {
+ if ((i & 1) == 1) {
+ const s32 carry = input[i] >> 25;
+ input[i] &= 0x1ffffff;
+ input[i+1] += carry;
+ } else {
+ const s32 carry = input[i] >> 26;
+ input[i] &= 0x3ffffff;
+ input[i+1] += carry;
+ }
+ }
+
+ {
+ const s32 carry = input[9] >> 25;
+ input[9] &= 0x1ffffff;
+ input[0] += 19*carry;
+ }
+ }
+
+ /* If the first carry-chain pass, just above, ended up with a carry from
+ * input[9], and that caused input[0] to be out-of-bounds, then input[0] was
+ * < 2^26 + 2*19, because the carry was, at most, two.
+ *
+ * If the second pass carried from input[9] again then input[0] is < 2*19 and
+ * the input[9] -> input[0] carry didn't push input[0] out of bounds. */
+
+ /* It still remains the case that input might be between 2^255-19 and 2^255.
+ * In this case, input[1..9] must take their maximum value and input[0] must
+ * be >= (2^255-19) & 0x3ffffff, which is 0x3ffffed. */
+ mask = s32_gte(input[0], 0x3ffffed);
+ for (i = 1; i < 10; i++) {
+ if ((i & 1) == 1) {
+ mask &= s32_eq(input[i], 0x1ffffff);
+ } else {
+ mask &= s32_eq(input[i], 0x3ffffff);
+ }
+ }
+
+ /* mask is either 0xffffffff (if input >= 2^255-19) and zero otherwise. Thus
+ * this conditionally subtracts 2^255-19. */
+ input[0] -= mask & 0x3ffffed;
+
+ for (i = 1; i < 10; i++) {
+ if ((i & 1) == 1) {
+ input[i] -= mask & 0x1ffffff;
+ } else {
+ input[i] -= mask & 0x3ffffff;
+ }
+ }
+
+ input[1] <<= 2;
+ input[2] <<= 3;
+ input[3] <<= 5;
+ input[4] <<= 6;
+ input[6] <<= 1;
+ input[7] <<= 3;
+ input[8] <<= 4;
+ input[9] <<= 6;
+#define F(i, s) \
+ output[s+0] |= input[i] & 0xff; \
+ output[s+1] = (input[i] >> 8) & 0xff; \
+ output[s+2] = (input[i] >> 16) & 0xff; \
+ output[s+3] = (input[i] >> 24) & 0xff;
+ output[0] = 0;
+ output[16] = 0;
+ F(0,0);
+ F(1,3);
+ F(2,6);
+ F(3,9);
+ F(4,12);
+ F(5,16);
+ F(6,19);
+ F(7,22);
+ F(8,25);
+ F(9,28);
+#undef F
+}
+
+/* Input: Q, Q', Q-Q'
+ * Output: 2Q, Q+Q'
+ *
+ * x2 z3: long form
+ * x3 z3: long form
+ * x z: short form, destroyed
+ * xprime zprime: short form, destroyed
+ * qmqp: short form, preserved
+ *
+ * On entry and exit, the absolute value of the limbs of all inputs and outputs
+ * are < 2^26. */
+static void fmonty(limb *x2, limb *z2, /* output 2Q */
+ limb *x3, limb *z3, /* output Q + Q' */
+ limb *x, limb *z, /* input Q */
+ limb *xprime, limb *zprime, /* input Q' */
+ const limb *qmqp /* input Q - Q' */) {
+ limb origx[10], origxprime[10], zzz[19], xx[19], zz[19], xxprime[19],
+ zzprime[19], zzzprime[19], xxxprime[19];
+
+ memcpy(origx, x, 10 * sizeof(limb));
+ fsum(x, z);
+ /* |x[i]| < 2^27 */
+ fdifference(z, origx); /* does x - z */
+ /* |z[i]| < 2^27 */
+
+ memcpy(origxprime, xprime, sizeof(limb) * 10);
+ fsum(xprime, zprime);
+ /* |xprime[i]| < 2^27 */
+ fdifference(zprime, origxprime);
+ /* |zprime[i]| < 2^27 */
+ fproduct(xxprime, xprime, z);
+ /* |xxprime[i]| < 14*2^54: the largest product of two limbs will be <
+ * 2^(27+27) and fproduct adds together, at most, 14 of those products.
+ * (Approximating that to 2^58 doesn't work out.) */
+ fproduct(zzprime, x, zprime);
+ /* |zzprime[i]| < 14*2^54 */
+ freduce_degree(xxprime);
+ freduce_coefficients(xxprime);
+ /* |xxprime[i]| < 2^26 */
+ freduce_degree(zzprime);
+ freduce_coefficients(zzprime);
+ /* |zzprime[i]| < 2^26 */
+ memcpy(origxprime, xxprime, sizeof(limb) * 10);
+ fsum(xxprime, zzprime);
+ /* |xxprime[i]| < 2^27 */
+ fdifference(zzprime, origxprime);
+ /* |zzprime[i]| < 2^27 */
+ fsquare(xxxprime, xxprime);
+ /* |xxxprime[i]| < 2^26 */
+ fsquare(zzzprime, zzprime);
+ /* |zzzprime[i]| < 2^26 */
+ fproduct(zzprime, zzzprime, qmqp);
+ /* |zzprime[i]| < 14*2^52 */
+ freduce_degree(zzprime);
+ freduce_coefficients(zzprime);
+ /* |zzprime[i]| < 2^26 */
+ memcpy(x3, xxxprime, sizeof(limb) * 10);
+ memcpy(z3, zzprime, sizeof(limb) * 10);
+
+ fsquare(xx, x);
+ /* |xx[i]| < 2^26 */
+ fsquare(zz, z);
+ /* |zz[i]| < 2^26 */
+ fproduct(x2, xx, zz);
+ /* |x2[i]| < 14*2^52 */
+ freduce_degree(x2);
+ freduce_coefficients(x2);
+ /* |x2[i]| < 2^26 */
+ fdifference(zz, xx); // does zz = xx - zz
+ /* |zz[i]| < 2^27 */
+ memset(zzz + 10, 0, sizeof(limb) * 9);
+ fscalar_product(zzz, zz, 121665);
+ /* |zzz[i]| < 2^(27+17) */
+ /* No need to call freduce_degree here:
+ fscalar_product doesn't increase the degree of its input. */
+ freduce_coefficients(zzz);
+ /* |zzz[i]| < 2^26 */
+ fsum(zzz, xx);
+ /* |zzz[i]| < 2^27 */
+ fproduct(z2, zz, zzz);
+ /* |z2[i]| < 14*2^(26+27) */
+ freduce_degree(z2);
+ freduce_coefficients(z2);
+ /* |z2|i| < 2^26 */
+}
+
+/* Conditionally swap two reduced-form limb arrays if 'iswap' is 1, but leave
+ * them unchanged if 'iswap' is 0. Runs in data-invariant time to avoid
+ * side-channel attacks.
+ *
+ * NOTE that this function requires that 'iswap' be 1 or 0; other values give
+ * wrong results. Also, the two limb arrays must be in reduced-coefficient,
+ * reduced-degree form: the values in a[10..19] or b[10..19] aren't swapped,
+ * and all all values in a[0..9],b[0..9] must have magnitude less than
+ * INT32_MAX. */
+static void
+swap_conditional(limb a[19], limb b[19], limb iswap) {
+ unsigned i;
+ const s32 swap = (s32) -iswap;
+
+ for (i = 0; i < 10; ++i) {
+ const s32 x = swap & ( ((s32)a[i]) ^ ((s32)b[i]) );
+ a[i] = ((s32)a[i]) ^ x;
+ b[i] = ((s32)b[i]) ^ x;
+ }
+}
+
+/* Calculates nQ where Q is the x-coordinate of a point on the curve
+ *
+ * resultx/resultz: the x coordinate of the resulting curve point (short form)
+ * n: a little endian, 32-byte number
+ * q: a point of the curve (short form) */
+static void
+cmult(limb *resultx, limb *resultz, const u8 *n, const limb *q) {
+ limb a[19] = {0}, b[19] = {1}, c[19] = {1}, d[19] = {0};
+ limb *nqpqx = a, *nqpqz = b, *nqx = c, *nqz = d, *t;
+ limb e[19] = {0}, f[19] = {1}, g[19] = {0}, h[19] = {1};
+ limb *nqpqx2 = e, *nqpqz2 = f, *nqx2 = g, *nqz2 = h;
+
+ unsigned i, j;
+
+ memcpy(nqpqx, q, sizeof(limb) * 10);
+
+ for (i = 0; i < 32; ++i) {
+ u8 byte = n[31 - i];
+ for (j = 0; j < 8; ++j) {
+ const limb bit = byte >> 7;
+
+ swap_conditional(nqx, nqpqx, bit);
+ swap_conditional(nqz, nqpqz, bit);
+ fmonty(nqx2, nqz2,
+ nqpqx2, nqpqz2,
+ nqx, nqz,
+ nqpqx, nqpqz,
+ q);
+ swap_conditional(nqx2, nqpqx2, bit);
+ swap_conditional(nqz2, nqpqz2, bit);
+
+ t = nqx;
+ nqx = nqx2;
+ nqx2 = t;
+ t = nqz;
+ nqz = nqz2;
+ nqz2 = t;
+ t = nqpqx;
+ nqpqx = nqpqx2;
+ nqpqx2 = t;
+ t = nqpqz;
+ nqpqz = nqpqz2;
+ nqpqz2 = t;
+
+ byte <<= 1;
+ }
+ }
+
+ memcpy(resultx, nqx, sizeof(limb) * 10);
+ memcpy(resultz, nqz, sizeof(limb) * 10);
+}
+
+// -----------------------------------------------------------------------------
+// Shamelessly copied from djb's code
+// -----------------------------------------------------------------------------
+static void
+crecip(limb *out, const limb *z) {
+ limb z2[10];
+ limb z9[10];
+ limb z11[10];
+ limb z2_5_0[10];
+ limb z2_10_0[10];
+ limb z2_20_0[10];
+ limb z2_50_0[10];
+ limb z2_100_0[10];
+ limb t0[10];
+ limb t1[10];
+ int i;
+
+ /* 2 */ fsquare(z2,z);
+ /* 4 */ fsquare(t1,z2);
+ /* 8 */ fsquare(t0,t1);
+ /* 9 */ fmul(z9,t0,z);
+ /* 11 */ fmul(z11,z9,z2);
+ /* 22 */ fsquare(t0,z11);
+ /* 2^5 - 2^0 = 31 */ fmul(z2_5_0,t0,z9);
+
+ /* 2^6 - 2^1 */ fsquare(t0,z2_5_0);
+ /* 2^7 - 2^2 */ fsquare(t1,t0);
+ /* 2^8 - 2^3 */ fsquare(t0,t1);
+ /* 2^9 - 2^4 */ fsquare(t1,t0);
+ /* 2^10 - 2^5 */ fsquare(t0,t1);
+ /* 2^10 - 2^0 */ fmul(z2_10_0,t0,z2_5_0);
+
+ /* 2^11 - 2^1 */ fsquare(t0,z2_10_0);
+ /* 2^12 - 2^2 */ fsquare(t1,t0);
+ /* 2^20 - 2^10 */ for (i = 2;i < 10;i += 2) { fsquare(t0,t1); fsquare(t1,t0); }
+ /* 2^20 - 2^0 */ fmul(z2_20_0,t1,z2_10_0);
+
+ /* 2^21 - 2^1 */ fsquare(t0,z2_20_0);
+ /* 2^22 - 2^2 */ fsquare(t1,t0);
+ /* 2^40 - 2^20 */ for (i = 2;i < 20;i += 2) { fsquare(t0,t1); fsquare(t1,t0); }
+ /* 2^40 - 2^0 */ fmul(t0,t1,z2_20_0);
+
+ /* 2^41 - 2^1 */ fsquare(t1,t0);
+ /* 2^42 - 2^2 */ fsquare(t0,t1);
+ /* 2^50 - 2^10 */ for (i = 2;i < 10;i += 2) { fsquare(t1,t0); fsquare(t0,t1); }
+ /* 2^50 - 2^0 */ fmul(z2_50_0,t0,z2_10_0);
+
+ /* 2^51 - 2^1 */ fsquare(t0,z2_50_0);
+ /* 2^52 - 2^2 */ fsquare(t1,t0);
+ /* 2^100 - 2^50 */ for (i = 2;i < 50;i += 2) { fsquare(t0,t1); fsquare(t1,t0); }
+ /* 2^100 - 2^0 */ fmul(z2_100_0,t1,z2_50_0);
+
+ /* 2^101 - 2^1 */ fsquare(t1,z2_100_0);
+ /* 2^102 - 2^2 */ fsquare(t0,t1);
+ /* 2^200 - 2^100 */ for (i = 2;i < 100;i += 2) { fsquare(t1,t0); fsquare(t0,t1); }
+ /* 2^200 - 2^0 */ fmul(t1,t0,z2_100_0);
+
+ /* 2^201 - 2^1 */ fsquare(t0,t1);
+ /* 2^202 - 2^2 */ fsquare(t1,t0);
+ /* 2^250 - 2^50 */ for (i = 2;i < 50;i += 2) { fsquare(t0,t1); fsquare(t1,t0); }
+ /* 2^250 - 2^0 */ fmul(t0,t1,z2_50_0);
+
+ /* 2^251 - 2^1 */ fsquare(t1,t0);
+ /* 2^252 - 2^2 */ fsquare(t0,t1);
+ /* 2^253 - 2^3 */ fsquare(t1,t0);
+ /* 2^254 - 2^4 */ fsquare(t0,t1);
+ /* 2^255 - 2^5 */ fsquare(t1,t0);
+ /* 2^255 - 21 */ fmul(out,t1,z11);
+}
+
+int
+curve25519_donna(u8 *mypublic, const u8 *secret, const u8 *basepoint) {
+ limb bp[10], x[10], z[11], zmone[10];
+ uint8_t e[32];
+ int i;
+
+ for (i = 0; i < 32; ++i) e[i] = secret[i];
+ e[0] &= 248;
+ e[31] &= 127;
+ e[31] |= 64;
+
+ fexpand(bp, basepoint);
+ cmult(x, z, e, bp);
+ crecip(zmone, z);
+ fmul(z, x, zmone);
+ fcontract(mypublic, z);
+ return 0;
+}
diff --git a/lib/curve25519/curve25519.h b/lib/curve25519/curve25519.h
new file mode 100755
index 0000000..bf44cfa
--- /dev/null
+++ b/lib/curve25519/curve25519.h
@@ -0,0 +1,8 @@
+#ifndef CURVE25519_DONNA_H
+#define CURVE25519_DONNA_H
+
+static const unsigned char kCurve25519BasePoint[32] = { 9 };
+
+int curve25519_donna(unsigned char *mypublic, const unsigned char *secret, const unsigned char *basepoint);
+
+#endif
diff --git a/lib/dnssd.c b/lib/dnssd.c
new file mode 100644
index 0000000..a3432a0
--- /dev/null
+++ b/lib/dnssd.c
@@ -0,0 +1,406 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+/* These defines allow us to compile on iOS */
+#ifndef __has_feature
+# define __has_feature(x) 0
+#endif
+#ifndef __has_extension
+# define __has_extension __has_feature
+#endif
+
+#include
+#include
+#include
+#include
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "dnssdint.h"
+#include "dnssd.h"
+#include "global.h"
+#include "compat.h"
+#include "utils.h"
+
+#include
+
+#define MAX_DEVICEID 18
+#define MAX_SERVNAME 256
+
+#if defined(HAVE_LIBDL) && !defined(__APPLE__)
+# define USE_LIBDL 1
+#else
+# define USE_LIBDL 0
+#endif
+
+#if defined(WIN32) || USE_LIBDL
+# ifdef WIN32
+# include
+# if !defined(EFI32) && !defined(EFI64)
+# define DNSSD_STDCALL __stdcall
+# else
+# define DNSSD_STDCALL
+# endif
+# else
+# include
+# define DNSSD_STDCALL
+# endif
+
+typedef struct _DNSServiceRef_t *DNSServiceRef;
+typedef union _TXTRecordRef_t { char PrivateData[16]; char *ForceNaturalAlignment; } TXTRecordRef;
+
+typedef uint32_t DNSServiceFlags;
+typedef int32_t DNSServiceErrorType;
+
+typedef void (DNSSD_STDCALL *DNSServiceRegisterReply)
+ (
+ DNSServiceRef sdRef,
+ DNSServiceFlags flags,
+ DNSServiceErrorType errorCode,
+ const char *name,
+ const char *regtype,
+ const char *domain,
+ void *context
+ );
+
+#else
+//# include
+# define DNSSD_STDCALL
+#endif
+
+typedef DNSServiceErrorType (DNSSD_STDCALL *DNSServiceRegister_t)
+ (
+ DNSServiceRef *sdRef,
+ DNSServiceFlags flags,
+ uint32_t interfaceIndex,
+ const char *name,
+ const char *regtype,
+ const char *domain,
+ const char *host,
+ uint16_t port,
+ uint16_t txtLen,
+ const void *txtRecord,
+ DNSServiceRegisterReply callBack,
+ void *context
+ );
+typedef void (DNSSD_STDCALL *DNSServiceRefDeallocate_t)(DNSServiceRef sdRef);
+typedef void (DNSSD_STDCALL *TXTRecordCreate_t)
+ (
+ TXTRecordRef *txtRecord,
+ uint16_t bufferLen,
+ void *buffer
+ );
+typedef void (DNSSD_STDCALL *TXTRecordDeallocate_t)(TXTRecordRef *txtRecord);
+typedef DNSServiceErrorType (DNSSD_STDCALL *TXTRecordSetValue_t)
+ (
+ TXTRecordRef *txtRecord,
+ const char *key,
+ uint8_t valueSize,
+ const void *value
+ );
+typedef uint16_t (DNSSD_STDCALL *TXTRecordGetLength_t)(const TXTRecordRef *txtRecord);
+typedef const void * (DNSSD_STDCALL *TXTRecordGetBytesPtr_t)(const TXTRecordRef *txtRecord);
+
+
+struct dnssd_s {
+#ifdef WIN32
+ HMODULE module;
+#elif USE_LIBDL
+ void *module;
+#endif
+
+ DNSServiceRegister_t DNSServiceRegister;
+ DNSServiceRefDeallocate_t DNSServiceRefDeallocate;
+ TXTRecordCreate_t TXTRecordCreate;
+ TXTRecordSetValue_t TXTRecordSetValue;
+ TXTRecordGetLength_t TXTRecordGetLength;
+ TXTRecordGetBytesPtr_t TXTRecordGetBytesPtr;
+ TXTRecordDeallocate_t TXTRecordDeallocate;
+
+ TXTRecordRef raop_record;
+ TXTRecordRef airplay_record;
+
+ DNSServiceRef raop_service;
+ DNSServiceRef airplay_service;
+
+ char *name;
+ int name_len;
+
+ char *hw_addr;
+ int hw_addr_len;
+};
+
+
+
+dnssd_t *
+dnssd_init(const char* name, int name_len, const char* hw_addr, int hw_addr_len, int *error)
+{
+ dnssd_t *dnssd;
+
+ if (error) *error = DNSSD_ERROR_NOERROR;
+
+ dnssd = calloc(1, sizeof(dnssd_t));
+ if (!dnssd) {
+ if (error) *error = DNSSD_ERROR_OUTOFMEM;
+ return NULL;
+ }
+
+#ifdef WIN32
+ dnssd->module = LoadLibraryA("dnssd.dll");
+ if (!dnssd->module) {
+ if (error) *error = DNSSD_ERROR_LIBNOTFOUND;
+ free(dnssd);
+ return NULL;
+ }
+ dnssd->DNSServiceRegister = (DNSServiceRegister_t)GetProcAddress(dnssd->module, "DNSServiceRegister");
+ dnssd->DNSServiceRefDeallocate = (DNSServiceRefDeallocate_t)GetProcAddress(dnssd->module, "DNSServiceRefDeallocate");
+ dnssd->TXTRecordCreate = (TXTRecordCreate_t)GetProcAddress(dnssd->module, "TXTRecordCreate");
+ dnssd->TXTRecordSetValue = (TXTRecordSetValue_t)GetProcAddress(dnssd->module, "TXTRecordSetValue");
+ dnssd->TXTRecordGetLength = (TXTRecordGetLength_t)GetProcAddress(dnssd->module, "TXTRecordGetLength");
+ dnssd->TXTRecordGetBytesPtr = (TXTRecordGetBytesPtr_t)GetProcAddress(dnssd->module, "TXTRecordGetBytesPtr");
+ dnssd->TXTRecordDeallocate = (TXTRecordDeallocate_t)GetProcAddress(dnssd->module, "TXTRecordDeallocate");
+
+ if (!dnssd->DNSServiceRegister || !dnssd->DNSServiceRefDeallocate || !dnssd->TXTRecordCreate ||
+ !dnssd->TXTRecordSetValue || !dnssd->TXTRecordGetLength || !dnssd->TXTRecordGetBytesPtr ||
+ !dnssd->TXTRecordDeallocate) {
+ if (error) *error = DNSSD_ERROR_PROCNOTFOUND;
+ FreeLibrary(dnssd->module);
+ free(dnssd);
+ return NULL;
+ }
+#elif USE_LIBDL
+ dnssd->module = dlopen("libdns_sd.so", RTLD_LAZY);
+ if (!dnssd->module) {
+ if (error) *error = DNSSD_ERROR_LIBNOTFOUND;
+ free(dnssd);
+ return NULL;
+ }
+ dnssd->DNSServiceRegister = (DNSServiceRegister_t)dlsym(dnssd->module, "DNSServiceRegister");
+ dnssd->DNSServiceRefDeallocate = (DNSServiceRefDeallocate_t)dlsym(dnssd->module, "DNSServiceRefDeallocate");
+ dnssd->TXTRecordCreate = (TXTRecordCreate_t)dlsym(dnssd->module, "TXTRecordCreate");
+ dnssd->TXTRecordSetValue = (TXTRecordSetValue_t)dlsym(dnssd->module, "TXTRecordSetValue");
+ dnssd->TXTRecordGetLength = (TXTRecordGetLength_t)dlsym(dnssd->module, "TXTRecordGetLength");
+ dnssd->TXTRecordGetBytesPtr = (TXTRecordGetBytesPtr_t)dlsym(dnssd->module, "TXTRecordGetBytesPtr");
+ dnssd->TXTRecordDeallocate = (TXTRecordDeallocate_t)dlsym(dnssd->module, "TXTRecordDeallocate");
+
+ if (!dnssd->DNSServiceRegister || !dnssd->DNSServiceRefDeallocate || !dnssd->TXTRecordCreate ||
+ !dnssd->TXTRecordSetValue || !dnssd->TXTRecordGetLength || !dnssd->TXTRecordGetBytesPtr ||
+ !dnssd->TXTRecordDeallocate) {
+ if (error) *error = DNSSD_ERROR_PROCNOTFOUND;
+ dlclose(dnssd->module);
+ free(dnssd);
+ return NULL;
+ }
+#else
+ dnssd->DNSServiceRegister = &DNSServiceRegister;
+ dnssd->DNSServiceRefDeallocate = &DNSServiceRefDeallocate;
+ dnssd->TXTRecordCreate = &TXTRecordCreate;
+ dnssd->TXTRecordSetValue = &TXTRecordSetValue;
+ dnssd->TXTRecordGetLength = &TXTRecordGetLength;
+ dnssd->TXTRecordGetBytesPtr = &TXTRecordGetBytesPtr;
+ dnssd->TXTRecordDeallocate = &TXTRecordDeallocate;
+#endif
+
+ dnssd->name_len = name_len;
+ dnssd->name = calloc(1, name_len);
+ if (!dnssd->name) {
+ free(dnssd);
+ if (error) *error = DNSSD_ERROR_OUTOFMEM;
+ return NULL;
+ }
+ memcpy(dnssd->name, name, name_len);
+
+ dnssd->hw_addr_len = hw_addr_len;
+ dnssd->hw_addr = calloc(1, dnssd->hw_addr_len);
+ if (!dnssd->hw_addr) {
+ free(dnssd->name);
+ free(dnssd);
+ if (error) *error = DNSSD_ERROR_OUTOFMEM;
+ return NULL;
+ }
+
+ memcpy(dnssd->hw_addr, hw_addr, hw_addr_len);
+
+ return dnssd;
+}
+
+void
+dnssd_destroy(dnssd_t *dnssd)
+{
+ if (dnssd) {
+#ifdef WIN32
+ FreeLibrary(dnssd->module);
+#elif USE_LIBDL
+ dlclose(dnssd->module);
+#endif
+ free(dnssd);
+ }
+}
+
+int
+dnssd_register_raop(dnssd_t *dnssd, unsigned short port)
+{
+ char servname[MAX_SERVNAME];
+
+ assert(dnssd);
+
+ dnssd->TXTRecordCreate(&dnssd->raop_record, 0, NULL);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "ch", strlen(RAOP_CH), RAOP_CH);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "cn", strlen(RAOP_CN), RAOP_CN);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "da", strlen(RAOP_DA), RAOP_DA);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "et", strlen(RAOP_ET), RAOP_ET);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "vv", strlen(RAOP_VV), RAOP_VV);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "ft", strlen(RAOP_FT), RAOP_FT);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "am", strlen(GLOBAL_MODEL), GLOBAL_MODEL);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "md", strlen(RAOP_MD), RAOP_MD);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "rhd", strlen(RAOP_RHD), RAOP_RHD);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "pw", strlen("false"), "false");
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "sr", strlen(RAOP_SR), RAOP_SR);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "ss", strlen(RAOP_SS), RAOP_SS);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "sv", strlen(RAOP_SV), RAOP_SV);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "tp", strlen(RAOP_TP), RAOP_TP);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "txtvers", strlen(RAOP_TXTVERS), RAOP_TXTVERS);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "sf", strlen(RAOP_SF), RAOP_SF);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "vs", strlen(RAOP_VS), RAOP_VS);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "vn", strlen(RAOP_VN), RAOP_VN);
+ dnssd->TXTRecordSetValue(&dnssd->raop_record, "pk", strlen(RAOP_PK), RAOP_PK);
+
+ /* Convert hardware address to string */
+ if (utils_hwaddr_raop(servname, sizeof(servname), dnssd->hw_addr, dnssd->hw_addr_len) < 0) {
+ /* FIXME: handle better */
+ return -1;
+ }
+
+ /* Check that we have bytes for 'hw@name' format */
+ if (sizeof(servname) < strlen(servname) + 1 + dnssd->name_len + 1) {
+ /* FIXME: handle better */
+ return -2;
+ }
+
+ strncat(servname, "@", sizeof(servname)-strlen(servname)-1);
+ strncat(servname, dnssd->name, sizeof(servname)-strlen(servname)-1);
+
+ /* Register the service */
+ dnssd->DNSServiceRegister(&dnssd->raop_service, 0, 0,
+ servname, "_raop._tcp",
+ NULL, NULL,
+ htons(port),
+ dnssd->TXTRecordGetLength(&dnssd->raop_record),
+ dnssd->TXTRecordGetBytesPtr(&dnssd->raop_record),
+ NULL, NULL);
+
+
+ return 1;
+}
+
+int
+dnssd_register_airplay(dnssd_t *dnssd, unsigned short port)
+{
+ char device_id[3 * MAX_HWADDR_LEN];
+
+ assert(dnssd);
+
+ /* Convert hardware address to string */
+ if (utils_hwaddr_airplay(device_id, sizeof(device_id), dnssd->hw_addr, dnssd->hw_addr_len) < 0) {
+ /* FIXME: handle better */
+ return -1;
+ }
+
+
+ dnssd->TXTRecordCreate(&dnssd->airplay_record, 0, NULL);
+ dnssd->TXTRecordSetValue(&dnssd->airplay_record, "deviceid", strlen(device_id), device_id);
+ dnssd->TXTRecordSetValue(&dnssd->airplay_record, "features", strlen(AIRPLAY_FEATURES), AIRPLAY_FEATURES);
+ dnssd->TXTRecordSetValue(&dnssd->airplay_record, "flags", strlen(AIRPLAY_FLAGS), AIRPLAY_FLAGS);
+ dnssd->TXTRecordSetValue(&dnssd->airplay_record, "model", strlen(GLOBAL_MODEL), GLOBAL_MODEL);
+ dnssd->TXTRecordSetValue(&dnssd->airplay_record, "pk", strlen(AIRPLAY_PK), AIRPLAY_PK);
+ dnssd->TXTRecordSetValue(&dnssd->airplay_record, "pi", strlen(AIRPLAY_PI), AIRPLAY_PI);
+ dnssd->TXTRecordSetValue(&dnssd->airplay_record, "srcvers", strlen(AIRPLAY_SRCVERS), AIRPLAY_SRCVERS);
+ dnssd->TXTRecordSetValue(&dnssd->airplay_record, "vv", strlen(AIRPLAY_VV), AIRPLAY_VV);
+
+ /* Register the service */
+ dnssd->DNSServiceRegister(&dnssd->airplay_service, 0, 0,
+ dnssd->name, "_airplay._tcp",
+ NULL, NULL,
+ htons(port),
+ dnssd->TXTRecordGetLength(&dnssd->airplay_record),
+ dnssd->TXTRecordGetBytesPtr(&dnssd->airplay_record),
+ NULL, NULL);
+
+ return 1;
+}
+
+const char *
+dnssd_get_airplay_txt(dnssd_t *dnssd, int *length)
+{
+ *length = dnssd->TXTRecordGetLength(&dnssd->airplay_record);
+ return dnssd->TXTRecordGetBytesPtr(&dnssd->airplay_record);
+}
+
+const char *
+dnssd_get_name(dnssd_t *dnssd, int *length)
+{
+ *length = dnssd->name_len;
+ return dnssd->name;
+}
+
+const char *
+dnssd_get_hw_addr(dnssd_t *dnssd, int *length)
+{
+ *length = dnssd->hw_addr_len;
+ return dnssd->hw_addr;
+}
+
+void
+dnssd_unregister_raop(dnssd_t *dnssd)
+{
+ assert(dnssd);
+
+ if (!dnssd->raop_service) {
+ return;
+ }
+
+ /* Deallocate TXT record */
+ dnssd->TXTRecordDeallocate(&dnssd->raop_record);
+
+ dnssd->DNSServiceRefDeallocate(dnssd->raop_service);
+ dnssd->raop_service = NULL;
+
+ if (dnssd->airplay_service == NULL) {
+ free(dnssd->name);
+ free(dnssd->hw_addr);
+ }
+}
+
+void
+dnssd_unregister_airplay(dnssd_t *dnssd)
+{
+ assert(dnssd);
+
+ if (!dnssd->airplay_service) {
+ return;
+ }
+
+ /* Deallocate TXT record */
+ dnssd->TXTRecordDeallocate(&dnssd->airplay_record);
+
+ dnssd->DNSServiceRefDeallocate(dnssd->airplay_service);
+ dnssd->airplay_service = NULL;
+
+ if (dnssd->raop_service == NULL) {
+ free(dnssd->name);
+ free(dnssd->hw_addr);
+ }
+}
\ No newline at end of file
diff --git a/lib/dnssd.h b/lib/dnssd.h
new file mode 100644
index 0000000..9a82ee4
--- /dev/null
+++ b/lib/dnssd.h
@@ -0,0 +1,39 @@
+#ifndef DNSSD_H
+#define DNSSD_H
+
+#if defined(WIN32) && defined(DLL_EXPORT)
+# define DNSSD_API __declspec(dllexport)
+#else
+# define DNSSD_API
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define DNSSD_ERROR_NOERROR 0
+#define DNSSD_ERROR_HWADDRLEN 1
+#define DNSSD_ERROR_OUTOFMEM 2
+#define DNSSD_ERROR_LIBNOTFOUND 3
+#define DNSSD_ERROR_PROCNOTFOUND 4
+
+typedef struct dnssd_s dnssd_t;
+
+DNSSD_API dnssd_t *dnssd_init(const char *name, int name_len, const char *hw_addr, int hw_addr_len, int *error);
+
+DNSSD_API int dnssd_register_raop(dnssd_t *dnssd, unsigned short port);
+DNSSD_API int dnssd_register_airplay(dnssd_t *dnssd, unsigned short port);
+
+DNSSD_API void dnssd_unregister_raop(dnssd_t *dnssd);
+DNSSD_API void dnssd_unregister_airplay(dnssd_t *dnssd);
+
+DNSSD_API const char *dnssd_get_airplay_txt(dnssd_t *dnssd, int *length);
+DNSSD_API const char *dnssd_get_name(dnssd_t *dnssd, int *length);
+DNSSD_API const char *dnssd_get_hw_addr(dnssd_t *dnssd, int *length);
+
+DNSSD_API void dnssd_destroy(dnssd_t *dnssd);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
\ No newline at end of file
diff --git a/lib/dnssdint.h b/lib/dnssdint.h
new file mode 100644
index 0000000..f543193
--- /dev/null
+++ b/lib/dnssdint.h
@@ -0,0 +1,29 @@
+#ifndef DNSSDINT_H
+#define DNSSDINT_H
+
+#define RAOP_TXTVERS "1"
+#define RAOP_CH "2" /* Audio channels: 2 */
+#define RAOP_CN "0,1,2,3" /* Audio codec: PCM, ALAC, AAC, AAC ELD */
+#define RAOP_ET "0,3,5" /* Encryption type: None, FairPlay, FairPlay SAPv2.5 */
+#define RAOP_VV "2"
+#define RAOP_FT "0x5A7FFFF7,0x1E"
+#define RAOP_RHD "5.6.0.0"
+#define RAOP_SF "0x4"
+#define RAOP_SV "false"
+#define RAOP_DA "true"
+#define RAOP_SR "44100" /* Sample rate: 44100 */
+#define RAOP_SS "16" /* Sample size: 16 */
+#define RAOP_VS "220.68"
+#define RAOP_TP "UDP" /* Transport protocol. Possible values: UDP or TCP or TCP,UDP */
+#define RAOP_MD "0,1,2" /* Metadata: text, artwork, progress */
+#define RAOP_VN "65537"
+#define RAOP_PK "b07727d6f6cd6e08b58ede525ec3cdeaa252ad9f683feb212ef8a205246554e7"
+
+#define AIRPLAY_FEATURES "0x5A7FFFF7,0x1E"
+#define AIRPLAY_SRCVERS "220.68"
+#define AIRPLAY_FLAGS "0x4"
+#define AIRPLAY_VV "2"
+#define AIRPLAY_PK "b07727d6f6cd6e08b58ede525ec3cdeaa252ad9f683feb212ef8a205246554e7"
+#define AIRPLAY_PI "2e388006-13ba-4041-9a67-25dd4a43d536"
+
+#endif
\ No newline at end of file
diff --git a/lib/ed25519/CMakeLists.txt b/lib/ed25519/CMakeLists.txt
new file mode 100755
index 0000000..e2a8d23
--- /dev/null
+++ b/lib/ed25519/CMakeLists.txt
@@ -0,0 +1,6 @@
+cmake_minimum_required(VERSION 3.4.1)
+aux_source_directory(. ed25519_src)
+set(DIR_SRCS ${ed25519_src})
+add_library( ed25519
+ STATIC
+ ${DIR_SRCS})
\ No newline at end of file
diff --git a/lib/ed25519/add_scalar.c b/lib/ed25519/add_scalar.c
new file mode 100755
index 0000000..7528a7a
--- /dev/null
+++ b/lib/ed25519/add_scalar.c
@@ -0,0 +1,69 @@
+#include "ed25519.h"
+#include "ge.h"
+#include "sc.h"
+#include "sha512.h"
+
+
+/* see http://crypto.stackexchange.com/a/6215/4697 */
+void ed25519_add_scalar(unsigned char *public_key, unsigned char *private_key, const unsigned char *scalar) {
+ const unsigned char SC_1[32] = {1}; /* scalar with value 1 */
+
+ unsigned char n[32];
+ ge_p3 nB;
+ ge_p1p1 A_p1p1;
+ ge_p3 A;
+ ge_p3 public_key_unpacked;
+ ge_cached T;
+
+ sha512_context hash;
+ unsigned char hashbuf[64];
+
+ int i;
+
+ /* copy the scalar and clear highest bit */
+ for (i = 0; i < 31; ++i) {
+ n[i] = scalar[i];
+ }
+ n[31] = scalar[31] & 127;
+
+ /* private key: a = n + t */
+ if (private_key) {
+ sc_muladd(private_key, SC_1, n, private_key);
+
+ // https://github.com/orlp/ed25519/issues/3
+ sha512_init(&hash);
+ sha512_update(&hash, private_key + 32, 32);
+ sha512_update(&hash, scalar, 32);
+ sha512_final(&hash, hashbuf);
+ for (i = 0; i < 32; ++i) {
+ private_key[32 + i] = hashbuf[i];
+ }
+ }
+
+ /* public key: A = nB + T */
+ if (public_key) {
+ /* if we know the private key we don't need a point addition, which is faster */
+ /* using a "timing attack" you could find out wether or not we know the private
+ key, but this information seems rather useless - if this is important pass
+ public_key and private_key seperately in 2 function calls */
+ if (private_key) {
+ ge_scalarmult_base(&A, private_key);
+ } else {
+ /* unpack public key into T */
+ ge_frombytes_negate_vartime(&public_key_unpacked, public_key);
+ fe_neg(public_key_unpacked.X, public_key_unpacked.X); /* undo negate */
+ fe_neg(public_key_unpacked.T, public_key_unpacked.T); /* undo negate */
+ ge_p3_to_cached(&T, &public_key_unpacked);
+
+ /* calculate n*B */
+ ge_scalarmult_base(&nB, n);
+
+ /* A = n*B + T */
+ ge_add(&A_p1p1, &nB, &T);
+ ge_p1p1_to_p3(&A, &A_p1p1);
+ }
+
+ /* pack public key */
+ ge_p3_tobytes(public_key, &A);
+ }
+}
diff --git a/lib/ed25519/ed25519.h b/lib/ed25519/ed25519.h
new file mode 100755
index 0000000..8924659
--- /dev/null
+++ b/lib/ed25519/ed25519.h
@@ -0,0 +1,38 @@
+#ifndef ED25519_H
+#define ED25519_H
+
+#include
+
+#if defined(_WIN32)
+ #if defined(ED25519_BUILD_DLL)
+ #define ED25519_DECLSPEC __declspec(dllexport)
+ #elif defined(ED25519_DLL)
+ #define ED25519_DECLSPEC __declspec(dllimport)
+ #else
+ #define ED25519_DECLSPEC
+ #endif
+#else
+ #define ED25519_DECLSPEC
+#endif
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef ED25519_NO_SEED
+int ED25519_DECLSPEC ed25519_create_seed(unsigned char *seed);
+#endif
+
+void ED25519_DECLSPEC ed25519_create_keypair(unsigned char *public_key, unsigned char *private_key, const unsigned char *seed);
+void ED25519_DECLSPEC ed25519_sign(unsigned char *signature, const unsigned char *message, size_t message_len, const unsigned char *public_key, const unsigned char *private_key);
+int ED25519_DECLSPEC ed25519_verify(const unsigned char *signature, const unsigned char *message, size_t message_len, const unsigned char *public_key);
+void ED25519_DECLSPEC ed25519_add_scalar(unsigned char *public_key, unsigned char *private_key, const unsigned char *scalar);
+void ED25519_DECLSPEC ed25519_key_exchange(unsigned char *shared_secret, const unsigned char *public_key, const unsigned char *private_key);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/lib/ed25519/fe.c b/lib/ed25519/fe.c
new file mode 100755
index 0000000..2105eb7
--- /dev/null
+++ b/lib/ed25519/fe.c
@@ -0,0 +1,1491 @@
+#include "fixedint.h"
+#include "fe.h"
+
+
+/*
+ helper functions
+*/
+static uint64_t load_3(const unsigned char *in) {
+ uint64_t result;
+
+ result = (uint64_t) in[0];
+ result |= ((uint64_t) in[1]) << 8;
+ result |= ((uint64_t) in[2]) << 16;
+
+ return result;
+}
+
+static uint64_t load_4(const unsigned char *in) {
+ uint64_t result;
+
+ result = (uint64_t) in[0];
+ result |= ((uint64_t) in[1]) << 8;
+ result |= ((uint64_t) in[2]) << 16;
+ result |= ((uint64_t) in[3]) << 24;
+
+ return result;
+}
+
+
+
+/*
+ h = 0
+*/
+
+void fe_0(fe h) {
+ h[0] = 0;
+ h[1] = 0;
+ h[2] = 0;
+ h[3] = 0;
+ h[4] = 0;
+ h[5] = 0;
+ h[6] = 0;
+ h[7] = 0;
+ h[8] = 0;
+ h[9] = 0;
+}
+
+
+
+/*
+ h = 1
+*/
+
+void fe_1(fe h) {
+ h[0] = 1;
+ h[1] = 0;
+ h[2] = 0;
+ h[3] = 0;
+ h[4] = 0;
+ h[5] = 0;
+ h[6] = 0;
+ h[7] = 0;
+ h[8] = 0;
+ h[9] = 0;
+}
+
+
+
+/*
+ h = f + g
+ Can overlap h with f or g.
+
+ Preconditions:
+ |f| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
+ |g| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
+
+ Postconditions:
+ |h| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
+*/
+
+void fe_add(fe h, const fe f, const fe g) {
+ int32_t f0 = f[0];
+ int32_t f1 = f[1];
+ int32_t f2 = f[2];
+ int32_t f3 = f[3];
+ int32_t f4 = f[4];
+ int32_t f5 = f[5];
+ int32_t f6 = f[6];
+ int32_t f7 = f[7];
+ int32_t f8 = f[8];
+ int32_t f9 = f[9];
+ int32_t g0 = g[0];
+ int32_t g1 = g[1];
+ int32_t g2 = g[2];
+ int32_t g3 = g[3];
+ int32_t g4 = g[4];
+ int32_t g5 = g[5];
+ int32_t g6 = g[6];
+ int32_t g7 = g[7];
+ int32_t g8 = g[8];
+ int32_t g9 = g[9];
+ int32_t h0 = f0 + g0;
+ int32_t h1 = f1 + g1;
+ int32_t h2 = f2 + g2;
+ int32_t h3 = f3 + g3;
+ int32_t h4 = f4 + g4;
+ int32_t h5 = f5 + g5;
+ int32_t h6 = f6 + g6;
+ int32_t h7 = f7 + g7;
+ int32_t h8 = f8 + g8;
+ int32_t h9 = f9 + g9;
+
+ h[0] = h0;
+ h[1] = h1;
+ h[2] = h2;
+ h[3] = h3;
+ h[4] = h4;
+ h[5] = h5;
+ h[6] = h6;
+ h[7] = h7;
+ h[8] = h8;
+ h[9] = h9;
+}
+
+
+
+/*
+ Replace (f,g) with (g,g) if b == 1;
+ replace (f,g) with (f,g) if b == 0.
+
+ Preconditions: b in {0,1}.
+*/
+
+void fe_cmov(fe f, const fe g, unsigned int b) {
+ int32_t f0 = f[0];
+ int32_t f1 = f[1];
+ int32_t f2 = f[2];
+ int32_t f3 = f[3];
+ int32_t f4 = f[4];
+ int32_t f5 = f[5];
+ int32_t f6 = f[6];
+ int32_t f7 = f[7];
+ int32_t f8 = f[8];
+ int32_t f9 = f[9];
+ int32_t g0 = g[0];
+ int32_t g1 = g[1];
+ int32_t g2 = g[2];
+ int32_t g3 = g[3];
+ int32_t g4 = g[4];
+ int32_t g5 = g[5];
+ int32_t g6 = g[6];
+ int32_t g7 = g[7];
+ int32_t g8 = g[8];
+ int32_t g9 = g[9];
+ int32_t x0 = f0 ^ g0;
+ int32_t x1 = f1 ^ g1;
+ int32_t x2 = f2 ^ g2;
+ int32_t x3 = f3 ^ g3;
+ int32_t x4 = f4 ^ g4;
+ int32_t x5 = f5 ^ g5;
+ int32_t x6 = f6 ^ g6;
+ int32_t x7 = f7 ^ g7;
+ int32_t x8 = f8 ^ g8;
+ int32_t x9 = f9 ^ g9;
+
+ b = (unsigned int) (- (int) b); /* silence warning */
+ x0 &= b;
+ x1 &= b;
+ x2 &= b;
+ x3 &= b;
+ x4 &= b;
+ x5 &= b;
+ x6 &= b;
+ x7 &= b;
+ x8 &= b;
+ x9 &= b;
+
+ f[0] = f0 ^ x0;
+ f[1] = f1 ^ x1;
+ f[2] = f2 ^ x2;
+ f[3] = f3 ^ x3;
+ f[4] = f4 ^ x4;
+ f[5] = f5 ^ x5;
+ f[6] = f6 ^ x6;
+ f[7] = f7 ^ x7;
+ f[8] = f8 ^ x8;
+ f[9] = f9 ^ x9;
+}
+
+/*
+ Replace (f,g) with (g,f) if b == 1;
+ replace (f,g) with (f,g) if b == 0.
+
+ Preconditions: b in {0,1}.
+*/
+
+void fe_cswap(fe f,fe g,unsigned int b) {
+ int32_t f0 = f[0];
+ int32_t f1 = f[1];
+ int32_t f2 = f[2];
+ int32_t f3 = f[3];
+ int32_t f4 = f[4];
+ int32_t f5 = f[5];
+ int32_t f6 = f[6];
+ int32_t f7 = f[7];
+ int32_t f8 = f[8];
+ int32_t f9 = f[9];
+ int32_t g0 = g[0];
+ int32_t g1 = g[1];
+ int32_t g2 = g[2];
+ int32_t g3 = g[3];
+ int32_t g4 = g[4];
+ int32_t g5 = g[5];
+ int32_t g6 = g[6];
+ int32_t g7 = g[7];
+ int32_t g8 = g[8];
+ int32_t g9 = g[9];
+ int32_t x0 = f0 ^ g0;
+ int32_t x1 = f1 ^ g1;
+ int32_t x2 = f2 ^ g2;
+ int32_t x3 = f3 ^ g3;
+ int32_t x4 = f4 ^ g4;
+ int32_t x5 = f5 ^ g5;
+ int32_t x6 = f6 ^ g6;
+ int32_t x7 = f7 ^ g7;
+ int32_t x8 = f8 ^ g8;
+ int32_t x9 = f9 ^ g9;
+ b = (unsigned int) (- (int) b); /* silence warning */
+ x0 &= b;
+ x1 &= b;
+ x2 &= b;
+ x3 &= b;
+ x4 &= b;
+ x5 &= b;
+ x6 &= b;
+ x7 &= b;
+ x8 &= b;
+ x9 &= b;
+ f[0] = f0 ^ x0;
+ f[1] = f1 ^ x1;
+ f[2] = f2 ^ x2;
+ f[3] = f3 ^ x3;
+ f[4] = f4 ^ x4;
+ f[5] = f5 ^ x5;
+ f[6] = f6 ^ x6;
+ f[7] = f7 ^ x7;
+ f[8] = f8 ^ x8;
+ f[9] = f9 ^ x9;
+ g[0] = g0 ^ x0;
+ g[1] = g1 ^ x1;
+ g[2] = g2 ^ x2;
+ g[3] = g3 ^ x3;
+ g[4] = g4 ^ x4;
+ g[5] = g5 ^ x5;
+ g[6] = g6 ^ x6;
+ g[7] = g7 ^ x7;
+ g[8] = g8 ^ x8;
+ g[9] = g9 ^ x9;
+}
+
+
+
+/*
+ h = f
+*/
+
+void fe_copy(fe h, const fe f) {
+ int32_t f0 = f[0];
+ int32_t f1 = f[1];
+ int32_t f2 = f[2];
+ int32_t f3 = f[3];
+ int32_t f4 = f[4];
+ int32_t f5 = f[5];
+ int32_t f6 = f[6];
+ int32_t f7 = f[7];
+ int32_t f8 = f[8];
+ int32_t f9 = f[9];
+
+ h[0] = f0;
+ h[1] = f1;
+ h[2] = f2;
+ h[3] = f3;
+ h[4] = f4;
+ h[5] = f5;
+ h[6] = f6;
+ h[7] = f7;
+ h[8] = f8;
+ h[9] = f9;
+}
+
+
+
+/*
+ Ignores top bit of h.
+*/
+
+void fe_frombytes(fe h, const unsigned char *s) {
+ int64_t h0 = load_4(s);
+ int64_t h1 = load_3(s + 4) << 6;
+ int64_t h2 = load_3(s + 7) << 5;
+ int64_t h3 = load_3(s + 10) << 3;
+ int64_t h4 = load_3(s + 13) << 2;
+ int64_t h5 = load_4(s + 16);
+ int64_t h6 = load_3(s + 20) << 7;
+ int64_t h7 = load_3(s + 23) << 5;
+ int64_t h8 = load_3(s + 26) << 4;
+ int64_t h9 = (load_3(s + 29) & 8388607) << 2;
+ int64_t carry0;
+ int64_t carry1;
+ int64_t carry2;
+ int64_t carry3;
+ int64_t carry4;
+ int64_t carry5;
+ int64_t carry6;
+ int64_t carry7;
+ int64_t carry8;
+ int64_t carry9;
+
+ carry9 = (h9 + (int64_t) (1 << 24)) >> 25;
+ h0 += carry9 * 19;
+ h9 -= carry9 << 25;
+ carry1 = (h1 + (int64_t) (1 << 24)) >> 25;
+ h2 += carry1;
+ h1 -= carry1 << 25;
+ carry3 = (h3 + (int64_t) (1 << 24)) >> 25;
+ h4 += carry3;
+ h3 -= carry3 << 25;
+ carry5 = (h5 + (int64_t) (1 << 24)) >> 25;
+ h6 += carry5;
+ h5 -= carry5 << 25;
+ carry7 = (h7 + (int64_t) (1 << 24)) >> 25;
+ h8 += carry7;
+ h7 -= carry7 << 25;
+ carry0 = (h0 + (int64_t) (1 << 25)) >> 26;
+ h1 += carry0;
+ h0 -= carry0 << 26;
+ carry2 = (h2 + (int64_t) (1 << 25)) >> 26;
+ h3 += carry2;
+ h2 -= carry2 << 26;
+ carry4 = (h4 + (int64_t) (1 << 25)) >> 26;
+ h5 += carry4;
+ h4 -= carry4 << 26;
+ carry6 = (h6 + (int64_t) (1 << 25)) >> 26;
+ h7 += carry6;
+ h6 -= carry6 << 26;
+ carry8 = (h8 + (int64_t) (1 << 25)) >> 26;
+ h9 += carry8;
+ h8 -= carry8 << 26;
+
+ h[0] = (int32_t) h0;
+ h[1] = (int32_t) h1;
+ h[2] = (int32_t) h2;
+ h[3] = (int32_t) h3;
+ h[4] = (int32_t) h4;
+ h[5] = (int32_t) h5;
+ h[6] = (int32_t) h6;
+ h[7] = (int32_t) h7;
+ h[8] = (int32_t) h8;
+ h[9] = (int32_t) h9;
+}
+
+
+
+void fe_invert(fe out, const fe z) {
+ fe t0;
+ fe t1;
+ fe t2;
+ fe t3;
+ int i;
+
+ fe_sq(t0, z);
+
+ for (i = 1; i < 1; ++i) {
+ fe_sq(t0, t0);
+ }
+
+ fe_sq(t1, t0);
+
+ for (i = 1; i < 2; ++i) {
+ fe_sq(t1, t1);
+ }
+
+ fe_mul(t1, z, t1);
+ fe_mul(t0, t0, t1);
+ fe_sq(t2, t0);
+
+ for (i = 1; i < 1; ++i) {
+ fe_sq(t2, t2);
+ }
+
+ fe_mul(t1, t1, t2);
+ fe_sq(t2, t1);
+
+ for (i = 1; i < 5; ++i) {
+ fe_sq(t2, t2);
+ }
+
+ fe_mul(t1, t2, t1);
+ fe_sq(t2, t1);
+
+ for (i = 1; i < 10; ++i) {
+ fe_sq(t2, t2);
+ }
+
+ fe_mul(t2, t2, t1);
+ fe_sq(t3, t2);
+
+ for (i = 1; i < 20; ++i) {
+ fe_sq(t3, t3);
+ }
+
+ fe_mul(t2, t3, t2);
+ fe_sq(t2, t2);
+
+ for (i = 1; i < 10; ++i) {
+ fe_sq(t2, t2);
+ }
+
+ fe_mul(t1, t2, t1);
+ fe_sq(t2, t1);
+
+ for (i = 1; i < 50; ++i) {
+ fe_sq(t2, t2);
+ }
+
+ fe_mul(t2, t2, t1);
+ fe_sq(t3, t2);
+
+ for (i = 1; i < 100; ++i) {
+ fe_sq(t3, t3);
+ }
+
+ fe_mul(t2, t3, t2);
+ fe_sq(t2, t2);
+
+ for (i = 1; i < 50; ++i) {
+ fe_sq(t2, t2);
+ }
+
+ fe_mul(t1, t2, t1);
+ fe_sq(t1, t1);
+
+ for (i = 1; i < 5; ++i) {
+ fe_sq(t1, t1);
+ }
+
+ fe_mul(out, t1, t0);
+}
+
+
+
+/*
+ return 1 if f is in {1,3,5,...,q-2}
+ return 0 if f is in {0,2,4,...,q-1}
+
+ Preconditions:
+ |f| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
+*/
+
+int fe_isnegative(const fe f) {
+ unsigned char s[32];
+
+ fe_tobytes(s, f);
+
+ return s[0] & 1;
+}
+
+
+
+/*
+ return 1 if f == 0
+ return 0 if f != 0
+
+ Preconditions:
+ |f| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
+*/
+
+int fe_isnonzero(const fe f) {
+ unsigned char s[32];
+ unsigned char r;
+
+ fe_tobytes(s, f);
+
+ r = s[0];
+ #define F(i) r |= s[i]
+ F(1);
+ F(2);
+ F(3);
+ F(4);
+ F(5);
+ F(6);
+ F(7);
+ F(8);
+ F(9);
+ F(10);
+ F(11);
+ F(12);
+ F(13);
+ F(14);
+ F(15);
+ F(16);
+ F(17);
+ F(18);
+ F(19);
+ F(20);
+ F(21);
+ F(22);
+ F(23);
+ F(24);
+ F(25);
+ F(26);
+ F(27);
+ F(28);
+ F(29);
+ F(30);
+ F(31);
+ #undef F
+
+ return r != 0;
+}
+
+
+
+/*
+ h = f * g
+ Can overlap h with f or g.
+
+ Preconditions:
+ |f| bounded by 1.65*2^26,1.65*2^25,1.65*2^26,1.65*2^25,etc.
+ |g| bounded by 1.65*2^26,1.65*2^25,1.65*2^26,1.65*2^25,etc.
+
+ Postconditions:
+ |h| bounded by 1.01*2^25,1.01*2^24,1.01*2^25,1.01*2^24,etc.
+ */
+
+ /*
+ Notes on implementation strategy:
+
+ Using schoolbook multiplication.
+ Karatsuba would save a little in some cost models.
+
+ Most multiplications by 2 and 19 are 32-bit precomputations;
+ cheaper than 64-bit postcomputations.
+
+ There is one remaining multiplication by 19 in the carry chain;
+ one *19 precomputation can be merged into this,
+ but the resulting data flow is considerably less clean.
+
+ There are 12 carries below.
+ 10 of them are 2-way parallelizable and vectorizable.
+ Can get away with 11 carries, but then data flow is much deeper.
+
+ With tighter constraints on inputs can squeeze carries into int32.
+*/
+
+void fe_mul(fe h, const fe f, const fe g) {
+ int32_t f0 = f[0];
+ int32_t f1 = f[1];
+ int32_t f2 = f[2];
+ int32_t f3 = f[3];
+ int32_t f4 = f[4];
+ int32_t f5 = f[5];
+ int32_t f6 = f[6];
+ int32_t f7 = f[7];
+ int32_t f8 = f[8];
+ int32_t f9 = f[9];
+ int32_t g0 = g[0];
+ int32_t g1 = g[1];
+ int32_t g2 = g[2];
+ int32_t g3 = g[3];
+ int32_t g4 = g[4];
+ int32_t g5 = g[5];
+ int32_t g6 = g[6];
+ int32_t g7 = g[7];
+ int32_t g8 = g[8];
+ int32_t g9 = g[9];
+ int32_t g1_19 = 19 * g1; /* 1.959375*2^29 */
+ int32_t g2_19 = 19 * g2; /* 1.959375*2^30; still ok */
+ int32_t g3_19 = 19 * g3;
+ int32_t g4_19 = 19 * g4;
+ int32_t g5_19 = 19 * g5;
+ int32_t g6_19 = 19 * g6;
+ int32_t g7_19 = 19 * g7;
+ int32_t g8_19 = 19 * g8;
+ int32_t g9_19 = 19 * g9;
+ int32_t f1_2 = 2 * f1;
+ int32_t f3_2 = 2 * f3;
+ int32_t f5_2 = 2 * f5;
+ int32_t f7_2 = 2 * f7;
+ int32_t f9_2 = 2 * f9;
+ int64_t f0g0 = f0 * (int64_t) g0;
+ int64_t f0g1 = f0 * (int64_t) g1;
+ int64_t f0g2 = f0 * (int64_t) g2;
+ int64_t f0g3 = f0 * (int64_t) g3;
+ int64_t f0g4 = f0 * (int64_t) g4;
+ int64_t f0g5 = f0 * (int64_t) g5;
+ int64_t f0g6 = f0 * (int64_t) g6;
+ int64_t f0g7 = f0 * (int64_t) g7;
+ int64_t f0g8 = f0 * (int64_t) g8;
+ int64_t f0g9 = f0 * (int64_t) g9;
+ int64_t f1g0 = f1 * (int64_t) g0;
+ int64_t f1g1_2 = f1_2 * (int64_t) g1;
+ int64_t f1g2 = f1 * (int64_t) g2;
+ int64_t f1g3_2 = f1_2 * (int64_t) g3;
+ int64_t f1g4 = f1 * (int64_t) g4;
+ int64_t f1g5_2 = f1_2 * (int64_t) g5;
+ int64_t f1g6 = f1 * (int64_t) g6;
+ int64_t f1g7_2 = f1_2 * (int64_t) g7;
+ int64_t f1g8 = f1 * (int64_t) g8;
+ int64_t f1g9_38 = f1_2 * (int64_t) g9_19;
+ int64_t f2g0 = f2 * (int64_t) g0;
+ int64_t f2g1 = f2 * (int64_t) g1;
+ int64_t f2g2 = f2 * (int64_t) g2;
+ int64_t f2g3 = f2 * (int64_t) g3;
+ int64_t f2g4 = f2 * (int64_t) g4;
+ int64_t f2g5 = f2 * (int64_t) g5;
+ int64_t f2g6 = f2 * (int64_t) g6;
+ int64_t f2g7 = f2 * (int64_t) g7;
+ int64_t f2g8_19 = f2 * (int64_t) g8_19;
+ int64_t f2g9_19 = f2 * (int64_t) g9_19;
+ int64_t f3g0 = f3 * (int64_t) g0;
+ int64_t f3g1_2 = f3_2 * (int64_t) g1;
+ int64_t f3g2 = f3 * (int64_t) g2;
+ int64_t f3g3_2 = f3_2 * (int64_t) g3;
+ int64_t f3g4 = f3 * (int64_t) g4;
+ int64_t f3g5_2 = f3_2 * (int64_t) g5;
+ int64_t f3g6 = f3 * (int64_t) g6;
+ int64_t f3g7_38 = f3_2 * (int64_t) g7_19;
+ int64_t f3g8_19 = f3 * (int64_t) g8_19;
+ int64_t f3g9_38 = f3_2 * (int64_t) g9_19;
+ int64_t f4g0 = f4 * (int64_t) g0;
+ int64_t f4g1 = f4 * (int64_t) g1;
+ int64_t f4g2 = f4 * (int64_t) g2;
+ int64_t f4g3 = f4 * (int64_t) g3;
+ int64_t f4g4 = f4 * (int64_t) g4;
+ int64_t f4g5 = f4 * (int64_t) g5;
+ int64_t f4g6_19 = f4 * (int64_t) g6_19;
+ int64_t f4g7_19 = f4 * (int64_t) g7_19;
+ int64_t f4g8_19 = f4 * (int64_t) g8_19;
+ int64_t f4g9_19 = f4 * (int64_t) g9_19;
+ int64_t f5g0 = f5 * (int64_t) g0;
+ int64_t f5g1_2 = f5_2 * (int64_t) g1;
+ int64_t f5g2 = f5 * (int64_t) g2;
+ int64_t f5g3_2 = f5_2 * (int64_t) g3;
+ int64_t f5g4 = f5 * (int64_t) g4;
+ int64_t f5g5_38 = f5_2 * (int64_t) g5_19;
+ int64_t f5g6_19 = f5 * (int64_t) g6_19;
+ int64_t f5g7_38 = f5_2 * (int64_t) g7_19;
+ int64_t f5g8_19 = f5 * (int64_t) g8_19;
+ int64_t f5g9_38 = f5_2 * (int64_t) g9_19;
+ int64_t f6g0 = f6 * (int64_t) g0;
+ int64_t f6g1 = f6 * (int64_t) g1;
+ int64_t f6g2 = f6 * (int64_t) g2;
+ int64_t f6g3 = f6 * (int64_t) g3;
+ int64_t f6g4_19 = f6 * (int64_t) g4_19;
+ int64_t f6g5_19 = f6 * (int64_t) g5_19;
+ int64_t f6g6_19 = f6 * (int64_t) g6_19;
+ int64_t f6g7_19 = f6 * (int64_t) g7_19;
+ int64_t f6g8_19 = f6 * (int64_t) g8_19;
+ int64_t f6g9_19 = f6 * (int64_t) g9_19;
+ int64_t f7g0 = f7 * (int64_t) g0;
+ int64_t f7g1_2 = f7_2 * (int64_t) g1;
+ int64_t f7g2 = f7 * (int64_t) g2;
+ int64_t f7g3_38 = f7_2 * (int64_t) g3_19;
+ int64_t f7g4_19 = f7 * (int64_t) g4_19;
+ int64_t f7g5_38 = f7_2 * (int64_t) g5_19;
+ int64_t f7g6_19 = f7 * (int64_t) g6_19;
+ int64_t f7g7_38 = f7_2 * (int64_t) g7_19;
+ int64_t f7g8_19 = f7 * (int64_t) g8_19;
+ int64_t f7g9_38 = f7_2 * (int64_t) g9_19;
+ int64_t f8g0 = f8 * (int64_t) g0;
+ int64_t f8g1 = f8 * (int64_t) g1;
+ int64_t f8g2_19 = f8 * (int64_t) g2_19;
+ int64_t f8g3_19 = f8 * (int64_t) g3_19;
+ int64_t f8g4_19 = f8 * (int64_t) g4_19;
+ int64_t f8g5_19 = f8 * (int64_t) g5_19;
+ int64_t f8g6_19 = f8 * (int64_t) g6_19;
+ int64_t f8g7_19 = f8 * (int64_t) g7_19;
+ int64_t f8g8_19 = f8 * (int64_t) g8_19;
+ int64_t f8g9_19 = f8 * (int64_t) g9_19;
+ int64_t f9g0 = f9 * (int64_t) g0;
+ int64_t f9g1_38 = f9_2 * (int64_t) g1_19;
+ int64_t f9g2_19 = f9 * (int64_t) g2_19;
+ int64_t f9g3_38 = f9_2 * (int64_t) g3_19;
+ int64_t f9g4_19 = f9 * (int64_t) g4_19;
+ int64_t f9g5_38 = f9_2 * (int64_t) g5_19;
+ int64_t f9g6_19 = f9 * (int64_t) g6_19;
+ int64_t f9g7_38 = f9_2 * (int64_t) g7_19;
+ int64_t f9g8_19 = f9 * (int64_t) g8_19;
+ int64_t f9g9_38 = f9_2 * (int64_t) g9_19;
+ int64_t h0 = f0g0 + f1g9_38 + f2g8_19 + f3g7_38 + f4g6_19 + f5g5_38 + f6g4_19 + f7g3_38 + f8g2_19 + f9g1_38;
+ int64_t h1 = f0g1 + f1g0 + f2g9_19 + f3g8_19 + f4g7_19 + f5g6_19 + f6g5_19 + f7g4_19 + f8g3_19 + f9g2_19;
+ int64_t h2 = f0g2 + f1g1_2 + f2g0 + f3g9_38 + f4g8_19 + f5g7_38 + f6g6_19 + f7g5_38 + f8g4_19 + f9g3_38;
+ int64_t h3 = f0g3 + f1g2 + f2g1 + f3g0 + f4g9_19 + f5g8_19 + f6g7_19 + f7g6_19 + f8g5_19 + f9g4_19;
+ int64_t h4 = f0g4 + f1g3_2 + f2g2 + f3g1_2 + f4g0 + f5g9_38 + f6g8_19 + f7g7_38 + f8g6_19 + f9g5_38;
+ int64_t h5 = f0g5 + f1g4 + f2g3 + f3g2 + f4g1 + f5g0 + f6g9_19 + f7g8_19 + f8g7_19 + f9g6_19;
+ int64_t h6 = f0g6 + f1g5_2 + f2g4 + f3g3_2 + f4g2 + f5g1_2 + f6g0 + f7g9_38 + f8g8_19 + f9g7_38;
+ int64_t h7 = f0g7 + f1g6 + f2g5 + f3g4 + f4g3 + f5g2 + f6g1 + f7g0 + f8g9_19 + f9g8_19;
+ int64_t h8 = f0g8 + f1g7_2 + f2g6 + f3g5_2 + f4g4 + f5g3_2 + f6g2 + f7g1_2 + f8g0 + f9g9_38;
+ int64_t h9 = f0g9 + f1g8 + f2g7 + f3g6 + f4g5 + f5g4 + f6g3 + f7g2 + f8g1 + f9g0 ;
+ int64_t carry0;
+ int64_t carry1;
+ int64_t carry2;
+ int64_t carry3;
+ int64_t carry4;
+ int64_t carry5;
+ int64_t carry6;
+ int64_t carry7;
+ int64_t carry8;
+ int64_t carry9;
+
+ carry0 = (h0 + (int64_t) (1 << 25)) >> 26;
+ h1 += carry0;
+ h0 -= carry0 << 26;
+ carry4 = (h4 + (int64_t) (1 << 25)) >> 26;
+ h5 += carry4;
+ h4 -= carry4 << 26;
+
+ carry1 = (h1 + (int64_t) (1 << 24)) >> 25;
+ h2 += carry1;
+ h1 -= carry1 << 25;
+ carry5 = (h5 + (int64_t) (1 << 24)) >> 25;
+ h6 += carry5;
+ h5 -= carry5 << 25;
+
+ carry2 = (h2 + (int64_t) (1 << 25)) >> 26;
+ h3 += carry2;
+ h2 -= carry2 << 26;
+ carry6 = (h6 + (int64_t) (1 << 25)) >> 26;
+ h7 += carry6;
+ h6 -= carry6 << 26;
+
+ carry3 = (h3 + (int64_t) (1 << 24)) >> 25;
+ h4 += carry3;
+ h3 -= carry3 << 25;
+ carry7 = (h7 + (int64_t) (1 << 24)) >> 25;
+ h8 += carry7;
+ h7 -= carry7 << 25;
+
+ carry4 = (h4 + (int64_t) (1 << 25)) >> 26;
+ h5 += carry4;
+ h4 -= carry4 << 26;
+ carry8 = (h8 + (int64_t) (1 << 25)) >> 26;
+ h9 += carry8;
+ h8 -= carry8 << 26;
+
+ carry9 = (h9 + (int64_t) (1 << 24)) >> 25;
+ h0 += carry9 * 19;
+ h9 -= carry9 << 25;
+
+ carry0 = (h0 + (int64_t) (1 << 25)) >> 26;
+ h1 += carry0;
+ h0 -= carry0 << 26;
+
+ h[0] = (int32_t) h0;
+ h[1] = (int32_t) h1;
+ h[2] = (int32_t) h2;
+ h[3] = (int32_t) h3;
+ h[4] = (int32_t) h4;
+ h[5] = (int32_t) h5;
+ h[6] = (int32_t) h6;
+ h[7] = (int32_t) h7;
+ h[8] = (int32_t) h8;
+ h[9] = (int32_t) h9;
+}
+
+
+/*
+h = f * 121666
+Can overlap h with f.
+
+Preconditions:
+ |f| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
+
+Postconditions:
+ |h| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
+*/
+
+void fe_mul121666(fe h, fe f) {
+ int32_t f0 = f[0];
+ int32_t f1 = f[1];
+ int32_t f2 = f[2];
+ int32_t f3 = f[3];
+ int32_t f4 = f[4];
+ int32_t f5 = f[5];
+ int32_t f6 = f[6];
+ int32_t f7 = f[7];
+ int32_t f8 = f[8];
+ int32_t f9 = f[9];
+ int64_t h0 = f0 * (int64_t) 121666;
+ int64_t h1 = f1 * (int64_t) 121666;
+ int64_t h2 = f2 * (int64_t) 121666;
+ int64_t h3 = f3 * (int64_t) 121666;
+ int64_t h4 = f4 * (int64_t) 121666;
+ int64_t h5 = f5 * (int64_t) 121666;
+ int64_t h6 = f6 * (int64_t) 121666;
+ int64_t h7 = f7 * (int64_t) 121666;
+ int64_t h8 = f8 * (int64_t) 121666;
+ int64_t h9 = f9 * (int64_t) 121666;
+ int64_t carry0;
+ int64_t carry1;
+ int64_t carry2;
+ int64_t carry3;
+ int64_t carry4;
+ int64_t carry5;
+ int64_t carry6;
+ int64_t carry7;
+ int64_t carry8;
+ int64_t carry9;
+
+ carry9 = (h9 + (int64_t) (1<<24)) >> 25; h0 += carry9 * 19; h9 -= carry9 << 25;
+ carry1 = (h1 + (int64_t) (1<<24)) >> 25; h2 += carry1; h1 -= carry1 << 25;
+ carry3 = (h3 + (int64_t) (1<<24)) >> 25; h4 += carry3; h3 -= carry3 << 25;
+ carry5 = (h5 + (int64_t) (1<<24)) >> 25; h6 += carry5; h5 -= carry5 << 25;
+ carry7 = (h7 + (int64_t) (1<<24)) >> 25; h8 += carry7; h7 -= carry7 << 25;
+
+ carry0 = (h0 + (int64_t) (1<<25)) >> 26; h1 += carry0; h0 -= carry0 << 26;
+ carry2 = (h2 + (int64_t) (1<<25)) >> 26; h3 += carry2; h2 -= carry2 << 26;
+ carry4 = (h4 + (int64_t) (1<<25)) >> 26; h5 += carry4; h4 -= carry4 << 26;
+ carry6 = (h6 + (int64_t) (1<<25)) >> 26; h7 += carry6; h6 -= carry6 << 26;
+ carry8 = (h8 + (int64_t) (1<<25)) >> 26; h9 += carry8; h8 -= carry8 << 26;
+
+ h[0] = (int32_t) h0;
+ h[1] = (int32_t) h1;
+ h[2] = (int32_t) h2;
+ h[3] = (int32_t) h3;
+ h[4] = (int32_t) h4;
+ h[5] = (int32_t) h5;
+ h[6] = (int32_t) h6;
+ h[7] = (int32_t) h7;
+ h[8] = (int32_t) h8;
+ h[9] = (int32_t) h9;
+}
+
+
+/*
+h = -f
+
+Preconditions:
+ |f| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
+
+Postconditions:
+ |h| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
+*/
+
+void fe_neg(fe h, const fe f) {
+ int32_t f0 = f[0];
+ int32_t f1 = f[1];
+ int32_t f2 = f[2];
+ int32_t f3 = f[3];
+ int32_t f4 = f[4];
+ int32_t f5 = f[5];
+ int32_t f6 = f[6];
+ int32_t f7 = f[7];
+ int32_t f8 = f[8];
+ int32_t f9 = f[9];
+ int32_t h0 = -f0;
+ int32_t h1 = -f1;
+ int32_t h2 = -f2;
+ int32_t h3 = -f3;
+ int32_t h4 = -f4;
+ int32_t h5 = -f5;
+ int32_t h6 = -f6;
+ int32_t h7 = -f7;
+ int32_t h8 = -f8;
+ int32_t h9 = -f9;
+
+ h[0] = h0;
+ h[1] = h1;
+ h[2] = h2;
+ h[3] = h3;
+ h[4] = h4;
+ h[5] = h5;
+ h[6] = h6;
+ h[7] = h7;
+ h[8] = h8;
+ h[9] = h9;
+}
+
+
+void fe_pow22523(fe out, const fe z) {
+ fe t0;
+ fe t1;
+ fe t2;
+ int i;
+ fe_sq(t0, z);
+
+ for (i = 1; i < 1; ++i) {
+ fe_sq(t0, t0);
+ }
+
+ fe_sq(t1, t0);
+
+ for (i = 1; i < 2; ++i) {
+ fe_sq(t1, t1);
+ }
+
+ fe_mul(t1, z, t1);
+ fe_mul(t0, t0, t1);
+ fe_sq(t0, t0);
+
+ for (i = 1; i < 1; ++i) {
+ fe_sq(t0, t0);
+ }
+
+ fe_mul(t0, t1, t0);
+ fe_sq(t1, t0);
+
+ for (i = 1; i < 5; ++i) {
+ fe_sq(t1, t1);
+ }
+
+ fe_mul(t0, t1, t0);
+ fe_sq(t1, t0);
+
+ for (i = 1; i < 10; ++i) {
+ fe_sq(t1, t1);
+ }
+
+ fe_mul(t1, t1, t0);
+ fe_sq(t2, t1);
+
+ for (i = 1; i < 20; ++i) {
+ fe_sq(t2, t2);
+ }
+
+ fe_mul(t1, t2, t1);
+ fe_sq(t1, t1);
+
+ for (i = 1; i < 10; ++i) {
+ fe_sq(t1, t1);
+ }
+
+ fe_mul(t0, t1, t0);
+ fe_sq(t1, t0);
+
+ for (i = 1; i < 50; ++i) {
+ fe_sq(t1, t1);
+ }
+
+ fe_mul(t1, t1, t0);
+ fe_sq(t2, t1);
+
+ for (i = 1; i < 100; ++i) {
+ fe_sq(t2, t2);
+ }
+
+ fe_mul(t1, t2, t1);
+ fe_sq(t1, t1);
+
+ for (i = 1; i < 50; ++i) {
+ fe_sq(t1, t1);
+ }
+
+ fe_mul(t0, t1, t0);
+ fe_sq(t0, t0);
+
+ for (i = 1; i < 2; ++i) {
+ fe_sq(t0, t0);
+ }
+
+ fe_mul(out, t0, z);
+ return;
+}
+
+
+/*
+h = f * f
+Can overlap h with f.
+
+Preconditions:
+ |f| bounded by 1.65*2^26,1.65*2^25,1.65*2^26,1.65*2^25,etc.
+
+Postconditions:
+ |h| bounded by 1.01*2^25,1.01*2^24,1.01*2^25,1.01*2^24,etc.
+*/
+
+/*
+See fe_mul.c for discussion of implementation strategy.
+*/
+
+void fe_sq(fe h, const fe f) {
+ int32_t f0 = f[0];
+ int32_t f1 = f[1];
+ int32_t f2 = f[2];
+ int32_t f3 = f[3];
+ int32_t f4 = f[4];
+ int32_t f5 = f[5];
+ int32_t f6 = f[6];
+ int32_t f7 = f[7];
+ int32_t f8 = f[8];
+ int32_t f9 = f[9];
+ int32_t f0_2 = 2 * f0;
+ int32_t f1_2 = 2 * f1;
+ int32_t f2_2 = 2 * f2;
+ int32_t f3_2 = 2 * f3;
+ int32_t f4_2 = 2 * f4;
+ int32_t f5_2 = 2 * f5;
+ int32_t f6_2 = 2 * f6;
+ int32_t f7_2 = 2 * f7;
+ int32_t f5_38 = 38 * f5; /* 1.959375*2^30 */
+ int32_t f6_19 = 19 * f6; /* 1.959375*2^30 */
+ int32_t f7_38 = 38 * f7; /* 1.959375*2^30 */
+ int32_t f8_19 = 19 * f8; /* 1.959375*2^30 */
+ int32_t f9_38 = 38 * f9; /* 1.959375*2^30 */
+ int64_t f0f0 = f0 * (int64_t) f0;
+ int64_t f0f1_2 = f0_2 * (int64_t) f1;
+ int64_t f0f2_2 = f0_2 * (int64_t) f2;
+ int64_t f0f3_2 = f0_2 * (int64_t) f3;
+ int64_t f0f4_2 = f0_2 * (int64_t) f4;
+ int64_t f0f5_2 = f0_2 * (int64_t) f5;
+ int64_t f0f6_2 = f0_2 * (int64_t) f6;
+ int64_t f0f7_2 = f0_2 * (int64_t) f7;
+ int64_t f0f8_2 = f0_2 * (int64_t) f8;
+ int64_t f0f9_2 = f0_2 * (int64_t) f9;
+ int64_t f1f1_2 = f1_2 * (int64_t) f1;
+ int64_t f1f2_2 = f1_2 * (int64_t) f2;
+ int64_t f1f3_4 = f1_2 * (int64_t) f3_2;
+ int64_t f1f4_2 = f1_2 * (int64_t) f4;
+ int64_t f1f5_4 = f1_2 * (int64_t) f5_2;
+ int64_t f1f6_2 = f1_2 * (int64_t) f6;
+ int64_t f1f7_4 = f1_2 * (int64_t) f7_2;
+ int64_t f1f8_2 = f1_2 * (int64_t) f8;
+ int64_t f1f9_76 = f1_2 * (int64_t) f9_38;
+ int64_t f2f2 = f2 * (int64_t) f2;
+ int64_t f2f3_2 = f2_2 * (int64_t) f3;
+ int64_t f2f4_2 = f2_2 * (int64_t) f4;
+ int64_t f2f5_2 = f2_2 * (int64_t) f5;
+ int64_t f2f6_2 = f2_2 * (int64_t) f6;
+ int64_t f2f7_2 = f2_2 * (int64_t) f7;
+ int64_t f2f8_38 = f2_2 * (int64_t) f8_19;
+ int64_t f2f9_38 = f2 * (int64_t) f9_38;
+ int64_t f3f3_2 = f3_2 * (int64_t) f3;
+ int64_t f3f4_2 = f3_2 * (int64_t) f4;
+ int64_t f3f5_4 = f3_2 * (int64_t) f5_2;
+ int64_t f3f6_2 = f3_2 * (int64_t) f6;
+ int64_t f3f7_76 = f3_2 * (int64_t) f7_38;
+ int64_t f3f8_38 = f3_2 * (int64_t) f8_19;
+ int64_t f3f9_76 = f3_2 * (int64_t) f9_38;
+ int64_t f4f4 = f4 * (int64_t) f4;
+ int64_t f4f5_2 = f4_2 * (int64_t) f5;
+ int64_t f4f6_38 = f4_2 * (int64_t) f6_19;
+ int64_t f4f7_38 = f4 * (int64_t) f7_38;
+ int64_t f4f8_38 = f4_2 * (int64_t) f8_19;
+ int64_t f4f9_38 = f4 * (int64_t) f9_38;
+ int64_t f5f5_38 = f5 * (int64_t) f5_38;
+ int64_t f5f6_38 = f5_2 * (int64_t) f6_19;
+ int64_t f5f7_76 = f5_2 * (int64_t) f7_38;
+ int64_t f5f8_38 = f5_2 * (int64_t) f8_19;
+ int64_t f5f9_76 = f5_2 * (int64_t) f9_38;
+ int64_t f6f6_19 = f6 * (int64_t) f6_19;
+ int64_t f6f7_38 = f6 * (int64_t) f7_38;
+ int64_t f6f8_38 = f6_2 * (int64_t) f8_19;
+ int64_t f6f9_38 = f6 * (int64_t) f9_38;
+ int64_t f7f7_38 = f7 * (int64_t) f7_38;
+ int64_t f7f8_38 = f7_2 * (int64_t) f8_19;
+ int64_t f7f9_76 = f7_2 * (int64_t) f9_38;
+ int64_t f8f8_19 = f8 * (int64_t) f8_19;
+ int64_t f8f9_38 = f8 * (int64_t) f9_38;
+ int64_t f9f9_38 = f9 * (int64_t) f9_38;
+ int64_t h0 = f0f0 + f1f9_76 + f2f8_38 + f3f7_76 + f4f6_38 + f5f5_38;
+ int64_t h1 = f0f1_2 + f2f9_38 + f3f8_38 + f4f7_38 + f5f6_38;
+ int64_t h2 = f0f2_2 + f1f1_2 + f3f9_76 + f4f8_38 + f5f7_76 + f6f6_19;
+ int64_t h3 = f0f3_2 + f1f2_2 + f4f9_38 + f5f8_38 + f6f7_38;
+ int64_t h4 = f0f4_2 + f1f3_4 + f2f2 + f5f9_76 + f6f8_38 + f7f7_38;
+ int64_t h5 = f0f5_2 + f1f4_2 + f2f3_2 + f6f9_38 + f7f8_38;
+ int64_t h6 = f0f6_2 + f1f5_4 + f2f4_2 + f3f3_2 + f7f9_76 + f8f8_19;
+ int64_t h7 = f0f7_2 + f1f6_2 + f2f5_2 + f3f4_2 + f8f9_38;
+ int64_t h8 = f0f8_2 + f1f7_4 + f2f6_2 + f3f5_4 + f4f4 + f9f9_38;
+ int64_t h9 = f0f9_2 + f1f8_2 + f2f7_2 + f3f6_2 + f4f5_2;
+ int64_t carry0;
+ int64_t carry1;
+ int64_t carry2;
+ int64_t carry3;
+ int64_t carry4;
+ int64_t carry5;
+ int64_t carry6;
+ int64_t carry7;
+ int64_t carry8;
+ int64_t carry9;
+ carry0 = (h0 + (int64_t) (1 << 25)) >> 26;
+ h1 += carry0;
+ h0 -= carry0 << 26;
+ carry4 = (h4 + (int64_t) (1 << 25)) >> 26;
+ h5 += carry4;
+ h4 -= carry4 << 26;
+ carry1 = (h1 + (int64_t) (1 << 24)) >> 25;
+ h2 += carry1;
+ h1 -= carry1 << 25;
+ carry5 = (h5 + (int64_t) (1 << 24)) >> 25;
+ h6 += carry5;
+ h5 -= carry5 << 25;
+ carry2 = (h2 + (int64_t) (1 << 25)) >> 26;
+ h3 += carry2;
+ h2 -= carry2 << 26;
+ carry6 = (h6 + (int64_t) (1 << 25)) >> 26;
+ h7 += carry6;
+ h6 -= carry6 << 26;
+ carry3 = (h3 + (int64_t) (1 << 24)) >> 25;
+ h4 += carry3;
+ h3 -= carry3 << 25;
+ carry7 = (h7 + (int64_t) (1 << 24)) >> 25;
+ h8 += carry7;
+ h7 -= carry7 << 25;
+ carry4 = (h4 + (int64_t) (1 << 25)) >> 26;
+ h5 += carry4;
+ h4 -= carry4 << 26;
+ carry8 = (h8 + (int64_t) (1 << 25)) >> 26;
+ h9 += carry8;
+ h8 -= carry8 << 26;
+ carry9 = (h9 + (int64_t) (1 << 24)) >> 25;
+ h0 += carry9 * 19;
+ h9 -= carry9 << 25;
+ carry0 = (h0 + (int64_t) (1 << 25)) >> 26;
+ h1 += carry0;
+ h0 -= carry0 << 26;
+ h[0] = (int32_t) h0;
+ h[1] = (int32_t) h1;
+ h[2] = (int32_t) h2;
+ h[3] = (int32_t) h3;
+ h[4] = (int32_t) h4;
+ h[5] = (int32_t) h5;
+ h[6] = (int32_t) h6;
+ h[7] = (int32_t) h7;
+ h[8] = (int32_t) h8;
+ h[9] = (int32_t) h9;
+}
+
+
+/*
+h = 2 * f * f
+Can overlap h with f.
+
+Preconditions:
+ |f| bounded by 1.65*2^26,1.65*2^25,1.65*2^26,1.65*2^25,etc.
+
+Postconditions:
+ |h| bounded by 1.01*2^25,1.01*2^24,1.01*2^25,1.01*2^24,etc.
+*/
+
+/*
+See fe_mul.c for discussion of implementation strategy.
+*/
+
+void fe_sq2(fe h, const fe f) {
+ int32_t f0 = f[0];
+ int32_t f1 = f[1];
+ int32_t f2 = f[2];
+ int32_t f3 = f[3];
+ int32_t f4 = f[4];
+ int32_t f5 = f[5];
+ int32_t f6 = f[6];
+ int32_t f7 = f[7];
+ int32_t f8 = f[8];
+ int32_t f9 = f[9];
+ int32_t f0_2 = 2 * f0;
+ int32_t f1_2 = 2 * f1;
+ int32_t f2_2 = 2 * f2;
+ int32_t f3_2 = 2 * f3;
+ int32_t f4_2 = 2 * f4;
+ int32_t f5_2 = 2 * f5;
+ int32_t f6_2 = 2 * f6;
+ int32_t f7_2 = 2 * f7;
+ int32_t f5_38 = 38 * f5; /* 1.959375*2^30 */
+ int32_t f6_19 = 19 * f6; /* 1.959375*2^30 */
+ int32_t f7_38 = 38 * f7; /* 1.959375*2^30 */
+ int32_t f8_19 = 19 * f8; /* 1.959375*2^30 */
+ int32_t f9_38 = 38 * f9; /* 1.959375*2^30 */
+ int64_t f0f0 = f0 * (int64_t) f0;
+ int64_t f0f1_2 = f0_2 * (int64_t) f1;
+ int64_t f0f2_2 = f0_2 * (int64_t) f2;
+ int64_t f0f3_2 = f0_2 * (int64_t) f3;
+ int64_t f0f4_2 = f0_2 * (int64_t) f4;
+ int64_t f0f5_2 = f0_2 * (int64_t) f5;
+ int64_t f0f6_2 = f0_2 * (int64_t) f6;
+ int64_t f0f7_2 = f0_2 * (int64_t) f7;
+ int64_t f0f8_2 = f0_2 * (int64_t) f8;
+ int64_t f0f9_2 = f0_2 * (int64_t) f9;
+ int64_t f1f1_2 = f1_2 * (int64_t) f1;
+ int64_t f1f2_2 = f1_2 * (int64_t) f2;
+ int64_t f1f3_4 = f1_2 * (int64_t) f3_2;
+ int64_t f1f4_2 = f1_2 * (int64_t) f4;
+ int64_t f1f5_4 = f1_2 * (int64_t) f5_2;
+ int64_t f1f6_2 = f1_2 * (int64_t) f6;
+ int64_t f1f7_4 = f1_2 * (int64_t) f7_2;
+ int64_t f1f8_2 = f1_2 * (int64_t) f8;
+ int64_t f1f9_76 = f1_2 * (int64_t) f9_38;
+ int64_t f2f2 = f2 * (int64_t) f2;
+ int64_t f2f3_2 = f2_2 * (int64_t) f3;
+ int64_t f2f4_2 = f2_2 * (int64_t) f4;
+ int64_t f2f5_2 = f2_2 * (int64_t) f5;
+ int64_t f2f6_2 = f2_2 * (int64_t) f6;
+ int64_t f2f7_2 = f2_2 * (int64_t) f7;
+ int64_t f2f8_38 = f2_2 * (int64_t) f8_19;
+ int64_t f2f9_38 = f2 * (int64_t) f9_38;
+ int64_t f3f3_2 = f3_2 * (int64_t) f3;
+ int64_t f3f4_2 = f3_2 * (int64_t) f4;
+ int64_t f3f5_4 = f3_2 * (int64_t) f5_2;
+ int64_t f3f6_2 = f3_2 * (int64_t) f6;
+ int64_t f3f7_76 = f3_2 * (int64_t) f7_38;
+ int64_t f3f8_38 = f3_2 * (int64_t) f8_19;
+ int64_t f3f9_76 = f3_2 * (int64_t) f9_38;
+ int64_t f4f4 = f4 * (int64_t) f4;
+ int64_t f4f5_2 = f4_2 * (int64_t) f5;
+ int64_t f4f6_38 = f4_2 * (int64_t) f6_19;
+ int64_t f4f7_38 = f4 * (int64_t) f7_38;
+ int64_t f4f8_38 = f4_2 * (int64_t) f8_19;
+ int64_t f4f9_38 = f4 * (int64_t) f9_38;
+ int64_t f5f5_38 = f5 * (int64_t) f5_38;
+ int64_t f5f6_38 = f5_2 * (int64_t) f6_19;
+ int64_t f5f7_76 = f5_2 * (int64_t) f7_38;
+ int64_t f5f8_38 = f5_2 * (int64_t) f8_19;
+ int64_t f5f9_76 = f5_2 * (int64_t) f9_38;
+ int64_t f6f6_19 = f6 * (int64_t) f6_19;
+ int64_t f6f7_38 = f6 * (int64_t) f7_38;
+ int64_t f6f8_38 = f6_2 * (int64_t) f8_19;
+ int64_t f6f9_38 = f6 * (int64_t) f9_38;
+ int64_t f7f7_38 = f7 * (int64_t) f7_38;
+ int64_t f7f8_38 = f7_2 * (int64_t) f8_19;
+ int64_t f7f9_76 = f7_2 * (int64_t) f9_38;
+ int64_t f8f8_19 = f8 * (int64_t) f8_19;
+ int64_t f8f9_38 = f8 * (int64_t) f9_38;
+ int64_t f9f9_38 = f9 * (int64_t) f9_38;
+ int64_t h0 = f0f0 + f1f9_76 + f2f8_38 + f3f7_76 + f4f6_38 + f5f5_38;
+ int64_t h1 = f0f1_2 + f2f9_38 + f3f8_38 + f4f7_38 + f5f6_38;
+ int64_t h2 = f0f2_2 + f1f1_2 + f3f9_76 + f4f8_38 + f5f7_76 + f6f6_19;
+ int64_t h3 = f0f3_2 + f1f2_2 + f4f9_38 + f5f8_38 + f6f7_38;
+ int64_t h4 = f0f4_2 + f1f3_4 + f2f2 + f5f9_76 + f6f8_38 + f7f7_38;
+ int64_t h5 = f0f5_2 + f1f4_2 + f2f3_2 + f6f9_38 + f7f8_38;
+ int64_t h6 = f0f6_2 + f1f5_4 + f2f4_2 + f3f3_2 + f7f9_76 + f8f8_19;
+ int64_t h7 = f0f7_2 + f1f6_2 + f2f5_2 + f3f4_2 + f8f9_38;
+ int64_t h8 = f0f8_2 + f1f7_4 + f2f6_2 + f3f5_4 + f4f4 + f9f9_38;
+ int64_t h9 = f0f9_2 + f1f8_2 + f2f7_2 + f3f6_2 + f4f5_2;
+ int64_t carry0;
+ int64_t carry1;
+ int64_t carry2;
+ int64_t carry3;
+ int64_t carry4;
+ int64_t carry5;
+ int64_t carry6;
+ int64_t carry7;
+ int64_t carry8;
+ int64_t carry9;
+ h0 += h0;
+ h1 += h1;
+ h2 += h2;
+ h3 += h3;
+ h4 += h4;
+ h5 += h5;
+ h6 += h6;
+ h7 += h7;
+ h8 += h8;
+ h9 += h9;
+ carry0 = (h0 + (int64_t) (1 << 25)) >> 26;
+ h1 += carry0;
+ h0 -= carry0 << 26;
+ carry4 = (h4 + (int64_t) (1 << 25)) >> 26;
+ h5 += carry4;
+ h4 -= carry4 << 26;
+ carry1 = (h1 + (int64_t) (1 << 24)) >> 25;
+ h2 += carry1;
+ h1 -= carry1 << 25;
+ carry5 = (h5 + (int64_t) (1 << 24)) >> 25;
+ h6 += carry5;
+ h5 -= carry5 << 25;
+ carry2 = (h2 + (int64_t) (1 << 25)) >> 26;
+ h3 += carry2;
+ h2 -= carry2 << 26;
+ carry6 = (h6 + (int64_t) (1 << 25)) >> 26;
+ h7 += carry6;
+ h6 -= carry6 << 26;
+ carry3 = (h3 + (int64_t) (1 << 24)) >> 25;
+ h4 += carry3;
+ h3 -= carry3 << 25;
+ carry7 = (h7 + (int64_t) (1 << 24)) >> 25;
+ h8 += carry7;
+ h7 -= carry7 << 25;
+ carry4 = (h4 + (int64_t) (1 << 25)) >> 26;
+ h5 += carry4;
+ h4 -= carry4 << 26;
+ carry8 = (h8 + (int64_t) (1 << 25)) >> 26;
+ h9 += carry8;
+ h8 -= carry8 << 26;
+ carry9 = (h9 + (int64_t) (1 << 24)) >> 25;
+ h0 += carry9 * 19;
+ h9 -= carry9 << 25;
+ carry0 = (h0 + (int64_t) (1 << 25)) >> 26;
+ h1 += carry0;
+ h0 -= carry0 << 26;
+ h[0] = (int32_t) h0;
+ h[1] = (int32_t) h1;
+ h[2] = (int32_t) h2;
+ h[3] = (int32_t) h3;
+ h[4] = (int32_t) h4;
+ h[5] = (int32_t) h5;
+ h[6] = (int32_t) h6;
+ h[7] = (int32_t) h7;
+ h[8] = (int32_t) h8;
+ h[9] = (int32_t) h9;
+}
+
+
+/*
+h = f - g
+Can overlap h with f or g.
+
+Preconditions:
+ |f| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
+ |g| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
+
+Postconditions:
+ |h| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
+*/
+
+void fe_sub(fe h, const fe f, const fe g) {
+ int32_t f0 = f[0];
+ int32_t f1 = f[1];
+ int32_t f2 = f[2];
+ int32_t f3 = f[3];
+ int32_t f4 = f[4];
+ int32_t f5 = f[5];
+ int32_t f6 = f[6];
+ int32_t f7 = f[7];
+ int32_t f8 = f[8];
+ int32_t f9 = f[9];
+ int32_t g0 = g[0];
+ int32_t g1 = g[1];
+ int32_t g2 = g[2];
+ int32_t g3 = g[3];
+ int32_t g4 = g[4];
+ int32_t g5 = g[5];
+ int32_t g6 = g[6];
+ int32_t g7 = g[7];
+ int32_t g8 = g[8];
+ int32_t g9 = g[9];
+ int32_t h0 = f0 - g0;
+ int32_t h1 = f1 - g1;
+ int32_t h2 = f2 - g2;
+ int32_t h3 = f3 - g3;
+ int32_t h4 = f4 - g4;
+ int32_t h5 = f5 - g5;
+ int32_t h6 = f6 - g6;
+ int32_t h7 = f7 - g7;
+ int32_t h8 = f8 - g8;
+ int32_t h9 = f9 - g9;
+
+ h[0] = h0;
+ h[1] = h1;
+ h[2] = h2;
+ h[3] = h3;
+ h[4] = h4;
+ h[5] = h5;
+ h[6] = h6;
+ h[7] = h7;
+ h[8] = h8;
+ h[9] = h9;
+}
+
+
+
+/*
+Preconditions:
+ |h| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
+
+Write p=2^255-19; q=floor(h/p).
+Basic claim: q = floor(2^(-255)(h + 19 2^(-25)h9 + 2^(-1))).
+
+Proof:
+ Have |h|<=p so |q|<=1 so |19^2 2^(-255) q|<1/4.
+ Also have |h-2^230 h9|<2^231 so |19 2^(-255)(h-2^230 h9)|<1/4.
+
+ Write y=2^(-1)-19^2 2^(-255)q-19 2^(-255)(h-2^230 h9).
+ Then 0> 25;
+ q = (h0 + q) >> 26;
+ q = (h1 + q) >> 25;
+ q = (h2 + q) >> 26;
+ q = (h3 + q) >> 25;
+ q = (h4 + q) >> 26;
+ q = (h5 + q) >> 25;
+ q = (h6 + q) >> 26;
+ q = (h7 + q) >> 25;
+ q = (h8 + q) >> 26;
+ q = (h9 + q) >> 25;
+ /* Goal: Output h-(2^255-19)q, which is between 0 and 2^255-20. */
+ h0 += 19 * q;
+ /* Goal: Output h-2^255 q, which is between 0 and 2^255-20. */
+ carry0 = h0 >> 26;
+ h1 += carry0;
+ h0 -= carry0 << 26;
+ carry1 = h1 >> 25;
+ h2 += carry1;
+ h1 -= carry1 << 25;
+ carry2 = h2 >> 26;
+ h3 += carry2;
+ h2 -= carry2 << 26;
+ carry3 = h3 >> 25;
+ h4 += carry3;
+ h3 -= carry3 << 25;
+ carry4 = h4 >> 26;
+ h5 += carry4;
+ h4 -= carry4 << 26;
+ carry5 = h5 >> 25;
+ h6 += carry5;
+ h5 -= carry5 << 25;
+ carry6 = h6 >> 26;
+ h7 += carry6;
+ h6 -= carry6 << 26;
+ carry7 = h7 >> 25;
+ h8 += carry7;
+ h7 -= carry7 << 25;
+ carry8 = h8 >> 26;
+ h9 += carry8;
+ h8 -= carry8 << 26;
+ carry9 = h9 >> 25;
+ h9 -= carry9 << 25;
+
+ /* h10 = carry9 */
+ /*
+ Goal: Output h0+...+2^255 h10-2^255 q, which is between 0 and 2^255-20.
+ Have h0+...+2^230 h9 between 0 and 2^255-1;
+ evidently 2^255 h10-2^255 q = 0.
+ Goal: Output h0+...+2^230 h9.
+ */
+ s[0] = (unsigned char) (h0 >> 0);
+ s[1] = (unsigned char) (h0 >> 8);
+ s[2] = (unsigned char) (h0 >> 16);
+ s[3] = (unsigned char) ((h0 >> 24) | (h1 << 2));
+ s[4] = (unsigned char) (h1 >> 6);
+ s[5] = (unsigned char) (h1 >> 14);
+ s[6] = (unsigned char) ((h1 >> 22) | (h2 << 3));
+ s[7] = (unsigned char) (h2 >> 5);
+ s[8] = (unsigned char) (h2 >> 13);
+ s[9] = (unsigned char) ((h2 >> 21) | (h3 << 5));
+ s[10] = (unsigned char) (h3 >> 3);
+ s[11] = (unsigned char) (h3 >> 11);
+ s[12] = (unsigned char) ((h3 >> 19) | (h4 << 6));
+ s[13] = (unsigned char) (h4 >> 2);
+ s[14] = (unsigned char) (h4 >> 10);
+ s[15] = (unsigned char) (h4 >> 18);
+ s[16] = (unsigned char) (h5 >> 0);
+ s[17] = (unsigned char) (h5 >> 8);
+ s[18] = (unsigned char) (h5 >> 16);
+ s[19] = (unsigned char) ((h5 >> 24) | (h6 << 1));
+ s[20] = (unsigned char) (h6 >> 7);
+ s[21] = (unsigned char) (h6 >> 15);
+ s[22] = (unsigned char) ((h6 >> 23) | (h7 << 3));
+ s[23] = (unsigned char) (h7 >> 5);
+ s[24] = (unsigned char) (h7 >> 13);
+ s[25] = (unsigned char) ((h7 >> 21) | (h8 << 4));
+ s[26] = (unsigned char) (h8 >> 4);
+ s[27] = (unsigned char) (h8 >> 12);
+ s[28] = (unsigned char) ((h8 >> 20) | (h9 << 6));
+ s[29] = (unsigned char) (h9 >> 2);
+ s[30] = (unsigned char) (h9 >> 10);
+ s[31] = (unsigned char) (h9 >> 18);
+}
diff --git a/lib/ed25519/fe.h b/lib/ed25519/fe.h
new file mode 100755
index 0000000..b4b62d2
--- /dev/null
+++ b/lib/ed25519/fe.h
@@ -0,0 +1,41 @@
+#ifndef FE_H
+#define FE_H
+
+#include "fixedint.h"
+
+
+/*
+ fe means field element.
+ Here the field is \Z/(2^255-19).
+ An element t, entries t[0]...t[9], represents the integer
+ t[0]+2^26 t[1]+2^51 t[2]+2^77 t[3]+2^102 t[4]+...+2^230 t[9].
+ Bounds on each t[i] vary depending on context.
+*/
+
+
+typedef int32_t fe[10];
+
+
+void fe_0(fe h);
+void fe_1(fe h);
+
+void fe_frombytes(fe h, const unsigned char *s);
+void fe_tobytes(unsigned char *s, const fe h);
+
+void fe_copy(fe h, const fe f);
+int fe_isnegative(const fe f);
+int fe_isnonzero(const fe f);
+void fe_cmov(fe f, const fe g, unsigned int b);
+void fe_cswap(fe f, fe g, unsigned int b);
+
+void fe_neg(fe h, const fe f);
+void fe_add(fe h, const fe f, const fe g);
+void fe_invert(fe out, const fe z);
+void fe_sq(fe h, const fe f);
+void fe_sq2(fe h, const fe f);
+void fe_mul(fe h, const fe f, const fe g);
+void fe_mul121666(fe h, fe f);
+void fe_pow22523(fe out, const fe z);
+void fe_sub(fe h, const fe f, const fe g);
+
+#endif
diff --git a/lib/ed25519/fixedint.h b/lib/ed25519/fixedint.h
new file mode 100755
index 0000000..1a8745b
--- /dev/null
+++ b/lib/ed25519/fixedint.h
@@ -0,0 +1,72 @@
+/*
+ Portable header to provide the 32 and 64 bits type.
+
+ Not a compatible replacement for , do not blindly use it as such.
+*/
+
+#if ((defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) || (defined(__WATCOMC__) && (defined(_STDINT_H_INCLUDED) || __WATCOMC__ >= 1250)) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_) || defined(__UINT_FAST64_TYPE__)) )) && !defined(FIXEDINT_H_INCLUDED)
+ #include
+ #define FIXEDINT_H_INCLUDED
+
+ #if defined(__WATCOMC__) && __WATCOMC__ >= 1250 && !defined(UINT64_C)
+ #include
+ #define UINT64_C(x) (x + (UINT64_MAX - UINT64_MAX))
+ #endif
+#endif
+
+
+#ifndef FIXEDINT_H_INCLUDED
+ #define FIXEDINT_H_INCLUDED
+
+ #include
+
+ /* (u)int32_t */
+ #ifndef uint32_t
+ #if (ULONG_MAX == 0xffffffffUL)
+ typedef unsigned long uint32_t;
+ #elif (UINT_MAX == 0xffffffffUL)
+ typedef unsigned int uint32_t;
+ #elif (USHRT_MAX == 0xffffffffUL)
+ typedef unsigned short uint32_t;
+ #endif
+ #endif
+
+
+ #ifndef int32_t
+ #if (LONG_MAX == 0x7fffffffL)
+ typedef signed long int32_t;
+ #elif (INT_MAX == 0x7fffffffL)
+ typedef signed int int32_t;
+ #elif (SHRT_MAX == 0x7fffffffL)
+ typedef signed short int32_t;
+ #endif
+ #endif
+
+
+ /* (u)int64_t */
+ #if (defined(__STDC__) && defined(__STDC_VERSION__) && __STDC__ && __STDC_VERSION__ >= 199901L)
+ typedef long long int64_t;
+ typedef unsigned long long uint64_t;
+
+ #define UINT64_C(v) v ##ULL
+ #define INT64_C(v) v ##LL
+ #elif defined(__GNUC__)
+ __extension__ typedef long long int64_t;
+ __extension__ typedef unsigned long long uint64_t;
+
+ #define UINT64_C(v) v ##ULL
+ #define INT64_C(v) v ##LL
+ #elif defined(__MWERKS__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) || defined(__APPLE_CC__) || defined(_LONG_LONG) || defined(_CRAYC)
+ typedef long long int64_t;
+ typedef unsigned long long uint64_t;
+
+ #define UINT64_C(v) v ##ULL
+ #define INT64_C(v) v ##LL
+ #elif (defined(__WATCOMC__) && defined(__WATCOM_INT64__)) || (defined(_MSC_VER) && _INTEGRAL_MAX_BITS >= 64) || (defined(__BORLANDC__) && __BORLANDC__ > 0x460) || defined(__alpha) || defined(__DECC)
+ typedef __int64 int64_t;
+ typedef unsigned __int64 uint64_t;
+
+ #define UINT64_C(v) v ##UI64
+ #define INT64_C(v) v ##I64
+ #endif
+#endif
diff --git a/lib/ed25519/ge.c b/lib/ed25519/ge.c
new file mode 100755
index 0000000..87c691b
--- /dev/null
+++ b/lib/ed25519/ge.c
@@ -0,0 +1,467 @@
+#include "ge.h"
+#include "precomp_data.h"
+
+
+/*
+r = p + q
+*/
+
+void ge_add(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q) {
+ fe t0;
+ fe_add(r->X, p->Y, p->X);
+ fe_sub(r->Y, p->Y, p->X);
+ fe_mul(r->Z, r->X, q->YplusX);
+ fe_mul(r->Y, r->Y, q->YminusX);
+ fe_mul(r->T, q->T2d, p->T);
+ fe_mul(r->X, p->Z, q->Z);
+ fe_add(t0, r->X, r->X);
+ fe_sub(r->X, r->Z, r->Y);
+ fe_add(r->Y, r->Z, r->Y);
+ fe_add(r->Z, t0, r->T);
+ fe_sub(r->T, t0, r->T);
+}
+
+
+static void slide(signed char *r, const unsigned char *a) {
+ int i;
+ int b;
+ int k;
+
+ for (i = 0; i < 256; ++i) {
+ r[i] = 1 & (a[i >> 3] >> (i & 7));
+ }
+
+ for (i = 0; i < 256; ++i)
+ if (r[i]) {
+ for (b = 1; b <= 6 && i + b < 256; ++b) {
+ if (r[i + b]) {
+ if (r[i] + (r[i + b] << b) <= 15) {
+ r[i] += r[i + b] << b;
+ r[i + b] = 0;
+ } else if (r[i] - (r[i + b] << b) >= -15) {
+ r[i] -= r[i + b] << b;
+
+ for (k = i + b; k < 256; ++k) {
+ if (!r[k]) {
+ r[k] = 1;
+ break;
+ }
+
+ r[k] = 0;
+ }
+ } else {
+ break;
+ }
+ }
+ }
+ }
+}
+
+/*
+r = a * A + b * B
+where a = a[0]+256*a[1]+...+256^31 a[31].
+and b = b[0]+256*b[1]+...+256^31 b[31].
+B is the Ed25519 base point (x,4/5) with x positive.
+*/
+
+void ge_double_scalarmult_vartime(ge_p2 *r, const unsigned char *a, const ge_p3 *A, const unsigned char *b) {
+ signed char aslide[256];
+ signed char bslide[256];
+ ge_cached Ai[8]; /* A,3A,5A,7A,9A,11A,13A,15A */
+ ge_p1p1 t;
+ ge_p3 u;
+ ge_p3 A2;
+ int i;
+ slide(aslide, a);
+ slide(bslide, b);
+ ge_p3_to_cached(&Ai[0], A);
+ ge_p3_dbl(&t, A);
+ ge_p1p1_to_p3(&A2, &t);
+ ge_add(&t, &A2, &Ai[0]);
+ ge_p1p1_to_p3(&u, &t);
+ ge_p3_to_cached(&Ai[1], &u);
+ ge_add(&t, &A2, &Ai[1]);
+ ge_p1p1_to_p3(&u, &t);
+ ge_p3_to_cached(&Ai[2], &u);
+ ge_add(&t, &A2, &Ai[2]);
+ ge_p1p1_to_p3(&u, &t);
+ ge_p3_to_cached(&Ai[3], &u);
+ ge_add(&t, &A2, &Ai[3]);
+ ge_p1p1_to_p3(&u, &t);
+ ge_p3_to_cached(&Ai[4], &u);
+ ge_add(&t, &A2, &Ai[4]);
+ ge_p1p1_to_p3(&u, &t);
+ ge_p3_to_cached(&Ai[5], &u);
+ ge_add(&t, &A2, &Ai[5]);
+ ge_p1p1_to_p3(&u, &t);
+ ge_p3_to_cached(&Ai[6], &u);
+ ge_add(&t, &A2, &Ai[6]);
+ ge_p1p1_to_p3(&u, &t);
+ ge_p3_to_cached(&Ai[7], &u);
+ ge_p2_0(r);
+
+ for (i = 255; i >= 0; --i) {
+ if (aslide[i] || bslide[i]) {
+ break;
+ }
+ }
+
+ for (; i >= 0; --i) {
+ ge_p2_dbl(&t, r);
+
+ if (aslide[i] > 0) {
+ ge_p1p1_to_p3(&u, &t);
+ ge_add(&t, &u, &Ai[aslide[i] / 2]);
+ } else if (aslide[i] < 0) {
+ ge_p1p1_to_p3(&u, &t);
+ ge_sub(&t, &u, &Ai[(-aslide[i]) / 2]);
+ }
+
+ if (bslide[i] > 0) {
+ ge_p1p1_to_p3(&u, &t);
+ ge_madd(&t, &u, &Bi[bslide[i] / 2]);
+ } else if (bslide[i] < 0) {
+ ge_p1p1_to_p3(&u, &t);
+ ge_msub(&t, &u, &Bi[(-bslide[i]) / 2]);
+ }
+
+ ge_p1p1_to_p2(r, &t);
+ }
+}
+
+
+static const fe d = {
+ -10913610, 13857413, -15372611, 6949391, 114729, -8787816, -6275908, -3247719, -18696448, -12055116
+};
+
+static const fe sqrtm1 = {
+ -32595792, -7943725, 9377950, 3500415, 12389472, -272473, -25146209, -2005654, 326686, 11406482
+};
+
+int ge_frombytes_negate_vartime(ge_p3 *h, const unsigned char *s) {
+ fe u;
+ fe v;
+ fe v3;
+ fe vxx;
+ fe check;
+ fe_frombytes(h->Y, s);
+ fe_1(h->Z);
+ fe_sq(u, h->Y);
+ fe_mul(v, u, d);
+ fe_sub(u, u, h->Z); /* u = y^2-1 */
+ fe_add(v, v, h->Z); /* v = dy^2+1 */
+ fe_sq(v3, v);
+ fe_mul(v3, v3, v); /* v3 = v^3 */
+ fe_sq(h->X, v3);
+ fe_mul(h->X, h->X, v);
+ fe_mul(h->X, h->X, u); /* x = uv^7 */
+ fe_pow22523(h->X, h->X); /* x = (uv^7)^((q-5)/8) */
+ fe_mul(h->X, h->X, v3);
+ fe_mul(h->X, h->X, u); /* x = uv^3(uv^7)^((q-5)/8) */
+ fe_sq(vxx, h->X);
+ fe_mul(vxx, vxx, v);
+ fe_sub(check, vxx, u); /* vx^2-u */
+
+ if (fe_isnonzero(check)) {
+ fe_add(check, vxx, u); /* vx^2+u */
+
+ if (fe_isnonzero(check)) {
+ return -1;
+ }
+
+ fe_mul(h->X, h->X, sqrtm1);
+ }
+
+ if (fe_isnegative(h->X) == (s[31] >> 7)) {
+ fe_neg(h->X, h->X);
+ }
+
+ fe_mul(h->T, h->X, h->Y);
+ return 0;
+}
+
+
+/*
+r = p + q
+*/
+
+void ge_madd(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q) {
+ fe t0;
+ fe_add(r->X, p->Y, p->X);
+ fe_sub(r->Y, p->Y, p->X);
+ fe_mul(r->Z, r->X, q->yplusx);
+ fe_mul(r->Y, r->Y, q->yminusx);
+ fe_mul(r->T, q->xy2d, p->T);
+ fe_add(t0, p->Z, p->Z);
+ fe_sub(r->X, r->Z, r->Y);
+ fe_add(r->Y, r->Z, r->Y);
+ fe_add(r->Z, t0, r->T);
+ fe_sub(r->T, t0, r->T);
+}
+
+
+/*
+r = p - q
+*/
+
+void ge_msub(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q) {
+ fe t0;
+
+ fe_add(r->X, p->Y, p->X);
+ fe_sub(r->Y, p->Y, p->X);
+ fe_mul(r->Z, r->X, q->yminusx);
+ fe_mul(r->Y, r->Y, q->yplusx);
+ fe_mul(r->T, q->xy2d, p->T);
+ fe_add(t0, p->Z, p->Z);
+ fe_sub(r->X, r->Z, r->Y);
+ fe_add(r->Y, r->Z, r->Y);
+ fe_sub(r->Z, t0, r->T);
+ fe_add(r->T, t0, r->T);
+}
+
+
+/*
+r = p
+*/
+
+void ge_p1p1_to_p2(ge_p2 *r, const ge_p1p1 *p) {
+ fe_mul(r->X, p->X, p->T);
+ fe_mul(r->Y, p->Y, p->Z);
+ fe_mul(r->Z, p->Z, p->T);
+}
+
+
+
+/*
+r = p
+*/
+
+void ge_p1p1_to_p3(ge_p3 *r, const ge_p1p1 *p) {
+ fe_mul(r->X, p->X, p->T);
+ fe_mul(r->Y, p->Y, p->Z);
+ fe_mul(r->Z, p->Z, p->T);
+ fe_mul(r->T, p->X, p->Y);
+}
+
+
+void ge_p2_0(ge_p2 *h) {
+ fe_0(h->X);
+ fe_1(h->Y);
+ fe_1(h->Z);
+}
+
+
+
+/*
+r = 2 * p
+*/
+
+void ge_p2_dbl(ge_p1p1 *r, const ge_p2 *p) {
+ fe t0;
+
+ fe_sq(r->X, p->X);
+ fe_sq(r->Z, p->Y);
+ fe_sq2(r->T, p->Z);
+ fe_add(r->Y, p->X, p->Y);
+ fe_sq(t0, r->Y);
+ fe_add(r->Y, r->Z, r->X);
+ fe_sub(r->Z, r->Z, r->X);
+ fe_sub(r->X, t0, r->Y);
+ fe_sub(r->T, r->T, r->Z);
+}
+
+
+void ge_p3_0(ge_p3 *h) {
+ fe_0(h->X);
+ fe_1(h->Y);
+ fe_1(h->Z);
+ fe_0(h->T);
+}
+
+
+/*
+r = 2 * p
+*/
+
+void ge_p3_dbl(ge_p1p1 *r, const ge_p3 *p) {
+ ge_p2 q;
+ ge_p3_to_p2(&q, p);
+ ge_p2_dbl(r, &q);
+}
+
+
+
+/*
+r = p
+*/
+
+static const fe d2 = {
+ -21827239, -5839606, -30745221, 13898782, 229458, 15978800, -12551817, -6495438, 29715968, 9444199
+};
+
+void ge_p3_to_cached(ge_cached *r, const ge_p3 *p) {
+ fe_add(r->YplusX, p->Y, p->X);
+ fe_sub(r->YminusX, p->Y, p->X);
+ fe_copy(r->Z, p->Z);
+ fe_mul(r->T2d, p->T, d2);
+}
+
+
+/*
+r = p
+*/
+
+void ge_p3_to_p2(ge_p2 *r, const ge_p3 *p) {
+ fe_copy(r->X, p->X);
+ fe_copy(r->Y, p->Y);
+ fe_copy(r->Z, p->Z);
+}
+
+
+void ge_p3_tobytes(unsigned char *s, const ge_p3 *h) {
+ fe recip;
+ fe x;
+ fe y;
+ fe_invert(recip, h->Z);
+ fe_mul(x, h->X, recip);
+ fe_mul(y, h->Y, recip);
+ fe_tobytes(s, y);
+ s[31] ^= fe_isnegative(x) << 7;
+}
+
+
+static unsigned char equal(signed char b, signed char c) {
+ unsigned char ub = b;
+ unsigned char uc = c;
+ unsigned char x = ub ^ uc; /* 0: yes; 1..255: no */
+ uint64_t y = x; /* 0: yes; 1..255: no */
+ y -= 1; /* large: yes; 0..254: no */
+ y >>= 63; /* 1: yes; 0: no */
+ return (unsigned char) y;
+}
+
+static unsigned char negative(signed char b) {
+ uint64_t x = b; /* 18446744073709551361..18446744073709551615: yes; 0..255: no */
+ x >>= 63; /* 1: yes; 0: no */
+ return (unsigned char) x;
+}
+
+static void cmov(ge_precomp *t, const ge_precomp *u, unsigned char b) {
+ fe_cmov(t->yplusx, u->yplusx, b);
+ fe_cmov(t->yminusx, u->yminusx, b);
+ fe_cmov(t->xy2d, u->xy2d, b);
+}
+
+
+static void select(ge_precomp *t, int pos, signed char b) {
+ ge_precomp minust;
+ unsigned char bnegative = negative(b);
+ unsigned char babs = b - (((-bnegative) & b) << 1);
+ fe_1(t->yplusx);
+ fe_1(t->yminusx);
+ fe_0(t->xy2d);
+ cmov(t, &base[pos][0], equal(babs, 1));
+ cmov(t, &base[pos][1], equal(babs, 2));
+ cmov(t, &base[pos][2], equal(babs, 3));
+ cmov(t, &base[pos][3], equal(babs, 4));
+ cmov(t, &base[pos][4], equal(babs, 5));
+ cmov(t, &base[pos][5], equal(babs, 6));
+ cmov(t, &base[pos][6], equal(babs, 7));
+ cmov(t, &base[pos][7], equal(babs, 8));
+ fe_copy(minust.yplusx, t->yminusx);
+ fe_copy(minust.yminusx, t->yplusx);
+ fe_neg(minust.xy2d, t->xy2d);
+ cmov(t, &minust, bnegative);
+}
+
+/*
+h = a * B
+where a = a[0]+256*a[1]+...+256^31 a[31]
+B is the Ed25519 base point (x,4/5) with x positive.
+
+Preconditions:
+ a[31] <= 127
+*/
+
+void ge_scalarmult_base(ge_p3 *h, const unsigned char *a) {
+ signed char e[64];
+ signed char carry;
+ ge_p1p1 r;
+ ge_p2 s;
+ ge_precomp t;
+ int i;
+
+ for (i = 0; i < 32; ++i) {
+ e[2 * i + 0] = (a[i] >> 0) & 15;
+ e[2 * i + 1] = (a[i] >> 4) & 15;
+ }
+
+ /* each e[i] is between 0 and 15 */
+ /* e[63] is between 0 and 7 */
+ carry = 0;
+
+ for (i = 0; i < 63; ++i) {
+ e[i] += carry;
+ carry = e[i] + 8;
+ carry >>= 4;
+ e[i] -= carry << 4;
+ }
+
+ e[63] += carry;
+ /* each e[i] is between -8 and 8 */
+ ge_p3_0(h);
+
+ for (i = 1; i < 64; i += 2) {
+ select(&t, i / 2, e[i]);
+ ge_madd(&r, h, &t);
+ ge_p1p1_to_p3(h, &r);
+ }
+
+ ge_p3_dbl(&r, h);
+ ge_p1p1_to_p2(&s, &r);
+ ge_p2_dbl(&r, &s);
+ ge_p1p1_to_p2(&s, &r);
+ ge_p2_dbl(&r, &s);
+ ge_p1p1_to_p2(&s, &r);
+ ge_p2_dbl(&r, &s);
+ ge_p1p1_to_p3(h, &r);
+
+ for (i = 0; i < 64; i += 2) {
+ select(&t, i / 2, e[i]);
+ ge_madd(&r, h, &t);
+ ge_p1p1_to_p3(h, &r);
+ }
+}
+
+
+/*
+r = p - q
+*/
+
+void ge_sub(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q) {
+ fe t0;
+
+ fe_add(r->X, p->Y, p->X);
+ fe_sub(r->Y, p->Y, p->X);
+ fe_mul(r->Z, r->X, q->YminusX);
+ fe_mul(r->Y, r->Y, q->YplusX);
+ fe_mul(r->T, q->T2d, p->T);
+ fe_mul(r->X, p->Z, q->Z);
+ fe_add(t0, r->X, r->X);
+ fe_sub(r->X, r->Z, r->Y);
+ fe_add(r->Y, r->Z, r->Y);
+ fe_sub(r->Z, t0, r->T);
+ fe_add(r->T, t0, r->T);
+}
+
+
+void ge_tobytes(unsigned char *s, const ge_p2 *h) {
+ fe recip;
+ fe x;
+ fe y;
+ fe_invert(recip, h->Z);
+ fe_mul(x, h->X, recip);
+ fe_mul(y, h->Y, recip);
+ fe_tobytes(s, y);
+ s[31] ^= fe_isnegative(x) << 7;
+}
diff --git a/lib/ed25519/ge.h b/lib/ed25519/ge.h
new file mode 100755
index 0000000..17fde2d
--- /dev/null
+++ b/lib/ed25519/ge.h
@@ -0,0 +1,74 @@
+#ifndef GE_H
+#define GE_H
+
+#include "fe.h"
+
+
+/*
+ge means group element.
+
+Here the group is the set of pairs (x,y) of field elements (see fe.h)
+satisfying -x^2 + y^2 = 1 + d x^2y^2
+where d = -121665/121666.
+
+Representations:
+ ge_p2 (projective): (X:Y:Z) satisfying x=X/Z, y=Y/Z
+ ge_p3 (extended): (X:Y:Z:T) satisfying x=X/Z, y=Y/Z, XY=ZT
+ ge_p1p1 (completed): ((X:Z),(Y:T)) satisfying x=X/Z, y=Y/T
+ ge_precomp (Duif): (y+x,y-x,2dxy)
+*/
+
+typedef struct {
+ fe X;
+ fe Y;
+ fe Z;
+} ge_p2;
+
+typedef struct {
+ fe X;
+ fe Y;
+ fe Z;
+ fe T;
+} ge_p3;
+
+typedef struct {
+ fe X;
+ fe Y;
+ fe Z;
+ fe T;
+} ge_p1p1;
+
+typedef struct {
+ fe yplusx;
+ fe yminusx;
+ fe xy2d;
+} ge_precomp;
+
+typedef struct {
+ fe YplusX;
+ fe YminusX;
+ fe Z;
+ fe T2d;
+} ge_cached;
+
+void ge_p3_tobytes(unsigned char *s, const ge_p3 *h);
+void ge_tobytes(unsigned char *s, const ge_p2 *h);
+int ge_frombytes_negate_vartime(ge_p3 *h, const unsigned char *s);
+
+void ge_add(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
+void ge_sub(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
+void ge_double_scalarmult_vartime(ge_p2 *r, const unsigned char *a, const ge_p3 *A, const unsigned char *b);
+void ge_madd(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q);
+void ge_msub(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q);
+void ge_scalarmult_base(ge_p3 *h, const unsigned char *a);
+
+void ge_p1p1_to_p2(ge_p2 *r, const ge_p1p1 *p);
+void ge_p1p1_to_p3(ge_p3 *r, const ge_p1p1 *p);
+void ge_p2_0(ge_p2 *h);
+void ge_p2_dbl(ge_p1p1 *r, const ge_p2 *p);
+void ge_p3_0(ge_p3 *h);
+void ge_p3_dbl(ge_p1p1 *r, const ge_p3 *p);
+void ge_p3_to_cached(ge_cached *r, const ge_p3 *p);
+void ge_p3_to_p2(ge_p2 *r, const ge_p3 *p);
+
+#endif
diff --git a/lib/ed25519/key_exchange.c b/lib/ed25519/key_exchange.c
new file mode 100755
index 0000000..abd75da
--- /dev/null
+++ b/lib/ed25519/key_exchange.c
@@ -0,0 +1,79 @@
+#include "ed25519.h"
+#include "fe.h"
+
+void ed25519_key_exchange(unsigned char *shared_secret, const unsigned char *public_key, const unsigned char *private_key) {
+ unsigned char e[32];
+ unsigned int i;
+
+ fe x1;
+ fe x2;
+ fe z2;
+ fe x3;
+ fe z3;
+ fe tmp0;
+ fe tmp1;
+
+ int pos;
+ unsigned int swap;
+ unsigned int b;
+
+ /* copy the private key and make sure it's valid */
+ for (i = 0; i < 32; ++i) {
+ e[i] = private_key[i];
+ }
+
+ e[0] &= 248;
+ e[31] &= 63;
+ e[31] |= 64;
+
+ /* unpack the public key and convert edwards to montgomery */
+ /* due to CodesInChaos: montgomeryX = (edwardsY + 1)*inverse(1 - edwardsY) mod p */
+ fe_frombytes(x1, public_key);
+ fe_1(tmp1);
+ fe_add(tmp0, x1, tmp1);
+ fe_sub(tmp1, tmp1, x1);
+ fe_invert(tmp1, tmp1);
+ fe_mul(x1, tmp0, tmp1);
+
+ fe_1(x2);
+ fe_0(z2);
+ fe_copy(x3, x1);
+ fe_1(z3);
+
+ swap = 0;
+ for (pos = 254; pos >= 0; --pos) {
+ b = e[pos / 8] >> (pos & 7);
+ b &= 1;
+ swap ^= b;
+ fe_cswap(x2, x3, swap);
+ fe_cswap(z2, z3, swap);
+ swap = b;
+
+ /* from montgomery.h */
+ fe_sub(tmp0, x3, z3);
+ fe_sub(tmp1, x2, z2);
+ fe_add(x2, x2, z2);
+ fe_add(z2, x3, z3);
+ fe_mul(z3, tmp0, x2);
+ fe_mul(z2, z2, tmp1);
+ fe_sq(tmp0, tmp1);
+ fe_sq(tmp1, x2);
+ fe_add(x3, z3, z2);
+ fe_sub(z2, z3, z2);
+ fe_mul(x2, tmp1, tmp0);
+ fe_sub(tmp1, tmp1, tmp0);
+ fe_sq(z2, z2);
+ fe_mul121666(z3, tmp1);
+ fe_sq(x3, x3);
+ fe_add(tmp0, tmp0, z3);
+ fe_mul(z3, x1, z2);
+ fe_mul(z2, tmp1, tmp0);
+ }
+
+ fe_cswap(x2, x3, swap);
+ fe_cswap(z2, z3, swap);
+
+ fe_invert(z2, z2);
+ fe_mul(x2, x2, z2);
+ fe_tobytes(shared_secret, x2);
+}
diff --git a/lib/ed25519/keypair.c b/lib/ed25519/keypair.c
new file mode 100755
index 0000000..dc1b8ec
--- /dev/null
+++ b/lib/ed25519/keypair.c
@@ -0,0 +1,16 @@
+#include "ed25519.h"
+#include "sha512.h"
+#include "ge.h"
+
+
+void ed25519_create_keypair(unsigned char *public_key, unsigned char *private_key, const unsigned char *seed) {
+ ge_p3 A;
+
+ sha512(seed, 32, private_key);
+ private_key[0] &= 248;
+ private_key[31] &= 63;
+ private_key[31] |= 64;
+
+ ge_scalarmult_base(&A, private_key);
+ ge_p3_tobytes(public_key, &A);
+}
diff --git a/lib/ed25519/precomp_data.h b/lib/ed25519/precomp_data.h
new file mode 100755
index 0000000..ff23986
--- /dev/null
+++ b/lib/ed25519/precomp_data.h
@@ -0,0 +1,1391 @@
+static const ge_precomp Bi[8] = {
+ {
+ { 25967493, -14356035, 29566456, 3660896, -12694345, 4014787, 27544626, -11754271, -6079156, 2047605 },
+ { -12545711, 934262, -2722910, 3049990, -727428, 9406986, 12720692, 5043384, 19500929, -15469378 },
+ { -8738181, 4489570, 9688441, -14785194, 10184609, -12363380, 29287919, 11864899, -24514362, -4438546 },
+ },
+ {
+ { 15636291, -9688557, 24204773, -7912398, 616977, -16685262, 27787600, -14772189, 28944400, -1550024 },
+ { 16568933, 4717097, -11556148, -1102322, 15682896, -11807043, 16354577, -11775962, 7689662, 11199574 },
+ { 30464156, -5976125, -11779434, -15670865, 23220365, 15915852, 7512774, 10017326, -17749093, -9920357 },
+ },
+ {
+ { 10861363, 11473154, 27284546, 1981175, -30064349, 12577861, 32867885, 14515107, -15438304, 10819380 },
+ { 4708026, 6336745, 20377586, 9066809, -11272109, 6594696, -25653668, 12483688, -12668491, 5581306 },
+ { 19563160, 16186464, -29386857, 4097519, 10237984, -4348115, 28542350, 13850243, -23678021, -15815942 },
+ },
+ {
+ { 5153746, 9909285, 1723747, -2777874, 30523605, 5516873, 19480852, 5230134, -23952439, -15175766 },
+ { -30269007, -3463509, 7665486, 10083793, 28475525, 1649722, 20654025, 16520125, 30598449, 7715701 },
+ { 28881845, 14381568, 9657904, 3680757, -20181635, 7843316, -31400660, 1370708, 29794553, -1409300 },
+ },
+ {
+ { -22518993, -6692182, 14201702, -8745502, -23510406, 8844726, 18474211, -1361450, -13062696, 13821877 },
+ { -6455177, -7839871, 3374702, -4740862, -27098617, -10571707, 31655028, -7212327, 18853322, -14220951 },
+ { 4566830, -12963868, -28974889, -12240689, -7602672, -2830569, -8514358, -10431137, 2207753, -3209784 },
+ },
+ {
+ { -25154831, -4185821, 29681144, 7868801, -6854661, -9423865, -12437364, -663000, -31111463, -16132436 },
+ { 25576264, -2703214, 7349804, -11814844, 16472782, 9300885, 3844789, 15725684, 171356, 6466918 },
+ { 23103977, 13316479, 9739013, -16149481, 817875, -15038942, 8965339, -14088058, -30714912, 16193877 },
+ },
+ {
+ { -33521811, 3180713, -2394130, 14003687, -16903474, -16270840, 17238398, 4729455, -18074513, 9256800 },
+ { -25182317, -4174131, 32336398, 5036987, -21236817, 11360617, 22616405, 9761698, -19827198, 630305 },
+ { -13720693, 2639453, -24237460, -7406481, 9494427, -5774029, -6554551, -15960994, -2449256, -14291300 },
+ },
+ {
+ { -3151181, -5046075, 9282714, 6866145, -31907062, -863023, -18940575, 15033784, 25105118, -7894876 },
+ { -24326370, 15950226, -31801215, -14592823, -11662737, -5090925, 1573892, -2625887, 2198790, -15804619 },
+ { -3099351, 10324967, -2241613, 7453183, -5446979, -2735503, -13812022, -16236442, -32461234, -12290683 },
+ },
+};
+
+
+/* base[i][j] = (j+1)*256^i*B */
+static const ge_precomp base[32][8] = {
+ {
+ {
+ { 25967493, -14356035, 29566456, 3660896, -12694345, 4014787, 27544626, -11754271, -6079156, 2047605 },
+ { -12545711, 934262, -2722910, 3049990, -727428, 9406986, 12720692, 5043384, 19500929, -15469378 },
+ { -8738181, 4489570, 9688441, -14785194, 10184609, -12363380, 29287919, 11864899, -24514362, -4438546 },
+ },
+ {
+ { -12815894, -12976347, -21581243, 11784320, -25355658, -2750717, -11717903, -3814571, -358445, -10211303 },
+ { -21703237, 6903825, 27185491, 6451973, -29577724, -9554005, -15616551, 11189268, -26829678, -5319081 },
+ { 26966642, 11152617, 32442495, 15396054, 14353839, -12752335, -3128826, -9541118, -15472047, -4166697 },
+ },
+ {
+ { 15636291, -9688557, 24204773, -7912398, 616977, -16685262, 27787600, -14772189, 28944400, -1550024 },
+ { 16568933, 4717097, -11556148, -1102322, 15682896, -11807043, 16354577, -11775962, 7689662, 11199574 },
+ { 30464156, -5976125, -11779434, -15670865, 23220365, 15915852, 7512774, 10017326, -17749093, -9920357 },
+ },
+ {
+ { -17036878, 13921892, 10945806, -6033431, 27105052, -16084379, -28926210, 15006023, 3284568, -6276540 },
+ { 23599295, -8306047, -11193664, -7687416, 13236774, 10506355, 7464579, 9656445, 13059162, 10374397 },
+ { 7798556, 16710257, 3033922, 2874086, 28997861, 2835604, 32406664, -3839045, -641708, -101325 },
+ },
+ {
+ { 10861363, 11473154, 27284546, 1981175, -30064349, 12577861, 32867885, 14515107, -15438304, 10819380 },
+ { 4708026, 6336745, 20377586, 9066809, -11272109, 6594696, -25653668, 12483688, -12668491, 5581306 },
+ { 19563160, 16186464, -29386857, 4097519, 10237984, -4348115, 28542350, 13850243, -23678021, -15815942 },
+ },
+ {
+ { -15371964, -12862754, 32573250, 4720197, -26436522, 5875511, -19188627, -15224819, -9818940, -12085777 },
+ { -8549212, 109983, 15149363, 2178705, 22900618, 4543417, 3044240, -15689887, 1762328, 14866737 },
+ { -18199695, -15951423, -10473290, 1707278, -17185920, 3916101, -28236412, 3959421, 27914454, 4383652 },
+ },
+ {
+ { 5153746, 9909285, 1723747, -2777874, 30523605, 5516873, 19480852, 5230134, -23952439, -15175766 },
+ { -30269007, -3463509, 7665486, 10083793, 28475525, 1649722, 20654025, 16520125, 30598449, 7715701 },
+ { 28881845, 14381568, 9657904, 3680757, -20181635, 7843316, -31400660, 1370708, 29794553, -1409300 },
+ },
+ {
+ { 14499471, -2729599, -33191113, -4254652, 28494862, 14271267, 30290735, 10876454, -33154098, 2381726 },
+ { -7195431, -2655363, -14730155, 462251, -27724326, 3941372, -6236617, 3696005, -32300832, 15351955 },
+ { 27431194, 8222322, 16448760, -3907995, -18707002, 11938355, -32961401, -2970515, 29551813, 10109425 },
+ },
+ },
+ {
+ {
+ { -13657040, -13155431, -31283750, 11777098, 21447386, 6519384, -2378284, -1627556, 10092783, -4764171 },
+ { 27939166, 14210322, 4677035, 16277044, -22964462, -12398139, -32508754, 12005538, -17810127, 12803510 },
+ { 17228999, -15661624, -1233527, 300140, -1224870, -11714777, 30364213, -9038194, 18016357, 4397660 },
+ },
+ {
+ { -10958843, -7690207, 4776341, -14954238, 27850028, -15602212, -26619106, 14544525, -17477504, 982639 },
+ { 29253598, 15796703, -2863982, -9908884, 10057023, 3163536, 7332899, -4120128, -21047696, 9934963 },
+ { 5793303, 16271923, -24131614, -10116404, 29188560, 1206517, -14747930, 4559895, -30123922, -10897950 },
+ },
+ {
+ { -27643952, -11493006, 16282657, -11036493, 28414021, -15012264, 24191034, 4541697, -13338309, 5500568 },
+ { 12650548, -1497113, 9052871, 11355358, -17680037, -8400164, -17430592, 12264343, 10874051, 13524335 },
+ { 25556948, -3045990, 714651, 2510400, 23394682, -10415330, 33119038, 5080568, -22528059, 5376628 },
+ },
+ {
+ { -26088264, -4011052, -17013699, -3537628, -6726793, 1920897, -22321305, -9447443, 4535768, 1569007 },
+ { -2255422, 14606630, -21692440, -8039818, 28430649, 8775819, -30494562, 3044290, 31848280, 12543772 },
+ { -22028579, 2943893, -31857513, 6777306, 13784462, -4292203, -27377195, -2062731, 7718482, 14474653 },
+ },
+ {
+ { 2385315, 2454213, -22631320, 46603, -4437935, -15680415, 656965, -7236665, 24316168, -5253567 },
+ { 13741529, 10911568, -33233417, -8603737, -20177830, -1033297, 33040651, -13424532, -20729456, 8321686 },
+ { 21060490, -2212744, 15712757, -4336099, 1639040, 10656336, 23845965, -11874838, -9984458, 608372 },
+ },
+ {
+ { -13672732, -15087586, -10889693, -7557059, -6036909, 11305547, 1123968, -6780577, 27229399, 23887 },
+ { -23244140, -294205, -11744728, 14712571, -29465699, -2029617, 12797024, -6440308, -1633405, 16678954 },
+ { -29500620, 4770662, -16054387, 14001338, 7830047, 9564805, -1508144, -4795045, -17169265, 4904953 },
+ },
+ {
+ { 24059557, 14617003, 19037157, -15039908, 19766093, -14906429, 5169211, 16191880, 2128236, -4326833 },
+ { -16981152, 4124966, -8540610, -10653797, 30336522, -14105247, -29806336, 916033, -6882542, -2986532 },
+ { -22630907, 12419372, -7134229, -7473371, -16478904, 16739175, 285431, 2763829, 15736322, 4143876 },
+ },
+ {
+ { 2379352, 11839345, -4110402, -5988665, 11274298, 794957, 212801, -14594663, 23527084, -16458268 },
+ { 33431127, -11130478, -17838966, -15626900, 8909499, 8376530, -32625340, 4087881, -15188911, -14416214 },
+ { 1767683, 7197987, -13205226, -2022635, -13091350, 448826, 5799055, 4357868, -4774191, -16323038 },
+ },
+ },
+ {
+ {
+ { 6721966, 13833823, -23523388, -1551314, 26354293, -11863321, 23365147, -3949732, 7390890, 2759800 },
+ { 4409041, 2052381, 23373853, 10530217, 7676779, -12885954, 21302353, -4264057, 1244380, -12919645 },
+ { -4421239, 7169619, 4982368, -2957590, 30256825, -2777540, 14086413, 9208236, 15886429, 16489664 },
+ },
+ {
+ { 1996075, 10375649, 14346367, 13311202, -6874135, -16438411, -13693198, 398369, -30606455, -712933 },
+ { -25307465, 9795880, -2777414, 14878809, -33531835, 14780363, 13348553, 12076947, -30836462, 5113182 },
+ { -17770784, 11797796, 31950843, 13929123, -25888302, 12288344, -30341101, -7336386, 13847711, 5387222 },
+ },
+ {
+ { -18582163, -3416217, 17824843, -2340966, 22744343, -10442611, 8763061, 3617786, -19600662, 10370991 },
+ { 20246567, -14369378, 22358229, -543712, 18507283, -10413996, 14554437, -8746092, 32232924, 16763880 },
+ { 9648505, 10094563, 26416693, 14745928, -30374318, -6472621, 11094161, 15689506, 3140038, -16510092 },
+ },
+ {
+ { -16160072, 5472695, 31895588, 4744994, 8823515, 10365685, -27224800, 9448613, -28774454, 366295 },
+ { 19153450, 11523972, -11096490, -6503142, -24647631, 5420647, 28344573, 8041113, 719605, 11671788 },
+ { 8678025, 2694440, -6808014, 2517372, 4964326, 11152271, -15432916, -15266516, 27000813, -10195553 },
+ },
+ {
+ { -15157904, 7134312, 8639287, -2814877, -7235688, 10421742, 564065, 5336097, 6750977, -14521026 },
+ { 11836410, -3979488, 26297894, 16080799, 23455045, 15735944, 1695823, -8819122, 8169720, 16220347 },
+ { -18115838, 8653647, 17578566, -6092619, -8025777, -16012763, -11144307, -2627664, -5990708, -14166033 },
+ },
+ {
+ { -23308498, -10968312, 15213228, -10081214, -30853605, -11050004, 27884329, 2847284, 2655861, 1738395 },
+ { -27537433, -14253021, -25336301, -8002780, -9370762, 8129821, 21651608, -3239336, -19087449, -11005278 },
+ { 1533110, 3437855, 23735889, 459276, 29970501, 11335377, 26030092, 5821408, 10478196, 8544890 },
+ },
+ {
+ { 32173121, -16129311, 24896207, 3921497, 22579056, -3410854, 19270449, 12217473, 17789017, -3395995 },
+ { -30552961, -2228401, -15578829, -10147201, 13243889, 517024, 15479401, -3853233, 30460520, 1052596 },
+ { -11614875, 13323618, 32618793, 8175907, -15230173, 12596687, 27491595, -4612359, 3179268, -9478891 },
+ },
+ {
+ { 31947069, -14366651, -4640583, -15339921, -15125977, -6039709, -14756777, -16411740, 19072640, -9511060 },
+ { 11685058, 11822410, 3158003, -13952594, 33402194, -4165066, 5977896, -5215017, 473099, 5040608 },
+ { -20290863, 8198642, -27410132, 11602123, 1290375, -2799760, 28326862, 1721092, -19558642, -3131606 },
+ },
+ },
+ {
+ {
+ { 7881532, 10687937, 7578723, 7738378, -18951012, -2553952, 21820786, 8076149, -27868496, 11538389 },
+ { -19935666, 3899861, 18283497, -6801568, -15728660, -11249211, 8754525, 7446702, -5676054, 5797016 },
+ { -11295600, -3793569, -15782110, -7964573, 12708869, -8456199, 2014099, -9050574, -2369172, -5877341 },
+ },
+ {
+ { -22472376, -11568741, -27682020, 1146375, 18956691, 16640559, 1192730, -3714199, 15123619, 10811505 },
+ { 14352098, -3419715, -18942044, 10822655, 32750596, 4699007, -70363, 15776356, -28886779, -11974553 },
+ { -28241164, -8072475, -4978962, -5315317, 29416931, 1847569, -20654173, -16484855, 4714547, -9600655 },
+ },
+ {
+ { 15200332, 8368572, 19679101, 15970074, -31872674, 1959451, 24611599, -4543832, -11745876, 12340220 },
+ { 12876937, -10480056, 33134381, 6590940, -6307776, 14872440, 9613953, 8241152, 15370987, 9608631 },
+ { -4143277, -12014408, 8446281, -391603, 4407738, 13629032, -7724868, 15866074, -28210621, -8814099 },
+ },
+ {
+ { 26660628, -15677655, 8393734, 358047, -7401291, 992988, -23904233, 858697, 20571223, 8420556 },
+ { 14620715, 13067227, -15447274, 8264467, 14106269, 15080814, 33531827, 12516406, -21574435, -12476749 },
+ { 236881, 10476226, 57258, -14677024, 6472998, 2466984, 17258519, 7256740, 8791136, 15069930 },
+ },
+ {
+ { 1276410, -9371918, 22949635, -16322807, -23493039, -5702186, 14711875, 4874229, -30663140, -2331391 },
+ { 5855666, 4990204, -13711848, 7294284, -7804282, 1924647, -1423175, -7912378, -33069337, 9234253 },
+ { 20590503, -9018988, 31529744, -7352666, -2706834, 10650548, 31559055, -11609587, 18979186, 13396066 },
+ },
+ {
+ { 24474287, 4968103, 22267082, 4407354, 24063882, -8325180, -18816887, 13594782, 33514650, 7021958 },
+ { -11566906, -6565505, -21365085, 15928892, -26158305, 4315421, -25948728, -3916677, -21480480, 12868082 },
+ { -28635013, 13504661, 19988037, -2132761, 21078225, 6443208, -21446107, 2244500, -12455797, -8089383 },
+ },
+ {
+ { -30595528, 13793479, -5852820, 319136, -25723172, -6263899, 33086546, 8957937, -15233648, 5540521 },
+ { -11630176, -11503902, -8119500, -7643073, 2620056, 1022908, -23710744, -1568984, -16128528, -14962807 },
+ { 23152971, 775386, 27395463, 14006635, -9701118, 4649512, 1689819, 892185, -11513277, -15205948 },
+ },
+ {
+ { 9770129, 9586738, 26496094, 4324120, 1556511, -3550024, 27453819, 4763127, -19179614, 5867134 },
+ { -32765025, 1927590, 31726409, -4753295, 23962434, -16019500, 27846559, 5931263, -29749703, -16108455 },
+ { 27461885, -2977536, 22380810, 1815854, -23033753, -3031938, 7283490, -15148073, -19526700, 7734629 },
+ },
+ },
+ {
+ {
+ { -8010264, -9590817, -11120403, 6196038, 29344158, -13430885, 7585295, -3176626, 18549497, 15302069 },
+ { -32658337, -6171222, -7672793, -11051681, 6258878, 13504381, 10458790, -6418461, -8872242, 8424746 },
+ { 24687205, 8613276, -30667046, -3233545, 1863892, -1830544, 19206234, 7134917, -11284482, -828919 },
+ },
+ {
+ { 11334899, -9218022, 8025293, 12707519, 17523892, -10476071, 10243738, -14685461, -5066034, 16498837 },
+ { 8911542, 6887158, -9584260, -6958590, 11145641, -9543680, 17303925, -14124238, 6536641, 10543906 },
+ { -28946384, 15479763, -17466835, 568876, -1497683, 11223454, -2669190, -16625574, -27235709, 8876771 },
+ },
+ {
+ { -25742899, -12566864, -15649966, -846607, -33026686, -796288, -33481822, 15824474, -604426, -9039817 },
+ { 10330056, 70051, 7957388, -9002667, 9764902, 15609756, 27698697, -4890037, 1657394, 3084098 },
+ { 10477963, -7470260, 12119566, -13250805, 29016247, -5365589, 31280319, 14396151, -30233575, 15272409 },
+ },
+ {
+ { -12288309, 3169463, 28813183, 16658753, 25116432, -5630466, -25173957, -12636138, -25014757, 1950504 },
+ { -26180358, 9489187, 11053416, -14746161, -31053720, 5825630, -8384306, -8767532, 15341279, 8373727 },
+ { 28685821, 7759505, -14378516, -12002860, -31971820, 4079242, 298136, -10232602, -2878207, 15190420 },
+ },
+ {
+ { -32932876, 13806336, -14337485, -15794431, -24004620, 10940928, 8669718, 2742393, -26033313, -6875003 },
+ { -1580388, -11729417, -25979658, -11445023, -17411874, -10912854, 9291594, -16247779, -12154742, 6048605 },
+ { -30305315, 14843444, 1539301, 11864366, 20201677, 1900163, 13934231, 5128323, 11213262, 9168384 },
+ },
+ {
+ { -26280513, 11007847, 19408960, -940758, -18592965, -4328580, -5088060, -11105150, 20470157, -16398701 },
+ { -23136053, 9282192, 14855179, -15390078, -7362815, -14408560, -22783952, 14461608, 14042978, 5230683 },
+ { 29969567, -2741594, -16711867, -8552442, 9175486, -2468974, 21556951, 3506042, -5933891, -12449708 },
+ },
+ {
+ { -3144746, 8744661, 19704003, 4581278, -20430686, 6830683, -21284170, 8971513, -28539189, 15326563 },
+ { -19464629, 10110288, -17262528, -3503892, -23500387, 1355669, -15523050, 15300988, -20514118, 9168260 },
+ { -5353335, 4488613, -23803248, 16314347, 7780487, -15638939, -28948358, 9601605, 33087103, -9011387 },
+ },
+ {
+ { -19443170, -15512900, -20797467, -12445323, -29824447, 10229461, -27444329, -15000531, -5996870, 15664672 },
+ { 23294591, -16632613, -22650781, -8470978, 27844204, 11461195, 13099750, -2460356, 18151676, 13417686 },
+ { -24722913, -4176517, -31150679, 5988919, -26858785, 6685065, 1661597, -12551441, 15271676, -15452665 },
+ },
+ },
+ {
+ {
+ { 11433042, -13228665, 8239631, -5279517, -1985436, -725718, -18698764, 2167544, -6921301, -13440182 },
+ { -31436171, 15575146, 30436815, 12192228, -22463353, 9395379, -9917708, -8638997, 12215110, 12028277 },
+ { 14098400, 6555944, 23007258, 5757252, -15427832, -12950502, 30123440, 4617780, -16900089, -655628 },
+ },
+ {
+ { -4026201, -15240835, 11893168, 13718664, -14809462, 1847385, -15819999, 10154009, 23973261, -12684474 },
+ { -26531820, -3695990, -1908898, 2534301, -31870557, -16550355, 18341390, -11419951, 32013174, -10103539 },
+ { -25479301, 10876443, -11771086, -14625140, -12369567, 1838104, 21911214, 6354752, 4425632, -837822 },
+ },
+ {
+ { -10433389, -14612966, 22229858, -3091047, -13191166, 776729, -17415375, -12020462, 4725005, 14044970 },
+ { 19268650, -7304421, 1555349, 8692754, -21474059, -9910664, 6347390, -1411784, -19522291, -16109756 },
+ { -24864089, 12986008, -10898878, -5558584, -11312371, -148526, 19541418, 8180106, 9282262, 10282508 },
+ },
+ {
+ { -26205082, 4428547, -8661196, -13194263, 4098402, -14165257, 15522535, 8372215, 5542595, -10702683 },
+ { -10562541, 14895633, 26814552, -16673850, -17480754, -2489360, -2781891, 6993761, -18093885, 10114655 },
+ { -20107055, -929418, 31422704, 10427861, -7110749, 6150669, -29091755, -11529146, 25953725, -106158 },
+ },
+ {
+ { -4234397, -8039292, -9119125, 3046000, 2101609, -12607294, 19390020, 6094296, -3315279, 12831125 },
+ { -15998678, 7578152, 5310217, 14408357, -33548620, -224739, 31575954, 6326196, 7381791, -2421839 },
+ { -20902779, 3296811, 24736065, -16328389, 18374254, 7318640, 6295303, 8082724, -15362489, 12339664 },
+ },
+ {
+ { 27724736, 2291157, 6088201, -14184798, 1792727, 5857634, 13848414, 15768922, 25091167, 14856294 },
+ { -18866652, 8331043, 24373479, 8541013, -701998, -9269457, 12927300, -12695493, -22182473, -9012899 },
+ { -11423429, -5421590, 11632845, 3405020, 30536730, -11674039, -27260765, 13866390, 30146206, 9142070 },
+ },
+ {
+ { 3924129, -15307516, -13817122, -10054960, 12291820, -668366, -27702774, 9326384, -8237858, 4171294 },
+ { -15921940, 16037937, 6713787, 16606682, -21612135, 2790944, 26396185, 3731949, 345228, -5462949 },
+ { -21327538, 13448259, 25284571, 1143661, 20614966, -8849387, 2031539, -12391231, -16253183, -13582083 },
+ },
+ {
+ { 31016211, -16722429, 26371392, -14451233, -5027349, 14854137, 17477601, 3842657, 28012650, -16405420 },
+ { -5075835, 9368966, -8562079, -4600902, -15249953, 6970560, -9189873, 16292057, -8867157, 3507940 },
+ { 29439664, 3537914, 23333589, 6997794, -17555561, -11018068, -15209202, -15051267, -9164929, 6580396 },
+ },
+ },
+ {
+ {
+ { -12185861, -7679788, 16438269, 10826160, -8696817, -6235611, 17860444, -9273846, -2095802, 9304567 },
+ { 20714564, -4336911, 29088195, 7406487, 11426967, -5095705, 14792667, -14608617, 5289421, -477127 },
+ { -16665533, -10650790, -6160345, -13305760, 9192020, -1802462, 17271490, 12349094, 26939669, -3752294 },
+ },
+ {
+ { -12889898, 9373458, 31595848, 16374215, 21471720, 13221525, -27283495, -12348559, -3698806, 117887 },
+ { 22263325, -6560050, 3984570, -11174646, -15114008, -566785, 28311253, 5358056, -23319780, 541964 },
+ { 16259219, 3261970, 2309254, -15534474, -16885711, -4581916, 24134070, -16705829, -13337066, -13552195 },
+ },
+ {
+ { 9378160, -13140186, -22845982, -12745264, 28198281, -7244098, -2399684, -717351, 690426, 14876244 },
+ { 24977353, -314384, -8223969, -13465086, 28432343, -1176353, -13068804, -12297348, -22380984, 6618999 },
+ { -1538174, 11685646, 12944378, 13682314, -24389511, -14413193, 8044829, -13817328, 32239829, -5652762 },
+ },
+ {
+ { -18603066, 4762990, -926250, 8885304, -28412480, -3187315, 9781647, -10350059, 32779359, 5095274 },
+ { -33008130, -5214506, -32264887, -3685216, 9460461, -9327423, -24601656, 14506724, 21639561, -2630236 },
+ { -16400943, -13112215, 25239338, 15531969, 3987758, -4499318, -1289502, -6863535, 17874574, 558605 },
+ },
+ {
+ { -13600129, 10240081, 9171883, 16131053, -20869254, 9599700, 33499487, 5080151, 2085892, 5119761 },
+ { -22205145, -2519528, -16381601, 414691, -25019550, 2170430, 30634760, -8363614, -31999993, -5759884 },
+ { -6845704, 15791202, 8550074, -1312654, 29928809, -12092256, 27534430, -7192145, -22351378, 12961482 },
+ },
+ {
+ { -24492060, -9570771, 10368194, 11582341, -23397293, -2245287, 16533930, 8206996, -30194652, -5159638 },
+ { -11121496, -3382234, 2307366, 6362031, -135455, 8868177, -16835630, 7031275, 7589640, 8945490 },
+ { -32152748, 8917967, 6661220, -11677616, -1192060, -15793393, 7251489, -11182180, 24099109, -14456170 },
+ },
+ {
+ { 5019558, -7907470, 4244127, -14714356, -26933272, 6453165, -19118182, -13289025, -6231896, -10280736 },
+ { 10853594, 10721687, 26480089, 5861829, -22995819, 1972175, -1866647, -10557898, -3363451, -6441124 },
+ { -17002408, 5906790, 221599, -6563147, 7828208, -13248918, 24362661, -2008168, -13866408, 7421392 },
+ },
+ {
+ { 8139927, -6546497, 32257646, -5890546, 30375719, 1886181, -21175108, 15441252, 28826358, -4123029 },
+ { 6267086, 9695052, 7709135, -16603597, -32869068, -1886135, 14795160, -7840124, 13746021, -1742048 },
+ { 28584902, 7787108, -6732942, -15050729, 22846041, -7571236, -3181936, -363524, 4771362, -8419958 },
+ },
+ },
+ {
+ {
+ { 24949256, 6376279, -27466481, -8174608, -18646154, -9930606, 33543569, -12141695, 3569627, 11342593 },
+ { 26514989, 4740088, 27912651, 3697550, 19331575, -11472339, 6809886, 4608608, 7325975, -14801071 },
+ { -11618399, -14554430, -24321212, 7655128, -1369274, 5214312, -27400540, 10258390, -17646694, -8186692 },
+ },
+ {
+ { 11431204, 15823007, 26570245, 14329124, 18029990, 4796082, -31446179, 15580664, 9280358, -3973687 },
+ { -160783, -10326257, -22855316, -4304997, -20861367, -13621002, -32810901, -11181622, -15545091, 4387441 },
+ { -20799378, 12194512, 3937617, -5805892, -27154820, 9340370, -24513992, 8548137, 20617071, -7482001 },
+ },
+ {
+ { -938825, -3930586, -8714311, 16124718, 24603125, -6225393, -13775352, -11875822, 24345683, 10325460 },
+ { -19855277, -1568885, -22202708, 8714034, 14007766, 6928528, 16318175, -1010689, 4766743, 3552007 },
+ { -21751364, -16730916, 1351763, -803421, -4009670, 3950935, 3217514, 14481909, 10988822, -3994762 },
+ },
+ {
+ { 15564307, -14311570, 3101243, 5684148, 30446780, -8051356, 12677127, -6505343, -8295852, 13296005 },
+ { -9442290, 6624296, -30298964, -11913677, -4670981, -2057379, 31521204, 9614054, -30000824, 12074674 },
+ { 4771191, -135239, 14290749, -13089852, 27992298, 14998318, -1413936, -1556716, 29832613, -16391035 },
+ },
+ {
+ { 7064884, -7541174, -19161962, -5067537, -18891269, -2912736, 25825242, 5293297, -27122660, 13101590 },
+ { -2298563, 2439670, -7466610, 1719965, -27267541, -16328445, 32512469, -5317593, -30356070, -4190957 },
+ { -30006540, 10162316, -33180176, 3981723, -16482138, -13070044, 14413974, 9515896, 19568978, 9628812 },
+ },
+ {
+ { 33053803, 199357, 15894591, 1583059, 27380243, -4580435, -17838894, -6106839, -6291786, 3437740 },
+ { -18978877, 3884493, 19469877, 12726490, 15913552, 13614290, -22961733, 70104, 7463304, 4176122 },
+ { -27124001, 10659917, 11482427, -16070381, 12771467, -6635117, -32719404, -5322751, 24216882, 5944158 },
+ },
+ {
+ { 8894125, 7450974, -2664149, -9765752, -28080517, -12389115, 19345746, 14680796, 11632993, 5847885 },
+ { 26942781, -2315317, 9129564, -4906607, 26024105, 11769399, -11518837, 6367194, -9727230, 4782140 },
+ { 19916461, -4828410, -22910704, -11414391, 25606324, -5972441, 33253853, 8220911, 6358847, -1873857 },
+ },
+ {
+ { 801428, -2081702, 16569428, 11065167, 29875704, 96627, 7908388, -4480480, -13538503, 1387155 },
+ { 19646058, 5720633, -11416706, 12814209, 11607948, 12749789, 14147075, 15156355, -21866831, 11835260 },
+ { 19299512, 1155910, 28703737, 14890794, 2925026, 7269399, 26121523, 15467869, -26560550, 5052483 },
+ },
+ },
+ {
+ {
+ { -3017432, 10058206, 1980837, 3964243, 22160966, 12322533, -6431123, -12618185, 12228557, -7003677 },
+ { 32944382, 14922211, -22844894, 5188528, 21913450, -8719943, 4001465, 13238564, -6114803, 8653815 },
+ { 22865569, -4652735, 27603668, -12545395, 14348958, 8234005, 24808405, 5719875, 28483275, 2841751 },
+ },
+ {
+ { -16420968, -1113305, -327719, -12107856, 21886282, -15552774, -1887966, -315658, 19932058, -12739203 },
+ { -11656086, 10087521, -8864888, -5536143, -19278573, -3055912, 3999228, 13239134, -4777469, -13910208 },
+ { 1382174, -11694719, 17266790, 9194690, -13324356, 9720081, 20403944, 11284705, -14013818, 3093230 },
+ },
+ {
+ { 16650921, -11037932, -1064178, 1570629, -8329746, 7352753, -302424, 16271225, -24049421, -6691850 },
+ { -21911077, -5927941, -4611316, -5560156, -31744103, -10785293, 24123614, 15193618, -21652117, -16739389 },
+ { -9935934, -4289447, -25279823, 4372842, 2087473, 10399484, 31870908, 14690798, 17361620, 11864968 },
+ },
+ {
+ { -11307610, 6210372, 13206574, 5806320, -29017692, -13967200, -12331205, -7486601, -25578460, -16240689 },
+ { 14668462, -12270235, 26039039, 15305210, 25515617, 4542480, 10453892, 6577524, 9145645, -6443880 },
+ { 5974874, 3053895, -9433049, -10385191, -31865124, 3225009, -7972642, 3936128, -5652273, -3050304 },
+ },
+ {
+ { 30625386, -4729400, -25555961, -12792866, -20484575, 7695099, 17097188, -16303496, -27999779, 1803632 },
+ { -3553091, 9865099, -5228566, 4272701, -5673832, -16689700, 14911344, 12196514, -21405489, 7047412 },
+ { 20093277, 9920966, -11138194, -5343857, 13161587, 12044805, -32856851, 4124601, -32343828, -10257566 },
+ },
+ {
+ { -20788824, 14084654, -13531713, 7842147, 19119038, -13822605, 4752377, -8714640, -21679658, 2288038 },
+ { -26819236, -3283715, 29965059, 3039786, -14473765, 2540457, 29457502, 14625692, -24819617, 12570232 },
+ { -1063558, -11551823, 16920318, 12494842, 1278292, -5869109, -21159943, -3498680, -11974704, 4724943 },
+ },
+ {
+ { 17960970, -11775534, -4140968, -9702530, -8876562, -1410617, -12907383, -8659932, -29576300, 1903856 },
+ { 23134274, -14279132, -10681997, -1611936, 20684485, 15770816, -12989750, 3190296, 26955097, 14109738 },
+ { 15308788, 5320727, -30113809, -14318877, 22902008, 7767164, 29425325, -11277562, 31960942, 11934971 },
+ },
+ {
+ { -27395711, 8435796, 4109644, 12222639, -24627868, 14818669, 20638173, 4875028, 10491392, 1379718 },
+ { -13159415, 9197841, 3875503, -8936108, -1383712, -5879801, 33518459, 16176658, 21432314, 12180697 },
+ { -11787308, 11500838, 13787581, -13832590, -22430679, 10140205, 1465425, 12689540, -10301319, -13872883 },
+ },
+ },
+ {
+ {
+ { 5414091, -15386041, -21007664, 9643570, 12834970, 1186149, -2622916, -1342231, 26128231, 6032912 },
+ { -26337395, -13766162, 32496025, -13653919, 17847801, -12669156, 3604025, 8316894, -25875034, -10437358 },
+ { 3296484, 6223048, 24680646, -12246460, -23052020, 5903205, -8862297, -4639164, 12376617, 3188849 },
+ },
+ {
+ { 29190488, -14659046, 27549113, -1183516, 3520066, -10697301, 32049515, -7309113, -16109234, -9852307 },
+ { -14744486, -9309156, 735818, -598978, -20407687, -5057904, 25246078, -15795669, 18640741, -960977 },
+ { -6928835, -16430795, 10361374, 5642961, 4910474, 12345252, -31638386, -494430, 10530747, 1053335 },
+ },
+ {
+ { -29265967, -14186805, -13538216, -12117373, -19457059, -10655384, -31462369, -2948985, 24018831, 15026644 },
+ { -22592535, -3145277, -2289276, 5953843, -13440189, 9425631, 25310643, 13003497, -2314791, -15145616 },
+ { -27419985, -603321, -8043984, -1669117, -26092265, 13987819, -27297622, 187899, -23166419, -2531735 },
+ },
+ {
+ { -21744398, -13810475, 1844840, 5021428, -10434399, -15911473, 9716667, 16266922, -5070217, 726099 },
+ { 29370922, -6053998, 7334071, -15342259, 9385287, 2247707, -13661962, -4839461, 30007388, -15823341 },
+ { -936379, 16086691, 23751945, -543318, -1167538, -5189036, 9137109, 730663, 9835848, 4555336 },
+ },
+ {
+ { -23376435, 1410446, -22253753, -12899614, 30867635, 15826977, 17693930, 544696, -11985298, 12422646 },
+ { 31117226, -12215734, -13502838, 6561947, -9876867, -12757670, -5118685, -4096706, 29120153, 13924425 },
+ { -17400879, -14233209, 19675799, -2734756, -11006962, -5858820, -9383939, -11317700, 7240931, -237388 },
+ },
+ {
+ { -31361739, -11346780, -15007447, -5856218, -22453340, -12152771, 1222336, 4389483, 3293637, -15551743 },
+ { -16684801, -14444245, 11038544, 11054958, -13801175, -3338533, -24319580, 7733547, 12796905, -6335822 },
+ { -8759414, -10817836, -25418864, 10783769, -30615557, -9746811, -28253339, 3647836, 3222231, -11160462 },
+ },
+ {
+ { 18606113, 1693100, -25448386, -15170272, 4112353, 10045021, 23603893, -2048234, -7550776, 2484985 },
+ { 9255317, -3131197, -12156162, -1004256, 13098013, -9214866, 16377220, -2102812, -19802075, -3034702 },
+ { -22729289, 7496160, -5742199, 11329249, 19991973, -3347502, -31718148, 9936966, -30097688, -10618797 },
+ },
+ {
+ { 21878590, -5001297, 4338336, 13643897, -3036865, 13160960, 19708896, 5415497, -7360503, -4109293 },
+ { 27736861, 10103576, 12500508, 8502413, -3413016, -9633558, 10436918, -1550276, -23659143, -8132100 },
+ { 19492550, -12104365, -29681976, -852630, -3208171, 12403437, 30066266, 8367329, 13243957, 8709688 },
+ },
+ },
+ {
+ {
+ { 12015105, 2801261, 28198131, 10151021, 24818120, -4743133, -11194191, -5645734, 5150968, 7274186 },
+ { 2831366, -12492146, 1478975, 6122054, 23825128, -12733586, 31097299, 6083058, 31021603, -9793610 },
+ { -2529932, -2229646, 445613, 10720828, -13849527, -11505937, -23507731, 16354465, 15067285, -14147707 },
+ },
+ {
+ { 7840942, 14037873, -33364863, 15934016, -728213, -3642706, 21403988, 1057586, -19379462, -12403220 },
+ { 915865, -16469274, 15608285, -8789130, -24357026, 6060030, -17371319, 8410997, -7220461, 16527025 },
+ { 32922597, -556987, 20336074, -16184568, 10903705, -5384487, 16957574, 52992, 23834301, 6588044 },
+ },
+ {
+ { 32752030, 11232950, 3381995, -8714866, 22652988, -10744103, 17159699, 16689107, -20314580, -1305992 },
+ { -4689649, 9166776, -25710296, -10847306, 11576752, 12733943, 7924251, -2752281, 1976123, -7249027 },
+ { 21251222, 16309901, -2983015, -6783122, 30810597, 12967303, 156041, -3371252, 12331345, -8237197 },
+ },
+ {
+ { 8651614, -4477032, -16085636, -4996994, 13002507, 2950805, 29054427, -5106970, 10008136, -4667901 },
+ { 31486080, 15114593, -14261250, 12951354, 14369431, -7387845, 16347321, -13662089, 8684155, -10532952 },
+ { 19443825, 11385320, 24468943, -9659068, -23919258, 2187569, -26263207, -6086921, 31316348, 14219878 },
+ },
+ {
+ { -28594490, 1193785, 32245219, 11392485, 31092169, 15722801, 27146014, 6992409, 29126555, 9207390 },
+ { 32382935, 1110093, 18477781, 11028262, -27411763, -7548111, -4980517, 10843782, -7957600, -14435730 },
+ { 2814918, 7836403, 27519878, -7868156, -20894015, -11553689, -21494559, 8550130, 28346258, 1994730 },
+ },
+ {
+ { -19578299, 8085545, -14000519, -3948622, 2785838, -16231307, -19516951, 7174894, 22628102, 8115180 },
+ { -30405132, 955511, -11133838, -15078069, -32447087, -13278079, -25651578, 3317160, -9943017, 930272 },
+ { -15303681, -6833769, 28856490, 1357446, 23421993, 1057177, 24091212, -1388970, -22765376, -10650715 },
+ },
+ {
+ { -22751231, -5303997, -12907607, -12768866, -15811511, -7797053, -14839018, -16554220, -1867018, 8398970 },
+ { -31969310, 2106403, -4736360, 1362501, 12813763, 16200670, 22981545, -6291273, 18009408, -15772772 },
+ { -17220923, -9545221, -27784654, 14166835, 29815394, 7444469, 29551787, -3727419, 19288549, 1325865 },
+ },
+ {
+ { 15100157, -15835752, -23923978, -1005098, -26450192, 15509408, 12376730, -3479146, 33166107, -8042750 },
+ { 20909231, 13023121, -9209752, 16251778, -5778415, -8094914, 12412151, 10018715, 2213263, -13878373 },
+ { 32529814, -11074689, 30361439, -16689753, -9135940, 1513226, 22922121, 6382134, -5766928, 8371348 },
+ },
+ },
+ {
+ {
+ { 9923462, 11271500, 12616794, 3544722, -29998368, -1721626, 12891687, -8193132, -26442943, 10486144 },
+ { -22597207, -7012665, 8587003, -8257861, 4084309, -12970062, 361726, 2610596, -23921530, -11455195 },
+ { 5408411, -1136691, -4969122, 10561668, 24145918, 14240566, 31319731, -4235541, 19985175, -3436086 },
+ },
+ {
+ { -13994457, 16616821, 14549246, 3341099, 32155958, 13648976, -17577068, 8849297, 65030, 8370684 },
+ { -8320926, -12049626, 31204563, 5839400, -20627288, -1057277, -19442942, 6922164, 12743482, -9800518 },
+ { -2361371, 12678785, 28815050, 4759974, -23893047, 4884717, 23783145, 11038569, 18800704, 255233 },
+ },
+ {
+ { -5269658, -1773886, 13957886, 7990715, 23132995, 728773, 13393847, 9066957, 19258688, -14753793 },
+ { -2936654, -10827535, -10432089, 14516793, -3640786, 4372541, -31934921, 2209390, -1524053, 2055794 },
+ { 580882, 16705327, 5468415, -2683018, -30926419, -14696000, -7203346, -8994389, -30021019, 7394435 },
+ },
+ {
+ { 23838809, 1822728, -15738443, 15242727, 8318092, -3733104, -21672180, -3492205, -4821741, 14799921 },
+ { 13345610, 9759151, 3371034, -16137791, 16353039, 8577942, 31129804, 13496856, -9056018, 7402518 },
+ { 2286874, -4435931, -20042458, -2008336, -13696227, 5038122, 11006906, -15760352, 8205061, 1607563 },
+ },
+ {
+ { 14414086, -8002132, 3331830, -3208217, 22249151, -5594188, 18364661, -2906958, 30019587, -9029278 },
+ { -27688051, 1585953, -10775053, 931069, -29120221, -11002319, -14410829, 12029093, 9944378, 8024 },
+ { 4368715, -3709630, 29874200, -15022983, -20230386, -11410704, -16114594, -999085, -8142388, 5640030 },
+ },
+ {
+ { 10299610, 13746483, 11661824, 16234854, 7630238, 5998374, 9809887, -16694564, 15219798, -14327783 },
+ { 27425505, -5719081, 3055006, 10660664, 23458024, 595578, -15398605, -1173195, -18342183, 9742717 },
+ { 6744077, 2427284, 26042789, 2720740, -847906, 1118974, 32324614, 7406442, 12420155, 1994844 },
+ },
+ {
+ { 14012521, -5024720, -18384453, -9578469, -26485342, -3936439, -13033478, -10909803, 24319929, -6446333 },
+ { 16412690, -4507367, 10772641, 15929391, -17068788, -4658621, 10555945, -10484049, -30102368, -4739048 },
+ { 22397382, -7767684, -9293161, -12792868, 17166287, -9755136, -27333065, 6199366, 21880021, -12250760 },
+ },
+ {
+ { -4283307, 5368523, -31117018, 8163389, -30323063, 3209128, 16557151, 8890729, 8840445, 4957760 },
+ { -15447727, 709327, -6919446, -10870178, -29777922, 6522332, -21720181, 12130072, -14796503, 5005757 },
+ { -2114751, -14308128, 23019042, 15765735, -25269683, 6002752, 10183197, -13239326, -16395286, -2176112 },
+ },
+ },
+ {
+ {
+ { -19025756, 1632005, 13466291, -7995100, -23640451, 16573537, -32013908, -3057104, 22208662, 2000468 },
+ { 3065073, -1412761, -25598674, -361432, -17683065, -5703415, -8164212, 11248527, -3691214, -7414184 },
+ { 10379208, -6045554, 8877319, 1473647, -29291284, -12507580, 16690915, 2553332, -3132688, 16400289 },
+ },
+ {
+ { 15716668, 1254266, -18472690, 7446274, -8448918, 6344164, -22097271, -7285580, 26894937, 9132066 },
+ { 24158887, 12938817, 11085297, -8177598, -28063478, -4457083, -30576463, 64452, -6817084, -2692882 },
+ { 13488534, 7794716, 22236231, 5989356, 25426474, -12578208, 2350710, -3418511, -4688006, 2364226 },
+ },
+ {
+ { 16335052, 9132434, 25640582, 6678888, 1725628, 8517937, -11807024, -11697457, 15445875, -7798101 },
+ { 29004207, -7867081, 28661402, -640412, -12794003, -7943086, 31863255, -4135540, -278050, -15759279 },
+ { -6122061, -14866665, -28614905, 14569919, -10857999, -3591829, 10343412, -6976290, -29828287, -10815811 },
+ },
+ {
+ { 27081650, 3463984, 14099042, -4517604, 1616303, -6205604, 29542636, 15372179, 17293797, 960709 },
+ { 20263915, 11434237, -5765435, 11236810, 13505955, -10857102, -16111345, 6493122, -19384511, 7639714 },
+ { -2830798, -14839232, 25403038, -8215196, -8317012, -16173699, 18006287, -16043750, 29994677, -15808121 },
+ },
+ {
+ { 9769828, 5202651, -24157398, -13631392, -28051003, -11561624, -24613141, -13860782, -31184575, 709464 },
+ { 12286395, 13076066, -21775189, -1176622, -25003198, 4057652, -32018128, -8890874, 16102007, 13205847 },
+ { 13733362, 5599946, 10557076, 3195751, -5557991, 8536970, -25540170, 8525972, 10151379, 10394400 },
+ },
+ {
+ { 4024660, -16137551, 22436262, 12276534, -9099015, -2686099, 19698229, 11743039, -33302334, 8934414 },
+ { -15879800, -4525240, -8580747, -2934061, 14634845, -698278, -9449077, 3137094, -11536886, 11721158 },
+ { 17555939, -5013938, 8268606, 2331751, -22738815, 9761013, 9319229, 8835153, -9205489, -1280045 },
+ },
+ {
+ { -461409, -7830014, 20614118, 16688288, -7514766, -4807119, 22300304, 505429, 6108462, -6183415 },
+ { -5070281, 12367917, -30663534, 3234473, 32617080, -8422642, 29880583, -13483331, -26898490, -7867459 },
+ { -31975283, 5726539, 26934134, 10237677, -3173717, -605053, 24199304, 3795095, 7592688, -14992079 },
+ },
+ {
+ { 21594432, -14964228, 17466408, -4077222, 32537084, 2739898, 6407723, 12018833, -28256052, 4298412 },
+ { -20650503, -11961496, -27236275, 570498, 3767144, -1717540, 13891942, -1569194, 13717174, 10805743 },
+ { -14676630, -15644296, 15287174, 11927123, 24177847, -8175568, -796431, 14860609, -26938930, -5863836 },
+ },
+ },
+ {
+ {
+ { 12962541, 5311799, -10060768, 11658280, 18855286, -7954201, 13286263, -12808704, -4381056, 9882022 },
+ { 18512079, 11319350, -20123124, 15090309, 18818594, 5271736, -22727904, 3666879, -23967430, -3299429 },
+ { -6789020, -3146043, 16192429, 13241070, 15898607, -14206114, -10084880, -6661110, -2403099, 5276065 },
+ },
+ {
+ { 30169808, -5317648, 26306206, -11750859, 27814964, 7069267, 7152851, 3684982, 1449224, 13082861 },
+ { 10342826, 3098505, 2119311, 193222, 25702612, 12233820, 23697382, 15056736, -21016438, -8202000 },
+ { -33150110, 3261608, 22745853, 7948688, 19370557, -15177665, -26171976, 6482814, -10300080, -11060101 },
+ },
+ {
+ { 32869458, -5408545, 25609743, 15678670, -10687769, -15471071, 26112421, 2521008, -22664288, 6904815 },
+ { 29506923, 4457497, 3377935, -9796444, -30510046, 12935080, 1561737, 3841096, -29003639, -6657642 },
+ { 10340844, -6630377, -18656632, -2278430, 12621151, -13339055, 30878497, -11824370, -25584551, 5181966 },
+ },
+ {
+ { 25940115, -12658025, 17324188, -10307374, -8671468, 15029094, 24396252, -16450922, -2322852, -12388574 },
+ { -21765684, 9916823, -1300409, 4079498, -1028346, 11909559, 1782390, 12641087, 20603771, -6561742 },
+ { -18882287, -11673380, 24849422, 11501709, 13161720, -4768874, 1925523, 11914390, 4662781, 7820689 },
+ },
+ {
+ { 12241050, -425982, 8132691, 9393934, 32846760, -1599620, 29749456, 12172924, 16136752, 15264020 },
+ { -10349955, -14680563, -8211979, 2330220, -17662549, -14545780, 10658213, 6671822, 19012087, 3772772 },
+ { 3753511, -3421066, 10617074, 2028709, 14841030, -6721664, 28718732, -15762884, 20527771, 12988982 },
+ },
+ {
+ { -14822485, -5797269, -3707987, 12689773, -898983, -10914866, -24183046, -10564943, 3299665, -12424953 },
+ { -16777703, -15253301, -9642417, 4978983, 3308785, 8755439, 6943197, 6461331, -25583147, 8991218 },
+ { -17226263, 1816362, -1673288, -6086439, 31783888, -8175991, -32948145, 7417950, -30242287, 1507265 },
+ },
+ {
+ { 29692663, 6829891, -10498800, 4334896, 20945975, -11906496, -28887608, 8209391, 14606362, -10647073 },
+ { -3481570, 8707081, 32188102, 5672294, 22096700, 1711240, -33020695, 9761487, 4170404, -2085325 },
+ { -11587470, 14855945, -4127778, -1531857, -26649089, 15084046, 22186522, 16002000, -14276837, -8400798 },
+ },
+ {
+ { -4811456, 13761029, -31703877, -2483919, -3312471, 7869047, -7113572, -9620092, 13240845, 10965870 },
+ { -7742563, -8256762, -14768334, -13656260, -23232383, 12387166, 4498947, 14147411, 29514390, 4302863 },
+ { -13413405, -12407859, 20757302, -13801832, 14785143, 8976368, -5061276, -2144373, 17846988, -13971927 },
+ },
+ },
+ {
+ {
+ { -2244452, -754728, -4597030, -1066309, -6247172, 1455299, -21647728, -9214789, -5222701, 12650267 },
+ { -9906797, -16070310, 21134160, 12198166, -27064575, 708126, 387813, 13770293, -19134326, 10958663 },
+ { 22470984, 12369526, 23446014, -5441109, -21520802, -9698723, -11772496, -11574455, -25083830, 4271862 },
+ },
+ {
+ { -25169565, -10053642, -19909332, 15361595, -5984358, 2159192, 75375, -4278529, -32526221, 8469673 },
+ { 15854970, 4148314, -8893890, 7259002, 11666551, 13824734, -30531198, 2697372, 24154791, -9460943 },
+ { 15446137, -15806644, 29759747, 14019369, 30811221, -9610191, -31582008, 12840104, 24913809, 9815020 },
+ },
+ {
+ { -4709286, -5614269, -31841498, -12288893, -14443537, 10799414, -9103676, 13438769, 18735128, 9466238 },
+ { 11933045, 9281483, 5081055, -5183824, -2628162, -4905629, -7727821, -10896103, -22728655, 16199064 },
+ { 14576810, 379472, -26786533, -8317236, -29426508, -10812974, -102766, 1876699, 30801119, 2164795 },
+ },
+ {
+ { 15995086, 3199873, 13672555, 13712240, -19378835, -4647646, -13081610, -15496269, -13492807, 1268052 },
+ { -10290614, -3659039, -3286592, 10948818, 23037027, 3794475, -3470338, -12600221, -17055369, 3565904 },
+ { 29210088, -9419337, -5919792, -4952785, 10834811, -13327726, -16512102, -10820713, -27162222, -14030531 },
+ },
+ {
+ { -13161890, 15508588, 16663704, -8156150, -28349942, 9019123, -29183421, -3769423, 2244111, -14001979 },
+ { -5152875, -3800936, -9306475, -6071583, 16243069, 14684434, -25673088, -16180800, 13491506, 4641841 },
+ { 10813417, 643330, -19188515, -728916, 30292062, -16600078, 27548447, -7721242, 14476989, -12767431 },
+ },
+ {
+ { 10292079, 9984945, 6481436, 8279905, -7251514, 7032743, 27282937, -1644259, -27912810, 12651324 },
+ { -31185513, -813383, 22271204, 11835308, 10201545, 15351028, 17099662, 3988035, 21721536, -3148940 },
+ { 10202177, -6545839, -31373232, -9574638, -32150642, -8119683, -12906320, 3852694, 13216206, 14842320 },
+ },
+ {
+ { -15815640, -10601066, -6538952, -7258995, -6984659, -6581778, -31500847, 13765824, -27434397, 9900184 },
+ { 14465505, -13833331, -32133984, -14738873, -27443187, 12990492, 33046193, 15796406, -7051866, -8040114 },
+ { 30924417, -8279620, 6359016, -12816335, 16508377, 9071735, -25488601, 15413635, 9524356, -7018878 },
+ },
+ {
+ { 12274201, -13175547, 32627641, -1785326, 6736625, 13267305, 5237659, -5109483, 15663516, 4035784 },
+ { -2951309, 8903985, 17349946, 601635, -16432815, -4612556, -13732739, -15889334, -22258478, 4659091 },
+ { -16916263, -4952973, -30393711, -15158821, 20774812, 15897498, 5736189, 15026997, -2178256, -13455585 },
+ },
+ },
+ {
+ {
+ { -8858980, -2219056, 28571666, -10155518, -474467, -10105698, -3801496, 278095, 23440562, -290208 },
+ { 10226241, -5928702, 15139956, 120818, -14867693, 5218603, 32937275, 11551483, -16571960, -7442864 },
+ { 17932739, -12437276, -24039557, 10749060, 11316803, 7535897, 22503767, 5561594, -3646624, 3898661 },
+ },
+ {
+ { 7749907, -969567, -16339731, -16464, -25018111, 15122143, -1573531, 7152530, 21831162, 1245233 },
+ { 26958459, -14658026, 4314586, 8346991, -5677764, 11960072, -32589295, -620035, -30402091, -16716212 },
+ { -12165896, 9166947, 33491384, 13673479, 29787085, 13096535, 6280834, 14587357, -22338025, 13987525 },
+ },
+ {
+ { -24349909, 7778775, 21116000, 15572597, -4833266, -5357778, -4300898, -5124639, -7469781, -2858068 },
+ { 9681908, -6737123, -31951644, 13591838, -6883821, 386950, 31622781, 6439245, -14581012, 4091397 },
+ { -8426427, 1470727, -28109679, -1596990, 3978627, -5123623, -19622683, 12092163, 29077877, -14741988 },
+ },
+ {
+ { 5269168, -6859726, -13230211, -8020715, 25932563, 1763552, -5606110, -5505881, -20017847, 2357889 },
+ { 32264008, -15407652, -5387735, -1160093, -2091322, -3946900, 23104804, -12869908, 5727338, 189038 },
+ { 14609123, -8954470, -6000566, -16622781, -14577387, -7743898, -26745169, 10942115, -25888931, -14884697 },
+ },
+ {
+ { 20513500, 5557931, -15604613, 7829531, 26413943, -2019404, -21378968, 7471781, 13913677, -5137875 },
+ { -25574376, 11967826, 29233242, 12948236, -6754465, 4713227, -8940970, 14059180, 12878652, 8511905 },
+ { -25656801, 3393631, -2955415, -7075526, -2250709, 9366908, -30223418, 6812974, 5568676, -3127656 },
+ },
+ {
+ { 11630004, 12144454, 2116339, 13606037, 27378885, 15676917, -17408753, -13504373, -14395196, 8070818 },
+ { 27117696, -10007378, -31282771, -5570088, 1127282, 12772488, -29845906, 10483306, -11552749, -1028714 },
+ { 10637467, -5688064, 5674781, 1072708, -26343588, -6982302, -1683975, 9177853, -27493162, 15431203 },
+ },
+ {
+ { 20525145, 10892566, -12742472, 12779443, -29493034, 16150075, -28240519, 14943142, -15056790, -7935931 },
+ { -30024462, 5626926, -551567, -9981087, 753598, 11981191, 25244767, -3239766, -3356550, 9594024 },
+ { -23752644, 2636870, -5163910, -10103818, 585134, 7877383, 11345683, -6492290, 13352335, -10977084 },
+ },
+ {
+ { -1931799, -5407458, 3304649, -12884869, 17015806, -4877091, -29783850, -7752482, -13215537, -319204 },
+ { 20239939, 6607058, 6203985, 3483793, -18386976, -779229, -20723742, 15077870, -22750759, 14523817 },
+ { 27406042, -6041657, 27423596, -4497394, 4996214, 10002360, -28842031, -4545494, -30172742, -4805667 },
+ },
+ },
+ {
+ {
+ { 11374242, 12660715, 17861383, -12540833, 10935568, 1099227, -13886076, -9091740, -27727044, 11358504 },
+ { -12730809, 10311867, 1510375, 10778093, -2119455, -9145702, 32676003, 11149336, -26123651, 4985768 },
+ { -19096303, 341147, -6197485, -239033, 15756973, -8796662, -983043, 13794114, -19414307, -15621255 },
+ },
+ {
+ { 6490081, 11940286, 25495923, -7726360, 8668373, -8751316, 3367603, 6970005, -1691065, -9004790 },
+ { 1656497, 13457317, 15370807, 6364910, 13605745, 8362338, -19174622, -5475723, -16796596, -5031438 },
+ { -22273315, -13524424, -64685, -4334223, -18605636, -10921968, -20571065, -7007978, -99853, -10237333 },
+ },
+ {
+ { 17747465, 10039260, 19368299, -4050591, -20630635, -16041286, 31992683, -15857976, -29260363, -5511971 },
+ { 31932027, -4986141, -19612382, 16366580, 22023614, 88450, 11371999, -3744247, 4882242, -10626905 },
+ { 29796507, 37186, 19818052, 10115756, -11829032, 3352736, 18551198, 3272828, -5190932, -4162409 },
+ },
+ {
+ { 12501286, 4044383, -8612957, -13392385, -32430052, 5136599, -19230378, -3529697, 330070, -3659409 },
+ { 6384877, 2899513, 17807477, 7663917, -2358888, 12363165, 25366522, -8573892, -271295, 12071499 },
+ { -8365515, -4042521, 25133448, -4517355, -6211027, 2265927, -32769618, 1936675, -5159697, 3829363 },
+ },
+ {
+ { 28425966, -5835433, -577090, -4697198, -14217555, 6870930, 7921550, -6567787, 26333140, 14267664 },
+ { -11067219, 11871231, 27385719, -10559544, -4585914, -11189312, 10004786, -8709488, -21761224, 8930324 },
+ { -21197785, -16396035, 25654216, -1725397, 12282012, 11008919, 1541940, 4757911, -26491501, -16408940 },
+ },
+ {
+ { 13537262, -7759490, -20604840, 10961927, -5922820, -13218065, -13156584, 6217254, -15943699, 13814990 },
+ { -17422573, 15157790, 18705543, 29619, 24409717, -260476, 27361681, 9257833, -1956526, -1776914 },
+ { -25045300, -10191966, 15366585, 15166509, -13105086, 8423556, -29171540, 12361135, -18685978, 4578290 },
+ },
+ {
+ { 24579768, 3711570, 1342322, -11180126, -27005135, 14124956, -22544529, 14074919, 21964432, 8235257 },
+ { -6528613, -2411497, 9442966, -5925588, 12025640, -1487420, -2981514, -1669206, 13006806, 2355433 },
+ { -16304899, -13605259, -6632427, -5142349, 16974359, -10911083, 27202044, 1719366, 1141648, -12796236 },
+ },
+ {
+ { -12863944, -13219986, -8318266, -11018091, -6810145, -4843894, 13475066, -3133972, 32674895, 13715045 },
+ { 11423335, -5468059, 32344216, 8962751, 24989809, 9241752, -13265253, 16086212, -28740881, -15642093 },
+ { -1409668, 12530728, -6368726, 10847387, 19531186, -14132160, -11709148, 7791794, -27245943, 4383347 },
+ },
+ },
+ {
+ {
+ { -28970898, 5271447, -1266009, -9736989, -12455236, 16732599, -4862407, -4906449, 27193557, 6245191 },
+ { -15193956, 5362278, -1783893, 2695834, 4960227, 12840725, 23061898, 3260492, 22510453, 8577507 },
+ { -12632451, 11257346, -32692994, 13548177, -721004, 10879011, 31168030, 13952092, -29571492, -3635906 },
+ },
+ {
+ { 3877321, -9572739, 32416692, 5405324, -11004407, -13656635, 3759769, 11935320, 5611860, 8164018 },
+ { -16275802, 14667797, 15906460, 12155291, -22111149, -9039718, 32003002, -8832289, 5773085, -8422109 },
+ { -23788118, -8254300, 1950875, 8937633, 18686727, 16459170, -905725, 12376320, 31632953, 190926 },
+ },
+ {
+ { -24593607, -16138885, -8423991, 13378746, 14162407, 6901328, -8288749, 4508564, -25341555, -3627528 },
+ { 8884438, -5884009, 6023974, 10104341, -6881569, -4941533, 18722941, -14786005, -1672488, 827625 },
+ { -32720583, -16289296, -32503547, 7101210, 13354605, 2659080, -1800575, -14108036, -24878478, 1541286 },
+ },
+ {
+ { 2901347, -1117687, 3880376, -10059388, -17620940, -3612781, -21802117, -3567481, 20456845, -1885033 },
+ { 27019610, 12299467, -13658288, -1603234, -12861660, -4861471, -19540150, -5016058, 29439641, 15138866 },
+ { 21536104, -6626420, -32447818, -10690208, -22408077, 5175814, -5420040, -16361163, 7779328, 109896 },
+ },
+ {
+ { 30279744, 14648750, -8044871, 6425558, 13639621, -743509, 28698390, 12180118, 23177719, -554075 },
+ { 26572847, 3405927, -31701700, 12890905, -19265668, 5335866, -6493768, 2378492, 4439158, -13279347 },
+ { -22716706, 3489070, -9225266, -332753, 18875722, -1140095, 14819434, -12731527, -17717757, -5461437 },
+ },
+ {
+ { -5056483, 16566551, 15953661, 3767752, -10436499, 15627060, -820954, 2177225, 8550082, -15114165 },
+ { -18473302, 16596775, -381660, 15663611, 22860960, 15585581, -27844109, -3582739, -23260460, -8428588 },
+ { -32480551, 15707275, -8205912, -5652081, 29464558, 2713815, -22725137, 15860482, -21902570, 1494193 },
+ },
+ {
+ { -19562091, -14087393, -25583872, -9299552, 13127842, 759709, 21923482, 16529112, 8742704, 12967017 },
+ { -28464899, 1553205, 32536856, -10473729, -24691605, -406174, -8914625, -2933896, -29903758, 15553883 },
+ { 21877909, 3230008, 9881174, 10539357, -4797115, 2841332, 11543572, 14513274, 19375923, -12647961 },
+ },
+ {
+ { 8832269, -14495485, 13253511, 5137575, 5037871, 4078777, 24880818, -6222716, 2862653, 9455043 },
+ { 29306751, 5123106, 20245049, -14149889, 9592566, 8447059, -2077124, -2990080, 15511449, 4789663 },
+ { -20679756, 7004547, 8824831, -9434977, -4045704, -3750736, -5754762, 108893, 23513200, 16652362 },
+ },
+ },
+ {
+ {
+ { -33256173, 4144782, -4476029, -6579123, 10770039, -7155542, -6650416, -12936300, -18319198, 10212860 },
+ { 2756081, 8598110, 7383731, -6859892, 22312759, -1105012, 21179801, 2600940, -9988298, -12506466 },
+ { -24645692, 13317462, -30449259, -15653928, 21365574, -10869657, 11344424, 864440, -2499677, -16710063 },
+ },
+ {
+ { -26432803, 6148329, -17184412, -14474154, 18782929, -275997, -22561534, 211300, 2719757, 4940997 },
+ { -1323882, 3911313, -6948744, 14759765, -30027150, 7851207, 21690126, 8518463, 26699843, 5276295 },
+ { -13149873, -6429067, 9396249, 365013, 24703301, -10488939, 1321586, 149635, -15452774, 7159369 },
+ },
+ {
+ { 9987780, -3404759, 17507962, 9505530, 9731535, -2165514, 22356009, 8312176, 22477218, -8403385 },
+ { 18155857, -16504990, 19744716, 9006923, 15154154, -10538976, 24256460, -4864995, -22548173, 9334109 },
+ { 2986088, -4911893, 10776628, -3473844, 10620590, -7083203, -21413845, 14253545, -22587149, 536906 },
+ },
+ {
+ { 4377756, 8115836, 24567078, 15495314, 11625074, 13064599, 7390551, 10589625, 10838060, -15420424 },
+ { -19342404, 867880, 9277171, -3218459, -14431572, -1986443, 19295826, -15796950, 6378260, 699185 },
+ { 7895026, 4057113, -7081772, -13077756, -17886831, -323126, -716039, 15693155, -5045064, -13373962 },
+ },
+ {
+ { -7737563, -5869402, -14566319, -7406919, 11385654, 13201616, 31730678, -10962840, -3918636, -9669325 },
+ { 10188286, -15770834, -7336361, 13427543, 22223443, 14896287, 30743455, 7116568, -21786507, 5427593 },
+ { 696102, 13206899, 27047647, -10632082, 15285305, -9853179, 10798490, -4578720, 19236243, 12477404 },
+ },
+ {
+ { -11229439, 11243796, -17054270, -8040865, -788228, -8167967, -3897669, 11180504, -23169516, 7733644 },
+ { 17800790, -14036179, -27000429, -11766671, 23887827, 3149671, 23466177, -10538171, 10322027, 15313801 },
+ { 26246234, 11968874, 32263343, -5468728, 6830755, -13323031, -15794704, -101982, -24449242, 10890804 },
+ },
+ {
+ { -31365647, 10271363, -12660625, -6267268, 16690207, -13062544, -14982212, 16484931, 25180797, -5334884 },
+ { -586574, 10376444, -32586414, -11286356, 19801893, 10997610, 2276632, 9482883, 316878, 13820577 },
+ { -9882808, -4510367, -2115506, 16457136, -11100081, 11674996, 30756178, -7515054, 30696930, -3712849 },
+ },
+ {
+ { 32988917, -9603412, 12499366, 7910787, -10617257, -11931514, -7342816, -9985397, -32349517, 7392473 },
+ { -8855661, 15927861, 9866406, -3649411, -2396914, -16655781, -30409476, -9134995, 25112947, -2926644 },
+ { -2504044, -436966, 25621774, -5678772, 15085042, -5479877, -24884878, -13526194, 5537438, -13914319 },
+ },
+ },
+ {
+ {
+ { -11225584, 2320285, -9584280, 10149187, -33444663, 5808648, -14876251, -1729667, 31234590, 6090599 },
+ { -9633316, 116426, 26083934, 2897444, -6364437, -2688086, 609721, 15878753, -6970405, -9034768 },
+ { -27757857, 247744, -15194774, -9002551, 23288161, -10011936, -23869595, 6503646, 20650474, 1804084 },
+ },
+ {
+ { -27589786, 15456424, 8972517, 8469608, 15640622, 4439847, 3121995, -10329713, 27842616, -202328 },
+ { -15306973, 2839644, 22530074, 10026331, 4602058, 5048462, 28248656, 5031932, -11375082, 12714369 },
+ { 20807691, -7270825, 29286141, 11421711, -27876523, -13868230, -21227475, 1035546, -19733229, 12796920 },
+ },
+ {
+ { 12076899, -14301286, -8785001, -11848922, -25012791, 16400684, -17591495, -12899438, 3480665, -15182815 },
+ { -32361549, 5457597, 28548107, 7833186, 7303070, -11953545, -24363064, -15921875, -33374054, 2771025 },
+ { -21389266, 421932, 26597266, 6860826, 22486084, -6737172, -17137485, -4210226, -24552282, 15673397 },
+ },
+ {
+ { -20184622, 2338216, 19788685, -9620956, -4001265, -8740893, -20271184, 4733254, 3727144, -12934448 },
+ { 6120119, 814863, -11794402, -622716, 6812205, -15747771, 2019594, 7975683, 31123697, -10958981 },
+ { 30069250, -11435332, 30434654, 2958439, 18399564, -976289, 12296869, 9204260, -16432438, 9648165 },
+ },
+ {
+ { 32705432, -1550977, 30705658, 7451065, -11805606, 9631813, 3305266, 5248604, -26008332, -11377501 },
+ { 17219865, 2375039, -31570947, -5575615, -19459679, 9219903, 294711, 15298639, 2662509, -16297073 },
+ { -1172927, -7558695, -4366770, -4287744, -21346413, -8434326, 32087529, -1222777, 32247248, -14389861 },
+ },
+ {
+ { 14312628, 1221556, 17395390, -8700143, -4945741, -8684635, -28197744, -9637817, -16027623, -13378845 },
+ { -1428825, -9678990, -9235681, 6549687, -7383069, -468664, 23046502, 9803137, 17597934, 2346211 },
+ { 18510800, 15337574, 26171504, 981392, -22241552, 7827556, -23491134, -11323352, 3059833, -11782870 },
+ },
+ {
+ { 10141598, 6082907, 17829293, -1947643, 9830092, 13613136, -25556636, -5544586, -33502212, 3592096 },
+ { 33114168, -15889352, -26525686, -13343397, 33076705, 8716171, 1151462, 1521897, -982665, -6837803 },
+ { -32939165, -4255815, 23947181, -324178, -33072974, -12305637, -16637686, 3891704, 26353178, 693168 },
+ },
+ {
+ { 30374239, 1595580, -16884039, 13186931, 4600344, 406904, 9585294, -400668, 31375464, 14369965 },
+ { -14370654, -7772529, 1510301, 6434173, -18784789, -6262728, 32732230, -13108839, 17901441, 16011505 },
+ { 18171223, -11934626, -12500402, 15197122, -11038147, -15230035, -19172240, -16046376, 8764035, 12309598 },
+ },
+ },
+ {
+ {
+ { 5975908, -5243188, -19459362, -9681747, -11541277, 14015782, -23665757, 1228319, 17544096, -10593782 },
+ { 5811932, -1715293, 3442887, -2269310, -18367348, -8359541, -18044043, -15410127, -5565381, 12348900 },
+ { -31399660, 11407555, 25755363, 6891399, -3256938, 14872274, -24849353, 8141295, -10632534, -585479 },
+ },
+ {
+ { -12675304, 694026, -5076145, 13300344, 14015258, -14451394, -9698672, -11329050, 30944593, 1130208 },
+ { 8247766, -6710942, -26562381, -7709309, -14401939, -14648910, 4652152, 2488540, 23550156, -271232 },
+ { 17294316, -3788438, 7026748, 15626851, 22990044, 113481, 2267737, -5908146, -408818, -137719 },
+ },
+ {
+ { 16091085, -16253926, 18599252, 7340678, 2137637, -1221657, -3364161, 14550936, 3260525, -7166271 },
+ { -4910104, -13332887, 18550887, 10864893, -16459325, -7291596, -23028869, -13204905, -12748722, 2701326 },
+ { -8574695, 16099415, 4629974, -16340524, -20786213, -6005432, -10018363, 9276971, 11329923, 1862132 },
+ },
+ {
+ { 14763076, -15903608, -30918270, 3689867, 3511892, 10313526, -21951088, 12219231, -9037963, -940300 },
+ { 8894987, -3446094, 6150753, 3013931, 301220, 15693451, -31981216, -2909717, -15438168, 11595570 },
+ { 15214962, 3537601, -26238722, -14058872, 4418657, -15230761, 13947276, 10730794, -13489462, -4363670 },
+ },
+ {
+ { -2538306, 7682793, 32759013, 263109, -29984731, -7955452, -22332124, -10188635, 977108, 699994 },
+ { -12466472, 4195084, -9211532, 550904, -15565337, 12917920, 19118110, -439841, -30534533, -14337913 },
+ { 31788461, -14507657, 4799989, 7372237, 8808585, -14747943, 9408237, -10051775, 12493932, -5409317 },
+ },
+ {
+ { -25680606, 5260744, -19235809, -6284470, -3695942, 16566087, 27218280, 2607121, 29375955, 6024730 },
+ { 842132, -2794693, -4763381, -8722815, 26332018, -12405641, 11831880, 6985184, -9940361, 2854096 },
+ { -4847262, -7969331, 2516242, -5847713, 9695691, -7221186, 16512645, 960770, 12121869, 16648078 },
+ },
+ {
+ { -15218652, 14667096, -13336229, 2013717, 30598287, -464137, -31504922, -7882064, 20237806, 2838411 },
+ { -19288047, 4453152, 15298546, -16178388, 22115043, -15972604, 12544294, -13470457, 1068881, -12499905 },
+ { -9558883, -16518835, 33238498, 13506958, 30505848, -1114596, -8486907, -2630053, 12521378, 4845654 },
+ },
+ {
+ { -28198521, 10744108, -2958380, 10199664, 7759311, -13088600, 3409348, -873400, -6482306, -12885870 },
+ { -23561822, 6230156, -20382013, 10655314, -24040585, -11621172, 10477734, -1240216, -3113227, 13974498 },
+ { 12966261, 15550616, -32038948, -1615346, 21025980, -629444, 5642325, 7188737, 18895762, 12629579 },
+ },
+ },
+ {
+ {
+ { 14741879, -14946887, 22177208, -11721237, 1279741, 8058600, 11758140, 789443, 32195181, 3895677 },
+ { 10758205, 15755439, -4509950, 9243698, -4879422, 6879879, -2204575, -3566119, -8982069, 4429647 },
+ { -2453894, 15725973, -20436342, -10410672, -5803908, -11040220, -7135870, -11642895, 18047436, -15281743 },
+ },
+ {
+ { -25173001, -11307165, 29759956, 11776784, -22262383, -15820455, 10993114, -12850837, -17620701, -9408468 },
+ { 21987233, 700364, -24505048, 14972008, -7774265, -5718395, 32155026, 2581431, -29958985, 8773375 },
+ { -25568350, 454463, -13211935, 16126715, 25240068, 8594567, 20656846, 12017935, -7874389, -13920155 },
+ },
+ {
+ { 6028182, 6263078, -31011806, -11301710, -818919, 2461772, -31841174, -5468042, -1721788, -2776725 },
+ { -12278994, 16624277, 987579, -5922598, 32908203, 1248608, 7719845, -4166698, 28408820, 6816612 },
+ { -10358094, -8237829, 19549651, -12169222, 22082623, 16147817, 20613181, 13982702, -10339570, 5067943 },
+ },
+ {
+ { -30505967, -3821767, 12074681, 13582412, -19877972, 2443951, -19719286, 12746132, 5331210, -10105944 },
+ { 30528811, 3601899, -1957090, 4619785, -27361822, -15436388, 24180793, -12570394, 27679908, -1648928 },
+ { 9402404, -13957065, 32834043, 10838634, -26580150, -13237195, 26653274, -8685565, 22611444, -12715406 },
+ },
+ {
+ { 22190590, 1118029, 22736441, 15130463, -30460692, -5991321, 19189625, -4648942, 4854859, 6622139 },
+ { -8310738, -2953450, -8262579, -3388049, -10401731, -271929, 13424426, -3567227, 26404409, 13001963 },
+ { -31241838, -15415700, -2994250, 8939346, 11562230, -12840670, -26064365, -11621720, -15405155, 11020693 },
+ },
+ {
+ { 1866042, -7949489, -7898649, -10301010, 12483315, 13477547, 3175636, -12424163, 28761762, 1406734 },
+ { -448555, -1777666, 13018551, 3194501, -9580420, -11161737, 24760585, -4347088, 25577411, -13378680 },
+ { -24290378, 4759345, -690653, -1852816, 2066747, 10693769, -29595790, 9884936, -9368926, 4745410 },
+ },
+ {
+ { -9141284, 6049714, -19531061, -4341411, -31260798, 9944276, -15462008, -11311852, 10931924, -11931931 },
+ { -16561513, 14112680, -8012645, 4817318, -8040464, -11414606, -22853429, 10856641, -20470770, 13434654 },
+ { 22759489, -10073434, -16766264, -1871422, 13637442, -10168091, 1765144, -12654326, 28445307, -5364710 },
+ },
+ {
+ { 29875063, 12493613, 2795536, -3786330, 1710620, 15181182, -10195717, -8788675, 9074234, 1167180 },
+ { -26205683, 11014233, -9842651, -2635485, -26908120, 7532294, -18716888, -9535498, 3843903, 9367684 },
+ { -10969595, -6403711, 9591134, 9582310, 11349256, 108879, 16235123, 8601684, -139197, 4242895 },
+ },
+ },
+ {
+ {
+ { 22092954, -13191123, -2042793, -11968512, 32186753, -11517388, -6574341, 2470660, -27417366, 16625501 },
+ { -11057722, 3042016, 13770083, -9257922, 584236, -544855, -7770857, 2602725, -27351616, 14247413 },
+ { 6314175, -10264892, -32772502, 15957557, -10157730, 168750, -8618807, 14290061, 27108877, -1180880 },
+ },
+ {
+ { -8586597, -7170966, 13241782, 10960156, -32991015, -13794596, 33547976, -11058889, -27148451, 981874 },
+ { 22833440, 9293594, -32649448, -13618667, -9136966, 14756819, -22928859, -13970780, -10479804, -16197962 },
+ { -7768587, 3326786, -28111797, 10783824, 19178761, 14905060, 22680049, 13906969, -15933690, 3797899 },
+ },
+ {
+ { 21721356, -4212746, -12206123, 9310182, -3882239, -13653110, 23740224, -2709232, 20491983, -8042152 },
+ { 9209270, -15135055, -13256557, -6167798, -731016, 15289673, 25947805, 15286587, 30997318, -6703063 },
+ { 7392032, 16618386, 23946583, -8039892, -13265164, -1533858, -14197445, -2321576, 17649998, -250080 },
+ },
+ {
+ { -9301088, -14193827, 30609526, -3049543, -25175069, -1283752, -15241566, -9525724, -2233253, 7662146 },
+ { -17558673, 1763594, -33114336, 15908610, -30040870, -12174295, 7335080, -8472199, -3174674, 3440183 },
+ { -19889700, -5977008, -24111293, -9688870, 10799743, -16571957, 40450, -4431835, 4862400, 1133 },
+ },
+ {
+ { -32856209, -7873957, -5422389, 14860950, -16319031, 7956142, 7258061, 311861, -30594991, -7379421 },
+ { -3773428, -1565936, 28985340, 7499440, 24445838, 9325937, 29727763, 16527196, 18278453, 15405622 },
+ { -4381906, 8508652, -19898366, -3674424, -5984453, 15149970, -13313598, 843523, -21875062, 13626197 },
+ },
+ {
+ { 2281448, -13487055, -10915418, -2609910, 1879358, 16164207, -10783882, 3953792, 13340839, 15928663 },
+ { 31727126, -7179855, -18437503, -8283652, 2875793, -16390330, -25269894, -7014826, -23452306, 5964753 },
+ { 4100420, -5959452, -17179337, 6017714, -18705837, 12227141, -26684835, 11344144, 2538215, -7570755 },
+ },
+ {
+ { -9433605, 6123113, 11159803, -2156608, 30016280, 14966241, -20474983, 1485421, -629256, -15958862 },
+ { -26804558, 4260919, 11851389, 9658551, -32017107, 16367492, -20205425, -13191288, 11659922, -11115118 },
+ { 26180396, 10015009, -30844224, -8581293, 5418197, 9480663, 2231568, -10170080, 33100372, -1306171 },
+ },
+ {
+ { 15121113, -5201871, -10389905, 15427821, -27509937, -15992507, 21670947, 4486675, -5931810, -14466380 },
+ { 16166486, -9483733, -11104130, 6023908, -31926798, -1364923, 2340060, -16254968, -10735770, -10039824 },
+ { 28042865, -3557089, -12126526, 12259706, -3717498, -6945899, 6766453, -8689599, 18036436, 5803270 },
+ },
+ },
+ {
+ {
+ { -817581, 6763912, 11803561, 1585585, 10958447, -2671165, 23855391, 4598332, -6159431, -14117438 },
+ { -31031306, -14256194, 17332029, -2383520, 31312682, -5967183, 696309, 50292, -20095739, 11763584 },
+ { -594563, -2514283, -32234153, 12643980, 12650761, 14811489, 665117, -12613632, -19773211, -10713562 },
+ },
+ {
+ { 30464590, -11262872, -4127476, -12734478, 19835327, -7105613, -24396175, 2075773, -17020157, 992471 },
+ { 18357185, -6994433, 7766382, 16342475, -29324918, 411174, 14578841, 8080033, -11574335, -10601610 },
+ { 19598397, 10334610, 12555054, 2555664, 18821899, -10339780, 21873263, 16014234, 26224780, 16452269 },
+ },
+ {
+ { -30223925, 5145196, 5944548, 16385966, 3976735, 2009897, -11377804, -7618186, -20533829, 3698650 },
+ { 14187449, 3448569, -10636236, -10810935, -22663880, -3433596, 7268410, -10890444, 27394301, 12015369 },
+ { 19695761, 16087646, 28032085, 12999827, 6817792, 11427614, 20244189, -1312777, -13259127, -3402461 },
+ },
+ {
+ { 30860103, 12735208, -1888245, -4699734, -16974906, 2256940, -8166013, 12298312, -8550524, -10393462 },
+ { -5719826, -11245325, -1910649, 15569035, 26642876, -7587760, -5789354, -15118654, -4976164, 12651793 },
+ { -2848395, 9953421, 11531313, -5282879, 26895123, -12697089, -13118820, -16517902, 9768698, -2533218 },
+ },
+ {
+ { -24719459, 1894651, -287698, -4704085, 15348719, -8156530, 32767513, 12765450, 4940095, 10678226 },
+ { 18860224, 15980149, -18987240, -1562570, -26233012, -11071856, -7843882, 13944024, -24372348, 16582019 },
+ { -15504260, 4970268, -29893044, 4175593, -20993212, -2199756, -11704054, 15444560, -11003761, 7989037 },
+ },
+ {
+ { 31490452, 5568061, -2412803, 2182383, -32336847, 4531686, -32078269, 6200206, -19686113, -14800171 },
+ { -17308668, -15879940, -31522777, -2831, -32887382, 16375549, 8680158, -16371713, 28550068, -6857132 },
+ { -28126887, -5688091, 16837845, -1820458, -6850681, 12700016, -30039981, 4364038, 1155602, 5988841 },
+ },
+ {
+ { 21890435, -13272907, -12624011, 12154349, -7831873, 15300496, 23148983, -4470481, 24618407, 8283181 },
+ { -33136107, -10512751, 9975416, 6841041, -31559793, 16356536, 3070187, -7025928, 1466169, 10740210 },
+ { -1509399, -15488185, -13503385, -10655916, 32799044, 909394, -13938903, -5779719, -32164649, -15327040 },
+ },
+ {
+ { 3960823, -14267803, -28026090, -15918051, -19404858, 13146868, 15567327, 951507, -3260321, -573935 },
+ { 24740841, 5052253, -30094131, 8961361, 25877428, 6165135, -24368180, 14397372, -7380369, -6144105 },
+ { -28888365, 3510803, -28103278, -1158478, -11238128, -10631454, -15441463, -14453128, -1625486, -6494814 },
+ },
+ },
+ {
+ {
+ { 793299, -9230478, 8836302, -6235707, -27360908, -2369593, 33152843, -4885251, -9906200, -621852 },
+ { 5666233, 525582, 20782575, -8038419, -24538499, 14657740, 16099374, 1468826, -6171428, -15186581 },
+ { -4859255, -3779343, -2917758, -6748019, 7778750, 11688288, -30404353, -9871238, -1558923, -9863646 },
+ },
+ {
+ { 10896332, -7719704, 824275, 472601, -19460308, 3009587, 25248958, 14783338, -30581476, -15757844 },
+ { 10566929, 12612572, -31944212, 11118703, -12633376, 12362879, 21752402, 8822496, 24003793, 14264025 },
+ { 27713862, -7355973, -11008240, 9227530, 27050101, 2504721, 23886875, -13117525, 13958495, -5732453 },
+ },
+ {
+ { -23481610, 4867226, -27247128, 3900521, 29838369, -8212291, -31889399, -10041781, 7340521, -15410068 },
+ { 4646514, -8011124, -22766023, -11532654, 23184553, 8566613, 31366726, -1381061, -15066784, -10375192 },
+ { -17270517, 12723032, -16993061, 14878794, 21619651, -6197576, 27584817, 3093888, -8843694, 3849921 },
+ },
+ {
+ { -9064912, 2103172, 25561640, -15125738, -5239824, 9582958, 32477045, -9017955, 5002294, -15550259 },
+ { -12057553, -11177906, 21115585, -13365155, 8808712, -12030708, 16489530, 13378448, -25845716, 12741426 },
+ { -5946367, 10645103, -30911586, 15390284, -3286982, -7118677, 24306472, 15852464, 28834118, -7646072 },
+ },
+ {
+ { -17335748, -9107057, -24531279, 9434953, -8472084, -583362, -13090771, 455841, 20461858, 5491305 },
+ { 13669248, -16095482, -12481974, -10203039, -14569770, -11893198, -24995986, 11293807, -28588204, -9421832 },
+ { 28497928, 6272777, -33022994, 14470570, 8906179, -1225630, 18504674, -14165166, 29867745, -8795943 },
+ },
+ {
+ { -16207023, 13517196, -27799630, -13697798, 24009064, -6373891, -6367600, -13175392, 22853429, -4012011 },
+ { 24191378, 16712145, -13931797, 15217831, 14542237, 1646131, 18603514, -11037887, 12876623, -2112447 },
+ { 17902668, 4518229, -411702, -2829247, 26878217, 5258055, -12860753, 608397, 16031844, 3723494 },
+ },
+ {
+ { -28632773, 12763728, -20446446, 7577504, 33001348, -13017745, 17558842, -7872890, 23896954, -4314245 },
+ { -20005381, -12011952, 31520464, 605201, 2543521, 5991821, -2945064, 7229064, -9919646, -8826859 },
+ { 28816045, 298879, -28165016, -15920938, 19000928, -1665890, -12680833, -2949325, -18051778, -2082915 },
+ },
+ {
+ { 16000882, -344896, 3493092, -11447198, -29504595, -13159789, 12577740, 16041268, -19715240, 7847707 },
+ { 10151868, 10572098, 27312476, 7922682, 14825339, 4723128, -32855931, -6519018, -10020567, 3852848 },
+ { -11430470, 15697596, -21121557, -4420647, 5386314, 15063598, 16514493, -15932110, 29330899, -15076224 },
+ },
+ },
+ {
+ {
+ { -25499735, -4378794, -15222908, -6901211, 16615731, 2051784, 3303702, 15490, -27548796, 12314391 },
+ { 15683520, -6003043, 18109120, -9980648, 15337968, -5997823, -16717435, 15921866, 16103996, -3731215 },
+ { -23169824, -10781249, 13588192, -1628807, -3798557, -1074929, -19273607, 5402699, -29815713, -9841101 },
+ },
+ {
+ { 23190676, 2384583, -32714340, 3462154, -29903655, -1529132, -11266856, 8911517, -25205859, 2739713 },
+ { 21374101, -3554250, -33524649, 9874411, 15377179, 11831242, -33529904, 6134907, 4931255, 11987849 },
+ { -7732, -2978858, -16223486, 7277597, 105524, -322051, -31480539, 13861388, -30076310, 10117930 },
+ },
+ {
+ { -29501170, -10744872, -26163768, 13051539, -25625564, 5089643, -6325503, 6704079, 12890019, 15728940 },
+ { -21972360, -11771379, -951059, -4418840, 14704840, 2695116, 903376, -10428139, 12885167, 8311031 },
+ { -17516482, 5352194, 10384213, -13811658, 7506451, 13453191, 26423267, 4384730, 1888765, -5435404 },
+ },
+ {
+ { -25817338, -3107312, -13494599, -3182506, 30896459, -13921729, -32251644, -12707869, -19464434, -3340243 },
+ { -23607977, -2665774, -526091, 4651136, 5765089, 4618330, 6092245, 14845197, 17151279, -9854116 },
+ { -24830458, -12733720, -15165978, 10367250, -29530908, -265356, 22825805, -7087279, -16866484, 16176525 },
+ },
+ {
+ { -23583256, 6564961, 20063689, 3798228, -4740178, 7359225, 2006182, -10363426, -28746253, -10197509 },
+ { -10626600, -4486402, -13320562, -5125317, 3432136, -6393229, 23632037, -1940610, 32808310, 1099883 },
+ { 15030977, 5768825, -27451236, -2887299, -6427378, -15361371, -15277896, -6809350, 2051441, -15225865 },
+ },
+ {
+ { -3362323, -7239372, 7517890, 9824992, 23555850, 295369, 5148398, -14154188, -22686354, 16633660 },
+ { 4577086, -16752288, 13249841, -15304328, 19958763, -14537274, 18559670, -10759549, 8402478, -9864273 },
+ { -28406330, -1051581, -26790155, -907698, -17212414, -11030789, 9453451, -14980072, 17983010, 9967138 },
+ },
+ {
+ { -25762494, 6524722, 26585488, 9969270, 24709298, 1220360, -1677990, 7806337, 17507396, 3651560 },
+ { -10420457, -4118111, 14584639, 15971087, -15768321, 8861010, 26556809, -5574557, -18553322, -11357135 },
+ { 2839101, 14284142, 4029895, 3472686, 14402957, 12689363, -26642121, 8459447, -5605463, -7621941 },
+ },
+ {
+ { -4839289, -3535444, 9744961, 2871048, 25113978, 3187018, -25110813, -849066, 17258084, -7977739 },
+ { 18164541, -10595176, -17154882, -1542417, 19237078, -9745295, 23357533, -15217008, 26908270, 12150756 },
+ { -30264870, -7647865, 5112249, -7036672, -1499807, -6974257, 43168, -5537701, -32302074, 16215819 },
+ },
+ },
+ {
+ {
+ { -6898905, 9824394, -12304779, -4401089, -31397141, -6276835, 32574489, 12532905, -7503072, -8675347 },
+ { -27343522, -16515468, -27151524, -10722951, 946346, 16291093, 254968, 7168080, 21676107, -1943028 },
+ { 21260961, -8424752, -16831886, -11920822, -23677961, 3968121, -3651949, -6215466, -3556191, -7913075 },
+ },
+ {
+ { 16544754, 13250366, -16804428, 15546242, -4583003, 12757258, -2462308, -8680336, -18907032, -9662799 },
+ { -2415239, -15577728, 18312303, 4964443, -15272530, -12653564, 26820651, 16690659, 25459437, -4564609 },
+ { -25144690, 11425020, 28423002, -11020557, -6144921, -15826224, 9142795, -2391602, -6432418, -1644817 },
+ },
+ {
+ { -23104652, 6253476, 16964147, -3768872, -25113972, -12296437, -27457225, -16344658, 6335692, 7249989 },
+ { -30333227, 13979675, 7503222, -12368314, -11956721, -4621693, -30272269, 2682242, 25993170, -12478523 },
+ { 4364628, 5930691, 32304656, -10044554, -8054781, 15091131, 22857016, -10598955, 31820368, 15075278 },
+ },
+ {
+ { 31879134, -8918693, 17258761, 90626, -8041836, -4917709, 24162788, -9650886, -17970238, 12833045 },
+ { 19073683, 14851414, -24403169, -11860168, 7625278, 11091125, -19619190, 2074449, -9413939, 14905377 },
+ { 24483667, -11935567, -2518866, -11547418, -1553130, 15355506, -25282080, 9253129, 27628530, -7555480 },
+ },
+ {
+ { 17597607, 8340603, 19355617, 552187, 26198470, -3176583, 4593324, -9157582, -14110875, 15297016 },
+ { 510886, 14337390, -31785257, 16638632, 6328095, 2713355, -20217417, -11864220, 8683221, 2921426 },
+ { 18606791, 11874196, 27155355, -5281482, -24031742, 6265446, -25178240, -1278924, 4674690, 13890525 },
+ },
+ {
+ { 13609624, 13069022, -27372361, -13055908, 24360586, 9592974, 14977157, 9835105, 4389687, 288396 },
+ { 9922506, -519394, 13613107, 5883594, -18758345, -434263, -12304062, 8317628, 23388070, 16052080 },
+ { 12720016, 11937594, -31970060, -5028689, 26900120, 8561328, -20155687, -11632979, -14754271, -10812892 },
+ },
+ {
+ { 15961858, 14150409, 26716931, -665832, -22794328, 13603569, 11829573, 7467844, -28822128, 929275 },
+ { 11038231, -11582396, -27310482, -7316562, -10498527, -16307831, -23479533, -9371869, -21393143, 2465074 },
+ { 20017163, -4323226, 27915242, 1529148, 12396362, 15675764, 13817261, -9658066, 2463391, -4622140 },
+ },
+ {
+ { -16358878, -12663911, -12065183, 4996454, -1256422, 1073572, 9583558, 12851107, 4003896, 12673717 },
+ { -1731589, -15155870, -3262930, 16143082, 19294135, 13385325, 14741514, -9103726, 7903886, 2348101 },
+ { 24536016, -16515207, 12715592, -3862155, 1511293, 10047386, -3842346, -7129159, -28377538, 10048127 },
+ },
+ },
+ {
+ {
+ { -12622226, -6204820, 30718825, 2591312, -10617028, 12192840, 18873298, -7297090, -32297756, 15221632 },
+ { -26478122, -11103864, 11546244, -1852483, 9180880, 7656409, -21343950, 2095755, 29769758, 6593415 },
+ { -31994208, -2907461, 4176912, 3264766, 12538965, -868111, 26312345, -6118678, 30958054, 8292160 },
+ },
+ {
+ { 31429822, -13959116, 29173532, 15632448, 12174511, -2760094, 32808831, 3977186, 26143136, -3148876 },
+ { 22648901, 1402143, -22799984, 13746059, 7936347, 365344, -8668633, -1674433, -3758243, -2304625 },
+ { -15491917, 8012313, -2514730, -12702462, -23965846, -10254029, -1612713, -1535569, -16664475, 8194478 },
+ },
+ {
+ { 27338066, -7507420, -7414224, 10140405, -19026427, -6589889, 27277191, 8855376, 28572286, 3005164 },
+ { 26287124, 4821776, 25476601, -4145903, -3764513, -15788984, -18008582, 1182479, -26094821, -13079595 },
+ { -7171154, 3178080, 23970071, 6201893, -17195577, -4489192, -21876275, -13982627, 32208683, -1198248 },
+ },
+ {
+ { -16657702, 2817643, -10286362, 14811298, 6024667, 13349505, -27315504, -10497842, -27672585, -11539858 },
+ { 15941029, -9405932, -21367050, 8062055, 31876073, -238629, -15278393, -1444429, 15397331, -4130193 },
+ { 8934485, -13485467, -23286397, -13423241, -32446090, 14047986, 31170398, -1441021, -27505566, 15087184 },
+ },
+ {
+ { -18357243, -2156491, 24524913, -16677868, 15520427, -6360776, -15502406, 11461896, 16788528, -5868942 },
+ { -1947386, 16013773, 21750665, 3714552, -17401782, -16055433, -3770287, -10323320, 31322514, -11615635 },
+ { 21426655, -5650218, -13648287, -5347537, -28812189, -4920970, -18275391, -14621414, 13040862, -12112948 },
+ },
+ {
+ { 11293895, 12478086, -27136401, 15083750, -29307421, 14748872, 14555558, -13417103, 1613711, 4896935 },
+ { -25894883, 15323294, -8489791, -8057900, 25967126, -13425460, 2825960, -4897045, -23971776, -11267415 },
+ { -15924766, -5229880, -17443532, 6410664, 3622847, 10243618, 20615400, 12405433, -23753030, -8436416 },
+ },
+ {
+ { -7091295, 12556208, -20191352, 9025187, -17072479, 4333801, 4378436, 2432030, 23097949, -566018 },
+ { 4565804, -16025654, 20084412, -7842817, 1724999, 189254, 24767264, 10103221, -18512313, 2424778 },
+ { 366633, -11976806, 8173090, -6890119, 30788634, 5745705, -7168678, 1344109, -3642553, 12412659 },
+ },
+ {
+ { -24001791, 7690286, 14929416, -168257, -32210835, -13412986, 24162697, -15326504, -3141501, 11179385 },
+ { 18289522, -14724954, 8056945, 16430056, -21729724, 7842514, -6001441, -1486897, -18684645, -11443503 },
+ { 476239, 6601091, -6152790, -9723375, 17503545, -4863900, 27672959, 13403813, 11052904, 5219329 },
+ },
+ },
+ {
+ {
+ { 20678546, -8375738, -32671898, 8849123, -5009758, 14574752, 31186971, -3973730, 9014762, -8579056 },
+ { -13644050, -10350239, -15962508, 5075808, -1514661, -11534600, -33102500, 9160280, 8473550, -3256838 },
+ { 24900749, 14435722, 17209120, -15292541, -22592275, 9878983, -7689309, -16335821, -24568481, 11788948 },
+ },
+ {
+ { -3118155, -11395194, -13802089, 14797441, 9652448, -6845904, -20037437, 10410733, -24568470, -1458691 },
+ { -15659161, 16736706, -22467150, 10215878, -9097177, 7563911, 11871841, -12505194, -18513325, 8464118 },
+ { -23400612, 8348507, -14585951, -861714, -3950205, -6373419, 14325289, 8628612, 33313881, -8370517 },
+ },
+ {
+ { -20186973, -4967935, 22367356, 5271547, -1097117, -4788838, -24805667, -10236854, -8940735, -5818269 },
+ { -6948785, -1795212, -32625683, -16021179, 32635414, -7374245, 15989197, -12838188, 28358192, -4253904 },
+ { -23561781, -2799059, -32351682, -1661963, -9147719, 10429267, -16637684, 4072016, -5351664, 5596589 },
+ },
+ {
+ { -28236598, -3390048, 12312896, 6213178, 3117142, 16078565, 29266239, 2557221, 1768301, 15373193 },
+ { -7243358, -3246960, -4593467, -7553353, -127927, -912245, -1090902, -4504991, -24660491, 3442910 },
+ { -30210571, 5124043, 14181784, 8197961, 18964734, -11939093, 22597931, 7176455, -18585478, 13365930 },
+ },
+ {
+ { -7877390, -1499958, 8324673, 4690079, 6261860, 890446, 24538107, -8570186, -9689599, -3031667 },
+ { 25008904, -10771599, -4305031, -9638010, 16265036, 15721635, 683793, -11823784, 15723479, -15163481 },
+ { -9660625, 12374379, -27006999, -7026148, -7724114, -12314514, 11879682, 5400171, 519526, -1235876 },
+ },
+ {
+ { 22258397, -16332233, -7869817, 14613016, -22520255, -2950923, -20353881, 7315967, 16648397, 7605640 },
+ { -8081308, -8464597, -8223311, 9719710, 19259459, -15348212, 23994942, -5281555, -9468848, 4763278 },
+ { -21699244, 9220969, -15730624, 1084137, -25476107, -2852390, 31088447, -7764523, -11356529, 728112 },
+ },
+ {
+ { 26047220, -11751471, -6900323, -16521798, 24092068, 9158119, -4273545, -12555558, -29365436, -5498272 },
+ { 17510331, -322857, 5854289, 8403524, 17133918, -3112612, -28111007, 12327945, 10750447, 10014012 },
+ { -10312768, 3936952, 9156313, -8897683, 16498692, -994647, -27481051, -666732, 3424691, 7540221 },
+ },
+ {
+ { 30322361, -6964110, 11361005, -4143317, 7433304, 4989748, -7071422, -16317219, -9244265, 15258046 },
+ { 13054562, -2779497, 19155474, 469045, -12482797, 4566042, 5631406, 2711395, 1062915, -5136345 },
+ { -19240248, -11254599, -29509029, -7499965, -5835763, 13005411, -6066489, 12194497, 32960380, 1459310 },
+ },
+ },
+ {
+ {
+ { 19852034, 7027924, 23669353, 10020366, 8586503, -6657907, 394197, -6101885, 18638003, -11174937 },
+ { 31395534, 15098109, 26581030, 8030562, -16527914, -5007134, 9012486, -7584354, -6643087, -5442636 },
+ { -9192165, -2347377, -1997099, 4529534, 25766844, 607986, -13222, 9677543, -32294889, -6456008 },
+ },
+ {
+ { -2444496, -149937, 29348902, 8186665, 1873760, 12489863, -30934579, -7839692, -7852844, -8138429 },
+ { -15236356, -15433509, 7766470, 746860, 26346930, -10221762, -27333451, 10754588, -9431476, 5203576 },
+ { 31834314, 14135496, -770007, 5159118, 20917671, -16768096, -7467973, -7337524, 31809243, 7347066 },
+ },
+ {
+ { -9606723, -11874240, 20414459, 13033986, 13716524, -11691881, 19797970, -12211255, 15192876, -2087490 },
+ { -12663563, -2181719, 1168162, -3804809, 26747877, -14138091, 10609330, 12694420, 33473243, -13382104 },
+ { 33184999, 11180355, 15832085, -11385430, -1633671, 225884, 15089336, -11023903, -6135662, 14480053 },
+ },
+ {
+ { 31308717, -5619998, 31030840, -1897099, 15674547, -6582883, 5496208, 13685227, 27595050, 8737275 },
+ { -20318852, -15150239, 10933843, -16178022, 8335352, -7546022, -31008351, -12610604, 26498114, 66511 },
+ { 22644454, -8761729, -16671776, 4884562, -3105614, -13559366, 30540766, -4286747, -13327787, -7515095 },
+ },
+ {
+ { -28017847, 9834845, 18617207, -2681312, -3401956, -13307506, 8205540, 13585437, -17127465, 15115439 },
+ { 23711543, -672915, 31206561, -8362711, 6164647, -9709987, -33535882, -1426096, 8236921, 16492939 },
+ { -23910559, -13515526, -26299483, -4503841, 25005590, -7687270, 19574902, 10071562, 6708380, -6222424 },
+ },
+ {
+ { 2101391, -4930054, 19702731, 2367575, -15427167, 1047675, 5301017, 9328700, 29955601, -11678310 },
+ { 3096359, 9271816, -21620864, -15521844, -14847996, -7592937, -25892142, -12635595, -9917575, 6216608 },
+ { -32615849, 338663, -25195611, 2510422, -29213566, -13820213, 24822830, -6146567, -26767480, 7525079 },
+ },
+ {
+ { -23066649, -13985623, 16133487, -7896178, -3389565, 778788, -910336, -2782495, -19386633, 11994101 },
+ { 21691500, -13624626, -641331, -14367021, 3285881, -3483596, -25064666, 9718258, -7477437, 13381418 },
+ { 18445390, -4202236, 14979846, 11622458, -1727110, -3582980, 23111648, -6375247, 28535282, 15779576 },
+ },
+ {
+ { 30098053, 3089662, -9234387, 16662135, -21306940, 11308411, -14068454, 12021730, 9955285, -16303356 },
+ { 9734894, -14576830, -7473633, -9138735, 2060392, 11313496, -18426029, 9924399, 20194861, 13380996 },
+ { -26378102, -7965207, -22167821, 15789297, -18055342, -6168792, -1984914, 15707771, 26342023, 10146099 },
+ },
+ },
+ {
+ {
+ { -26016874, -219943, 21339191, -41388, 19745256, -2878700, -29637280, 2227040, 21612326, -545728 },
+ { -13077387, 1184228, 23562814, -5970442, -20351244, -6348714, 25764461, 12243797, -20856566, 11649658 },
+ { -10031494, 11262626, 27384172, 2271902, 26947504, -15997771, 39944, 6114064, 33514190, 2333242 },
+ },
+ {
+ { -21433588, -12421821, 8119782, 7219913, -21830522, -9016134, -6679750, -12670638, 24350578, -13450001 },
+ { -4116307, -11271533, -23886186, 4843615, -30088339, 690623, -31536088, -10406836, 8317860, 12352766 },
+ { 18200138, -14475911, -33087759, -2696619, -23702521, -9102511, -23552096, -2287550, 20712163, 6719373 },
+ },
+ {
+ { 26656208, 6075253, -7858556, 1886072, -28344043, 4262326, 11117530, -3763210, 26224235, -3297458 },
+ { -17168938, -14854097, -3395676, -16369877, -19954045, 14050420, 21728352, 9493610, 18620611, -16428628 },
+ { -13323321, 13325349, 11432106, 5964811, 18609221, 6062965, -5269471, -9725556, -30701573, -16479657 },
+ },
+ {
+ { -23860538, -11233159, 26961357, 1640861, -32413112, -16737940, 12248509, -5240639, 13735342, 1934062 },
+ { 25089769, 6742589, 17081145, -13406266, 21909293, -16067981, -15136294, -3765346, -21277997, 5473616 },
+ { 31883677, -7961101, 1083432, -11572403, 22828471, 13290673, -7125085, 12469656, 29111212, -5451014 },
+ },
+ {
+ { 24244947, -15050407, -26262976, 2791540, -14997599, 16666678, 24367466, 6388839, -10295587, 452383 },
+ { -25640782, -3417841, 5217916, 16224624, 19987036, -4082269, -24236251, -5915248, 15766062, 8407814 },
+ { -20406999, 13990231, 15495425, 16395525, 5377168, 15166495, -8917023, -4388953, -8067909, 2276718 },
+ },
+ {
+ { 30157918, 12924066, -17712050, 9245753, 19895028, 3368142, -23827587, 5096219, 22740376, -7303417 },
+ { 2041139, -14256350, 7783687, 13876377, -25946985, -13352459, 24051124, 13742383, -15637599, 13295222 },
+ { 33338237, -8505733, 12532113, 7977527, 9106186, -1715251, -17720195, -4612972, -4451357, -14669444 },
+ },
+ {
+ { -20045281, 5454097, -14346548, 6447146, 28862071, 1883651, -2469266, -4141880, 7770569, 9620597 },
+ { 23208068, 7979712, 33071466, 8149229, 1758231, -10834995, 30945528, -1694323, -33502340, -14767970 },
+ { 1439958, -16270480, -1079989, -793782, 4625402, 10647766, -5043801, 1220118, 30494170, -11440799 },
+ },
+ {
+ { -5037580, -13028295, -2970559, -3061767, 15640974, -6701666, -26739026, 926050, -1684339, -13333647 },
+ { 13908495, -3549272, 30919928, -6273825, -21521863, 7989039, 9021034, 9078865, 3353509, 4033511 },
+ { -29663431, -15113610, 32259991, -344482, 24295849, -12912123, 23161163, 8839127, 27485041, 7356032 },
+ },
+ },
+ {
+ {
+ { 9661027, 705443, 11980065, -5370154, -1628543, 14661173, -6346142, 2625015, 28431036, -16771834 },
+ { -23839233, -8311415, -25945511, 7480958, -17681669, -8354183, -22545972, 14150565, 15970762, 4099461 },
+ { 29262576, 16756590, 26350592, -8793563, 8529671, -11208050, 13617293, -9937143, 11465739, 8317062 },
+ },
+ {
+ { -25493081, -6962928, 32500200, -9419051, -23038724, -2302222, 14898637, 3848455, 20969334, -5157516 },
+ { -20384450, -14347713, -18336405, 13884722, -33039454, 2842114, -21610826, -3649888, 11177095, 14989547 },
+ { -24496721, -11716016, 16959896, 2278463, 12066309, 10137771, 13515641, 2581286, -28487508, 9930240 },
+ },
+ {
+ { -17751622, -2097826, 16544300, -13009300, -15914807, -14949081, 18345767, -13403753, 16291481, -5314038 },
+ { -33229194, 2553288, 32678213, 9875984, 8534129, 6889387, -9676774, 6957617, 4368891, 9788741 },
+ { 16660756, 7281060, -10830758, 12911820, 20108584, -8101676, -21722536, -8613148, 16250552, -11111103 },
+ },
+ {
+ { -19765507, 2390526, -16551031, 14161980, 1905286, 6414907, 4689584, 10604807, -30190403, 4782747 },
+ { -1354539, 14736941, -7367442, -13292886, 7710542, -14155590, -9981571, 4383045, 22546403, 437323 },
+ { 31665577, -12180464, -16186830, 1491339, -18368625, 3294682, 27343084, 2786261, -30633590, -14097016 },
+ },
+ {
+ { -14467279, -683715, -33374107, 7448552, 19294360, 14334329, -19690631, 2355319, -19284671, -6114373 },
+ { 15121312, -15796162, 6377020, -6031361, -10798111, -12957845, 18952177, 15496498, -29380133, 11754228 },
+ { -2637277, -13483075, 8488727, -14303896, 12728761, -1622493, 7141596, 11724556, 22761615, -10134141 },
+ },
+ {
+ { 16918416, 11729663, -18083579, 3022987, -31015732, -13339659, -28741185, -12227393, 32851222, 11717399 },
+ { 11166634, 7338049, -6722523, 4531520, -29468672, -7302055, 31474879, 3483633, -1193175, -4030831 },
+ { -185635, 9921305, 31456609, -13536438, -12013818, 13348923, 33142652, 6546660, -19985279, -3948376 },
+ },
+ {
+ { -32460596, 11266712, -11197107, -7899103, 31703694, 3855903, -8537131, -12833048, -30772034, -15486313 },
+ { -18006477, 12709068, 3991746, -6479188, -21491523, -10550425, -31135347, -16049879, 10928917, 3011958 },
+ { -6957757, -15594337, 31696059, 334240, 29576716, 14796075, -30831056, -12805180, 18008031, 10258577 },
+ },
+ {
+ { -22448644, 15655569, 7018479, -4410003, -30314266, -1201591, -1853465, 1367120, 25127874, 6671743 },
+ { 29701166, -14373934, -10878120, 9279288, -17568, 13127210, 21382910, 11042292, 25838796, 4642684 },
+ { -20430234, 14955537, -24126347, 8124619, -5369288, -5990470, 30468147, -13900640, 18423289, 4177476 },
+ },
+ },
+};
diff --git a/lib/ed25519/sc.c b/lib/ed25519/sc.c
new file mode 100755
index 0000000..ca5bad2
--- /dev/null
+++ b/lib/ed25519/sc.c
@@ -0,0 +1,809 @@
+#include "fixedint.h"
+#include "sc.h"
+
+static uint64_t load_3(const unsigned char *in) {
+ uint64_t result;
+
+ result = (uint64_t) in[0];
+ result |= ((uint64_t) in[1]) << 8;
+ result |= ((uint64_t) in[2]) << 16;
+
+ return result;
+}
+
+static uint64_t load_4(const unsigned char *in) {
+ uint64_t result;
+
+ result = (uint64_t) in[0];
+ result |= ((uint64_t) in[1]) << 8;
+ result |= ((uint64_t) in[2]) << 16;
+ result |= ((uint64_t) in[3]) << 24;
+
+ return result;
+}
+
+/*
+Input:
+ s[0]+256*s[1]+...+256^63*s[63] = s
+
+Output:
+ s[0]+256*s[1]+...+256^31*s[31] = s mod l
+ where l = 2^252 + 27742317777372353535851937790883648493.
+ Overwrites s in place.
+*/
+
+void sc_reduce(unsigned char *s) {
+ int64_t s0 = 2097151 & load_3(s);
+ int64_t s1 = 2097151 & (load_4(s + 2) >> 5);
+ int64_t s2 = 2097151 & (load_3(s + 5) >> 2);
+ int64_t s3 = 2097151 & (load_4(s + 7) >> 7);
+ int64_t s4 = 2097151 & (load_4(s + 10) >> 4);
+ int64_t s5 = 2097151 & (load_3(s + 13) >> 1);
+ int64_t s6 = 2097151 & (load_4(s + 15) >> 6);
+ int64_t s7 = 2097151 & (load_3(s + 18) >> 3);
+ int64_t s8 = 2097151 & load_3(s + 21);
+ int64_t s9 = 2097151 & (load_4(s + 23) >> 5);
+ int64_t s10 = 2097151 & (load_3(s + 26) >> 2);
+ int64_t s11 = 2097151 & (load_4(s + 28) >> 7);
+ int64_t s12 = 2097151 & (load_4(s + 31) >> 4);
+ int64_t s13 = 2097151 & (load_3(s + 34) >> 1);
+ int64_t s14 = 2097151 & (load_4(s + 36) >> 6);
+ int64_t s15 = 2097151 & (load_3(s + 39) >> 3);
+ int64_t s16 = 2097151 & load_3(s + 42);
+ int64_t s17 = 2097151 & (load_4(s + 44) >> 5);
+ int64_t s18 = 2097151 & (load_3(s + 47) >> 2);
+ int64_t s19 = 2097151 & (load_4(s + 49) >> 7);
+ int64_t s20 = 2097151 & (load_4(s + 52) >> 4);
+ int64_t s21 = 2097151 & (load_3(s + 55) >> 1);
+ int64_t s22 = 2097151 & (load_4(s + 57) >> 6);
+ int64_t s23 = (load_4(s + 60) >> 3);
+ int64_t carry0;
+ int64_t carry1;
+ int64_t carry2;
+ int64_t carry3;
+ int64_t carry4;
+ int64_t carry5;
+ int64_t carry6;
+ int64_t carry7;
+ int64_t carry8;
+ int64_t carry9;
+ int64_t carry10;
+ int64_t carry11;
+ int64_t carry12;
+ int64_t carry13;
+ int64_t carry14;
+ int64_t carry15;
+ int64_t carry16;
+
+ s11 += s23 * 666643;
+ s12 += s23 * 470296;
+ s13 += s23 * 654183;
+ s14 -= s23 * 997805;
+ s15 += s23 * 136657;
+ s16 -= s23 * 683901;
+ s23 = 0;
+ s10 += s22 * 666643;
+ s11 += s22 * 470296;
+ s12 += s22 * 654183;
+ s13 -= s22 * 997805;
+ s14 += s22 * 136657;
+ s15 -= s22 * 683901;
+ s22 = 0;
+ s9 += s21 * 666643;
+ s10 += s21 * 470296;
+ s11 += s21 * 654183;
+ s12 -= s21 * 997805;
+ s13 += s21 * 136657;
+ s14 -= s21 * 683901;
+ s21 = 0;
+ s8 += s20 * 666643;
+ s9 += s20 * 470296;
+ s10 += s20 * 654183;
+ s11 -= s20 * 997805;
+ s12 += s20 * 136657;
+ s13 -= s20 * 683901;
+ s20 = 0;
+ s7 += s19 * 666643;
+ s8 += s19 * 470296;
+ s9 += s19 * 654183;
+ s10 -= s19 * 997805;
+ s11 += s19 * 136657;
+ s12 -= s19 * 683901;
+ s19 = 0;
+ s6 += s18 * 666643;
+ s7 += s18 * 470296;
+ s8 += s18 * 654183;
+ s9 -= s18 * 997805;
+ s10 += s18 * 136657;
+ s11 -= s18 * 683901;
+ s18 = 0;
+ carry6 = (s6 + (1 << 20)) >> 21;
+ s7 += carry6;
+ s6 -= carry6 << 21;
+ carry8 = (s8 + (1 << 20)) >> 21;
+ s9 += carry8;
+ s8 -= carry8 << 21;
+ carry10 = (s10 + (1 << 20)) >> 21;
+ s11 += carry10;
+ s10 -= carry10 << 21;
+ carry12 = (s12 + (1 << 20)) >> 21;
+ s13 += carry12;
+ s12 -= carry12 << 21;
+ carry14 = (s14 + (1 << 20)) >> 21;
+ s15 += carry14;
+ s14 -= carry14 << 21;
+ carry16 = (s16 + (1 << 20)) >> 21;
+ s17 += carry16;
+ s16 -= carry16 << 21;
+ carry7 = (s7 + (1 << 20)) >> 21;
+ s8 += carry7;
+ s7 -= carry7 << 21;
+ carry9 = (s9 + (1 << 20)) >> 21;
+ s10 += carry9;
+ s9 -= carry9 << 21;
+ carry11 = (s11 + (1 << 20)) >> 21;
+ s12 += carry11;
+ s11 -= carry11 << 21;
+ carry13 = (s13 + (1 << 20)) >> 21;
+ s14 += carry13;
+ s13 -= carry13 << 21;
+ carry15 = (s15 + (1 << 20)) >> 21;
+ s16 += carry15;
+ s15 -= carry15 << 21;
+ s5 += s17 * 666643;
+ s6 += s17 * 470296;
+ s7 += s17 * 654183;
+ s8 -= s17 * 997805;
+ s9 += s17 * 136657;
+ s10 -= s17 * 683901;
+ s17 = 0;
+ s4 += s16 * 666643;
+ s5 += s16 * 470296;
+ s6 += s16 * 654183;
+ s7 -= s16 * 997805;
+ s8 += s16 * 136657;
+ s9 -= s16 * 683901;
+ s16 = 0;
+ s3 += s15 * 666643;
+ s4 += s15 * 470296;
+ s5 += s15 * 654183;
+ s6 -= s15 * 997805;
+ s7 += s15 * 136657;
+ s8 -= s15 * 683901;
+ s15 = 0;
+ s2 += s14 * 666643;
+ s3 += s14 * 470296;
+ s4 += s14 * 654183;
+ s5 -= s14 * 997805;
+ s6 += s14 * 136657;
+ s7 -= s14 * 683901;
+ s14 = 0;
+ s1 += s13 * 666643;
+ s2 += s13 * 470296;
+ s3 += s13 * 654183;
+ s4 -= s13 * 997805;
+ s5 += s13 * 136657;
+ s6 -= s13 * 683901;
+ s13 = 0;
+ s0 += s12 * 666643;
+ s1 += s12 * 470296;
+ s2 += s12 * 654183;
+ s3 -= s12 * 997805;
+ s4 += s12 * 136657;
+ s5 -= s12 * 683901;
+ s12 = 0;
+ carry0 = (s0 + (1 << 20)) >> 21;
+ s1 += carry0;
+ s0 -= carry0 << 21;
+ carry2 = (s2 + (1 << 20)) >> 21;
+ s3 += carry2;
+ s2 -= carry2 << 21;
+ carry4 = (s4 + (1 << 20)) >> 21;
+ s5 += carry4;
+ s4 -= carry4 << 21;
+ carry6 = (s6 + (1 << 20)) >> 21;
+ s7 += carry6;
+ s6 -= carry6 << 21;
+ carry8 = (s8 + (1 << 20)) >> 21;
+ s9 += carry8;
+ s8 -= carry8 << 21;
+ carry10 = (s10 + (1 << 20)) >> 21;
+ s11 += carry10;
+ s10 -= carry10 << 21;
+ carry1 = (s1 + (1 << 20)) >> 21;
+ s2 += carry1;
+ s1 -= carry1 << 21;
+ carry3 = (s3 + (1 << 20)) >> 21;
+ s4 += carry3;
+ s3 -= carry3 << 21;
+ carry5 = (s5 + (1 << 20)) >> 21;
+ s6 += carry5;
+ s5 -= carry5 << 21;
+ carry7 = (s7 + (1 << 20)) >> 21;
+ s8 += carry7;
+ s7 -= carry7 << 21;
+ carry9 = (s9 + (1 << 20)) >> 21;
+ s10 += carry9;
+ s9 -= carry9 << 21;
+ carry11 = (s11 + (1 << 20)) >> 21;
+ s12 += carry11;
+ s11 -= carry11 << 21;
+ s0 += s12 * 666643;
+ s1 += s12 * 470296;
+ s2 += s12 * 654183;
+ s3 -= s12 * 997805;
+ s4 += s12 * 136657;
+ s5 -= s12 * 683901;
+ s12 = 0;
+ carry0 = s0 >> 21;
+ s1 += carry0;
+ s0 -= carry0 << 21;
+ carry1 = s1 >> 21;
+ s2 += carry1;
+ s1 -= carry1 << 21;
+ carry2 = s2 >> 21;
+ s3 += carry2;
+ s2 -= carry2 << 21;
+ carry3 = s3 >> 21;
+ s4 += carry3;
+ s3 -= carry3 << 21;
+ carry4 = s4 >> 21;
+ s5 += carry4;
+ s4 -= carry4 << 21;
+ carry5 = s5 >> 21;
+ s6 += carry5;
+ s5 -= carry5 << 21;
+ carry6 = s6 >> 21;
+ s7 += carry6;
+ s6 -= carry6 << 21;
+ carry7 = s7 >> 21;
+ s8 += carry7;
+ s7 -= carry7 << 21;
+ carry8 = s8 >> 21;
+ s9 += carry8;
+ s8 -= carry8 << 21;
+ carry9 = s9 >> 21;
+ s10 += carry9;
+ s9 -= carry9 << 21;
+ carry10 = s10 >> 21;
+ s11 += carry10;
+ s10 -= carry10 << 21;
+ carry11 = s11 >> 21;
+ s12 += carry11;
+ s11 -= carry11 << 21;
+ s0 += s12 * 666643;
+ s1 += s12 * 470296;
+ s2 += s12 * 654183;
+ s3 -= s12 * 997805;
+ s4 += s12 * 136657;
+ s5 -= s12 * 683901;
+ s12 = 0;
+ carry0 = s0 >> 21;
+ s1 += carry0;
+ s0 -= carry0 << 21;
+ carry1 = s1 >> 21;
+ s2 += carry1;
+ s1 -= carry1 << 21;
+ carry2 = s2 >> 21;
+ s3 += carry2;
+ s2 -= carry2 << 21;
+ carry3 = s3 >> 21;
+ s4 += carry3;
+ s3 -= carry3 << 21;
+ carry4 = s4 >> 21;
+ s5 += carry4;
+ s4 -= carry4 << 21;
+ carry5 = s5 >> 21;
+ s6 += carry5;
+ s5 -= carry5 << 21;
+ carry6 = s6 >> 21;
+ s7 += carry6;
+ s6 -= carry6 << 21;
+ carry7 = s7 >> 21;
+ s8 += carry7;
+ s7 -= carry7 << 21;
+ carry8 = s8 >> 21;
+ s9 += carry8;
+ s8 -= carry8 << 21;
+ carry9 = s9 >> 21;
+ s10 += carry9;
+ s9 -= carry9 << 21;
+ carry10 = s10 >> 21;
+ s11 += carry10;
+ s10 -= carry10 << 21;
+
+ s[0] = (unsigned char) (s0 >> 0);
+ s[1] = (unsigned char) (s0 >> 8);
+ s[2] = (unsigned char) ((s0 >> 16) | (s1 << 5));
+ s[3] = (unsigned char) (s1 >> 3);
+ s[4] = (unsigned char) (s1 >> 11);
+ s[5] = (unsigned char) ((s1 >> 19) | (s2 << 2));
+ s[6] = (unsigned char) (s2 >> 6);
+ s[7] = (unsigned char) ((s2 >> 14) | (s3 << 7));
+ s[8] = (unsigned char) (s3 >> 1);
+ s[9] = (unsigned char) (s3 >> 9);
+ s[10] = (unsigned char) ((s3 >> 17) | (s4 << 4));
+ s[11] = (unsigned char) (s4 >> 4);
+ s[12] = (unsigned char) (s4 >> 12);
+ s[13] = (unsigned char) ((s4 >> 20) | (s5 << 1));
+ s[14] = (unsigned char) (s5 >> 7);
+ s[15] = (unsigned char) ((s5 >> 15) | (s6 << 6));
+ s[16] = (unsigned char) (s6 >> 2);
+ s[17] = (unsigned char) (s6 >> 10);
+ s[18] = (unsigned char) ((s6 >> 18) | (s7 << 3));
+ s[19] = (unsigned char) (s7 >> 5);
+ s[20] = (unsigned char) (s7 >> 13);
+ s[21] = (unsigned char) (s8 >> 0);
+ s[22] = (unsigned char) (s8 >> 8);
+ s[23] = (unsigned char) ((s8 >> 16) | (s9 << 5));
+ s[24] = (unsigned char) (s9 >> 3);
+ s[25] = (unsigned char) (s9 >> 11);
+ s[26] = (unsigned char) ((s9 >> 19) | (s10 << 2));
+ s[27] = (unsigned char) (s10 >> 6);
+ s[28] = (unsigned char) ((s10 >> 14) | (s11 << 7));
+ s[29] = (unsigned char) (s11 >> 1);
+ s[30] = (unsigned char) (s11 >> 9);
+ s[31] = (unsigned char) (s11 >> 17);
+}
+
+
+
+/*
+Input:
+ a[0]+256*a[1]+...+256^31*a[31] = a
+ b[0]+256*b[1]+...+256^31*b[31] = b
+ c[0]+256*c[1]+...+256^31*c[31] = c
+
+Output:
+ s[0]+256*s[1]+...+256^31*s[31] = (ab+c) mod l
+ where l = 2^252 + 27742317777372353535851937790883648493.
+*/
+
+void sc_muladd(unsigned char *s, const unsigned char *a, const unsigned char *b, const unsigned char *c) {
+ int64_t a0 = 2097151 & load_3(a);
+ int64_t a1 = 2097151 & (load_4(a + 2) >> 5);
+ int64_t a2 = 2097151 & (load_3(a + 5) >> 2);
+ int64_t a3 = 2097151 & (load_4(a + 7) >> 7);
+ int64_t a4 = 2097151 & (load_4(a + 10) >> 4);
+ int64_t a5 = 2097151 & (load_3(a + 13) >> 1);
+ int64_t a6 = 2097151 & (load_4(a + 15) >> 6);
+ int64_t a7 = 2097151 & (load_3(a + 18) >> 3);
+ int64_t a8 = 2097151 & load_3(a + 21);
+ int64_t a9 = 2097151 & (load_4(a + 23) >> 5);
+ int64_t a10 = 2097151 & (load_3(a + 26) >> 2);
+ int64_t a11 = (load_4(a + 28) >> 7);
+ int64_t b0 = 2097151 & load_3(b);
+ int64_t b1 = 2097151 & (load_4(b + 2) >> 5);
+ int64_t b2 = 2097151 & (load_3(b + 5) >> 2);
+ int64_t b3 = 2097151 & (load_4(b + 7) >> 7);
+ int64_t b4 = 2097151 & (load_4(b + 10) >> 4);
+ int64_t b5 = 2097151 & (load_3(b + 13) >> 1);
+ int64_t b6 = 2097151 & (load_4(b + 15) >> 6);
+ int64_t b7 = 2097151 & (load_3(b + 18) >> 3);
+ int64_t b8 = 2097151 & load_3(b + 21);
+ int64_t b9 = 2097151 & (load_4(b + 23) >> 5);
+ int64_t b10 = 2097151 & (load_3(b + 26) >> 2);
+ int64_t b11 = (load_4(b + 28) >> 7);
+ int64_t c0 = 2097151 & load_3(c);
+ int64_t c1 = 2097151 & (load_4(c + 2) >> 5);
+ int64_t c2 = 2097151 & (load_3(c + 5) >> 2);
+ int64_t c3 = 2097151 & (load_4(c + 7) >> 7);
+ int64_t c4 = 2097151 & (load_4(c + 10) >> 4);
+ int64_t c5 = 2097151 & (load_3(c + 13) >> 1);
+ int64_t c6 = 2097151 & (load_4(c + 15) >> 6);
+ int64_t c7 = 2097151 & (load_3(c + 18) >> 3);
+ int64_t c8 = 2097151 & load_3(c + 21);
+ int64_t c9 = 2097151 & (load_4(c + 23) >> 5);
+ int64_t c10 = 2097151 & (load_3(c + 26) >> 2);
+ int64_t c11 = (load_4(c + 28) >> 7);
+ int64_t s0;
+ int64_t s1;
+ int64_t s2;
+ int64_t s3;
+ int64_t s4;
+ int64_t s5;
+ int64_t s6;
+ int64_t s7;
+ int64_t s8;
+ int64_t s9;
+ int64_t s10;
+ int64_t s11;
+ int64_t s12;
+ int64_t s13;
+ int64_t s14;
+ int64_t s15;
+ int64_t s16;
+ int64_t s17;
+ int64_t s18;
+ int64_t s19;
+ int64_t s20;
+ int64_t s21;
+ int64_t s22;
+ int64_t s23;
+ int64_t carry0;
+ int64_t carry1;
+ int64_t carry2;
+ int64_t carry3;
+ int64_t carry4;
+ int64_t carry5;
+ int64_t carry6;
+ int64_t carry7;
+ int64_t carry8;
+ int64_t carry9;
+ int64_t carry10;
+ int64_t carry11;
+ int64_t carry12;
+ int64_t carry13;
+ int64_t carry14;
+ int64_t carry15;
+ int64_t carry16;
+ int64_t carry17;
+ int64_t carry18;
+ int64_t carry19;
+ int64_t carry20;
+ int64_t carry21;
+ int64_t carry22;
+
+ s0 = c0 + a0 * b0;
+ s1 = c1 + a0 * b1 + a1 * b0;
+ s2 = c2 + a0 * b2 + a1 * b1 + a2 * b0;
+ s3 = c3 + a0 * b3 + a1 * b2 + a2 * b1 + a3 * b0;
+ s4 = c4 + a0 * b4 + a1 * b3 + a2 * b2 + a3 * b1 + a4 * b0;
+ s5 = c5 + a0 * b5 + a1 * b4 + a2 * b3 + a3 * b2 + a4 * b1 + a5 * b0;
+ s6 = c6 + a0 * b6 + a1 * b5 + a2 * b4 + a3 * b3 + a4 * b2 + a5 * b1 + a6 * b0;
+ s7 = c7 + a0 * b7 + a1 * b6 + a2 * b5 + a3 * b4 + a4 * b3 + a5 * b2 + a6 * b1 + a7 * b0;
+ s8 = c8 + a0 * b8 + a1 * b7 + a2 * b6 + a3 * b5 + a4 * b4 + a5 * b3 + a6 * b2 + a7 * b1 + a8 * b0;
+ s9 = c9 + a0 * b9 + a1 * b8 + a2 * b7 + a3 * b6 + a4 * b5 + a5 * b4 + a6 * b3 + a7 * b2 + a8 * b1 + a9 * b0;
+ s10 = c10 + a0 * b10 + a1 * b9 + a2 * b8 + a3 * b7 + a4 * b6 + a5 * b5 + a6 * b4 + a7 * b3 + a8 * b2 + a9 * b1 + a10 * b0;
+ s11 = c11 + a0 * b11 + a1 * b10 + a2 * b9 + a3 * b8 + a4 * b7 + a5 * b6 + a6 * b5 + a7 * b4 + a8 * b3 + a9 * b2 + a10 * b1 + a11 * b0;
+ s12 = a1 * b11 + a2 * b10 + a3 * b9 + a4 * b8 + a5 * b7 + a6 * b6 + a7 * b5 + a8 * b4 + a9 * b3 + a10 * b2 + a11 * b1;
+ s13 = a2 * b11 + a3 * b10 + a4 * b9 + a5 * b8 + a6 * b7 + a7 * b6 + a8 * b5 + a9 * b4 + a10 * b3 + a11 * b2;
+ s14 = a3 * b11 + a4 * b10 + a5 * b9 + a6 * b8 + a7 * b7 + a8 * b6 + a9 * b5 + a10 * b4 + a11 * b3;
+ s15 = a4 * b11 + a5 * b10 + a6 * b9 + a7 * b8 + a8 * b7 + a9 * b6 + a10 * b5 + a11 * b4;
+ s16 = a5 * b11 + a6 * b10 + a7 * b9 + a8 * b8 + a9 * b7 + a10 * b6 + a11 * b5;
+ s17 = a6 * b11 + a7 * b10 + a8 * b9 + a9 * b8 + a10 * b7 + a11 * b6;
+ s18 = a7 * b11 + a8 * b10 + a9 * b9 + a10 * b8 + a11 * b7;
+ s19 = a8 * b11 + a9 * b10 + a10 * b9 + a11 * b8;
+ s20 = a9 * b11 + a10 * b10 + a11 * b9;
+ s21 = a10 * b11 + a11 * b10;
+ s22 = a11 * b11;
+ s23 = 0;
+ carry0 = (s0 + (1 << 20)) >> 21;
+ s1 += carry0;
+ s0 -= carry0 << 21;
+ carry2 = (s2 + (1 << 20)) >> 21;
+ s3 += carry2;
+ s2 -= carry2 << 21;
+ carry4 = (s4 + (1 << 20)) >> 21;
+ s5 += carry4;
+ s4 -= carry4 << 21;
+ carry6 = (s6 + (1 << 20)) >> 21;
+ s7 += carry6;
+ s6 -= carry6 << 21;
+ carry8 = (s8 + (1 << 20)) >> 21;
+ s9 += carry8;
+ s8 -= carry8 << 21;
+ carry10 = (s10 + (1 << 20)) >> 21;
+ s11 += carry10;
+ s10 -= carry10 << 21;
+ carry12 = (s12 + (1 << 20)) >> 21;
+ s13 += carry12;
+ s12 -= carry12 << 21;
+ carry14 = (s14 + (1 << 20)) >> 21;
+ s15 += carry14;
+ s14 -= carry14 << 21;
+ carry16 = (s16 + (1 << 20)) >> 21;
+ s17 += carry16;
+ s16 -= carry16 << 21;
+ carry18 = (s18 + (1 << 20)) >> 21;
+ s19 += carry18;
+ s18 -= carry18 << 21;
+ carry20 = (s20 + (1 << 20)) >> 21;
+ s21 += carry20;
+ s20 -= carry20 << 21;
+ carry22 = (s22 + (1 << 20)) >> 21;
+ s23 += carry22;
+ s22 -= carry22 << 21;
+ carry1 = (s1 + (1 << 20)) >> 21;
+ s2 += carry1;
+ s1 -= carry1 << 21;
+ carry3 = (s3 + (1 << 20)) >> 21;
+ s4 += carry3;
+ s3 -= carry3 << 21;
+ carry5 = (s5 + (1 << 20)) >> 21;
+ s6 += carry5;
+ s5 -= carry5 << 21;
+ carry7 = (s7 + (1 << 20)) >> 21;
+ s8 += carry7;
+ s7 -= carry7 << 21;
+ carry9 = (s9 + (1 << 20)) >> 21;
+ s10 += carry9;
+ s9 -= carry9 << 21;
+ carry11 = (s11 + (1 << 20)) >> 21;
+ s12 += carry11;
+ s11 -= carry11 << 21;
+ carry13 = (s13 + (1 << 20)) >> 21;
+ s14 += carry13;
+ s13 -= carry13 << 21;
+ carry15 = (s15 + (1 << 20)) >> 21;
+ s16 += carry15;
+ s15 -= carry15 << 21;
+ carry17 = (s17 + (1 << 20)) >> 21;
+ s18 += carry17;
+ s17 -= carry17 << 21;
+ carry19 = (s19 + (1 << 20)) >> 21;
+ s20 += carry19;
+ s19 -= carry19 << 21;
+ carry21 = (s21 + (1 << 20)) >> 21;
+ s22 += carry21;
+ s21 -= carry21 << 21;
+ s11 += s23 * 666643;
+ s12 += s23 * 470296;
+ s13 += s23 * 654183;
+ s14 -= s23 * 997805;
+ s15 += s23 * 136657;
+ s16 -= s23 * 683901;
+ s23 = 0;
+ s10 += s22 * 666643;
+ s11 += s22 * 470296;
+ s12 += s22 * 654183;
+ s13 -= s22 * 997805;
+ s14 += s22 * 136657;
+ s15 -= s22 * 683901;
+ s22 = 0;
+ s9 += s21 * 666643;
+ s10 += s21 * 470296;
+ s11 += s21 * 654183;
+ s12 -= s21 * 997805;
+ s13 += s21 * 136657;
+ s14 -= s21 * 683901;
+ s21 = 0;
+ s8 += s20 * 666643;
+ s9 += s20 * 470296;
+ s10 += s20 * 654183;
+ s11 -= s20 * 997805;
+ s12 += s20 * 136657;
+ s13 -= s20 * 683901;
+ s20 = 0;
+ s7 += s19 * 666643;
+ s8 += s19 * 470296;
+ s9 += s19 * 654183;
+ s10 -= s19 * 997805;
+ s11 += s19 * 136657;
+ s12 -= s19 * 683901;
+ s19 = 0;
+ s6 += s18 * 666643;
+ s7 += s18 * 470296;
+ s8 += s18 * 654183;
+ s9 -= s18 * 997805;
+ s10 += s18 * 136657;
+ s11 -= s18 * 683901;
+ s18 = 0;
+ carry6 = (s6 + (1 << 20)) >> 21;
+ s7 += carry6;
+ s6 -= carry6 << 21;
+ carry8 = (s8 + (1 << 20)) >> 21;
+ s9 += carry8;
+ s8 -= carry8 << 21;
+ carry10 = (s10 + (1 << 20)) >> 21;
+ s11 += carry10;
+ s10 -= carry10 << 21;
+ carry12 = (s12 + (1 << 20)) >> 21;
+ s13 += carry12;
+ s12 -= carry12 << 21;
+ carry14 = (s14 + (1 << 20)) >> 21;
+ s15 += carry14;
+ s14 -= carry14 << 21;
+ carry16 = (s16 + (1 << 20)) >> 21;
+ s17 += carry16;
+ s16 -= carry16 << 21;
+ carry7 = (s7 + (1 << 20)) >> 21;
+ s8 += carry7;
+ s7 -= carry7 << 21;
+ carry9 = (s9 + (1 << 20)) >> 21;
+ s10 += carry9;
+ s9 -= carry9 << 21;
+ carry11 = (s11 + (1 << 20)) >> 21;
+ s12 += carry11;
+ s11 -= carry11 << 21;
+ carry13 = (s13 + (1 << 20)) >> 21;
+ s14 += carry13;
+ s13 -= carry13 << 21;
+ carry15 = (s15 + (1 << 20)) >> 21;
+ s16 += carry15;
+ s15 -= carry15 << 21;
+ s5 += s17 * 666643;
+ s6 += s17 * 470296;
+ s7 += s17 * 654183;
+ s8 -= s17 * 997805;
+ s9 += s17 * 136657;
+ s10 -= s17 * 683901;
+ s17 = 0;
+ s4 += s16 * 666643;
+ s5 += s16 * 470296;
+ s6 += s16 * 654183;
+ s7 -= s16 * 997805;
+ s8 += s16 * 136657;
+ s9 -= s16 * 683901;
+ s16 = 0;
+ s3 += s15 * 666643;
+ s4 += s15 * 470296;
+ s5 += s15 * 654183;
+ s6 -= s15 * 997805;
+ s7 += s15 * 136657;
+ s8 -= s15 * 683901;
+ s15 = 0;
+ s2 += s14 * 666643;
+ s3 += s14 * 470296;
+ s4 += s14 * 654183;
+ s5 -= s14 * 997805;
+ s6 += s14 * 136657;
+ s7 -= s14 * 683901;
+ s14 = 0;
+ s1 += s13 * 666643;
+ s2 += s13 * 470296;
+ s3 += s13 * 654183;
+ s4 -= s13 * 997805;
+ s5 += s13 * 136657;
+ s6 -= s13 * 683901;
+ s13 = 0;
+ s0 += s12 * 666643;
+ s1 += s12 * 470296;
+ s2 += s12 * 654183;
+ s3 -= s12 * 997805;
+ s4 += s12 * 136657;
+ s5 -= s12 * 683901;
+ s12 = 0;
+ carry0 = (s0 + (1 << 20)) >> 21;
+ s1 += carry0;
+ s0 -= carry0 << 21;
+ carry2 = (s2 + (1 << 20)) >> 21;
+ s3 += carry2;
+ s2 -= carry2 << 21;
+ carry4 = (s4 + (1 << 20)) >> 21;
+ s5 += carry4;
+ s4 -= carry4 << 21;
+ carry6 = (s6 + (1 << 20)) >> 21;
+ s7 += carry6;
+ s6 -= carry6 << 21;
+ carry8 = (s8 + (1 << 20)) >> 21;
+ s9 += carry8;
+ s8 -= carry8 << 21;
+ carry10 = (s10 + (1 << 20)) >> 21;
+ s11 += carry10;
+ s10 -= carry10 << 21;
+ carry1 = (s1 + (1 << 20)) >> 21;
+ s2 += carry1;
+ s1 -= carry1 << 21;
+ carry3 = (s3 + (1 << 20)) >> 21;
+ s4 += carry3;
+ s3 -= carry3 << 21;
+ carry5 = (s5 + (1 << 20)) >> 21;
+ s6 += carry5;
+ s5 -= carry5 << 21;
+ carry7 = (s7 + (1 << 20)) >> 21;
+ s8 += carry7;
+ s7 -= carry7 << 21;
+ carry9 = (s9 + (1 << 20)) >> 21;
+ s10 += carry9;
+ s9 -= carry9 << 21;
+ carry11 = (s11 + (1 << 20)) >> 21;
+ s12 += carry11;
+ s11 -= carry11 << 21;
+ s0 += s12 * 666643;
+ s1 += s12 * 470296;
+ s2 += s12 * 654183;
+ s3 -= s12 * 997805;
+ s4 += s12 * 136657;
+ s5 -= s12 * 683901;
+ s12 = 0;
+ carry0 = s0 >> 21;
+ s1 += carry0;
+ s0 -= carry0 << 21;
+ carry1 = s1 >> 21;
+ s2 += carry1;
+ s1 -= carry1 << 21;
+ carry2 = s2 >> 21;
+ s3 += carry2;
+ s2 -= carry2 << 21;
+ carry3 = s3 >> 21;
+ s4 += carry3;
+ s3 -= carry3 << 21;
+ carry4 = s4 >> 21;
+ s5 += carry4;
+ s4 -= carry4 << 21;
+ carry5 = s5 >> 21;
+ s6 += carry5;
+ s5 -= carry5 << 21;
+ carry6 = s6 >> 21;
+ s7 += carry6;
+ s6 -= carry6 << 21;
+ carry7 = s7 >> 21;
+ s8 += carry7;
+ s7 -= carry7 << 21;
+ carry8 = s8 >> 21;
+ s9 += carry8;
+ s8 -= carry8 << 21;
+ carry9 = s9 >> 21;
+ s10 += carry9;
+ s9 -= carry9 << 21;
+ carry10 = s10 >> 21;
+ s11 += carry10;
+ s10 -= carry10 << 21;
+ carry11 = s11 >> 21;
+ s12 += carry11;
+ s11 -= carry11 << 21;
+ s0 += s12 * 666643;
+ s1 += s12 * 470296;
+ s2 += s12 * 654183;
+ s3 -= s12 * 997805;
+ s4 += s12 * 136657;
+ s5 -= s12 * 683901;
+ s12 = 0;
+ carry0 = s0 >> 21;
+ s1 += carry0;
+ s0 -= carry0 << 21;
+ carry1 = s1 >> 21;
+ s2 += carry1;
+ s1 -= carry1 << 21;
+ carry2 = s2 >> 21;
+ s3 += carry2;
+ s2 -= carry2 << 21;
+ carry3 = s3 >> 21;
+ s4 += carry3;
+ s3 -= carry3 << 21;
+ carry4 = s4 >> 21;
+ s5 += carry4;
+ s4 -= carry4 << 21;
+ carry5 = s5 >> 21;
+ s6 += carry5;
+ s5 -= carry5 << 21;
+ carry6 = s6 >> 21;
+ s7 += carry6;
+ s6 -= carry6 << 21;
+ carry7 = s7 >> 21;
+ s8 += carry7;
+ s7 -= carry7 << 21;
+ carry8 = s8 >> 21;
+ s9 += carry8;
+ s8 -= carry8 << 21;
+ carry9 = s9 >> 21;
+ s10 += carry9;
+ s9 -= carry9 << 21;
+ carry10 = s10 >> 21;
+ s11 += carry10;
+ s10 -= carry10 << 21;
+
+ s[0] = (unsigned char) (s0 >> 0);
+ s[1] = (unsigned char) (s0 >> 8);
+ s[2] = (unsigned char) ((s0 >> 16) | (s1 << 5));
+ s[3] = (unsigned char) (s1 >> 3);
+ s[4] = (unsigned char) (s1 >> 11);
+ s[5] = (unsigned char) ((s1 >> 19) | (s2 << 2));
+ s[6] = (unsigned char) (s2 >> 6);
+ s[7] = (unsigned char) ((s2 >> 14) | (s3 << 7));
+ s[8] = (unsigned char) (s3 >> 1);
+ s[9] = (unsigned char) (s3 >> 9);
+ s[10] = (unsigned char) ((s3 >> 17) | (s4 << 4));
+ s[11] = (unsigned char) (s4 >> 4);
+ s[12] = (unsigned char) (s4 >> 12);
+ s[13] = (unsigned char) ((s4 >> 20) | (s5 << 1));
+ s[14] = (unsigned char) (s5 >> 7);
+ s[15] = (unsigned char) ((s5 >> 15) | (s6 << 6));
+ s[16] = (unsigned char) (s6 >> 2);
+ s[17] = (unsigned char) (s6 >> 10);
+ s[18] = (unsigned char) ((s6 >> 18) | (s7 << 3));
+ s[19] = (unsigned char) (s7 >> 5);
+ s[20] = (unsigned char) (s7 >> 13);
+ s[21] = (unsigned char) (s8 >> 0);
+ s[22] = (unsigned char) (s8 >> 8);
+ s[23] = (unsigned char) ((s8 >> 16) | (s9 << 5));
+ s[24] = (unsigned char) (s9 >> 3);
+ s[25] = (unsigned char) (s9 >> 11);
+ s[26] = (unsigned char) ((s9 >> 19) | (s10 << 2));
+ s[27] = (unsigned char) (s10 >> 6);
+ s[28] = (unsigned char) ((s10 >> 14) | (s11 << 7));
+ s[29] = (unsigned char) (s11 >> 1);
+ s[30] = (unsigned char) (s11 >> 9);
+ s[31] = (unsigned char) (s11 >> 17);
+}
diff --git a/lib/ed25519/sc.h b/lib/ed25519/sc.h
new file mode 100755
index 0000000..e29e7fa
--- /dev/null
+++ b/lib/ed25519/sc.h
@@ -0,0 +1,12 @@
+#ifndef SC_H
+#define SC_H
+
+/*
+The set of scalars is \Z/l
+where l = 2^252 + 27742317777372353535851937790883648493.
+*/
+
+void sc_reduce(unsigned char *s);
+void sc_muladd(unsigned char *s, const unsigned char *a, const unsigned char *b, const unsigned char *c);
+
+#endif
diff --git a/lib/ed25519/seed.c b/lib/ed25519/seed.c
new file mode 100755
index 0000000..11a2e3e
--- /dev/null
+++ b/lib/ed25519/seed.c
@@ -0,0 +1,40 @@
+#include "ed25519.h"
+
+#ifndef ED25519_NO_SEED
+
+#ifdef _WIN32
+#include
+#include
+#else
+#include
+#endif
+
+int ed25519_create_seed(unsigned char *seed) {
+#ifdef _WIN32
+ HCRYPTPROV prov;
+
+ if (!CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
+ return 1;
+ }
+
+ if (!CryptGenRandom(prov, 32, seed)) {
+ CryptReleaseContext(prov, 0);
+ return 1;
+ }
+
+ CryptReleaseContext(prov, 0);
+#else
+ FILE *f = fopen("/dev/urandom", "rb");
+
+ if (f == NULL) {
+ return 1;
+ }
+
+ fread(seed, 1, 32, f);
+ fclose(f);
+#endif
+
+ return 0;
+}
+
+#endif
diff --git a/lib/ed25519/sha512.c b/lib/ed25519/sha512.c
new file mode 100755
index 0000000..cb8ae71
--- /dev/null
+++ b/lib/ed25519/sha512.c
@@ -0,0 +1,275 @@
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis
+ *
+ * LibTomCrypt is a library that provides various cryptographic
+ * algorithms in a highly modular and flexible manner.
+ *
+ * The library is free for all purposes without any express
+ * guarantee it works.
+ *
+ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org
+ */
+
+#include "fixedint.h"
+#include "sha512.h"
+
+/* the K array */
+static const uint64_t K[80] = {
+ UINT64_C(0x428a2f98d728ae22), UINT64_C(0x7137449123ef65cd),
+ UINT64_C(0xb5c0fbcfec4d3b2f), UINT64_C(0xe9b5dba58189dbbc),
+ UINT64_C(0x3956c25bf348b538), UINT64_C(0x59f111f1b605d019),
+ UINT64_C(0x923f82a4af194f9b), UINT64_C(0xab1c5ed5da6d8118),
+ UINT64_C(0xd807aa98a3030242), UINT64_C(0x12835b0145706fbe),
+ UINT64_C(0x243185be4ee4b28c), UINT64_C(0x550c7dc3d5ffb4e2),
+ UINT64_C(0x72be5d74f27b896f), UINT64_C(0x80deb1fe3b1696b1),
+ UINT64_C(0x9bdc06a725c71235), UINT64_C(0xc19bf174cf692694),
+ UINT64_C(0xe49b69c19ef14ad2), UINT64_C(0xefbe4786384f25e3),
+ UINT64_C(0x0fc19dc68b8cd5b5), UINT64_C(0x240ca1cc77ac9c65),
+ UINT64_C(0x2de92c6f592b0275), UINT64_C(0x4a7484aa6ea6e483),
+ UINT64_C(0x5cb0a9dcbd41fbd4), UINT64_C(0x76f988da831153b5),
+ UINT64_C(0x983e5152ee66dfab), UINT64_C(0xa831c66d2db43210),
+ UINT64_C(0xb00327c898fb213f), UINT64_C(0xbf597fc7beef0ee4),
+ UINT64_C(0xc6e00bf33da88fc2), UINT64_C(0xd5a79147930aa725),
+ UINT64_C(0x06ca6351e003826f), UINT64_C(0x142929670a0e6e70),
+ UINT64_C(0x27b70a8546d22ffc), UINT64_C(0x2e1b21385c26c926),
+ UINT64_C(0x4d2c6dfc5ac42aed), UINT64_C(0x53380d139d95b3df),
+ UINT64_C(0x650a73548baf63de), UINT64_C(0x766a0abb3c77b2a8),
+ UINT64_C(0x81c2c92e47edaee6), UINT64_C(0x92722c851482353b),
+ UINT64_C(0xa2bfe8a14cf10364), UINT64_C(0xa81a664bbc423001),
+ UINT64_C(0xc24b8b70d0f89791), UINT64_C(0xc76c51a30654be30),
+ UINT64_C(0xd192e819d6ef5218), UINT64_C(0xd69906245565a910),
+ UINT64_C(0xf40e35855771202a), UINT64_C(0x106aa07032bbd1b8),
+ UINT64_C(0x19a4c116b8d2d0c8), UINT64_C(0x1e376c085141ab53),
+ UINT64_C(0x2748774cdf8eeb99), UINT64_C(0x34b0bcb5e19b48a8),
+ UINT64_C(0x391c0cb3c5c95a63), UINT64_C(0x4ed8aa4ae3418acb),
+ UINT64_C(0x5b9cca4f7763e373), UINT64_C(0x682e6ff3d6b2b8a3),
+ UINT64_C(0x748f82ee5defb2fc), UINT64_C(0x78a5636f43172f60),
+ UINT64_C(0x84c87814a1f0ab72), UINT64_C(0x8cc702081a6439ec),
+ UINT64_C(0x90befffa23631e28), UINT64_C(0xa4506cebde82bde9),
+ UINT64_C(0xbef9a3f7b2c67915), UINT64_C(0xc67178f2e372532b),
+ UINT64_C(0xca273eceea26619c), UINT64_C(0xd186b8c721c0c207),
+ UINT64_C(0xeada7dd6cde0eb1e), UINT64_C(0xf57d4f7fee6ed178),
+ UINT64_C(0x06f067aa72176fba), UINT64_C(0x0a637dc5a2c898a6),
+ UINT64_C(0x113f9804bef90dae), UINT64_C(0x1b710b35131c471b),
+ UINT64_C(0x28db77f523047d84), UINT64_C(0x32caab7b40c72493),
+ UINT64_C(0x3c9ebe0a15c9bebc), UINT64_C(0x431d67c49c100d4c),
+ UINT64_C(0x4cc5d4becb3e42b6), UINT64_C(0x597f299cfc657e2a),
+ UINT64_C(0x5fcb6fab3ad6faec), UINT64_C(0x6c44198c4a475817)
+};
+
+/* Various logical functions */
+
+#define ROR64c(x, y) \
+ ( ((((x)&UINT64_C(0xFFFFFFFFFFFFFFFF))>>((uint64_t)(y)&UINT64_C(63))) | \
+ ((x)<<((uint64_t)(64-((y)&UINT64_C(63)))))) & UINT64_C(0xFFFFFFFFFFFFFFFF))
+
+#define STORE64H(x, y) \
+ { (y)[0] = (unsigned char)(((x)>>56)&255); (y)[1] = (unsigned char)(((x)>>48)&255); \
+ (y)[2] = (unsigned char)(((x)>>40)&255); (y)[3] = (unsigned char)(((x)>>32)&255); \
+ (y)[4] = (unsigned char)(((x)>>24)&255); (y)[5] = (unsigned char)(((x)>>16)&255); \
+ (y)[6] = (unsigned char)(((x)>>8)&255); (y)[7] = (unsigned char)((x)&255); }
+
+#define LOAD64H(x, y) \
+ { x = (((uint64_t)((y)[0] & 255))<<56)|(((uint64_t)((y)[1] & 255))<<48) | \
+ (((uint64_t)((y)[2] & 255))<<40)|(((uint64_t)((y)[3] & 255))<<32) | \
+ (((uint64_t)((y)[4] & 255))<<24)|(((uint64_t)((y)[5] & 255))<<16) | \
+ (((uint64_t)((y)[6] & 255))<<8)|(((uint64_t)((y)[7] & 255))); }
+
+
+#define Ch(x,y,z) (z ^ (x & (y ^ z)))
+#define Maj(x,y,z) (((x | y) & z) | (x & y))
+#define S(x, n) ROR64c(x, n)
+#define R(x, n) (((x) &UINT64_C(0xFFFFFFFFFFFFFFFF))>>((uint64_t)n))
+#define Sigma0(x) (S(x, 28) ^ S(x, 34) ^ S(x, 39))
+#define Sigma1(x) (S(x, 14) ^ S(x, 18) ^ S(x, 41))
+#define Gamma0(x) (S(x, 1) ^ S(x, 8) ^ R(x, 7))
+#define Gamma1(x) (S(x, 19) ^ S(x, 61) ^ R(x, 6))
+#ifndef MIN
+ #define MIN(x, y) ( ((x)<(y))?(x):(y) )
+#endif
+
+/* compress 1024-bits */
+static int sha512_compress(sha512_context *md, unsigned char *buf)
+{
+ uint64_t S[8], W[80], t0, t1;
+ int i;
+
+ /* copy state into S */
+ for (i = 0; i < 8; i++) {
+ S[i] = md->state[i];
+ }
+
+ /* copy the state into 1024-bits into W[0..15] */
+ for (i = 0; i < 16; i++) {
+ LOAD64H(W[i], buf + (8*i));
+ }
+
+ /* fill W[16..79] */
+ for (i = 16; i < 80; i++) {
+ W[i] = Gamma1(W[i - 2]) + W[i - 7] + Gamma0(W[i - 15]) + W[i - 16];
+ }
+
+/* Compress */
+ #define RND(a,b,c,d,e,f,g,h,i) \
+ t0 = h + Sigma1(e) + Ch(e, f, g) + K[i] + W[i]; \
+ t1 = Sigma0(a) + Maj(a, b, c);\
+ d += t0; \
+ h = t0 + t1;
+
+ for (i = 0; i < 80; i += 8) {
+ RND(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],i+0);
+ RND(S[7],S[0],S[1],S[2],S[3],S[4],S[5],S[6],i+1);
+ RND(S[6],S[7],S[0],S[1],S[2],S[3],S[4],S[5],i+2);
+ RND(S[5],S[6],S[7],S[0],S[1],S[2],S[3],S[4],i+3);
+ RND(S[4],S[5],S[6],S[7],S[0],S[1],S[2],S[3],i+4);
+ RND(S[3],S[4],S[5],S[6],S[7],S[0],S[1],S[2],i+5);
+ RND(S[2],S[3],S[4],S[5],S[6],S[7],S[0],S[1],i+6);
+ RND(S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[0],i+7);
+ }
+
+ #undef RND
+
+
+
+ /* feedback */
+ for (i = 0; i < 8; i++) {
+ md->state[i] = md->state[i] + S[i];
+ }
+
+ return 0;
+}
+
+
+/**
+ Initialize the hash state
+ @param md The hash state you wish to initialize
+ @return 0 if successful
+*/
+int sha512_init(sha512_context * md) {
+ if (md == NULL) return 1;
+
+ md->curlen = 0;
+ md->length = 0;
+ md->state[0] = UINT64_C(0x6a09e667f3bcc908);
+ md->state[1] = UINT64_C(0xbb67ae8584caa73b);
+ md->state[2] = UINT64_C(0x3c6ef372fe94f82b);
+ md->state[3] = UINT64_C(0xa54ff53a5f1d36f1);
+ md->state[4] = UINT64_C(0x510e527fade682d1);
+ md->state[5] = UINT64_C(0x9b05688c2b3e6c1f);
+ md->state[6] = UINT64_C(0x1f83d9abfb41bd6b);
+ md->state[7] = UINT64_C(0x5be0cd19137e2179);
+
+ return 0;
+}
+
+/**
+ Process a block of memory though the hash
+ @param md The hash state
+ @param in The data to hash
+ @param inlen The length of the data (octets)
+ @return 0 if successful
+*/
+int sha512_update (sha512_context * md, const unsigned char *in, size_t inlen)
+{
+ size_t n;
+ size_t i;
+ int err;
+ if (md == NULL) return 1;
+ if (in == NULL) return 1;
+ if (md->curlen > sizeof(md->buf)) {
+ return 1;
+ }
+ while (inlen > 0) {
+ if (md->curlen == 0 && inlen >= 128) {
+ if ((err = sha512_compress (md, (unsigned char *)in)) != 0) {
+ return err;
+ }
+ md->length += 128 * 8;
+ in += 128;
+ inlen -= 128;
+ } else {
+ n = MIN(inlen, (128 - md->curlen));
+
+ for (i = 0; i < n; i++) {
+ md->buf[i + md->curlen] = in[i];
+ }
+
+
+ md->curlen += n;
+ in += n;
+ inlen -= n;
+ if (md->curlen == 128) {
+ if ((err = sha512_compress (md, md->buf)) != 0) {
+ return err;
+ }
+ md->length += 8*128;
+ md->curlen = 0;
+ }
+ }
+ }
+ return 0;
+}
+
+/**
+ Terminate the hash to get the digest
+ @param md The hash state
+ @param out [out] The destination of the hash (64 bytes)
+ @return 0 if successful
+*/
+ int sha512_final(sha512_context * md, unsigned char *out)
+ {
+ int i;
+
+ if (md == NULL) return 1;
+ if (out == NULL) return 1;
+
+ if (md->curlen >= sizeof(md->buf)) {
+ return 1;
+ }
+
+ /* increase the length of the message */
+ md->length += md->curlen * UINT64_C(8);
+
+ /* append the '1' bit */
+ md->buf[md->curlen++] = (unsigned char)0x80;
+
+ /* if the length is currently above 112 bytes we append zeros
+ * then compress. Then we can fall back to padding zeros and length
+ * encoding like normal.
+ */
+ if (md->curlen > 112) {
+ while (md->curlen < 128) {
+ md->buf[md->curlen++] = (unsigned char)0;
+ }
+ sha512_compress(md, md->buf);
+ md->curlen = 0;
+ }
+
+ /* pad upto 120 bytes of zeroes
+ * note: that from 112 to 120 is the 64 MSB of the length. We assume that you won't hash
+ * > 2^64 bits of data... :-)
+ */
+while (md->curlen < 120) {
+ md->buf[md->curlen++] = (unsigned char)0;
+}
+
+ /* store length */
+STORE64H(md->length, md->buf+120);
+sha512_compress(md, md->buf);
+
+ /* copy output */
+for (i = 0; i < 8; i++) {
+ STORE64H(md->state[i], out+(8*i));
+}
+
+return 0;
+}
+
+int sha512(const unsigned char *message, size_t message_len, unsigned char *out)
+{
+ sha512_context ctx;
+ int ret;
+ if ((ret = sha512_init(&ctx))) return ret;
+ if ((ret = sha512_update(&ctx, message, message_len))) return ret;
+ if ((ret = sha512_final(&ctx, out))) return ret;
+ return 0;
+}
diff --git a/lib/ed25519/sha512.h b/lib/ed25519/sha512.h
new file mode 100755
index 0000000..3649cba
--- /dev/null
+++ b/lib/ed25519/sha512.h
@@ -0,0 +1,28 @@
+#ifndef SHA512_H
+#define SHA512_H
+
+#include
+
+#include "fixedint.h"
+
+/* state */
+typedef struct sha512_context_ {
+ uint64_t length, state[8];
+ size_t curlen;
+ unsigned char buf[128];
+} sha512_context;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int sha512_init(sha512_context * md);
+int sha512_final(sha512_context * md, unsigned char *out);
+int sha512_update(sha512_context * md, const unsigned char *in, size_t inlen);
+int sha512(const unsigned char *message, size_t message_len, unsigned char *out);
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif
diff --git a/lib/ed25519/sign.c b/lib/ed25519/sign.c
new file mode 100755
index 0000000..199a839
--- /dev/null
+++ b/lib/ed25519/sign.c
@@ -0,0 +1,31 @@
+#include "ed25519.h"
+#include "sha512.h"
+#include "ge.h"
+#include "sc.h"
+
+
+void ed25519_sign(unsigned char *signature, const unsigned char *message, size_t message_len, const unsigned char *public_key, const unsigned char *private_key) {
+ sha512_context hash;
+ unsigned char hram[64];
+ unsigned char r[64];
+ ge_p3 R;
+
+
+ sha512_init(&hash);
+ sha512_update(&hash, private_key + 32, 32);
+ sha512_update(&hash, message, message_len);
+ sha512_final(&hash, r);
+
+ sc_reduce(r);
+ ge_scalarmult_base(&R, r);
+ ge_p3_tobytes(signature, &R);
+
+ sha512_init(&hash);
+ sha512_update(&hash, signature, 32);
+ sha512_update(&hash, public_key, 32);
+ sha512_update(&hash, message, message_len);
+ sha512_final(&hash, hram);
+
+ sc_reduce(hram);
+ sc_muladd(signature + 32, hram, private_key, r);
+}
diff --git a/lib/ed25519/verify.c b/lib/ed25519/verify.c
new file mode 100755
index 0000000..32f988e
--- /dev/null
+++ b/lib/ed25519/verify.c
@@ -0,0 +1,77 @@
+#include "ed25519.h"
+#include "sha512.h"
+#include "ge.h"
+#include "sc.h"
+
+static int consttime_equal(const unsigned char *x, const unsigned char *y) {
+ unsigned char r = 0;
+
+ r = x[0] ^ y[0];
+ #define F(i) r |= x[i] ^ y[i]
+ F(1);
+ F(2);
+ F(3);
+ F(4);
+ F(5);
+ F(6);
+ F(7);
+ F(8);
+ F(9);
+ F(10);
+ F(11);
+ F(12);
+ F(13);
+ F(14);
+ F(15);
+ F(16);
+ F(17);
+ F(18);
+ F(19);
+ F(20);
+ F(21);
+ F(22);
+ F(23);
+ F(24);
+ F(25);
+ F(26);
+ F(27);
+ F(28);
+ F(29);
+ F(30);
+ F(31);
+ #undef F
+
+ return !r;
+}
+
+int ed25519_verify(const unsigned char *signature, const unsigned char *message, size_t message_len, const unsigned char *public_key) {
+ unsigned char h[64];
+ unsigned char checker[32];
+ sha512_context hash;
+ ge_p3 A;
+ ge_p2 R;
+
+ if (signature[63] & 224) {
+ return 0;
+ }
+
+ if (ge_frombytes_negate_vartime(&A, public_key) != 0) {
+ return 0;
+ }
+
+ sha512_init(&hash);
+ sha512_update(&hash, signature, 32);
+ sha512_update(&hash, public_key, 32);
+ sha512_update(&hash, message, message_len);
+ sha512_final(&hash, h);
+
+ sc_reduce(h);
+ ge_double_scalarmult_vartime(&R, h, &A, signature + 32);
+ ge_tobytes(checker, &R);
+
+ if (!consttime_equal(checker, signature)) {
+ return 0;
+ }
+
+ return 1;
+}
diff --git a/lib/fairplay.h b/lib/fairplay.h
new file mode 100755
index 0000000..d520817
--- /dev/null
+++ b/lib/fairplay.h
@@ -0,0 +1,14 @@
+#ifndef FAIRPLAY_H
+#define FAIRPLAY_H
+
+#include "logger.h"
+
+typedef struct fairplay_s fairplay_t;
+
+fairplay_t *fairplay_init(logger_t *logger);
+int fairplay_setup(fairplay_t *fp, const unsigned char req[16], unsigned char res[142]);
+int fairplay_handshake(fairplay_t *fp, const unsigned char req[164], unsigned char res[32]);
+int fairplay_decrypt(fairplay_t *fp, const unsigned char input[72], unsigned char output[16]);
+void fairplay_destroy(fairplay_t *fp);
+
+#endif
diff --git a/lib/fairplay_playfair.c b/lib/fairplay_playfair.c
new file mode 100755
index 0000000..ade48d9
--- /dev/null
+++ b/lib/fairplay_playfair.c
@@ -0,0 +1,87 @@
+#include
+#include
+#include
+
+#include "fairplay.h"
+#include "playfair/playfair.h"
+
+char reply_message[4][142] = {{0x46,0x50,0x4c,0x59,0x03,0x01,0x02,0x00,0x00,0x00,0x00,0x82,0x02,0x00,0x0f,0x9f,0x3f,0x9e,0x0a,0x25,0x21,0xdb,0xdf,0x31,0x2a,0xb2,0xbf,0xb2,0x9e,0x8d,0x23,0x2b,0x63,0x76,0xa8,0xc8,0x18,0x70,0x1d,0x22,0xae,0x93,0xd8,0x27,0x37,0xfe,0xaf,0x9d,0xb4,0xfd,0xf4,0x1c,0x2d,0xba,0x9d,0x1f,0x49,0xca,0xaa,0xbf,0x65,0x91,0xac,0x1f,0x7b,0xc6,0xf7,0xe0,0x66,0x3d,0x21,0xaf,0xe0,0x15,0x65,0x95,0x3e,0xab,0x81,0xf4,0x18,0xce,0xed,0x09,0x5a,0xdb,0x7c,0x3d,0x0e,0x25,0x49,0x09,0xa7,0x98,0x31,0xd4,0x9c,0x39,0x82,0x97,0x34,0x34,0xfa,0xcb,0x42,0xc6,0x3a,0x1c,0xd9,0x11,0xa6,0xfe,0x94,0x1a,0x8a,0x6d,0x4a,0x74,0x3b,0x46,0xc3,0xa7,0x64,0x9e,0x44,0xc7,0x89,0x55,0xe4,0x9d,0x81,0x55,0x00,0x95,0x49,0xc4,0xe2,0xf7,0xa3,0xf6,0xd5,0xba},
+ {0x46,0x50,0x4c,0x59,0x03,0x01,0x02,0x00,0x00,0x00,0x00,0x82,0x02,0x01,0xcf,0x32,0xa2,0x57,0x14,0xb2,0x52,0x4f,0x8a,0xa0,0xad,0x7a,0xf1,0x64,0xe3,0x7b,0xcf,0x44,0x24,0xe2,0x00,0x04,0x7e,0xfc,0x0a,0xd6,0x7a,0xfc,0xd9,0x5d,0xed,0x1c,0x27,0x30,0xbb,0x59,0x1b,0x96,0x2e,0xd6,0x3a,0x9c,0x4d,0xed,0x88,0xba,0x8f,0xc7,0x8d,0xe6,0x4d,0x91,0xcc,0xfd,0x5c,0x7b,0x56,0xda,0x88,0xe3,0x1f,0x5c,0xce,0xaf,0xc7,0x43,0x19,0x95,0xa0,0x16,0x65,0xa5,0x4e,0x19,0x39,0xd2,0x5b,0x94,0xdb,0x64,0xb9,0xe4,0x5d,0x8d,0x06,0x3e,0x1e,0x6a,0xf0,0x7e,0x96,0x56,0x16,0x2b,0x0e,0xfa,0x40,0x42,0x75,0xea,0x5a,0x44,0xd9,0x59,0x1c,0x72,0x56,0xb9,0xfb,0xe6,0x51,0x38,0x98,0xb8,0x02,0x27,0x72,0x19,0x88,0x57,0x16,0x50,0x94,0x2a,0xd9,0x46,0x68,0x8a},
+ {0x46,0x50,0x4c,0x59,0x03,0x01,0x02,0x00,0x00,0x00,0x00,0x82,0x02,0x02,0xc1,0x69,0xa3,0x52,0xee,0xed,0x35,0xb1,0x8c,0xdd,0x9c,0x58,0xd6,0x4f,0x16,0xc1,0x51,0x9a,0x89,0xeb,0x53,0x17,0xbd,0x0d,0x43,0x36,0xcd,0x68,0xf6,0x38,0xff,0x9d,0x01,0x6a,0x5b,0x52,0xb7,0xfa,0x92,0x16,0xb2,0xb6,0x54,0x82,0xc7,0x84,0x44,0x11,0x81,0x21,0xa2,0xc7,0xfe,0xd8,0x3d,0xb7,0x11,0x9e,0x91,0x82,0xaa,0xd7,0xd1,0x8c,0x70,0x63,0xe2,0xa4,0x57,0x55,0x59,0x10,0xaf,0x9e,0x0e,0xfc,0x76,0x34,0x7d,0x16,0x40,0x43,0x80,0x7f,0x58,0x1e,0xe4,0xfb,0xe4,0x2c,0xa9,0xde,0xdc,0x1b,0x5e,0xb2,0xa3,0xaa,0x3d,0x2e,0xcd,0x59,0xe7,0xee,0xe7,0x0b,0x36,0x29,0xf2,0x2a,0xfd,0x16,0x1d,0x87,0x73,0x53,0xdd,0xb9,0x9a,0xdc,0x8e,0x07,0x00,0x6e,0x56,0xf8,0x50,0xce},
+ {0x46,0x50,0x4c,0x59,0x03,0x01,0x02,0x00,0x00,0x00,0x00,0x82,0x02,0x03,0x90,0x01,0xe1,0x72,0x7e,0x0f,0x57,0xf9,0xf5,0x88,0x0d,0xb1,0x04,0xa6,0x25,0x7a,0x23,0xf5,0xcf,0xff,0x1a,0xbb,0xe1,0xe9,0x30,0x45,0x25,0x1a,0xfb,0x97,0xeb,0x9f,0xc0,0x01,0x1e,0xbe,0x0f,0x3a,0x81,0xdf,0x5b,0x69,0x1d,0x76,0xac,0xb2,0xf7,0xa5,0xc7,0x08,0xe3,0xd3,0x28,0xf5,0x6b,0xb3,0x9d,0xbd,0xe5,0xf2,0x9c,0x8a,0x17,0xf4,0x81,0x48,0x7e,0x3a,0xe8,0x63,0xc6,0x78,0x32,0x54,0x22,0xe6,0xf7,0x8e,0x16,0x6d,0x18,0xaa,0x7f,0xd6,0x36,0x25,0x8b,0xce,0x28,0x72,0x6f,0x66,0x1f,0x73,0x88,0x93,0xce,0x44,0x31,0x1e,0x4b,0xe6,0xc0,0x53,0x51,0x93,0xe5,0xef,0x72,0xe8,0x68,0x62,0x33,0x72,0x9c,0x22,0x7d,0x82,0x0c,0x99,0x94,0x45,0xd8,0x92,0x46,0xc8,0xc3,0x59}};
+
+char fp_header[] = {0x46, 0x50, 0x4c, 0x59, 0x03, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x14};
+
+struct fairplay_s {
+ logger_t *logger;
+
+ unsigned char keymsg[164];
+ unsigned int keymsglen;
+};
+
+fairplay_t *
+fairplay_init(logger_t *logger)
+{
+ fairplay_t *fp;
+
+ fp = calloc(1, sizeof(fairplay_t));
+ if (!fp) {
+ return NULL;
+ }
+ fp->logger = logger;
+
+ return fp;
+}
+
+int
+fairplay_setup(fairplay_t *fp, const unsigned char req[16], unsigned char res[142])
+{
+ int mode;
+
+ assert(fp);
+
+ if (req[4] != 0x03) {
+ /* Unsupported fairplay version */
+ return -1;
+ }
+
+ mode = req[14];
+ memcpy(res, reply_message[mode], 142);
+ fp->keymsglen = 0;
+ return 0;
+}
+
+int
+fairplay_handshake(fairplay_t *fp, const unsigned char req[164], unsigned char res[32])
+{
+ assert(fp);
+
+ if (req[4] != 0x03) {
+ /* Unsupported fairplay version */
+ return -1;
+ }
+
+ memcpy(fp->keymsg, req, 164);
+ fp->keymsglen = 164;
+
+ memcpy(res, fp_header, 12);
+ memcpy(res + 12, req + 144, 20);
+ return 0;
+}
+
+int
+fairplay_decrypt(fairplay_t *fp, const unsigned char input[72], unsigned char output[16])
+{
+ if (fp->keymsglen != 164) {
+ return -1;
+ }
+
+ playfair_decrypt(fp->keymsg, (unsigned char *) input, output);
+ return 0;
+}
+
+void
+fairplay_destroy(fairplay_t *fp)
+{
+ free(fp);
+}
diff --git a/lib/global.h b/lib/global.h
new file mode 100755
index 0000000..4f022b4
--- /dev/null
+++ b/lib/global.h
@@ -0,0 +1,10 @@
+#ifndef GLOBAL_H
+#define GLOBAL_H
+
+#define GLOBAL_FEATURES 0x7
+#define GLOBAL_MODEL "AppleTV2,1"
+#define GLOBAL_VERSION "130.14"
+
+#define MAX_HWADDR_LEN 6
+
+#endif
diff --git a/lib/http_parser.c b/lib/http_parser.c
new file mode 100755
index 0000000..54eb98a
--- /dev/null
+++ b/lib/http_parser.c
@@ -0,0 +1,2577 @@
+/* Copyright Joyent, Inc. and other Node contributors.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+#include "http_parser.h"
+#include
+#include
+#include
+#include
+#include
+
+static uint32_t max_header_size = HTTP_MAX_HEADER_SIZE;
+
+#ifndef ULLONG_MAX
+# define ULLONG_MAX ((uint64_t) -1) /* 2^64-1 */
+#endif
+
+#ifndef MIN
+# define MIN(a,b) ((a) < (b) ? (a) : (b))
+#endif
+
+#ifndef ARRAY_SIZE
+# define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+#endif
+
+#ifndef BIT_AT
+# define BIT_AT(a, i) \
+ (!!((unsigned int) (a)[(unsigned int) (i) >> 3] & \
+ (1 << ((unsigned int) (i) & 7))))
+#endif
+
+#ifndef ELEM_AT
+# define ELEM_AT(a, i, v) ((unsigned int) (i) < ARRAY_SIZE(a) ? (a)[(i)] : (v))
+#endif
+
+#define SET_ERRNO(e) \
+do { \
+ parser->nread = nread; \
+ parser->http_errno = (e); \
+} while(0)
+
+#define CURRENT_STATE() p_state
+#define UPDATE_STATE(V) p_state = (enum state) (V);
+#define RETURN(V) \
+do { \
+ parser->nread = nread; \
+ parser->state = CURRENT_STATE(); \
+ return (V); \
+} while (0);
+#define REEXECUTE() \
+ goto reexecute; \
+
+
+#ifdef __GNUC__
+# define LIKELY(X) __builtin_expect(!!(X), 1)
+# define UNLIKELY(X) __builtin_expect(!!(X), 0)
+#else
+# define LIKELY(X) (X)
+# define UNLIKELY(X) (X)
+#endif
+
+
+/* Run the notify callback FOR, returning ER if it fails */
+#define CALLBACK_NOTIFY_(FOR, ER) \
+do { \
+ assert(HTTP_PARSER_ERRNO(parser) == HPE_OK); \
+ \
+ if (LIKELY(settings->on_##FOR)) { \
+ parser->state = CURRENT_STATE(); \
+ if (UNLIKELY(0 != settings->on_##FOR(parser))) { \
+ SET_ERRNO(HPE_CB_##FOR); \
+ } \
+ UPDATE_STATE(parser->state); \
+ \
+ /* We either errored above or got paused; get out */ \
+ if (UNLIKELY(HTTP_PARSER_ERRNO(parser) != HPE_OK)) { \
+ return (ER); \
+ } \
+ } \
+} while (0)
+
+/* Run the notify callback FOR and consume the current byte */
+#define CALLBACK_NOTIFY(FOR) CALLBACK_NOTIFY_(FOR, p - data + 1)
+
+/* Run the notify callback FOR and don't consume the current byte */
+#define CALLBACK_NOTIFY_NOADVANCE(FOR) CALLBACK_NOTIFY_(FOR, p - data)
+
+/* Run data callback FOR with LEN bytes, returning ER if it fails */
+#define CALLBACK_DATA_(FOR, LEN, ER) \
+do { \
+ assert(HTTP_PARSER_ERRNO(parser) == HPE_OK); \
+ \
+ if (FOR##_mark) { \
+ if (LIKELY(settings->on_##FOR)) { \
+ parser->state = CURRENT_STATE(); \
+ if (UNLIKELY(0 != \
+ settings->on_##FOR(parser, FOR##_mark, (LEN)))) { \
+ SET_ERRNO(HPE_CB_##FOR); \
+ } \
+ UPDATE_STATE(parser->state); \
+ \
+ /* We either errored above or got paused; get out */ \
+ if (UNLIKELY(HTTP_PARSER_ERRNO(parser) != HPE_OK)) { \
+ return (ER); \
+ } \
+ } \
+ FOR##_mark = NULL; \
+ } \
+} while (0)
+
+/* Run the data callback FOR and consume the current byte */
+#define CALLBACK_DATA(FOR) \
+ CALLBACK_DATA_(FOR, p - FOR##_mark, p - data + 1)
+
+/* Run the data callback FOR and don't consume the current byte */
+#define CALLBACK_DATA_NOADVANCE(FOR) \
+ CALLBACK_DATA_(FOR, p - FOR##_mark, p - data)
+
+/* Set the mark FOR; non-destructive if mark is already set */
+#define MARK(FOR) \
+do { \
+ if (!FOR##_mark) { \
+ FOR##_mark = p; \
+ } \
+} while (0)
+
+/* Don't allow the total size of the HTTP headers (including the status
+ * line) to exceed max_header_size. This check is here to protect
+ * embedders against denial-of-service attacks where the attacker feeds
+ * us a never-ending header that the embedder keeps buffering.
+ *
+ * This check is arguably the responsibility of embedders but we're doing
+ * it on the embedder's behalf because most won't bother and this way we
+ * make the web a little safer. max_header_size is still far bigger
+ * than any reasonable request or response so this should never affect
+ * day-to-day operation.
+ */
+#define COUNT_HEADER_SIZE(V) \
+do { \
+ nread += (uint32_t)(V); \
+ if (UNLIKELY(nread > max_header_size)) { \
+ SET_ERRNO(HPE_HEADER_OVERFLOW); \
+ goto error; \
+ } \
+} while (0)
+
+
+#define PROXY_CONNECTION "proxy-connection"
+#define CONNECTION "connection"
+#define CONTENT_LENGTH "content-length"
+#define TRANSFER_ENCODING "transfer-encoding"
+#define UPGRADE "upgrade"
+#define CHUNKED "chunked"
+#define KEEP_ALIVE "keep-alive"
+#define CLOSE "close"
+
+
+static const char *method_strings[] =
+ {
+#define XX(num, name, string) #string,
+ HTTP_METHOD_MAP(XX)
+#undef XX
+ };
+
+
+/* Tokens as defined by rfc 2616. Also lowercases them.
+ * token = 1*
+ * separators = "(" | ")" | "<" | ">" | "@"
+ * | "," | ";" | ":" | "\" | <">
+ * | "/" | "[" | "]" | "?" | "="
+ * | "{" | "}" | SP | HT
+ */
+static const char tokens[256] = {
+/* 0 nul 1 soh 2 stx 3 etx 4 eot 5 enq 6 ack 7 bel */
+ 0, 0, 0, 0, 0, 0, 0, 0,
+/* 8 bs 9 ht 10 nl 11 vt 12 np 13 cr 14 so 15 si */
+ 0, 0, 0, 0, 0, 0, 0, 0,
+/* 16 dle 17 dc1 18 dc2 19 dc3 20 dc4 21 nak 22 syn 23 etb */
+ 0, 0, 0, 0, 0, 0, 0, 0,
+/* 24 can 25 em 26 sub 27 esc 28 fs 29 gs 30 rs 31 us */
+ 0, 0, 0, 0, 0, 0, 0, 0,
+/* 32 sp 33 ! 34 " 35 # 36 $ 37 % 38 & 39 ' */
+ ' ', '!', 0, '#', '$', '%', '&', '\'',
+/* 40 ( 41 ) 42 * 43 + 44 , 45 - 46 . 47 / */
+ 0, 0, '*', '+', 0, '-', '.', 0,
+/* 48 0 49 1 50 2 51 3 52 4 53 5 54 6 55 7 */
+ '0', '1', '2', '3', '4', '5', '6', '7',
+/* 56 8 57 9 58 : 59 ; 60 < 61 = 62 > 63 ? */
+ '8', '9', 0, 0, 0, 0, 0, 0,
+/* 64 @ 65 A 66 B 67 C 68 D 69 E 70 F 71 G */
+ 0, 'a', 'b', 'c', 'd', 'e', 'f', 'g',
+/* 72 H 73 I 74 J 75 K 76 L 77 M 78 N 79 O */
+ 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
+/* 80 P 81 Q 82 R 83 S 84 T 85 U 86 V 87 W */
+ 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
+/* 88 X 89 Y 90 Z 91 [ 92 \ 93 ] 94 ^ 95 _ */
+ 'x', 'y', 'z', 0, 0, 0, '^', '_',
+/* 96 ` 97 a 98 b 99 c 100 d 101 e 102 f 103 g */
+ '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
+/* 104 h 105 i 106 j 107 k 108 l 109 m 110 n 111 o */
+ 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
+/* 112 p 113 q 114 r 115 s 116 t 117 u 118 v 119 w */
+ 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
+/* 120 x 121 y 122 z 123 { 124 | 125 } 126 ~ 127 del */
+ 'x', 'y', 'z', 0, '|', 0, '~', 0 };
+
+
+static const int8_t unhex[256] =
+ {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+ ,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+ ,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+ , 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,-1,-1,-1,-1,-1,-1
+ ,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1
+ ,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+ ,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1
+ ,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+ };
+
+
+#if HTTP_PARSER_STRICT
+# define T(v) 0
+#else
+# define T(v) v
+#endif
+
+
+static const uint8_t normal_url_char[32] = {
+/* 0 nul 1 soh 2 stx 3 etx 4 eot 5 enq 6 ack 7 bel */
+ 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0,
+/* 8 bs 9 ht 10 nl 11 vt 12 np 13 cr 14 so 15 si */
+ 0 | T(2) | 0 | 0 | T(16) | 0 | 0 | 0,
+/* 16 dle 17 dc1 18 dc2 19 dc3 20 dc4 21 nak 22 syn 23 etb */
+ 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0,
+/* 24 can 25 em 26 sub 27 esc 28 fs 29 gs 30 rs 31 us */
+ 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0,
+/* 32 sp 33 ! 34 " 35 # 36 $ 37 % 38 & 39 ' */
+ 0 | 2 | 4 | 0 | 16 | 32 | 64 | 128,
+/* 40 ( 41 ) 42 * 43 + 44 , 45 - 46 . 47 / */
+ 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
+/* 48 0 49 1 50 2 51 3 52 4 53 5 54 6 55 7 */
+ 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
+/* 56 8 57 9 58 : 59 ; 60 < 61 = 62 > 63 ? */
+ 1 | 2 | 4 | 8 | 16 | 32 | 64 | 0,
+/* 64 @ 65 A 66 B 67 C 68 D 69 E 70 F 71 G */
+ 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
+/* 72 H 73 I 74 J 75 K 76 L 77 M 78 N 79 O */
+ 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
+/* 80 P 81 Q 82 R 83 S 84 T 85 U 86 V 87 W */
+ 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
+/* 88 X 89 Y 90 Z 91 [ 92 \ 93 ] 94 ^ 95 _ */
+ 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
+/* 96 ` 97 a 98 b 99 c 100 d 101 e 102 f 103 g */
+ 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
+/* 104 h 105 i 106 j 107 k 108 l 109 m 110 n 111 o */
+ 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
+/* 112 p 113 q 114 r 115 s 116 t 117 u 118 v 119 w */
+ 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
+/* 120 x 121 y 122 z 123 { 124 | 125 } 126 ~ 127 del */
+ 1 | 2 | 4 | 8 | 16 | 32 | 64 | 0, };
+
+#undef T
+
+enum state
+ { s_dead = 1 /* important that this is > 0 */
+
+ , s_start_req_or_res
+ , s_res_or_resp_H
+ , s_start_res
+ , s_res_H
+ , s_res_HT
+ , s_res_HTT
+ , s_res_HTTP
+ , s_res_http_major
+ , s_res_http_dot
+ , s_res_http_minor
+ , s_res_http_end
+ , s_res_first_status_code
+ , s_res_status_code
+ , s_res_status_start
+ , s_res_status
+ , s_res_line_almost_done
+
+ , s_start_req
+
+ , s_req_method
+ , s_req_spaces_before_url
+ , s_req_schema
+ , s_req_schema_slash
+ , s_req_schema_slash_slash
+ , s_req_server_start
+ , s_req_server
+ , s_req_server_with_at
+ , s_req_path
+ , s_req_query_string_start
+ , s_req_query_string
+ , s_req_fragment_start
+ , s_req_fragment
+ , s_req_http_start
+ , s_req_http_H
+ , s_req_http_HT
+ , s_req_http_HTT
+ , s_req_http_HTTP
+ , s_req_http_I
+ , s_req_http_IC
+ , s_req_http_major
+ , s_req_http_dot
+ , s_req_http_minor
+ , s_req_http_end
+ , s_req_line_almost_done
+
+ , s_header_field_start
+ , s_header_field
+ , s_header_value_discard_ws
+ , s_header_value_discard_ws_almost_done
+ , s_header_value_discard_lws
+ , s_header_value_start
+ , s_header_value
+ , s_header_value_lws
+
+ , s_header_almost_done
+
+ , s_chunk_size_start
+ , s_chunk_size
+ , s_chunk_parameters
+ , s_chunk_size_almost_done
+
+ , s_headers_almost_done
+ , s_headers_done
+
+ /* Important: 's_headers_done' must be the last 'header' state. All
+ * states beyond this must be 'body' states. It is used for overflow
+ * checking. See the PARSING_HEADER() macro.
+ */
+
+ , s_chunk_data
+ , s_chunk_data_almost_done
+ , s_chunk_data_done
+
+ , s_body_identity
+ , s_body_identity_eof
+
+ , s_message_done
+ };
+
+
+#define PARSING_HEADER(state) (state <= s_headers_done)
+
+
+enum header_states
+ { h_general = 0
+ , h_C
+ , h_CO
+ , h_CON
+
+ , h_matching_connection
+ , h_matching_proxy_connection
+ , h_matching_content_length
+ , h_matching_transfer_encoding
+ , h_matching_upgrade
+
+ , h_connection
+ , h_content_length
+ , h_content_length_num
+ , h_content_length_ws
+ , h_transfer_encoding
+ , h_upgrade
+
+ , h_matching_transfer_encoding_token_start
+ , h_matching_transfer_encoding_chunked
+ , h_matching_transfer_encoding_token
+
+ , h_matching_connection_token_start
+ , h_matching_connection_keep_alive
+ , h_matching_connection_close
+ , h_matching_connection_upgrade
+ , h_matching_connection_token
+
+ , h_transfer_encoding_chunked
+ , h_connection_keep_alive
+ , h_connection_close
+ , h_connection_upgrade
+ };
+
+enum http_host_state
+ {
+ s_http_host_dead = 1
+ , s_http_userinfo_start
+ , s_http_userinfo
+ , s_http_host_start
+ , s_http_host_v6_start
+ , s_http_host
+ , s_http_host_v6
+ , s_http_host_v6_end
+ , s_http_host_v6_zone_start
+ , s_http_host_v6_zone
+ , s_http_host_port_start
+ , s_http_host_port
+};
+
+/* Macros for character classes; depends on strict-mode */
+#define CR '\r'
+#define LF '\n'
+#define LOWER(c) (unsigned char)(c | 0x20)
+#define IS_ALPHA(c) (LOWER(c) >= 'a' && LOWER(c) <= 'z')
+#define IS_NUM(c) ((c) >= '0' && (c) <= '9')
+#define IS_ALPHANUM(c) (IS_ALPHA(c) || IS_NUM(c))
+#define IS_HEX(c) (IS_NUM(c) || (LOWER(c) >= 'a' && LOWER(c) <= 'f'))
+#define IS_MARK(c) ((c) == '-' || (c) == '_' || (c) == '.' || \
+ (c) == '!' || (c) == '~' || (c) == '*' || (c) == '\'' || (c) == '(' || \
+ (c) == ')')
+#define IS_USERINFO_CHAR(c) (IS_ALPHANUM(c) || IS_MARK(c) || (c) == '%' || \
+ (c) == ';' || (c) == ':' || (c) == '&' || (c) == '=' || (c) == '+' || \
+ (c) == '$' || (c) == ',')
+
+#define STRICT_TOKEN(c) ((c == ' ') ? 0 : tokens[(unsigned char)c])
+
+#if HTTP_PARSER_STRICT
+#define TOKEN(c) STRICT_TOKEN(c)
+#define IS_URL_CHAR(c) (BIT_AT(normal_url_char, (unsigned char)c))
+#define IS_HOST_CHAR(c) (IS_ALPHANUM(c) || (c) == '.' || (c) == '-')
+#else
+#define TOKEN(c) tokens[(unsigned char)c]
+#define IS_URL_CHAR(c) \
+ (BIT_AT(normal_url_char, (unsigned char)c) || ((c) & 0x80))
+#define IS_HOST_CHAR(c) \
+ (IS_ALPHANUM(c) || (c) == '.' || (c) == '-' || (c) == '_')
+#endif
+
+/**
+ * Verify that a char is a valid visible (printable) US-ASCII
+ * character or %x80-FF
+ **/
+#define IS_HEADER_CHAR(ch) \
+ (ch == CR || ch == LF || ch == 9 || ((unsigned char)ch > 31 && ch != 127))
+
+#define start_state (parser->type == HTTP_REQUEST ? s_start_req : s_start_res)
+
+
+#if HTTP_PARSER_STRICT
+# define STRICT_CHECK(cond) \
+do { \
+ if (cond) { \
+ SET_ERRNO(HPE_STRICT); \
+ goto error; \
+ } \
+} while (0)
+# define NEW_MESSAGE() (http_should_keep_alive(parser) ? start_state : s_dead)
+#else
+# define STRICT_CHECK(cond)
+# define NEW_MESSAGE() start_state
+#endif
+
+
+/* Map errno values to strings for human-readable output */
+#define HTTP_STRERROR_GEN(n, s) { "HPE_" #n, s },
+static struct {
+ const char *name;
+ const char *description;
+} http_strerror_tab[] = {
+ HTTP_ERRNO_MAP(HTTP_STRERROR_GEN)
+};
+#undef HTTP_STRERROR_GEN
+
+int http_message_needs_eof(const http_parser *parser);
+
+/* Our URL parser.
+ *
+ * This is designed to be shared by http_parser_execute() for URL validation,
+ * hence it has a state transition + byte-for-byte interface. In addition, it
+ * is meant to be embedded in http_parser_parse_url(), which does the dirty
+ * work of turning state transitions URL components for its API.
+ *
+ * This function should only be invoked with non-space characters. It is
+ * assumed that the caller cares about (and can detect) the transition between
+ * URL and non-URL states by looking for these.
+ */
+static enum state
+parse_url_char(enum state s, const char ch)
+{
+ if (ch == ' ' || ch == '\r' || ch == '\n') {
+ return s_dead;
+ }
+
+#if HTTP_PARSER_STRICT
+ if (ch == '\t' || ch == '\f') {
+ return s_dead;
+ }
+#endif
+
+ switch (s) {
+ case s_req_spaces_before_url:
+ /* Proxied requests are followed by scheme of an absolute URI (alpha).
+ * All methods except CONNECT are followed by '/' or '*'.
+ */
+
+ if (ch == '/' || ch == '*') {
+ return s_req_path;
+ }
+
+ if (IS_ALPHA(ch)) {
+ return s_req_schema;
+ }
+
+ break;
+
+ case s_req_schema:
+ if (IS_ALPHA(ch)) {
+ return s;
+ }
+
+ if (ch == ':') {
+ return s_req_schema_slash;
+ }
+
+ break;
+
+ case s_req_schema_slash:
+ if (ch == '/') {
+ return s_req_schema_slash_slash;
+ }
+
+ break;
+
+ case s_req_schema_slash_slash:
+ if (ch == '/') {
+ return s_req_server_start;
+ }
+
+ break;
+
+ case s_req_server_with_at:
+ if (ch == '@') {
+ return s_dead;
+ }
+
+ /* fall through */
+ case s_req_server_start:
+ case s_req_server:
+ if (ch == '/') {
+ return s_req_path;
+ }
+
+ if (ch == '?') {
+ return s_req_query_string_start;
+ }
+
+ if (ch == '@') {
+ return s_req_server_with_at;
+ }
+
+ if (IS_USERINFO_CHAR(ch) || ch == '[' || ch == ']') {
+ return s_req_server;
+ }
+
+ break;
+
+ case s_req_path:
+ if (IS_URL_CHAR(ch)) {
+ return s;
+ }
+
+ switch (ch) {
+ case '?':
+ return s_req_query_string_start;
+
+ case '#':
+ return s_req_fragment_start;
+ }
+
+ break;
+
+ case s_req_query_string_start:
+ case s_req_query_string:
+ if (IS_URL_CHAR(ch)) {
+ return s_req_query_string;
+ }
+
+ switch (ch) {
+ case '?':
+ /* allow extra '?' in query string */
+ return s_req_query_string;
+
+ case '#':
+ return s_req_fragment_start;
+ }
+
+ break;
+
+ case s_req_fragment_start:
+ if (IS_URL_CHAR(ch)) {
+ return s_req_fragment;
+ }
+
+ switch (ch) {
+ case '?':
+ return s_req_fragment;
+
+ case '#':
+ return s;
+ }
+
+ break;
+
+ case s_req_fragment:
+ if (IS_URL_CHAR(ch)) {
+ return s;
+ }
+
+ switch (ch) {
+ case '?':
+ case '#':
+ return s;
+ }
+
+ break;
+
+ default:
+ break;
+ }
+
+ /* We should never fall out of the switch above unless there's an error */
+ return s_dead;
+}
+
+size_t http_parser_execute (http_parser *parser,
+ const http_parser_settings *settings,
+ const char *data,
+ size_t len)
+{
+ char c, ch;
+ int8_t unhex_val;
+ const char *p = data;
+ const char *header_field_mark = 0;
+ const char *header_value_mark = 0;
+ const char *url_mark = 0;
+ const char *body_mark = 0;
+ const char *status_mark = 0;
+ enum state p_state = (enum state) parser->state;
+ const unsigned int lenient = parser->lenient_http_headers;
+ uint32_t nread = parser->nread;
+
+ /* We're in an error state. Don't bother doing anything. */
+ if (HTTP_PARSER_ERRNO(parser) != HPE_OK) {
+ return 0;
+ }
+
+ if (len == 0) {
+ switch (CURRENT_STATE()) {
+ case s_body_identity_eof:
+ /* Use of CALLBACK_NOTIFY() here would erroneously return 1 byte read if
+ * we got paused.
+ */
+ CALLBACK_NOTIFY_NOADVANCE(message_complete);
+ return 0;
+
+ case s_dead:
+ case s_start_req_or_res:
+ case s_start_res:
+ case s_start_req:
+ return 0;
+
+ default:
+ SET_ERRNO(HPE_INVALID_EOF_STATE);
+ return 1;
+ }
+ }
+
+
+ if (CURRENT_STATE() == s_header_field)
+ header_field_mark = data;
+ if (CURRENT_STATE() == s_header_value)
+ header_value_mark = data;
+ switch (CURRENT_STATE()) {
+ case s_req_path:
+ case s_req_schema:
+ case s_req_schema_slash:
+ case s_req_schema_slash_slash:
+ case s_req_server_start:
+ case s_req_server:
+ case s_req_server_with_at:
+ case s_req_query_string_start:
+ case s_req_query_string:
+ case s_req_fragment_start:
+ case s_req_fragment:
+ url_mark = data;
+ break;
+ case s_res_status:
+ status_mark = data;
+ break;
+ default:
+ break;
+ }
+
+ for (p=data; p != data + len; p++) {
+ ch = *p;
+
+ if (PARSING_HEADER(CURRENT_STATE()))
+ COUNT_HEADER_SIZE(1);
+
+reexecute:
+ switch (CURRENT_STATE()) {
+
+ case s_dead:
+ /* this state is used after a 'Connection: close' message
+ * the parser will error out if it reads another message
+ */
+ if (LIKELY(ch == CR || ch == LF))
+ break;
+
+ SET_ERRNO(HPE_CLOSED_CONNECTION);
+ goto error;
+
+ case s_start_req_or_res:
+ {
+ if (ch == CR || ch == LF)
+ break;
+ parser->flags = 0;
+ parser->content_length = ULLONG_MAX;
+
+ if (ch == 'H') {
+ UPDATE_STATE(s_res_or_resp_H);
+
+ CALLBACK_NOTIFY(message_begin);
+ } else {
+ parser->type = HTTP_REQUEST;
+ UPDATE_STATE(s_start_req);
+ REEXECUTE();
+ }
+
+ break;
+ }
+
+ case s_res_or_resp_H:
+ if (ch == 'T') {
+ parser->type = HTTP_RESPONSE;
+ UPDATE_STATE(s_res_HT);
+ } else {
+ if (UNLIKELY(ch != 'E')) {
+ SET_ERRNO(HPE_INVALID_CONSTANT);
+ goto error;
+ }
+
+ parser->type = HTTP_REQUEST;
+ parser->method = HTTP_HEAD;
+ parser->index = 2;
+ UPDATE_STATE(s_req_method);
+ }
+ break;
+
+ case s_start_res:
+ {
+ if (ch == CR || ch == LF)
+ break;
+ parser->flags = 0;
+ parser->content_length = ULLONG_MAX;
+
+ if (ch == 'H') {
+ UPDATE_STATE(s_res_H);
+ } else {
+ SET_ERRNO(HPE_INVALID_CONSTANT);
+ goto error;
+ }
+
+ CALLBACK_NOTIFY(message_begin);
+ break;
+ }
+
+ case s_res_H:
+ STRICT_CHECK(ch != 'T');
+ UPDATE_STATE(s_res_HT);
+ break;
+
+ case s_res_HT:
+ STRICT_CHECK(ch != 'T');
+ UPDATE_STATE(s_res_HTT);
+ break;
+
+ case s_res_HTT:
+ STRICT_CHECK(ch != 'P');
+ UPDATE_STATE(s_res_HTTP);
+ break;
+
+ case s_res_HTTP:
+ STRICT_CHECK(ch != '/');
+ UPDATE_STATE(s_res_http_major);
+ break;
+
+ case s_res_http_major:
+ if (UNLIKELY(!IS_NUM(ch))) {
+ SET_ERRNO(HPE_INVALID_VERSION);
+ goto error;
+ }
+
+ parser->http_major = ch - '0';
+ UPDATE_STATE(s_res_http_dot);
+ break;
+
+ case s_res_http_dot:
+ {
+ if (UNLIKELY(ch != '.')) {
+ SET_ERRNO(HPE_INVALID_VERSION);
+ goto error;
+ }
+
+ UPDATE_STATE(s_res_http_minor);
+ break;
+ }
+
+ case s_res_http_minor:
+ if (UNLIKELY(!IS_NUM(ch))) {
+ SET_ERRNO(HPE_INVALID_VERSION);
+ goto error;
+ }
+
+ parser->http_minor = ch - '0';
+ UPDATE_STATE(s_res_http_end);
+ break;
+
+ case s_res_http_end:
+ {
+ if (UNLIKELY(ch != ' ')) {
+ SET_ERRNO(HPE_INVALID_VERSION);
+ goto error;
+ }
+
+ UPDATE_STATE(s_res_first_status_code);
+ break;
+ }
+
+ case s_res_first_status_code:
+ {
+ if (!IS_NUM(ch)) {
+ if (ch == ' ') {
+ break;
+ }
+
+ SET_ERRNO(HPE_INVALID_STATUS);
+ goto error;
+ }
+ parser->status_code = ch - '0';
+ UPDATE_STATE(s_res_status_code);
+ break;
+ }
+
+ case s_res_status_code:
+ {
+ if (!IS_NUM(ch)) {
+ switch (ch) {
+ case ' ':
+ UPDATE_STATE(s_res_status_start);
+ break;
+ case CR:
+ case LF:
+ UPDATE_STATE(s_res_status_start);
+ REEXECUTE();
+ break;
+ default:
+ SET_ERRNO(HPE_INVALID_STATUS);
+ goto error;
+ }
+ break;
+ }
+
+ parser->status_code *= 10;
+ parser->status_code += ch - '0';
+
+ if (UNLIKELY(parser->status_code > 999)) {
+ SET_ERRNO(HPE_INVALID_STATUS);
+ goto error;
+ }
+
+ break;
+ }
+
+ case s_res_status_start:
+ {
+ MARK(status);
+ UPDATE_STATE(s_res_status);
+ parser->index = 0;
+
+ if (ch == CR || ch == LF)
+ REEXECUTE();
+
+ break;
+ }
+
+ case s_res_status:
+ if (ch == CR) {
+ UPDATE_STATE(s_res_line_almost_done);
+ CALLBACK_DATA(status);
+ break;
+ }
+
+ if (ch == LF) {
+ UPDATE_STATE(s_header_field_start);
+ CALLBACK_DATA(status);
+ break;
+ }
+
+ break;
+
+ case s_res_line_almost_done:
+ STRICT_CHECK(ch != LF);
+ UPDATE_STATE(s_header_field_start);
+ break;
+
+ case s_start_req:
+ {
+ if (ch == CR || ch == LF)
+ break;
+ parser->flags = 0;
+ parser->content_length = ULLONG_MAX;
+
+ if (UNLIKELY(!IS_ALPHA(ch))) {
+ SET_ERRNO(HPE_INVALID_METHOD);
+ goto error;
+ }
+
+ parser->method = (enum http_method) 0;
+ parser->index = 1;
+ switch (ch) {
+ case 'A': parser->method = HTTP_ACL; /* or ANNOUNCE */ break;
+ case 'B': parser->method = HTTP_BIND; break;
+ case 'C': parser->method = HTTP_CONNECT; /* or COPY, CHECKOUT */ break;
+ case 'D': parser->method = HTTP_DELETE; /* or DESCRIBE */ break;
+ case 'F': parser->method = HTTP_FLUSH; break;
+ case 'G': parser->method = HTTP_GET; /* or GET_PARAMETER */ break;
+ case 'H': parser->method = HTTP_HEAD; break;
+ case 'L': parser->method = HTTP_LOCK; /* or LINK */ break;
+ case 'M': parser->method = HTTP_MKCOL; /* or MOVE, MKACTIVITY, MERGE, M-SEARCH, MKCALENDAR */ break;
+ case 'N': parser->method = HTTP_NOTIFY; break;
+ case 'O': parser->method = HTTP_OPTIONS; break;
+ case 'P': parser->method = HTTP_POST;
+ /* or PROPFIND|PROPPATCH|PUT|PATCH|PURGE|PLAY|PAUSE */
+ break;
+ case 'R': parser->method = HTTP_REPORT; /* or REBIND, REDIRECT, RECORD */ break;
+ case 'S': parser->method = HTTP_SUBSCRIBE; /* or SEARCH, SETUP, SET_PARAMETER, SOURCE */ break;
+ case 'T': parser->method = HTTP_TRACE; /* or TEARDOWN */ break;
+ case 'U': parser->method = HTTP_UNLOCK; /* or UNSUBSCRIBE, UNBIND, UNLINK */ break;
+ default:
+ SET_ERRNO(HPE_INVALID_METHOD);
+ goto error;
+ }
+ UPDATE_STATE(s_req_method);
+
+ CALLBACK_NOTIFY(message_begin);
+
+ break;
+ }
+
+ case s_req_method:
+ {
+ const char *matcher;
+ if (UNLIKELY(ch == '\0')) {
+ SET_ERRNO(HPE_INVALID_METHOD);
+ goto error;
+ }
+
+ matcher = method_strings[parser->method];
+ if (ch == ' ' && matcher[parser->index] == '\0') {
+ UPDATE_STATE(s_req_spaces_before_url);
+ } else if (ch == matcher[parser->index]) {
+ ; /* nada */
+ } else if ((ch >= 'A' && ch <= 'Z') || ch == '-' || ch == '_') {
+
+ switch (parser->method << 16 | parser->index << 8 | ch) {
+#define XX(meth, pos, ch, new_meth) \
+ case (HTTP_##meth << 16 | pos << 8 | ch): \
+ parser->method = HTTP_##new_meth; break;
+
+ XX(ACL, 1, 'N', ANNOUNCE)
+ XX(DELETE, 2, 'S', DESCRIBE)
+ XX(GET, 3, '_', GET_PARAMETER)
+ XX(POST, 1, 'U', PUT)
+ XX(POST, 1, 'A', PATCH)
+ XX(POST, 1, 'R', PROPFIND)
+ XX(POST, 1, 'L', PLAY)
+ XX(PUT, 2, 'R', PURGE)
+ XX(PATCH, 2, 'U', PAUSE)
+ XX(CONNECT, 1, 'H', CHECKOUT)
+ XX(CONNECT, 2, 'P', COPY)
+ XX(MKCOL, 1, 'O', MOVE)
+ XX(MKCOL, 1, 'E', MERGE)
+ XX(MKCOL, 1, '-', MSEARCH)
+ XX(MKCOL, 2, 'A', MKACTIVITY)
+ XX(MKCOL, 3, 'A', MKCALENDAR)
+ XX(SUBSCRIBE, 1, 'E', SEARCH)
+ XX(SUBSCRIBE, 1, 'O', SOURCE)
+ XX(SEARCH, 2, 'T', SETUP)
+ XX(SETUP, 3, '_', SET_PARAMETER)
+ XX(TRACE, 1, 'E', TEARDOWN)
+ XX(REPORT, 2, 'B', REBIND)
+ XX(REPORT, 2, 'C', RECORD)
+ XX(REPORT, 2, 'D', REDIRECT)
+ XX(PROPFIND, 4, 'P', PROPPATCH)
+ XX(LOCK, 1, 'I', LINK)
+ XX(UNLOCK, 2, 'S', UNSUBSCRIBE)
+ XX(UNLOCK, 2, 'B', UNBIND)
+ XX(UNLOCK, 3, 'I', UNLINK)
+#undef XX
+ default:
+ SET_ERRNO(HPE_INVALID_METHOD);
+ goto error;
+ }
+ } else {
+ SET_ERRNO(HPE_INVALID_METHOD);
+ goto error;
+ }
+
+ ++parser->index;
+ break;
+ }
+
+ case s_req_spaces_before_url:
+ {
+ if (ch == ' ') break;
+
+ MARK(url);
+ if (parser->method == HTTP_CONNECT) {
+ UPDATE_STATE(s_req_server_start);
+ }
+
+ UPDATE_STATE(parse_url_char(CURRENT_STATE(), ch));
+ if (UNLIKELY(CURRENT_STATE() == s_dead)) {
+ SET_ERRNO(HPE_INVALID_URL);
+ goto error;
+ }
+
+ break;
+ }
+
+ case s_req_schema:
+ case s_req_schema_slash:
+ case s_req_schema_slash_slash:
+ case s_req_server_start:
+ {
+ switch (ch) {
+ /* No whitespace allowed here */
+ case ' ':
+ case CR:
+ case LF:
+ SET_ERRNO(HPE_INVALID_URL);
+ goto error;
+ default:
+ UPDATE_STATE(parse_url_char(CURRENT_STATE(), ch));
+ if (UNLIKELY(CURRENT_STATE() == s_dead)) {
+ SET_ERRNO(HPE_INVALID_URL);
+ goto error;
+ }
+ }
+
+ break;
+ }
+
+ case s_req_server:
+ case s_req_server_with_at:
+ case s_req_path:
+ case s_req_query_string_start:
+ case s_req_query_string:
+ case s_req_fragment_start:
+ case s_req_fragment:
+ {
+ switch (ch) {
+ case ' ':
+ UPDATE_STATE(s_req_http_start);
+ CALLBACK_DATA(url);
+ break;
+ case CR:
+ case LF:
+ parser->http_major = 0;
+ parser->http_minor = 9;
+ UPDATE_STATE((ch == CR) ?
+ s_req_line_almost_done :
+ s_header_field_start);
+ CALLBACK_DATA(url);
+ break;
+ default:
+ UPDATE_STATE(parse_url_char(CURRENT_STATE(), ch));
+ if (UNLIKELY(CURRENT_STATE() == s_dead)) {
+ SET_ERRNO(HPE_INVALID_URL);
+ goto error;
+ }
+ }
+ break;
+ }
+
+ case s_req_http_start:
+ switch (ch) {
+ case ' ':
+ break;
+ case 'H':
+ case 'R':
+ UPDATE_STATE(s_req_http_H);
+ break;
+ case 'I':
+ if (parser->method == HTTP_SOURCE) {
+ UPDATE_STATE(s_req_http_I);
+ break;
+ }
+ /* fall through */
+ default:
+ SET_ERRNO(HPE_INVALID_CONSTANT);
+ goto error;
+ }
+ break;
+
+ case s_req_http_H:
+ STRICT_CHECK(ch != 'T');
+ UPDATE_STATE(s_req_http_HT);
+ break;
+
+ case s_req_http_HT:
+ STRICT_CHECK(ch != 'T');
+ UPDATE_STATE(s_req_http_HTT);
+ break;
+
+ case s_req_http_HTT:
+ STRICT_CHECK(ch != 'P');
+ UPDATE_STATE(s_req_http_HTTP);
+ break;
+
+ case s_req_http_I:
+ STRICT_CHECK(ch != 'C');
+ UPDATE_STATE(s_req_http_IC);
+ break;
+
+ case s_req_http_IC:
+ STRICT_CHECK(ch != 'E');
+ UPDATE_STATE(s_req_http_HTTP); /* Treat "ICE" as "HTTP". */
+ break;
+
+ case s_req_http_HTTP:
+ STRICT_CHECK(ch != '/');
+ UPDATE_STATE(s_req_http_major);
+ break;
+
+ case s_req_http_major:
+ if (UNLIKELY(!IS_NUM(ch))) {
+ SET_ERRNO(HPE_INVALID_VERSION);
+ goto error;
+ }
+
+ parser->http_major = ch - '0';
+ UPDATE_STATE(s_req_http_dot);
+ break;
+
+ case s_req_http_dot:
+ {
+ if (UNLIKELY(ch != '.')) {
+ SET_ERRNO(HPE_INVALID_VERSION);
+ goto error;
+ }
+
+ UPDATE_STATE(s_req_http_minor);
+ break;
+ }
+
+ case s_req_http_minor:
+ if (UNLIKELY(!IS_NUM(ch))) {
+ SET_ERRNO(HPE_INVALID_VERSION);
+ goto error;
+ }
+
+ parser->http_minor = ch - '0';
+ UPDATE_STATE(s_req_http_end);
+ break;
+
+ case s_req_http_end:
+ {
+ if (ch == CR) {
+ UPDATE_STATE(s_req_line_almost_done);
+ break;
+ }
+
+ if (ch == LF) {
+ UPDATE_STATE(s_header_field_start);
+ break;
+ }
+
+ SET_ERRNO(HPE_INVALID_VERSION);
+ goto error;
+ break;
+ }
+
+ /* end of request line */
+ case s_req_line_almost_done:
+ {
+ if (UNLIKELY(ch != LF)) {
+ SET_ERRNO(HPE_LF_EXPECTED);
+ goto error;
+ }
+
+ UPDATE_STATE(s_header_field_start);
+ break;
+ }
+
+ case s_header_field_start:
+ {
+ if (ch == CR) {
+ UPDATE_STATE(s_headers_almost_done);
+ break;
+ }
+
+ if (ch == LF) {
+ /* they might be just sending \n instead of \r\n so this would be
+ * the second \n to denote the end of headers*/
+ UPDATE_STATE(s_headers_almost_done);
+ REEXECUTE();
+ }
+
+ c = TOKEN(ch);
+
+ if (UNLIKELY(!c)) {
+ SET_ERRNO(HPE_INVALID_HEADER_TOKEN);
+ goto error;
+ }
+
+ MARK(header_field);
+
+ parser->index = 0;
+ UPDATE_STATE(s_header_field);
+
+ switch (c) {
+ case 'c':
+ parser->header_state = h_C;
+ break;
+
+ case 'p':
+ parser->header_state = h_matching_proxy_connection;
+ break;
+
+ case 't':
+ parser->header_state = h_matching_transfer_encoding;
+ break;
+
+ case 'u':
+ parser->header_state = h_matching_upgrade;
+ break;
+
+ default:
+ parser->header_state = h_general;
+ break;
+ }
+ break;
+ }
+
+ case s_header_field:
+ {
+ const char* start = p;
+ for (; p != data + len; p++) {
+ ch = *p;
+ c = TOKEN(ch);
+
+ if (!c)
+ break;
+
+ switch (parser->header_state) {
+ case h_general: {
+ size_t left = data + len - p;
+ const char* pe = p + MIN(left, max_header_size);
+ while (p+1 < pe && TOKEN(p[1])) {
+ p++;
+ }
+ break;
+ }
+
+ case h_C:
+ parser->index++;
+ parser->header_state = (c == 'o' ? h_CO : h_general);
+ break;
+
+ case h_CO:
+ parser->index++;
+ parser->header_state = (c == 'n' ? h_CON : h_general);
+ break;
+
+ case h_CON:
+ parser->index++;
+ switch (c) {
+ case 'n':
+ parser->header_state = h_matching_connection;
+ break;
+ case 't':
+ parser->header_state = h_matching_content_length;
+ break;
+ default:
+ parser->header_state = h_general;
+ break;
+ }
+ break;
+
+ /* connection */
+
+ case h_matching_connection:
+ parser->index++;
+ if (parser->index > sizeof(CONNECTION)-1
+ || c != CONNECTION[parser->index]) {
+ parser->header_state = h_general;
+ } else if (parser->index == sizeof(CONNECTION)-2) {
+ parser->header_state = h_connection;
+ }
+ break;
+
+ /* proxy-connection */
+
+ case h_matching_proxy_connection:
+ parser->index++;
+ if (parser->index > sizeof(PROXY_CONNECTION)-1
+ || c != PROXY_CONNECTION[parser->index]) {
+ parser->header_state = h_general;
+ } else if (parser->index == sizeof(PROXY_CONNECTION)-2) {
+ parser->header_state = h_connection;
+ }
+ break;
+
+ /* content-length */
+
+ case h_matching_content_length:
+ parser->index++;
+ if (parser->index > sizeof(CONTENT_LENGTH)-1
+ || c != CONTENT_LENGTH[parser->index]) {
+ parser->header_state = h_general;
+ } else if (parser->index == sizeof(CONTENT_LENGTH)-2) {
+ parser->header_state = h_content_length;
+ }
+ break;
+
+ /* transfer-encoding */
+
+ case h_matching_transfer_encoding:
+ parser->index++;
+ if (parser->index > sizeof(TRANSFER_ENCODING)-1
+ || c != TRANSFER_ENCODING[parser->index]) {
+ parser->header_state = h_general;
+ } else if (parser->index == sizeof(TRANSFER_ENCODING)-2) {
+ parser->header_state = h_transfer_encoding;
+ parser->flags |= F_TRANSFER_ENCODING;
+ }
+ break;
+
+ /* upgrade */
+
+ case h_matching_upgrade:
+ parser->index++;
+ if (parser->index > sizeof(UPGRADE)-1
+ || c != UPGRADE[parser->index]) {
+ parser->header_state = h_general;
+ } else if (parser->index == sizeof(UPGRADE)-2) {
+ parser->header_state = h_upgrade;
+ }
+ break;
+
+ case h_connection:
+ case h_content_length:
+ case h_transfer_encoding:
+ case h_upgrade:
+ if (ch != ' ') parser->header_state = h_general;
+ break;
+
+ default:
+ assert(0 && "Unknown header_state");
+ break;
+ }
+ }
+
+ if (p == data + len) {
+ --p;
+ COUNT_HEADER_SIZE(p - start);
+ break;
+ }
+
+ COUNT_HEADER_SIZE(p - start);
+
+ if (ch == ':') {
+ UPDATE_STATE(s_header_value_discard_ws);
+ CALLBACK_DATA(header_field);
+ break;
+ }
+
+ SET_ERRNO(HPE_INVALID_HEADER_TOKEN);
+ goto error;
+ }
+
+ case s_header_value_discard_ws:
+ if (ch == ' ' || ch == '\t') break;
+
+ if (ch == CR) {
+ UPDATE_STATE(s_header_value_discard_ws_almost_done);
+ break;
+ }
+
+ if (ch == LF) {
+ UPDATE_STATE(s_header_value_discard_lws);
+ break;
+ }
+
+ /* fall through */
+
+ case s_header_value_start:
+ {
+ MARK(header_value);
+
+ UPDATE_STATE(s_header_value);
+ parser->index = 0;
+
+ c = LOWER(ch);
+
+ switch (parser->header_state) {
+ case h_upgrade:
+ parser->flags |= F_UPGRADE;
+ parser->header_state = h_general;
+ break;
+
+ case h_transfer_encoding:
+ /* looking for 'Transfer-Encoding: chunked' */
+ if ('c' == c) {
+ parser->header_state = h_matching_transfer_encoding_chunked;
+ } else {
+ parser->header_state = h_matching_transfer_encoding_token;
+ }
+ break;
+
+ /* Multi-value `Transfer-Encoding` header */
+ case h_matching_transfer_encoding_token_start:
+ break;
+
+ case h_content_length:
+ if (UNLIKELY(!IS_NUM(ch))) {
+ SET_ERRNO(HPE_INVALID_CONTENT_LENGTH);
+ goto error;
+ }
+
+ if (parser->flags & F_CONTENTLENGTH) {
+ SET_ERRNO(HPE_UNEXPECTED_CONTENT_LENGTH);
+ goto error;
+ }
+
+ parser->flags |= F_CONTENTLENGTH;
+ parser->content_length = ch - '0';
+ parser->header_state = h_content_length_num;
+ break;
+
+ /* when obsolete line folding is encountered for content length
+ * continue to the s_header_value state */
+ case h_content_length_ws:
+ break;
+
+ case h_connection:
+ /* looking for 'Connection: keep-alive' */
+ if (c == 'k') {
+ parser->header_state = h_matching_connection_keep_alive;
+ /* looking for 'Connection: close' */
+ } else if (c == 'c') {
+ parser->header_state = h_matching_connection_close;
+ } else if (c == 'u') {
+ parser->header_state = h_matching_connection_upgrade;
+ } else {
+ parser->header_state = h_matching_connection_token;
+ }
+ break;
+
+ /* Multi-value `Connection` header */
+ case h_matching_connection_token_start:
+ break;
+
+ default:
+ parser->header_state = h_general;
+ break;
+ }
+ break;
+ }
+
+ case s_header_value:
+ {
+ const char* start = p;
+ enum header_states h_state = (enum header_states) parser->header_state;
+ for (; p != data + len; p++) {
+ ch = *p;
+ if (ch == CR) {
+ UPDATE_STATE(s_header_almost_done);
+ parser->header_state = h_state;
+ CALLBACK_DATA(header_value);
+ break;
+ }
+
+ if (ch == LF) {
+ UPDATE_STATE(s_header_almost_done);
+ COUNT_HEADER_SIZE(p - start);
+ parser->header_state = h_state;
+ CALLBACK_DATA_NOADVANCE(header_value);
+ REEXECUTE();
+ }
+
+ if (!lenient && !IS_HEADER_CHAR(ch)) {
+ SET_ERRNO(HPE_INVALID_HEADER_TOKEN);
+ goto error;
+ }
+
+ c = LOWER(ch);
+
+ switch (h_state) {
+ case h_general:
+ {
+ size_t left = data + len - p;
+ const char* pe = p + MIN(left, max_header_size);
+
+ for (; p != pe; p++) {
+ ch = *p;
+ if (ch == CR || ch == LF) {
+ --p;
+ break;
+ }
+ if (!lenient && !IS_HEADER_CHAR(ch)) {
+ SET_ERRNO(HPE_INVALID_HEADER_TOKEN);
+ goto error;
+ }
+ }
+ if (p == data + len)
+ --p;
+ break;
+ }
+
+ case h_connection:
+ case h_transfer_encoding:
+ assert(0 && "Shouldn't get here.");
+ break;
+
+ case h_content_length:
+ if (ch == ' ') break;
+ h_state = h_content_length_num;
+ /* fall through */
+
+ case h_content_length_num:
+ {
+ uint64_t t;
+
+ if (ch == ' ') {
+ h_state = h_content_length_ws;
+ break;
+ }
+
+ if (UNLIKELY(!IS_NUM(ch))) {
+ SET_ERRNO(HPE_INVALID_CONTENT_LENGTH);
+ parser->header_state = h_state;
+ goto error;
+ }
+
+ t = parser->content_length;
+ t *= 10;
+ t += ch - '0';
+
+ /* Overflow? Test against a conservative limit for simplicity. */
+ if (UNLIKELY((ULLONG_MAX - 10) / 10 < parser->content_length)) {
+ SET_ERRNO(HPE_INVALID_CONTENT_LENGTH);
+ parser->header_state = h_state;
+ goto error;
+ }
+
+ parser->content_length = t;
+ break;
+ }
+
+ case h_content_length_ws:
+ if (ch == ' ') break;
+ SET_ERRNO(HPE_INVALID_CONTENT_LENGTH);
+ parser->header_state = h_state;
+ goto error;
+
+ /* Transfer-Encoding: chunked */
+ case h_matching_transfer_encoding_token_start:
+ /* looking for 'Transfer-Encoding: chunked' */
+ if ('c' == c) {
+ h_state = h_matching_transfer_encoding_chunked;
+ } else if (STRICT_TOKEN(c)) {
+ /* TODO(indutny): similar code below does this, but why?
+ * At the very least it seems to be inconsistent given that
+ * h_matching_transfer_encoding_token does not check for
+ * `STRICT_TOKEN`
+ */
+ h_state = h_matching_transfer_encoding_token;
+ } else if (c == ' ' || c == '\t') {
+ /* Skip lws */
+ } else {
+ h_state = h_general;
+ }
+ break;
+
+ case h_matching_transfer_encoding_chunked:
+ parser->index++;
+ if (parser->index > sizeof(CHUNKED)-1
+ || c != CHUNKED[parser->index]) {
+ h_state = h_matching_transfer_encoding_token;
+ } else if (parser->index == sizeof(CHUNKED)-2) {
+ h_state = h_transfer_encoding_chunked;
+ }
+ break;
+
+ case h_matching_transfer_encoding_token:
+ if (ch == ',') {
+ h_state = h_matching_transfer_encoding_token_start;
+ parser->index = 0;
+ }
+ break;
+
+ case h_matching_connection_token_start:
+ /* looking for 'Connection: keep-alive' */
+ if (c == 'k') {
+ h_state = h_matching_connection_keep_alive;
+ /* looking for 'Connection: close' */
+ } else if (c == 'c') {
+ h_state = h_matching_connection_close;
+ } else if (c == 'u') {
+ h_state = h_matching_connection_upgrade;
+ } else if (STRICT_TOKEN(c)) {
+ h_state = h_matching_connection_token;
+ } else if (c == ' ' || c == '\t') {
+ /* Skip lws */
+ } else {
+ h_state = h_general;
+ }
+ break;
+
+ /* looking for 'Connection: keep-alive' */
+ case h_matching_connection_keep_alive:
+ parser->index++;
+ if (parser->index > sizeof(KEEP_ALIVE)-1
+ || c != KEEP_ALIVE[parser->index]) {
+ h_state = h_matching_connection_token;
+ } else if (parser->index == sizeof(KEEP_ALIVE)-2) {
+ h_state = h_connection_keep_alive;
+ }
+ break;
+
+ /* looking for 'Connection: close' */
+ case h_matching_connection_close:
+ parser->index++;
+ if (parser->index > sizeof(CLOSE)-1 || c != CLOSE[parser->index]) {
+ h_state = h_matching_connection_token;
+ } else if (parser->index == sizeof(CLOSE)-2) {
+ h_state = h_connection_close;
+ }
+ break;
+
+ /* looking for 'Connection: upgrade' */
+ case h_matching_connection_upgrade:
+ parser->index++;
+ if (parser->index > sizeof(UPGRADE) - 1 ||
+ c != UPGRADE[parser->index]) {
+ h_state = h_matching_connection_token;
+ } else if (parser->index == sizeof(UPGRADE)-2) {
+ h_state = h_connection_upgrade;
+ }
+ break;
+
+ case h_matching_connection_token:
+ if (ch == ',') {
+ h_state = h_matching_connection_token_start;
+ parser->index = 0;
+ }
+ break;
+
+ case h_transfer_encoding_chunked:
+ if (ch != ' ') h_state = h_matching_transfer_encoding_token;
+ break;
+
+ case h_connection_keep_alive:
+ case h_connection_close:
+ case h_connection_upgrade:
+ if (ch == ',') {
+ if (h_state == h_connection_keep_alive) {
+ parser->flags |= F_CONNECTION_KEEP_ALIVE;
+ } else if (h_state == h_connection_close) {
+ parser->flags |= F_CONNECTION_CLOSE;
+ } else if (h_state == h_connection_upgrade) {
+ parser->flags |= F_CONNECTION_UPGRADE;
+ }
+ h_state = h_matching_connection_token_start;
+ parser->index = 0;
+ } else if (ch != ' ') {
+ h_state = h_matching_connection_token;
+ }
+ break;
+
+ default:
+ UPDATE_STATE(s_header_value);
+ h_state = h_general;
+ break;
+ }
+ }
+ parser->header_state = h_state;
+
+ if (p == data + len)
+ --p;
+
+ COUNT_HEADER_SIZE(p - start);
+ break;
+ }
+
+ case s_header_almost_done:
+ {
+ if (UNLIKELY(ch != LF)) {
+ SET_ERRNO(HPE_LF_EXPECTED);
+ goto error;
+ }
+
+ UPDATE_STATE(s_header_value_lws);
+ break;
+ }
+
+ case s_header_value_lws:
+ {
+ if (ch == ' ' || ch == '\t') {
+ if (parser->header_state == h_content_length_num) {
+ /* treat obsolete line folding as space */
+ parser->header_state = h_content_length_ws;
+ }
+ UPDATE_STATE(s_header_value_start);
+ REEXECUTE();
+ }
+
+ /* finished the header */
+ switch (parser->header_state) {
+ case h_connection_keep_alive:
+ parser->flags |= F_CONNECTION_KEEP_ALIVE;
+ break;
+ case h_connection_close:
+ parser->flags |= F_CONNECTION_CLOSE;
+ break;
+ case h_transfer_encoding_chunked:
+ parser->flags |= F_CHUNKED;
+ break;
+ case h_connection_upgrade:
+ parser->flags |= F_CONNECTION_UPGRADE;
+ break;
+ default:
+ break;
+ }
+
+ UPDATE_STATE(s_header_field_start);
+ REEXECUTE();
+ }
+
+ case s_header_value_discard_ws_almost_done:
+ {
+ STRICT_CHECK(ch != LF);
+ UPDATE_STATE(s_header_value_discard_lws);
+ break;
+ }
+
+ case s_header_value_discard_lws:
+ {
+ if (ch == ' ' || ch == '\t') {
+ UPDATE_STATE(s_header_value_discard_ws);
+ break;
+ } else {
+ switch (parser->header_state) {
+ case h_connection_keep_alive:
+ parser->flags |= F_CONNECTION_KEEP_ALIVE;
+ break;
+ case h_connection_close:
+ parser->flags |= F_CONNECTION_CLOSE;
+ break;
+ case h_connection_upgrade:
+ parser->flags |= F_CONNECTION_UPGRADE;
+ break;
+ case h_transfer_encoding_chunked:
+ parser->flags |= F_CHUNKED;
+ break;
+ case h_content_length:
+ /* do not allow empty content length */
+ SET_ERRNO(HPE_INVALID_CONTENT_LENGTH);
+ goto error;
+ break;
+ default:
+ break;
+ }
+
+ /* header value was empty */
+ MARK(header_value);
+ UPDATE_STATE(s_header_field_start);
+ CALLBACK_DATA_NOADVANCE(header_value);
+ REEXECUTE();
+ }
+ }
+
+ case s_headers_almost_done:
+ {
+ STRICT_CHECK(ch != LF);
+
+ if (parser->flags & F_TRAILING) {
+ /* End of a chunked request */
+ UPDATE_STATE(s_message_done);
+ CALLBACK_NOTIFY_NOADVANCE(chunk_complete);
+ REEXECUTE();
+ }
+
+ /* Cannot us transfer-encoding and a content-length header together
+ per the HTTP specification. (RFC 7230 Section 3.3.3) */
+ if ((parser->flags & F_TRANSFER_ENCODING) &&
+ (parser->flags & F_CONTENTLENGTH)) {
+ /* Allow it for lenient parsing as long as `Transfer-Encoding` is
+ * not `chunked`
+ */
+ if (!lenient || (parser->flags & F_CHUNKED)) {
+ SET_ERRNO(HPE_UNEXPECTED_CONTENT_LENGTH);
+ goto error;
+ }
+ }
+
+ UPDATE_STATE(s_headers_done);
+
+ /* Set this here so that on_headers_complete() callbacks can see it */
+ if ((parser->flags & F_UPGRADE) &&
+ (parser->flags & F_CONNECTION_UPGRADE)) {
+ /* For responses, "Upgrade: foo" and "Connection: upgrade" are
+ * mandatory only when it is a 101 Switching Protocols response,
+ * otherwise it is purely informational, to announce support.
+ */
+ parser->upgrade =
+ (parser->type == HTTP_REQUEST || parser->status_code == 101);
+ } else {
+ parser->upgrade = (parser->method == HTTP_CONNECT);
+ }
+
+ /* Here we call the headers_complete callback. This is somewhat
+ * different than other callbacks because if the user returns 1, we
+ * will interpret that as saying that this message has no body. This
+ * is needed for the annoying case of recieving a response to a HEAD
+ * request.
+ *
+ * We'd like to use CALLBACK_NOTIFY_NOADVANCE() here but we cannot, so
+ * we have to simulate it by handling a change in errno below.
+ */
+ if (settings->on_headers_complete) {
+ switch (settings->on_headers_complete(parser)) {
+ case 0:
+ break;
+
+ case 2:
+ parser->upgrade = 1;
+
+ /* fall through */
+ case 1:
+ parser->flags |= F_SKIPBODY;
+ break;
+
+ default:
+ SET_ERRNO(HPE_CB_headers_complete);
+ RETURN(p - data); /* Error */
+ }
+ }
+
+ if (HTTP_PARSER_ERRNO(parser) != HPE_OK) {
+ RETURN(p - data);
+ }
+
+ REEXECUTE();
+ }
+
+ case s_headers_done:
+ {
+ int hasBody;
+ STRICT_CHECK(ch != LF);
+
+ parser->nread = 0;
+ nread = 0;
+
+ hasBody = parser->flags & F_CHUNKED ||
+ (parser->content_length > 0 && parser->content_length != ULLONG_MAX);
+ if (parser->upgrade && (parser->method == HTTP_CONNECT ||
+ (parser->flags & F_SKIPBODY) || !hasBody)) {
+ /* Exit, the rest of the message is in a different protocol. */
+ UPDATE_STATE(NEW_MESSAGE());
+ CALLBACK_NOTIFY(message_complete);
+ RETURN((p - data) + 1);
+ }
+
+ if (parser->flags & F_SKIPBODY) {
+ UPDATE_STATE(NEW_MESSAGE());
+ CALLBACK_NOTIFY(message_complete);
+ } else if (parser->flags & F_CHUNKED) {
+ /* chunked encoding - ignore Content-Length header,
+ * prepare for a chunk */
+ UPDATE_STATE(s_chunk_size_start);
+ } else if (parser->flags & F_TRANSFER_ENCODING) {
+ if (parser->type == HTTP_REQUEST && !lenient) {
+ /* RFC 7230 3.3.3 */
+
+ /* If a Transfer-Encoding header field
+ * is present in a request and the chunked transfer coding is not
+ * the final encoding, the message body length cannot be determined
+ * reliably; the server MUST respond with the 400 (Bad Request)
+ * status code and then close the connection.
+ */
+ SET_ERRNO(HPE_INVALID_TRANSFER_ENCODING);
+ RETURN(p - data); /* Error */
+ } else {
+ /* RFC 7230 3.3.3 */
+
+ /* If a Transfer-Encoding header field is present in a response and
+ * the chunked transfer coding is not the final encoding, the
+ * message body length is determined by reading the connection until
+ * it is closed by the server.
+ */
+ UPDATE_STATE(s_body_identity_eof);
+ }
+ } else {
+ if (parser->content_length == 0) {
+ /* Content-Length header given but zero: Content-Length: 0\r\n */
+ UPDATE_STATE(NEW_MESSAGE());
+ CALLBACK_NOTIFY(message_complete);
+ } else if (parser->content_length != ULLONG_MAX) {
+ /* Content-Length header given and non-zero */
+ UPDATE_STATE(s_body_identity);
+ } else {
+ if (!http_message_needs_eof(parser)) {
+ /* Assume content-length 0 - read the next */
+ UPDATE_STATE(NEW_MESSAGE());
+ CALLBACK_NOTIFY(message_complete);
+ } else {
+ /* Read body until EOF */
+ UPDATE_STATE(s_body_identity_eof);
+ }
+ }
+ }
+
+ break;
+ }
+
+ case s_body_identity:
+ {
+ uint64_t to_read = MIN(parser->content_length,
+ (uint64_t) ((data + len) - p));
+
+ assert(parser->content_length != 0
+ && parser->content_length != ULLONG_MAX);
+
+ /* The difference between advancing content_length and p is because
+ * the latter will automaticaly advance on the next loop iteration.
+ * Further, if content_length ends up at 0, we want to see the last
+ * byte again for our message complete callback.
+ */
+ MARK(body);
+ parser->content_length -= to_read;
+ p += to_read - 1;
+
+ if (parser->content_length == 0) {
+ UPDATE_STATE(s_message_done);
+
+ /* Mimic CALLBACK_DATA_NOADVANCE() but with one extra byte.
+ *
+ * The alternative to doing this is to wait for the next byte to
+ * trigger the data callback, just as in every other case. The
+ * problem with this is that this makes it difficult for the test
+ * harness to distinguish between complete-on-EOF and
+ * complete-on-length. It's not clear that this distinction is
+ * important for applications, but let's keep it for now.
+ */
+ CALLBACK_DATA_(body, p - body_mark + 1, p - data);
+ REEXECUTE();
+ }
+
+ break;
+ }
+
+ /* read until EOF */
+ case s_body_identity_eof:
+ MARK(body);
+ p = data + len - 1;
+
+ break;
+
+ case s_message_done:
+ UPDATE_STATE(NEW_MESSAGE());
+ CALLBACK_NOTIFY(message_complete);
+ if (parser->upgrade) {
+ /* Exit, the rest of the message is in a different protocol. */
+ RETURN((p - data) + 1);
+ }
+ break;
+
+ case s_chunk_size_start:
+ {
+ assert(nread == 1);
+ assert(parser->flags & F_CHUNKED);
+
+ unhex_val = unhex[(unsigned char)ch];
+ if (UNLIKELY(unhex_val == -1)) {
+ SET_ERRNO(HPE_INVALID_CHUNK_SIZE);
+ goto error;
+ }
+
+ parser->content_length = unhex_val;
+ UPDATE_STATE(s_chunk_size);
+ break;
+ }
+
+ case s_chunk_size:
+ {
+ uint64_t t;
+
+ assert(parser->flags & F_CHUNKED);
+
+ if (ch == CR) {
+ UPDATE_STATE(s_chunk_size_almost_done);
+ break;
+ }
+
+ unhex_val = unhex[(unsigned char)ch];
+
+ if (unhex_val == -1) {
+ if (ch == ';' || ch == ' ') {
+ UPDATE_STATE(s_chunk_parameters);
+ break;
+ }
+
+ SET_ERRNO(HPE_INVALID_CHUNK_SIZE);
+ goto error;
+ }
+
+ t = parser->content_length;
+ t *= 16;
+ t += unhex_val;
+
+ /* Overflow? Test against a conservative limit for simplicity. */
+ if (UNLIKELY((ULLONG_MAX - 16) / 16 < parser->content_length)) {
+ SET_ERRNO(HPE_INVALID_CONTENT_LENGTH);
+ goto error;
+ }
+
+ parser->content_length = t;
+ break;
+ }
+
+ case s_chunk_parameters:
+ {
+ assert(parser->flags & F_CHUNKED);
+ /* just ignore this shit. TODO check for overflow */
+ if (ch == CR) {
+ UPDATE_STATE(s_chunk_size_almost_done);
+ break;
+ }
+ break;
+ }
+
+ case s_chunk_size_almost_done:
+ {
+ assert(parser->flags & F_CHUNKED);
+ STRICT_CHECK(ch != LF);
+
+ parser->nread = 0;
+ nread = 0;
+
+ if (parser->content_length == 0) {
+ parser->flags |= F_TRAILING;
+ UPDATE_STATE(s_header_field_start);
+ } else {
+ UPDATE_STATE(s_chunk_data);
+ }
+ CALLBACK_NOTIFY(chunk_header);
+ break;
+ }
+
+ case s_chunk_data:
+ {
+ uint64_t to_read = MIN(parser->content_length,
+ (uint64_t) ((data + len) - p));
+
+ assert(parser->flags & F_CHUNKED);
+ assert(parser->content_length != 0
+ && parser->content_length != ULLONG_MAX);
+
+ /* See the explanation in s_body_identity for why the content
+ * length and data pointers are managed this way.
+ */
+ MARK(body);
+ parser->content_length -= to_read;
+ p += to_read - 1;
+
+ if (parser->content_length == 0) {
+ UPDATE_STATE(s_chunk_data_almost_done);
+ }
+
+ break;
+ }
+
+ case s_chunk_data_almost_done:
+ assert(parser->flags & F_CHUNKED);
+ assert(parser->content_length == 0);
+ STRICT_CHECK(ch != CR);
+ UPDATE_STATE(s_chunk_data_done);
+ CALLBACK_DATA(body);
+ break;
+
+ case s_chunk_data_done:
+ assert(parser->flags & F_CHUNKED);
+ STRICT_CHECK(ch != LF);
+ parser->nread = 0;
+ nread = 0;
+ UPDATE_STATE(s_chunk_size_start);
+ CALLBACK_NOTIFY(chunk_complete);
+ break;
+
+ default:
+ assert(0 && "unhandled state");
+ SET_ERRNO(HPE_INVALID_INTERNAL_STATE);
+ goto error;
+ }
+ }
+
+ /* Run callbacks for any marks that we have leftover after we ran out of
+ * bytes. There should be at most one of these set, so it's OK to invoke
+ * them in series (unset marks will not result in callbacks).
+ *
+ * We use the NOADVANCE() variety of callbacks here because 'p' has already
+ * overflowed 'data' and this allows us to correct for the off-by-one that
+ * we'd otherwise have (since CALLBACK_DATA() is meant to be run with a 'p'
+ * value that's in-bounds).
+ */
+
+ assert(((header_field_mark ? 1 : 0) +
+ (header_value_mark ? 1 : 0) +
+ (url_mark ? 1 : 0) +
+ (body_mark ? 1 : 0) +
+ (status_mark ? 1 : 0)) <= 1);
+
+ CALLBACK_DATA_NOADVANCE(header_field);
+ CALLBACK_DATA_NOADVANCE(header_value);
+ CALLBACK_DATA_NOADVANCE(url);
+ CALLBACK_DATA_NOADVANCE(body);
+ CALLBACK_DATA_NOADVANCE(status);
+
+ RETURN(len);
+
+error:
+ if (HTTP_PARSER_ERRNO(parser) == HPE_OK) {
+ SET_ERRNO(HPE_UNKNOWN);
+ }
+
+ RETURN(p - data);
+}
+
+
+/* Does the parser need to see an EOF to find the end of the message? */
+int
+http_message_needs_eof (const http_parser *parser)
+{
+ if (parser->type == HTTP_REQUEST) {
+ return 0;
+ }
+
+ /* See RFC 2616 section 4.4 */
+ if (parser->status_code / 100 == 1 || /* 1xx e.g. Continue */
+ parser->status_code == 204 || /* No Content */
+ parser->status_code == 304 || /* Not Modified */
+ parser->flags & F_SKIPBODY) { /* response to a HEAD request */
+ return 0;
+ }
+
+ /* RFC 7230 3.3.3, see `s_headers_almost_done` */
+ if ((parser->flags & F_TRANSFER_ENCODING) &&
+ (parser->flags & F_CHUNKED) == 0) {
+ return 1;
+ }
+
+ if ((parser->flags & F_CHUNKED) || parser->content_length != ULLONG_MAX) {
+ return 0;
+ }
+
+ return 1;
+}
+
+
+int
+http_should_keep_alive (const http_parser *parser)
+{
+ if (parser->http_major > 0 && parser->http_minor > 0) {
+ /* HTTP/1.1 */
+ if (parser->flags & F_CONNECTION_CLOSE) {
+ return 0;
+ }
+ } else {
+ /* HTTP/1.0 or earlier */
+ if (!(parser->flags & F_CONNECTION_KEEP_ALIVE)) {
+ return 0;
+ }
+ }
+
+ return !http_message_needs_eof(parser);
+}
+
+
+const char *
+http_method_str (enum http_method m)
+{
+ return ELEM_AT(method_strings, m, "");
+}
+
+const char *
+http_status_str (enum http_status s)
+{
+ switch (s) {
+#define XX(num, name, string) case HTTP_STATUS_##name: return #string;
+ HTTP_STATUS_MAP(XX)
+#undef XX
+ default: return "";
+ }
+}
+
+void
+http_parser_init (http_parser *parser, enum http_parser_type t)
+{
+ void *data = parser->data; /* preserve application data */
+ memset(parser, 0, sizeof(*parser));
+ parser->data = data;
+ parser->type = t;
+ parser->state = (t == HTTP_REQUEST ? s_start_req : (t == HTTP_RESPONSE ? s_start_res : s_start_req_or_res));
+ parser->http_errno = HPE_OK;
+}
+
+void
+http_parser_settings_init(http_parser_settings *settings)
+{
+ memset(settings, 0, sizeof(*settings));
+}
+
+const char *
+http_errno_name(enum http_errno err) {
+ assert(((size_t) err) < ARRAY_SIZE(http_strerror_tab));
+ return http_strerror_tab[err].name;
+}
+
+const char *
+http_errno_description(enum http_errno err) {
+ assert(((size_t) err) < ARRAY_SIZE(http_strerror_tab));
+ return http_strerror_tab[err].description;
+}
+
+static enum http_host_state
+http_parse_host_char(enum http_host_state s, const char ch) {
+ switch(s) {
+ case s_http_userinfo:
+ case s_http_userinfo_start:
+ if (ch == '@') {
+ return s_http_host_start;
+ }
+
+ if (IS_USERINFO_CHAR(ch)) {
+ return s_http_userinfo;
+ }
+ break;
+
+ case s_http_host_start:
+ if (ch == '[') {
+ return s_http_host_v6_start;
+ }
+
+ if (IS_HOST_CHAR(ch)) {
+ return s_http_host;
+ }
+
+ break;
+
+ case s_http_host:
+ if (IS_HOST_CHAR(ch)) {
+ return s_http_host;
+ }
+
+ /* fall through */
+ case s_http_host_v6_end:
+ if (ch == ':') {
+ return s_http_host_port_start;
+ }
+
+ break;
+
+ case s_http_host_v6:
+ if (ch == ']') {
+ return s_http_host_v6_end;
+ }
+
+ /* fall through */
+ case s_http_host_v6_start:
+ if (IS_HEX(ch) || ch == ':' || ch == '.') {
+ return s_http_host_v6;
+ }
+
+ if (s == s_http_host_v6 && ch == '%') {
+ return s_http_host_v6_zone_start;
+ }
+ break;
+
+ case s_http_host_v6_zone:
+ if (ch == ']') {
+ return s_http_host_v6_end;
+ }
+
+ /* fall through */
+ case s_http_host_v6_zone_start:
+ /* RFC 6874 Zone ID consists of 1*( unreserved / pct-encoded) */
+ if (IS_ALPHANUM(ch) || ch == '%' || ch == '.' || ch == '-' || ch == '_' ||
+ ch == '~') {
+ return s_http_host_v6_zone;
+ }
+ break;
+
+ case s_http_host_port:
+ case s_http_host_port_start:
+ if (IS_NUM(ch)) {
+ return s_http_host_port;
+ }
+
+ break;
+
+ default:
+ break;
+ }
+ return s_http_host_dead;
+}
+
+static int
+http_parse_host(const char * buf, struct http_parser_url *u, int found_at) {
+ enum http_host_state s;
+
+ const char *p;
+ size_t buflen = u->field_data[UF_HOST].off + u->field_data[UF_HOST].len;
+
+ assert(u->field_set & (1 << UF_HOST));
+
+ u->field_data[UF_HOST].len = 0;
+
+ s = found_at ? s_http_userinfo_start : s_http_host_start;
+
+ for (p = buf + u->field_data[UF_HOST].off; p < buf + buflen; p++) {
+ enum http_host_state new_s = http_parse_host_char(s, *p);
+
+ if (new_s == s_http_host_dead) {
+ return 1;
+ }
+
+ switch(new_s) {
+ case s_http_host:
+ if (s != s_http_host) {
+ u->field_data[UF_HOST].off = (uint16_t)(p - buf);
+ }
+ u->field_data[UF_HOST].len++;
+ break;
+
+ case s_http_host_v6:
+ if (s != s_http_host_v6) {
+ u->field_data[UF_HOST].off = (uint16_t)(p - buf);
+ }
+ u->field_data[UF_HOST].len++;
+ break;
+
+ case s_http_host_v6_zone_start:
+ case s_http_host_v6_zone:
+ u->field_data[UF_HOST].len++;
+ break;
+
+ case s_http_host_port:
+ if (s != s_http_host_port) {
+ u->field_data[UF_PORT].off = (uint16_t)(p - buf);
+ u->field_data[UF_PORT].len = 0;
+ u->field_set |= (1 << UF_PORT);
+ }
+ u->field_data[UF_PORT].len++;
+ break;
+
+ case s_http_userinfo:
+ if (s != s_http_userinfo) {
+ u->field_data[UF_USERINFO].off = (uint16_t)(p - buf);
+ u->field_data[UF_USERINFO].len = 0;
+ u->field_set |= (1 << UF_USERINFO);
+ }
+ u->field_data[UF_USERINFO].len++;
+ break;
+
+ default:
+ break;
+ }
+ s = new_s;
+ }
+
+ /* Make sure we don't end somewhere unexpected */
+ switch (s) {
+ case s_http_host_start:
+ case s_http_host_v6_start:
+ case s_http_host_v6:
+ case s_http_host_v6_zone_start:
+ case s_http_host_v6_zone:
+ case s_http_host_port_start:
+ case s_http_userinfo:
+ case s_http_userinfo_start:
+ return 1;
+ default:
+ break;
+ }
+
+ return 0;
+}
+
+void
+http_parser_url_init(struct http_parser_url *u) {
+ memset(u, 0, sizeof(*u));
+}
+
+int
+http_parser_parse_url(const char *buf, size_t buflen, int is_connect,
+ struct http_parser_url *u)
+{
+ enum state s;
+ const char *p;
+ enum http_parser_url_fields uf, old_uf;
+ int found_at = 0;
+
+ if (buflen == 0) {
+ return 1;
+ }
+
+ u->port = u->field_set = 0;
+ s = is_connect ? s_req_server_start : s_req_spaces_before_url;
+ old_uf = UF_MAX;
+
+ for (p = buf; p < buf + buflen; p++) {
+ s = parse_url_char(s, *p);
+
+ /* Figure out the next field that we're operating on */
+ switch (s) {
+ case s_dead:
+ return 1;
+
+ /* Skip delimeters */
+ case s_req_schema_slash:
+ case s_req_schema_slash_slash:
+ case s_req_server_start:
+ case s_req_query_string_start:
+ case s_req_fragment_start:
+ continue;
+
+ case s_req_schema:
+ uf = UF_SCHEMA;
+ break;
+
+ case s_req_server_with_at:
+ found_at = 1;
+
+ /* fall through */
+ case s_req_server:
+ uf = UF_HOST;
+ break;
+
+ case s_req_path:
+ uf = UF_PATH;
+ break;
+
+ case s_req_query_string:
+ uf = UF_QUERY;
+ break;
+
+ case s_req_fragment:
+ uf = UF_FRAGMENT;
+ break;
+
+ default:
+ assert(!"Unexpected state");
+ return 1;
+ }
+
+ /* Nothing's changed; soldier on */
+ if (uf == old_uf) {
+ u->field_data[uf].len++;
+ continue;
+ }
+
+ u->field_data[uf].off = (uint16_t)(p - buf);
+ u->field_data[uf].len = 1;
+
+ u->field_set |= (1 << uf);
+ old_uf = uf;
+ }
+
+ /* host must be present if there is a schema */
+ /* parsing http:///toto will fail */
+ if ((u->field_set & (1 << UF_SCHEMA)) &&
+ (u->field_set & (1 << UF_HOST)) == 0) {
+ return 1;
+ }
+
+ if (u->field_set & (1 << UF_HOST)) {
+ if (http_parse_host(buf, u, found_at) != 0) {
+ return 1;
+ }
+ }
+
+ /* CONNECT requests can only contain "hostname:port" */
+ if (is_connect && u->field_set != ((1 << UF_HOST)|(1 << UF_PORT))) {
+ return 1;
+ }
+
+ if (u->field_set & (1 << UF_PORT)) {
+ uint16_t off;
+ uint16_t len;
+ const char* p;
+ const char* end;
+ unsigned long v;
+
+ off = u->field_data[UF_PORT].off;
+ len = u->field_data[UF_PORT].len;
+ end = buf + off + len;
+
+ /* NOTE: The characters are already validated and are in the [0-9] range */
+ assert(off + len <= buflen && "Port number overflow");
+ v = 0;
+ for (p = buf + off; p < end; p++) {
+ v *= 10;
+ v += *p - '0';
+
+ /* Ports have a max value of 2^16 */
+ if (v > 0xffff) {
+ return 1;
+ }
+ }
+
+ u->port = (uint16_t) v;
+ }
+
+ return 0;
+}
+
+void
+http_parser_pause(http_parser *parser, int paused) {
+ /* Users should only be pausing/unpausing a parser that is not in an error
+ * state. In non-debug builds, there's not much that we can do about this
+ * other than ignore it.
+ */
+ if (HTTP_PARSER_ERRNO(parser) == HPE_OK ||
+ HTTP_PARSER_ERRNO(parser) == HPE_PAUSED) {
+ uint32_t nread = parser->nread; /* used by the SET_ERRNO macro */
+ SET_ERRNO((paused) ? HPE_PAUSED : HPE_OK);
+ } else {
+ assert(0 && "Attempting to pause parser in error state");
+ }
+}
+
+int
+http_body_is_final(const struct http_parser *parser) {
+ return parser->state == s_message_done;
+}
+
+unsigned long
+http_parser_version(void) {
+ return HTTP_PARSER_VERSION_MAJOR * 0x10000 |
+ HTTP_PARSER_VERSION_MINOR * 0x00100 |
+ HTTP_PARSER_VERSION_PATCH * 0x00001;
+}
+
+void
+http_parser_set_max_header_size(uint32_t size) {
+ max_header_size = size;
+}
diff --git a/lib/http_parser.h b/lib/http_parser.h
new file mode 100755
index 0000000..4938ef5
--- /dev/null
+++ b/lib/http_parser.h
@@ -0,0 +1,455 @@
+/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+#ifndef http_parser_h
+#define http_parser_h
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Also update SONAME in the Makefile whenever you change these. */
+#define HTTP_PARSER_VERSION_MAJOR 2
+#define HTTP_PARSER_VERSION_MINOR 9
+#define HTTP_PARSER_VERSION_PATCH 3
+
+#include
+#if defined(_WIN32) && !defined(__MINGW32__) && \
+ (!defined(_MSC_VER) || _MSC_VER<1600) && !defined(__WINE__)
+#include
+typedef __int8 int8_t;
+typedef unsigned __int8 uint8_t;
+typedef __int16 int16_t;
+typedef unsigned __int16 uint16_t;
+typedef __int32 int32_t;
+typedef unsigned __int32 uint32_t;
+typedef __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+#else
+#include
+#endif
+
+/* Compile with -DHTTP_PARSER_STRICT=0 to make less checks, but run
+ * faster
+ */
+#ifndef HTTP_PARSER_STRICT
+# define HTTP_PARSER_STRICT 0
+#endif
+
+/* Maximium header size allowed. If the macro is not defined
+ * before including this header then the default is used. To
+ * change the maximum header size, define the macro in the build
+ * environment (e.g. -DHTTP_MAX_HEADER_SIZE=). To remove
+ * the effective limit on the size of the header, define the macro
+ * to a very large number (e.g. -DHTTP_MAX_HEADER_SIZE=0x7fffffff)
+ */
+#ifndef HTTP_MAX_HEADER_SIZE
+# define HTTP_MAX_HEADER_SIZE (80*1024)
+#endif
+
+typedef struct http_parser http_parser;
+typedef struct http_parser_settings http_parser_settings;
+
+
+/* Callbacks should return non-zero to indicate an error. The parser will
+ * then halt execution.
+ *
+ * The one exception is on_headers_complete. In a HTTP_RESPONSE parser
+ * returning '1' from on_headers_complete will tell the parser that it
+ * should not expect a body. This is used when receiving a response to a
+ * HEAD request which may contain 'Content-Length' or 'Transfer-Encoding:
+ * chunked' headers that indicate the presence of a body.
+ *
+ * Returning `2` from on_headers_complete will tell parser that it should not
+ * expect neither a body nor any futher responses on this connection. This is
+ * useful for handling responses to a CONNECT request which may not contain
+ * `Upgrade` or `Connection: upgrade` headers.
+ *
+ * http_data_cb does not return data chunks. It will be called arbitrarily
+ * many times for each string. E.G. you might get 10 callbacks for "on_url"
+ * each providing just a few characters more data.
+ */
+typedef int (*http_data_cb) (http_parser*, const char *at, size_t length);
+typedef int (*http_cb) (http_parser*);
+
+
+/* Status Codes */
+#define HTTP_STATUS_MAP(XX) \
+ XX(100, CONTINUE, Continue) \
+ XX(101, SWITCHING_PROTOCOLS, Switching Protocols) \
+ XX(102, PROCESSING, Processing) \
+ XX(200, OK, OK) \
+ XX(201, CREATED, Created) \
+ XX(202, ACCEPTED, Accepted) \
+ XX(203, NON_AUTHORITATIVE_INFORMATION, Non-Authoritative Information) \
+ XX(204, NO_CONTENT, No Content) \
+ XX(205, RESET_CONTENT, Reset Content) \
+ XX(206, PARTIAL_CONTENT, Partial Content) \
+ XX(207, MULTI_STATUS, Multi-Status) \
+ XX(208, ALREADY_REPORTED, Already Reported) \
+ XX(226, IM_USED, IM Used) \
+ XX(300, MULTIPLE_CHOICES, Multiple Choices) \
+ XX(301, MOVED_PERMANENTLY, Moved Permanently) \
+ XX(302, FOUND, Found) \
+ XX(303, SEE_OTHER, See Other) \
+ XX(304, NOT_MODIFIED, Not Modified) \
+ XX(305, USE_PROXY, Use Proxy) \
+ XX(307, TEMPORARY_REDIRECT, Temporary Redirect) \
+ XX(308, PERMANENT_REDIRECT, Permanent Redirect) \
+ XX(400, BAD_REQUEST, Bad Request) \
+ XX(401, UNAUTHORIZED, Unauthorized) \
+ XX(402, PAYMENT_REQUIRED, Payment Required) \
+ XX(403, FORBIDDEN, Forbidden) \
+ XX(404, NOT_FOUND, Not Found) \
+ XX(405, METHOD_NOT_ALLOWED, Method Not Allowed) \
+ XX(406, NOT_ACCEPTABLE, Not Acceptable) \
+ XX(407, PROXY_AUTHENTICATION_REQUIRED, Proxy Authentication Required) \
+ XX(408, REQUEST_TIMEOUT, Request Timeout) \
+ XX(409, CONFLICT, Conflict) \
+ XX(410, GONE, Gone) \
+ XX(411, LENGTH_REQUIRED, Length Required) \
+ XX(412, PRECONDITION_FAILED, Precondition Failed) \
+ XX(413, PAYLOAD_TOO_LARGE, Payload Too Large) \
+ XX(414, URI_TOO_LONG, URI Too Long) \
+ XX(415, UNSUPPORTED_MEDIA_TYPE, Unsupported Media Type) \
+ XX(416, RANGE_NOT_SATISFIABLE, Range Not Satisfiable) \
+ XX(417, EXPECTATION_FAILED, Expectation Failed) \
+ XX(421, MISDIRECTED_REQUEST, Misdirected Request) \
+ XX(422, UNPROCESSABLE_ENTITY, Unprocessable Entity) \
+ XX(423, LOCKED, Locked) \
+ XX(424, FAILED_DEPENDENCY, Failed Dependency) \
+ XX(426, UPGRADE_REQUIRED, Upgrade Required) \
+ XX(428, PRECONDITION_REQUIRED, Precondition Required) \
+ XX(429, TOO_MANY_REQUESTS, Too Many Requests) \
+ XX(431, REQUEST_HEADER_FIELDS_TOO_LARGE, Request Header Fields Too Large) \
+ XX(451, UNAVAILABLE_FOR_LEGAL_REASONS, Unavailable For Legal Reasons) \
+ XX(500, INTERNAL_SERVER_ERROR, Internal Server Error) \
+ XX(501, NOT_IMPLEMENTED, Not Implemented) \
+ XX(502, BAD_GATEWAY, Bad Gateway) \
+ XX(503, SERVICE_UNAVAILABLE, Service Unavailable) \
+ XX(504, GATEWAY_TIMEOUT, Gateway Timeout) \
+ XX(505, HTTP_VERSION_NOT_SUPPORTED, HTTP Version Not Supported) \
+ XX(506, VARIANT_ALSO_NEGOTIATES, Variant Also Negotiates) \
+ XX(507, INSUFFICIENT_STORAGE, Insufficient Storage) \
+ XX(508, LOOP_DETECTED, Loop Detected) \
+ XX(510, NOT_EXTENDED, Not Extended) \
+ XX(511, NETWORK_AUTHENTICATION_REQUIRED, Network Authentication Required) \
+
+enum http_status
+ {
+#define XX(num, name, string) HTTP_STATUS_##name = num,
+ HTTP_STATUS_MAP(XX)
+#undef XX
+ };
+
+
+/* Request Methods */
+#define HTTP_METHOD_MAP(XX) \
+ XX(0, DELETE, DELETE) \
+ XX(1, GET, GET) \
+ XX(2, HEAD, HEAD) \
+ XX(3, POST, POST) \
+ XX(4, PUT, PUT) \
+ /* pathological */ \
+ XX(5, CONNECT, CONNECT) \
+ XX(6, OPTIONS, OPTIONS) \
+ XX(7, TRACE, TRACE) \
+ /* WebDAV */ \
+ XX(8, COPY, COPY) \
+ XX(9, LOCK, LOCK) \
+ XX(10, MKCOL, MKCOL) \
+ XX(11, MOVE, MOVE) \
+ XX(12, PROPFIND, PROPFIND) \
+ XX(13, PROPPATCH, PROPPATCH) \
+ XX(14, SEARCH, SEARCH) \
+ XX(15, UNLOCK, UNLOCK) \
+ XX(16, BIND, BIND) \
+ XX(17, REBIND, REBIND) \
+ XX(18, UNBIND, UNBIND) \
+ XX(19, ACL, ACL) \
+ /* subversion */ \
+ XX(20, REPORT, REPORT) \
+ XX(21, MKACTIVITY, MKACTIVITY) \
+ XX(22, CHECKOUT, CHECKOUT) \
+ XX(23, MERGE, MERGE) \
+ /* upnp */ \
+ XX(24, MSEARCH, M-SEARCH) \
+ XX(25, NOTIFY, NOTIFY) \
+ XX(26, SUBSCRIBE, SUBSCRIBE) \
+ XX(27, UNSUBSCRIBE, UNSUBSCRIBE) \
+ /* RFC-5789 */ \
+ XX(28, PATCH, PATCH) \
+ XX(29, PURGE, PURGE) \
+ /* CalDAV */ \
+ XX(30, MKCALENDAR, MKCALENDAR) \
+ /* RFC-2068, section 19.6.1.2 */ \
+ XX(31, LINK, LINK) \
+ XX(32, UNLINK, UNLINK) \
+ /* icecast */ \
+ XX(33, SOURCE, SOURCE) \
+ /* RFC-2326 (RTSP) */ \
+ XX(34, DESCRIBE, DESCRIBE) \
+ XX(35, ANNOUNCE, ANNOUNCE) \
+ XX(36, SETUP, SETUP) \
+ XX(37, PLAY, PLAY) \
+ XX(38, PAUSE, PAUSE) \
+ XX(39, TEARDOWN, TEARDOWN) \
+ XX(40, GET_PARAMETER, GET_PARAMETER) \
+ XX(41, SET_PARAMETER, SET_PARAMETER) \
+ XX(42, REDIRECT, REDIRECT) \
+ XX(43, RECORD, RECORD) \
+ /* RAOP */ \
+ XX(44, FLUSH, FLUSH) \
+
+enum http_method
+ {
+#define XX(num, name, string) HTTP_##name = num,
+ HTTP_METHOD_MAP(XX)
+#undef XX
+ };
+
+
+enum http_parser_type { HTTP_REQUEST, HTTP_RESPONSE, HTTP_BOTH };
+
+
+/* Flag values for http_parser.flags field */
+enum flags
+ { F_CHUNKED = 1 << 0
+ , F_CONNECTION_KEEP_ALIVE = 1 << 1
+ , F_CONNECTION_CLOSE = 1 << 2
+ , F_CONNECTION_UPGRADE = 1 << 3
+ , F_TRAILING = 1 << 4
+ , F_UPGRADE = 1 << 5
+ , F_SKIPBODY = 1 << 6
+ , F_CONTENTLENGTH = 1 << 7
+ , F_TRANSFER_ENCODING = 1 << 8
+ };
+
+
+/* Map for errno-related constants
+ *
+ * The provided argument should be a macro that takes 2 arguments.
+ */
+#define HTTP_ERRNO_MAP(XX) \
+ /* No error */ \
+ XX(OK, "success") \
+ \
+ /* Callback-related errors */ \
+ XX(CB_message_begin, "the on_message_begin callback failed") \
+ XX(CB_url, "the on_url callback failed") \
+ XX(CB_header_field, "the on_header_field callback failed") \
+ XX(CB_header_value, "the on_header_value callback failed") \
+ XX(CB_headers_complete, "the on_headers_complete callback failed") \
+ XX(CB_body, "the on_body callback failed") \
+ XX(CB_message_complete, "the on_message_complete callback failed") \
+ XX(CB_status, "the on_status callback failed") \
+ XX(CB_chunk_header, "the on_chunk_header callback failed") \
+ XX(CB_chunk_complete, "the on_chunk_complete callback failed") \
+ \
+ /* Parsing-related errors */ \
+ XX(INVALID_EOF_STATE, "stream ended at an unexpected time") \
+ XX(HEADER_OVERFLOW, \
+ "too many header bytes seen; overflow detected") \
+ XX(CLOSED_CONNECTION, \
+ "data received after completed connection: close message") \
+ XX(INVALID_VERSION, "invalid HTTP version") \
+ XX(INVALID_STATUS, "invalid HTTP status code") \
+ XX(INVALID_METHOD, "invalid HTTP method") \
+ XX(INVALID_URL, "invalid URL") \
+ XX(INVALID_HOST, "invalid host") \
+ XX(INVALID_PORT, "invalid port") \
+ XX(INVALID_PATH, "invalid path") \
+ XX(INVALID_QUERY_STRING, "invalid query string") \
+ XX(INVALID_FRAGMENT, "invalid fragment") \
+ XX(LF_EXPECTED, "LF character expected") \
+ XX(INVALID_HEADER_TOKEN, "invalid character in header") \
+ XX(INVALID_CONTENT_LENGTH, \
+ "invalid character in content-length header") \
+ XX(UNEXPECTED_CONTENT_LENGTH, \
+ "unexpected content-length header") \
+ XX(INVALID_CHUNK_SIZE, \
+ "invalid character in chunk size header") \
+ XX(INVALID_TRANSFER_ENCODING, \
+ "request has invalid transfer-encoding") \
+ XX(INVALID_CONSTANT, "invalid constant string") \
+ XX(INVALID_INTERNAL_STATE, "encountered unexpected internal state")\
+ XX(STRICT, "strict mode assertion failed") \
+ XX(PAUSED, "parser is paused") \
+ XX(UNKNOWN, "an unknown error occurred")
+
+
+/* Define HPE_* values for each errno value above */
+#define HTTP_ERRNO_GEN(n, s) HPE_##n,
+enum http_errno {
+ HTTP_ERRNO_MAP(HTTP_ERRNO_GEN)
+};
+#undef HTTP_ERRNO_GEN
+
+
+/* Get an http_errno value from an http_parser */
+#define HTTP_PARSER_ERRNO(p) ((enum http_errno) (p)->http_errno)
+
+
+struct http_parser {
+ /** PRIVATE **/
+ unsigned int type : 2; /* enum http_parser_type */
+ unsigned int state : 7; /* enum state from http_parser.c */
+ unsigned int header_state : 7; /* enum header_state from http_parser.c */
+ unsigned int index : 7; /* index into current matcher */
+ unsigned int lenient_http_headers : 1;
+ unsigned int flags : 16; /* F_* values from 'flags' enum; semi-public */
+
+ uint32_t nread; /* # bytes read in various scenarios */
+ uint64_t content_length; /* # bytes in body (0 if no Content-Length header) */
+
+ /** READ-ONLY **/
+ unsigned short http_major;
+ unsigned short http_minor;
+ unsigned int status_code : 16; /* responses only */
+ unsigned int method : 8; /* requests only */
+ unsigned int http_errno : 7;
+
+ /* 1 = Upgrade header was present and the parser has exited because of that.
+ * 0 = No upgrade header present.
+ * Should be checked when http_parser_execute() returns in addition to
+ * error checking.
+ */
+ unsigned int upgrade : 1;
+
+ /** PUBLIC **/
+ void *data; /* A pointer to get hook to the "connection" or "socket" object */
+};
+
+
+struct http_parser_settings {
+ http_cb on_message_begin;
+ http_data_cb on_url;
+ http_data_cb on_status;
+ http_data_cb on_header_field;
+ http_data_cb on_header_value;
+ http_cb on_headers_complete;
+ http_data_cb on_body;
+ http_cb on_message_complete;
+ /* When on_chunk_header is called, the current chunk length is stored
+ * in parser->content_length.
+ */
+ http_cb on_chunk_header;
+ http_cb on_chunk_complete;
+};
+
+
+enum http_parser_url_fields
+ { UF_SCHEMA = 0
+ , UF_HOST = 1
+ , UF_PORT = 2
+ , UF_PATH = 3
+ , UF_QUERY = 4
+ , UF_FRAGMENT = 5
+ , UF_USERINFO = 6
+ , UF_MAX = 7
+ };
+
+
+/* Result structure for http_parser_parse_url().
+ *
+ * Callers should index into field_data[] with UF_* values iff field_set
+ * has the relevant (1 << UF_*) bit set. As a courtesy to clients (and
+ * because we probably have padding left over), we convert any port to
+ * a uint16_t.
+ */
+struct http_parser_url {
+ uint16_t field_set; /* Bitmask of (1 << UF_*) values */
+ uint16_t port; /* Converted UF_PORT string */
+
+ struct {
+ uint16_t off; /* Offset into buffer in which field starts */
+ uint16_t len; /* Length of run in buffer */
+ } field_data[UF_MAX];
+};
+
+
+/* Returns the library version. Bits 16-23 contain the major version number,
+ * bits 8-15 the minor version number and bits 0-7 the patch level.
+ * Usage example:
+ *
+ * unsigned long version = http_parser_version();
+ * unsigned major = (version >> 16) & 255;
+ * unsigned minor = (version >> 8) & 255;
+ * unsigned patch = version & 255;
+ * printf("http_parser v%u.%u.%u\n", major, minor, patch);
+ */
+unsigned long http_parser_version(void);
+
+void http_parser_init(http_parser *parser, enum http_parser_type type);
+
+
+/* Initialize http_parser_settings members to 0
+ */
+void http_parser_settings_init(http_parser_settings *settings);
+
+
+/* Executes the parser. Returns number of parsed bytes. Sets
+ * `parser->http_errno` on error. */
+size_t http_parser_execute(http_parser *parser,
+ const http_parser_settings *settings,
+ const char *data,
+ size_t len);
+
+
+/* If http_should_keep_alive() in the on_headers_complete or
+ * on_message_complete callback returns 0, then this should be
+ * the last message on the connection.
+ * If you are the server, respond with the "Connection: close" header.
+ * If you are the client, close the connection.
+ */
+int http_should_keep_alive(const http_parser *parser);
+
+/* Returns a string version of the HTTP method. */
+const char *http_method_str(enum http_method m);
+
+/* Returns a string version of the HTTP status code. */
+const char *http_status_str(enum http_status s);
+
+/* Return a string name of the given error */
+const char *http_errno_name(enum http_errno err);
+
+/* Return a string description of the given error */
+const char *http_errno_description(enum http_errno err);
+
+/* Initialize all http_parser_url members to 0 */
+void http_parser_url_init(struct http_parser_url *u);
+
+/* Parse a URL; return nonzero on failure */
+int http_parser_parse_url(const char *buf, size_t buflen,
+ int is_connect,
+ struct http_parser_url *u);
+
+/* Pause or un-pause the parser; a nonzero value pauses */
+void http_parser_pause(http_parser *parser, int paused);
+
+/* Checks if this is the final chunk of the body. */
+int http_body_is_final(const http_parser *parser);
+
+/* Change the maximum header size provided at compile time. */
+void http_parser_set_max_header_size(uint32_t size);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
diff --git a/lib/http_request.c b/lib/http_request.c
new file mode 100755
index 0000000..a9d2ca0
--- /dev/null
+++ b/lib/http_request.c
@@ -0,0 +1,252 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include
+#include
+#include
+
+#include "http_request.h"
+#include "http_parser.h"
+
+struct http_request_s {
+ http_parser parser;
+ http_parser_settings parser_settings;
+
+ const char *method;
+ char *url;
+
+ char **headers;
+ int headers_size;
+ int headers_index;
+
+ char *data;
+ int datalen;
+
+ int complete;
+};
+
+static int
+on_url(http_parser *parser, const char *at, size_t length)
+{
+ http_request_t *request = parser->data;
+ int urllen = request->url ? strlen(request->url) : 0;
+
+ request->url = realloc(request->url, urllen+length+1);
+ assert(request->url);
+
+ request->url[urllen] = '\0';
+ strncat(request->url, at, length);
+ return 0;
+}
+
+static int
+on_header_field(http_parser *parser, const char *at, size_t length)
+{
+ http_request_t *request = parser->data;
+
+ /* Check if our index is a value */
+ if (request->headers_index%2 == 1) {
+ request->headers_index++;
+ }
+
+ /* Allocate space for new field-value pair */
+ if (request->headers_index == request->headers_size) {
+ request->headers_size += 2;
+ request->headers = realloc(request->headers,
+ request->headers_size*sizeof(char*));
+ assert(request->headers);
+ request->headers[request->headers_index] = NULL;
+ request->headers[request->headers_index+1] = NULL;
+ }
+
+ /* Allocate space in the current header string */
+ if (request->headers[request->headers_index] == NULL) {
+ request->headers[request->headers_index] = calloc(1, length+1);
+ } else {
+ request->headers[request->headers_index] = realloc(
+ request->headers[request->headers_index],
+ strlen(request->headers[request->headers_index])+length+1
+ );
+ }
+ assert(request->headers[request->headers_index]);
+
+ strncat(request->headers[request->headers_index], at, length);
+ return 0;
+}
+
+static int
+on_header_value(http_parser *parser, const char *at, size_t length)
+{
+ http_request_t *request = parser->data;
+
+ /* Check if our index is a field */
+ if (request->headers_index%2 == 0) {
+ request->headers_index++;
+ }
+
+ /* Allocate space in the current header string */
+ if (request->headers[request->headers_index] == NULL) {
+ request->headers[request->headers_index] = calloc(1, length+1);
+ } else {
+ request->headers[request->headers_index] = realloc(
+ request->headers[request->headers_index],
+ strlen(request->headers[request->headers_index])+length+1
+ );
+ }
+ assert(request->headers[request->headers_index]);
+
+ strncat(request->headers[request->headers_index], at, length);
+ return 0;
+}
+
+static int
+on_body(http_parser *parser, const char *at, size_t length)
+{
+ http_request_t *request = parser->data;
+
+ request->data = realloc(request->data, request->datalen+length);
+ assert(request->data);
+
+ memcpy(request->data+request->datalen, at, length);
+ request->datalen += length;
+ return 0;
+}
+
+static int
+on_message_complete(http_parser *parser)
+{
+ http_request_t *request = parser->data;
+
+ request->method = http_method_str(request->parser.method);
+ request->complete = 1;
+ return 0;
+}
+
+http_request_t *
+http_request_init(void)
+{
+ http_request_t *request;
+
+ request = calloc(1, sizeof(http_request_t));
+ if (!request) {
+ return NULL;
+ }
+ http_parser_init(&request->parser, HTTP_REQUEST);
+ request->parser.data = request;
+
+ request->parser_settings.on_url = &on_url;
+ request->parser_settings.on_header_field = &on_header_field;
+ request->parser_settings.on_header_value = &on_header_value;
+ request->parser_settings.on_body = &on_body;
+ request->parser_settings.on_message_complete = &on_message_complete;
+
+ return request;
+}
+
+void
+http_request_destroy(http_request_t *request)
+{
+ int i;
+
+ if (request) {
+ free(request->url);
+ for (i=0; iheaders_size; i++) {
+ free(request->headers[i]);
+ }
+ free(request->headers);
+ free(request->data);
+ free(request);
+ }
+}
+
+int
+http_request_add_data(http_request_t *request, const char *data, int datalen)
+{
+ int ret;
+
+ assert(request);
+
+ ret = http_parser_execute(&request->parser,
+ &request->parser_settings,
+ data, datalen);
+ return ret;
+}
+
+int
+http_request_is_complete(http_request_t *request)
+{
+ assert(request);
+ return request->complete;
+}
+
+int
+http_request_has_error(http_request_t *request)
+{
+ assert(request);
+ return (HTTP_PARSER_ERRNO(&request->parser) != HPE_OK);
+}
+
+const char *
+http_request_get_error_name(http_request_t *request)
+{
+ assert(request);
+ return http_errno_name(HTTP_PARSER_ERRNO(&request->parser));
+}
+
+const char *
+http_request_get_error_description(http_request_t *request)
+{
+ assert(request);
+ return http_errno_description(HTTP_PARSER_ERRNO(&request->parser));
+}
+
+const char *
+http_request_get_method(http_request_t *request)
+{
+ assert(request);
+ return request->method;
+}
+
+const char *
+http_request_get_url(http_request_t *request)
+{
+ assert(request);
+ return request->url;
+}
+
+const char *
+http_request_get_header(http_request_t *request, const char *name)
+{
+ int i;
+
+ assert(request);
+
+ for (i=0; iheaders_size; i+=2) {
+ if (!strcmp(request->headers[i], name)) {
+ return request->headers[i+1];
+ }
+ }
+ return NULL;
+}
+
+const char *
+http_request_get_data(http_request_t *request, int *datalen)
+{
+ assert(request);
+
+ if (datalen) {
+ *datalen = request->datalen;
+ }
+ return request->data;
+}
diff --git a/lib/http_request.h b/lib/http_request.h
new file mode 100755
index 0000000..7899216
--- /dev/null
+++ b/lib/http_request.h
@@ -0,0 +1,36 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef HTTP_REQUEST_H
+#define HTTP_REQUEST_H
+
+typedef struct http_request_s http_request_t;
+
+
+http_request_t *http_request_init(void);
+
+int http_request_add_data(http_request_t *request, const char *data, int datalen);
+int http_request_is_complete(http_request_t *request);
+int http_request_has_error(http_request_t *request);
+
+const char *http_request_get_error_name(http_request_t *request);
+const char *http_request_get_error_description(http_request_t *request);
+const char *http_request_get_method(http_request_t *request);
+const char *http_request_get_url(http_request_t *request);
+const char *http_request_get_header(http_request_t *request, const char *name);
+const char *http_request_get_data(http_request_t *request, int *datalen);
+
+void http_request_destroy(http_request_t *request);
+
+#endif
diff --git a/lib/http_response.c b/lib/http_response.c
new file mode 100755
index 0000000..91b30b8
--- /dev/null
+++ b/lib/http_response.c
@@ -0,0 +1,165 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include
+#include
+#include
+#include
+
+#include "http_response.h"
+#include "compat.h"
+
+struct http_response_s {
+ int complete;
+ int disconnect;
+
+ char *data;
+ int data_size;
+ int data_length;
+};
+
+
+static void
+http_response_add_data(http_response_t *response, const char *data, int datalen)
+{
+ int newdatasize;
+
+ assert(response);
+ assert(data);
+ assert(datalen > 0);
+
+ newdatasize = response->data_size;
+ while (response->data_size+datalen > newdatasize) {
+ newdatasize *= 2;
+ }
+ if (newdatasize != response->data_size) {
+ response->data = realloc(response->data, newdatasize);
+ assert(response->data);
+ }
+ memcpy(response->data+response->data_length, data, datalen);
+ response->data_length += datalen;
+}
+
+http_response_t *
+http_response_init(const char *protocol, int code, const char *message)
+{
+ http_response_t *response;
+ char codestr[4];
+
+ assert(code >= 100 && code < 1000);
+
+ /* Convert code into string */
+ memset(codestr, 0, sizeof(codestr));
+ snprintf(codestr, sizeof(codestr), "%u", code);
+
+ response = calloc(1, sizeof(http_response_t));
+ if (!response) {
+ return NULL;
+ }
+
+ /* Allocate response data */
+ response->data_size = 1024;
+ response->data = malloc(response->data_size);
+ if (!response->data) {
+ free(response);
+ return NULL;
+ }
+
+ /* Add first line of response to the data array */
+ http_response_add_data(response, protocol, strlen(protocol));
+ http_response_add_data(response, " ", 1);
+ http_response_add_data(response, codestr, strlen(codestr));
+ http_response_add_data(response, " ", 1);
+ http_response_add_data(response, message, strlen(message));
+ http_response_add_data(response, "\r\n", 2);
+
+ return response;
+}
+
+void
+http_response_destroy(http_response_t *response)
+{
+ if (response) {
+ free(response->data);
+ free(response);
+ }
+}
+
+void
+http_response_add_header(http_response_t *response, const char *name, const char *value)
+{
+ assert(response);
+ assert(name);
+ assert(value);
+
+ http_response_add_data(response, name, strlen(name));
+ http_response_add_data(response, ": ", 2);
+ http_response_add_data(response, value, strlen(value));
+ http_response_add_data(response, "\r\n", 2);
+}
+
+void
+http_response_finish(http_response_t *response, const char *data, int datalen)
+{
+ assert(response);
+ assert(datalen==0 || (data && datalen > 0));
+
+ if (data && datalen > 0) {
+ const char *hdrname = "Content-Length";
+ char hdrvalue[16];
+
+ memset(hdrvalue, 0, sizeof(hdrvalue));
+ snprintf(hdrvalue, sizeof(hdrvalue)-1, "%d", datalen);
+
+ /* Add Content-Length header first */
+ http_response_add_data(response, hdrname, strlen(hdrname));
+ http_response_add_data(response, ": ", 2);
+ http_response_add_data(response, hdrvalue, strlen(hdrvalue));
+ http_response_add_data(response, "\r\n\r\n", 4);
+
+ /* Add data to the end of response */
+ http_response_add_data(response, data, datalen);
+ } else {
+ /* Add extra end of line after headers */
+ http_response_add_data(response, "\r\n", 2);
+ }
+ response->complete = 1;
+}
+
+void
+http_response_set_disconnect(http_response_t *response, int disconnect)
+{
+ assert(response);
+
+ response->disconnect = !!disconnect;
+}
+
+int
+http_response_get_disconnect(http_response_t *response)
+{
+ assert(response);
+
+ return response->disconnect;
+}
+
+const char *
+http_response_get_data(http_response_t *response, int *datalen)
+{
+ assert(response);
+ assert(datalen);
+ assert(response->complete);
+
+ *datalen = response->data_length;
+ return response->data;
+}
diff --git a/lib/http_response.h b/lib/http_response.h
new file mode 100755
index 0000000..43e1128
--- /dev/null
+++ b/lib/http_response.h
@@ -0,0 +1,32 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef HTTP_RESPONSE_H
+#define HTTP_RESPONSE_H
+
+typedef struct http_response_s http_response_t;
+
+http_response_t *http_response_init(const char *protocol, int code, const char *message);
+
+void http_response_add_header(http_response_t *response, const char *name, const char *value);
+void http_response_finish(http_response_t *response, const char *data, int datalen);
+
+void http_response_set_disconnect(http_response_t *response, int disconnect);
+int http_response_get_disconnect(http_response_t *response);
+
+const char *http_response_get_data(http_response_t *response, int *datalen);
+
+void http_response_destroy(http_response_t *response);
+
+#endif
diff --git a/lib/httpd.c b/lib/httpd.c
new file mode 100755
index 0000000..3aeee49
--- /dev/null
+++ b/lib/httpd.c
@@ -0,0 +1,458 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include
+#include
+#include
+#include
+
+#include "httpd.h"
+#include "netutils.h"
+#include "http_request.h"
+#include "compat.h"
+#include "logger.h"
+
+struct http_connection_s {
+ int connected;
+
+ int socket_fd;
+ void *user_data;
+ http_request_t *request;
+};
+typedef struct http_connection_s http_connection_t;
+
+struct httpd_s {
+ logger_t *logger;
+ httpd_callbacks_t callbacks;
+
+ int max_connections;
+ int open_connections;
+ http_connection_t *connections;
+
+ /* These variables only edited mutex locked */
+ int running;
+ int joined;
+ thread_handle_t thread;
+ mutex_handle_t run_mutex;
+
+ /* Server fds for accepting connections */
+ int server_fd4;
+ int server_fd6;
+};
+
+httpd_t *
+httpd_init(logger_t *logger, httpd_callbacks_t *callbacks, int max_connections)
+{
+ httpd_t *httpd;
+
+ assert(logger);
+ assert(callbacks);
+ assert(max_connections > 0);
+
+ /* Allocate the httpd_t structure */
+ httpd = calloc(1, sizeof(httpd_t));
+ if (!httpd) {
+ return NULL;
+ }
+
+ httpd->max_connections = max_connections;
+ httpd->connections = calloc(max_connections, sizeof(http_connection_t));
+ if (!httpd->connections) {
+ free(httpd);
+ return NULL;
+ }
+
+ /* Use the logger provided */
+ httpd->logger = logger;
+
+ /* Save callback pointers */
+ memcpy(&httpd->callbacks, callbacks, sizeof(httpd_callbacks_t));
+
+ /* Initial status joined */
+ httpd->running = 0;
+ httpd->joined = 1;
+
+ return httpd;
+}
+
+void
+httpd_destroy(httpd_t *httpd)
+{
+ if (httpd) {
+ httpd_stop(httpd);
+
+ free(httpd->connections);
+ free(httpd);
+ }
+}
+
+static int
+httpd_add_connection(httpd_t *httpd, int fd, unsigned char *local, int local_len, unsigned char *remote, int remote_len)
+{
+ void *user_data;
+ int i;
+
+ for (i=0; imax_connections; i++) {
+ if (!httpd->connections[i].connected) {
+ break;
+ }
+ }
+ if (i == httpd->max_connections) {
+ /* This code should never be reached, we do not select server_fds when full */
+ logger_log(httpd->logger, LOGGER_INFO, "Max connections reached");
+ return -1;
+ }
+
+ user_data = httpd->callbacks.conn_init(httpd->callbacks.opaque, local, local_len, remote, remote_len);
+ if (!user_data) {
+ logger_log(httpd->logger, LOGGER_ERR, "Error initializing HTTP request handler");
+ return -1;
+ }
+
+ httpd->open_connections++;
+ httpd->connections[i].socket_fd = fd;
+ httpd->connections[i].connected = 1;
+ httpd->connections[i].user_data = user_data;
+ return 0;
+}
+
+static int
+httpd_accept_connection(httpd_t *httpd, int server_fd, int is_ipv6)
+{
+ struct sockaddr_storage remote_saddr;
+ socklen_t remote_saddrlen;
+ struct sockaddr_storage local_saddr;
+ socklen_t local_saddrlen;
+ unsigned char *local, *remote;
+ int local_len, remote_len;
+ int ret, fd;
+
+ remote_saddrlen = sizeof(remote_saddr);
+ fd = accept(server_fd, (struct sockaddr *)&remote_saddr, &remote_saddrlen);
+ if (fd == -1) {
+ /* FIXME: Error happened */
+ return -1;
+ }
+
+ local_saddrlen = sizeof(local_saddr);
+ ret = getsockname(fd, (struct sockaddr *)&local_saddr, &local_saddrlen);
+ if (ret == -1) {
+ shutdown(fd, SHUT_RDWR);
+ closesocket(fd);
+ return 0;
+ }
+
+ logger_log(httpd->logger, LOGGER_INFO, "Accepted %s client on socket %d",
+ (is_ipv6 ? "IPv6" : "IPv4"), fd);
+ local = netutils_get_address(&local_saddr, &local_len);
+ remote = netutils_get_address(&remote_saddr, &remote_len);
+
+ ret = httpd_add_connection(httpd, fd, local, local_len, remote, remote_len);
+ if (ret == -1) {
+ shutdown(fd, SHUT_RDWR);
+ closesocket(fd);
+ return 0;
+ }
+ return 1;
+}
+
+static void
+httpd_remove_connection(httpd_t *httpd, http_connection_t *connection)
+{
+ if (connection->request) {
+ http_request_destroy(connection->request);
+ connection->request = NULL;
+ }
+ httpd->callbacks.conn_destroy(connection->user_data);
+ shutdown(connection->socket_fd, SHUT_WR);
+ closesocket(connection->socket_fd);
+ connection->connected = 0;
+ httpd->open_connections--;
+}
+
+static THREAD_RETVAL
+httpd_thread(void *arg)
+{
+ httpd_t *httpd = arg;
+ char buffer[1024];
+ int i;
+
+ assert(httpd);
+
+ while (1) {
+ fd_set rfds;
+ struct timeval tv;
+ int nfds=0;
+ int ret;
+
+ MUTEX_LOCK(httpd->run_mutex);
+ if (!httpd->running) {
+ MUTEX_UNLOCK(httpd->run_mutex);
+ break;
+ }
+ MUTEX_UNLOCK(httpd->run_mutex);
+
+ /* Set timeout value to 5ms */
+ tv.tv_sec = 1;
+ tv.tv_usec = 5000;
+
+ /* Get the correct nfds value and set rfds */
+ FD_ZERO(&rfds);
+ if (httpd->open_connections < httpd->max_connections) {
+ if (httpd->server_fd4 != -1) {
+ FD_SET(httpd->server_fd4, &rfds);
+ if (nfds <= httpd->server_fd4) {
+ nfds = httpd->server_fd4+1;
+ }
+ }
+ if (httpd->server_fd6 != -1) {
+ FD_SET(httpd->server_fd6, &rfds);
+ if (nfds <= httpd->server_fd6) {
+ nfds = httpd->server_fd6+1;
+ }
+ }
+ }
+ for (i=0; imax_connections; i++) {
+ int socket_fd;
+ if (!httpd->connections[i].connected) {
+ continue;
+ }
+ socket_fd = httpd->connections[i].socket_fd;
+ FD_SET(socket_fd, &rfds);
+ if (nfds <= socket_fd) {
+ nfds = socket_fd+1;
+ }
+ }
+
+ ret = select(nfds, &rfds, NULL, NULL, &tv);
+ if (ret == 0) {
+ /* Timeout happened */
+ continue;
+ } else if (ret == -1) {
+ logger_log(httpd->logger, LOGGER_ERR, "httpd error in select");
+ break;
+ }
+
+ if (httpd->open_connections < httpd->max_connections &&
+ httpd->server_fd4 != -1 && FD_ISSET(httpd->server_fd4, &rfds)) {
+ ret = httpd_accept_connection(httpd, httpd->server_fd4, 0);
+ if (ret == -1) {
+ logger_log(httpd->logger, LOGGER_ERR, "httpd error in accept ipv4");
+ break;
+ } else if (ret == 0) {
+ continue;
+ }
+ }
+ if (httpd->open_connections < httpd->max_connections &&
+ httpd->server_fd6 != -1 && FD_ISSET(httpd->server_fd6, &rfds)) {
+ ret = httpd_accept_connection(httpd, httpd->server_fd6, 1);
+ if (ret == -1) {
+ logger_log(httpd->logger, LOGGER_ERR, "httpd error in accept ipv6");
+ break;
+ } else if (ret == 0) {
+ continue;
+ }
+ }
+ for (i=0; imax_connections; i++) {
+ http_connection_t *connection = &httpd->connections[i];
+
+ if (!connection->connected) {
+ continue;
+ }
+ if (!FD_ISSET(connection->socket_fd, &rfds)) {
+ continue;
+ }
+
+ /* If not in the middle of request, allocate one */
+ if (!connection->request) {
+ connection->request = http_request_init();
+ assert(connection->request);
+ }
+
+ logger_log(httpd->logger, LOGGER_DEBUG, "httpd receiving on socket %d", connection->socket_fd);
+ ret = recv(connection->socket_fd, buffer, sizeof(buffer), 0);
+ if (ret == 0) {
+ logger_log(httpd->logger, LOGGER_INFO, "Connection closed for socket %d", connection->socket_fd);
+ httpd_remove_connection(httpd, connection);
+ continue;
+ }
+
+ /* Parse HTTP request from data read from connection */
+ http_request_add_data(connection->request, buffer, ret);
+ if (http_request_has_error(connection->request)) {
+ logger_log(httpd->logger, LOGGER_ERR, "httpd error in parsing: %s", http_request_get_error_name(connection->request));
+ httpd_remove_connection(httpd, connection);
+ continue;
+ }
+
+ /* If request is finished, process and deallocate */
+ if (http_request_is_complete(connection->request)) {
+ http_response_t *response = NULL;
+ // Callback the received data to raop
+ httpd->callbacks.conn_request(connection->user_data, connection->request, &response);
+ http_request_destroy(connection->request);
+ connection->request = NULL;
+
+ if (response) {
+ const char *data;
+ int datalen;
+ int written;
+ int ret;
+
+ /* Get response data and datalen */
+ data = http_response_get_data(response, &datalen);
+
+ written = 0;
+ while (written < datalen) {
+ ret = send(connection->socket_fd, data+written, datalen-written, 0);
+ if (ret == -1) {
+ logger_log(httpd->logger, LOGGER_ERR, "httpd error in sending data");
+ break;
+ }
+ written += ret;
+ }
+
+ if (http_response_get_disconnect(response)) {
+ logger_log(httpd->logger, LOGGER_INFO, "Disconnecting on software request");
+ httpd_remove_connection(httpd, connection);
+ }
+ } else {
+ logger_log(httpd->logger, LOGGER_WARNING, "httpd didn't get response");
+ }
+ http_response_destroy(response);
+ } else {
+ logger_log(httpd->logger, LOGGER_DEBUG, "Request not complete, waiting for more data...");
+ }
+ }
+ }
+
+ /* Remove all connections that are still connected */
+ for (i=0; imax_connections; i++) {
+ http_connection_t *connection = &httpd->connections[i];
+
+ if (!connection->connected) {
+ continue;
+ }
+ logger_log(httpd->logger, LOGGER_INFO, "Removing connection for socket %d", connection->socket_fd);
+ httpd_remove_connection(httpd, connection);
+ }
+
+ /* Close server sockets since they are not used any more */
+ if (httpd->server_fd4 != -1) {
+ shutdown(httpd->server_fd4, SHUT_RDWR);
+ closesocket(httpd->server_fd4);
+ httpd->server_fd4 = -1;
+ }
+ if (httpd->server_fd6 != -1) {
+ shutdown(httpd->server_fd6, SHUT_RDWR);
+ closesocket(httpd->server_fd6);
+ httpd->server_fd6 = -1;
+ }
+
+ // Ensure running reflects the actual state
+ MUTEX_LOCK(httpd->run_mutex);
+ httpd->running = 0;
+ MUTEX_UNLOCK(httpd->run_mutex);
+
+ logger_log(httpd->logger, LOGGER_DEBUG, "Exiting HTTP thread");
+
+ return 0;
+}
+
+int
+httpd_start(httpd_t *httpd, unsigned short *port)
+{
+ /* How many connection attempts are kept in queue */
+ int backlog = 5;
+
+ assert(httpd);
+ assert(port);
+
+ MUTEX_LOCK(httpd->run_mutex);
+ if (httpd->running || !httpd->joined) {
+ MUTEX_UNLOCK(httpd->run_mutex);
+ return 0;
+ }
+
+ httpd->server_fd4 = netutils_init_socket(port, 0, 0);
+ if (httpd->server_fd4 == -1) {
+ logger_log(httpd->logger, LOGGER_ERR, "Error initialising socket %d", SOCKET_GET_ERROR());
+ MUTEX_UNLOCK(httpd->run_mutex);
+ return -1;
+ }
+ httpd->server_fd6 = -1;/*= netutils_init_socket(port, 1, 0);
+ if (httpd->server_fd6 == -1) {
+ logger_log(httpd->logger, LOGGER_WARNING, "Error initialising IPv6 socket %d", SOCKET_GET_ERROR());
+ logger_log(httpd->logger, LOGGER_WARNING, "Continuing without IPv6 support");
+ }*/
+
+ if (httpd->server_fd4 != -1 && listen(httpd->server_fd4, backlog) == -1) {
+ logger_log(httpd->logger, LOGGER_ERR, "Error listening to IPv4 socket");
+ closesocket(httpd->server_fd4);
+ closesocket(httpd->server_fd6);
+ MUTEX_UNLOCK(httpd->run_mutex);
+ return -2;
+ }
+ if (httpd->server_fd6 != -1 && listen(httpd->server_fd6, backlog) == -1) {
+ logger_log(httpd->logger, LOGGER_ERR, "Error listening to IPv6 socket");
+ closesocket(httpd->server_fd4);
+ closesocket(httpd->server_fd6);
+ MUTEX_UNLOCK(httpd->run_mutex);
+ return -2;
+ }
+ logger_log(httpd->logger, LOGGER_INFO, "Initialized server socket(s)");
+
+ /* Set values correctly and create new thread */
+ httpd->running = 1;
+ httpd->joined = 0;
+ THREAD_CREATE(httpd->thread, httpd_thread, httpd);
+ MUTEX_UNLOCK(httpd->run_mutex);
+
+ return 1;
+}
+
+int
+httpd_is_running(httpd_t *httpd)
+{
+ int running;
+
+ assert(httpd);
+
+ MUTEX_LOCK(httpd->run_mutex);
+ running = httpd->running || !httpd->joined;
+ MUTEX_UNLOCK(httpd->run_mutex);
+
+ return running;
+}
+
+void
+httpd_stop(httpd_t *httpd)
+{
+ assert(httpd);
+
+ MUTEX_LOCK(httpd->run_mutex);
+ if (!httpd->running || httpd->joined) {
+ MUTEX_UNLOCK(httpd->run_mutex);
+ return;
+ }
+ httpd->running = 0;
+ MUTEX_UNLOCK(httpd->run_mutex);
+
+ THREAD_JOIN(httpd->thread);
+
+ MUTEX_LOCK(httpd->run_mutex);
+ httpd->joined = 1;
+ MUTEX_UNLOCK(httpd->run_mutex);
+}
+
diff --git a/lib/httpd.h b/lib/httpd.h
new file mode 100755
index 0000000..fc184e1
--- /dev/null
+++ b/lib/httpd.h
@@ -0,0 +1,43 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef HTTPD_H
+#define HTTPD_H
+
+#include "logger.h"
+#include "http_request.h"
+#include "http_response.h"
+
+typedef struct httpd_s httpd_t;
+
+struct httpd_callbacks_s {
+ void* opaque;
+ void* (*conn_init)(void *opaque, unsigned char *local, int locallen, unsigned char *remote, int remotelen);
+ void (*conn_request)(void *ptr, http_request_t *request, http_response_t **response);
+ void (*conn_destroy)(void *ptr);
+};
+typedef struct httpd_callbacks_s httpd_callbacks_t;
+
+
+httpd_t *httpd_init(logger_t *logger, httpd_callbacks_t *callbacks, int max_connections);
+
+int httpd_is_running(httpd_t *httpd);
+
+int httpd_start(httpd_t *httpd, unsigned short *port);
+void httpd_stop(httpd_t *httpd);
+
+void httpd_destroy(httpd_t *httpd);
+
+
+#endif
diff --git a/lib/logger.c b/lib/logger.c
new file mode 100755
index 0000000..f3fe354
--- /dev/null
+++ b/lib/logger.c
@@ -0,0 +1,139 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include
+#include
+#include
+#include
+
+#include "logger.h"
+#include "compat.h"
+
+struct logger_s {
+ mutex_handle_t lvl_mutex;
+ mutex_handle_t cb_mutex;
+
+ int level;
+ void *cls;
+ logger_callback_t callback;
+};
+
+logger_t *
+logger_init()
+{
+ logger_t *logger = calloc(1, sizeof(logger_t));
+ assert(logger);
+
+ MUTEX_CREATE(logger->lvl_mutex);
+ MUTEX_CREATE(logger->cb_mutex);
+
+ logger->level = LOGGER_WARNING;
+ logger->callback = NULL;
+ return logger;
+}
+
+void
+logger_destroy(logger_t *logger)
+{
+ MUTEX_DESTROY(logger->lvl_mutex);
+ MUTEX_DESTROY(logger->cb_mutex);
+ free(logger);
+}
+
+void
+logger_set_level(logger_t *logger, int level)
+{
+ assert(logger);
+
+ MUTEX_LOCK(logger->lvl_mutex);
+ logger->level = level;
+ MUTEX_UNLOCK(logger->lvl_mutex);
+}
+
+void
+logger_set_callback(logger_t *logger, logger_callback_t callback, void *cls)
+{
+ assert(logger);
+
+ MUTEX_LOCK(logger->cb_mutex);
+ logger->cls = cls;
+ logger->callback = callback;
+ MUTEX_UNLOCK(logger->cb_mutex);
+}
+
+static char *
+logger_utf8_to_local(const char *str)
+{
+ char *ret = NULL;
+
+/* FIXME: This is only implemented on Windows for now */
+#if defined(_WIN32) || defined(_WIN64)
+ int wclen, mblen;
+ WCHAR *wcstr;
+ BOOL failed;
+
+ wclen = MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0);
+ wcstr = malloc(sizeof(WCHAR) * wclen);
+ MultiByteToWideChar(CP_UTF8, 0, str, -1, wcstr, wclen);
+
+ mblen = WideCharToMultiByte(CP_ACP, 0, wcstr, wclen, NULL, 0, NULL, &failed);
+ if (failed) {
+ /* Invalid characters in input, conversion failed */
+ free(wcstr);
+ return NULL;
+ }
+
+ ret = malloc(sizeof(CHAR) * mblen);
+ WideCharToMultiByte(CP_ACP, 0, wcstr, wclen, ret, mblen, NULL, NULL);
+ free(wcstr);
+#endif
+
+ return ret;
+}
+
+void
+logger_log(logger_t *logger, int level, const char *fmt, ...)
+{
+ char buffer[4096];
+ va_list ap;
+
+ MUTEX_LOCK(logger->lvl_mutex);
+ if (level > logger->level) {
+ MUTEX_UNLOCK(logger->lvl_mutex);
+ return;
+ }
+ MUTEX_UNLOCK(logger->lvl_mutex);
+
+ buffer[sizeof(buffer)-1] = '\0';
+ va_start(ap, fmt);
+ vsnprintf(buffer, sizeof(buffer)-1, fmt, ap);
+ va_end(ap);
+
+ MUTEX_LOCK(logger->cb_mutex);
+ if (logger->callback) {
+ logger->callback(logger->cls, level, buffer);
+ MUTEX_UNLOCK(logger->cb_mutex);
+ } else {
+ char *local;
+ MUTEX_UNLOCK(logger->cb_mutex);
+ local = logger_utf8_to_local(buffer);
+ if (local) {
+ fprintf(stderr, "%s\n", local);
+ free(local);
+ } else {
+ fprintf(stderr, "%s\n", buffer);
+ }
+ }
+}
+
diff --git a/lib/logger.h b/lib/logger.h
new file mode 100755
index 0000000..00a4257
--- /dev/null
+++ b/lib/logger.h
@@ -0,0 +1,48 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef LOGGER_H
+#define LOGGER_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Define syslog style log levels */
+#define LOGGER_EMERG 0 /* system is unusable */
+#define LOGGER_ALERT 1 /* action must be taken immediately */
+#define LOGGER_CRIT 2 /* critical conditions */
+#define LOGGER_ERR 3 /* error conditions */
+#define LOGGER_WARNING 4 /* warning conditions */
+#define LOGGER_NOTICE 5 /* normal but significant condition */
+#define LOGGER_INFO 6 /* informational */
+#define LOGGER_DEBUG 7 /* debug-level messages */
+
+typedef void (*logger_callback_t)(void *cls, int level, const char *msg);
+
+typedef struct logger_s logger_t;
+
+logger_t *logger_init();
+void logger_destroy(logger_t *logger);
+
+void logger_set_level(logger_t *logger, int level);
+void logger_set_callback(logger_t *logger, logger_callback_t callback, void *cls);
+
+void logger_log(logger_t *logger, int level, const char *fmt, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/lib/memalign.h b/lib/memalign.h
new file mode 100755
index 0000000..917e02a
--- /dev/null
+++ b/lib/memalign.h
@@ -0,0 +1,53 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef MEMALIGN_H
+#define MEMALIGN_H
+
+#if defined(WIN32)
+
+#define SYSTEM_GET_PAGESIZE(ret) do {\
+ SYSTEM_INFO si;\
+ GetSystemInfo(&si);\
+ ret = si.dwPageSize;\
+} while(0)
+#define SYSTEM_GET_TIME(ret) ret = timeGetTime()
+
+#define ALIGNED_MALLOC(memptr, alignment, size) do {\
+ char *ptr = malloc(sizeof(void*) + (size) + (alignment)-1);\
+ memptr = NULL;\
+ if (ptr) {\
+ size_t ptrval = (size_t)ptr + sizeof(void*) + (alignment)-1;\
+ ptrval = ptrval / (alignment) * (alignment);\
+ memptr = (void *)ptrval;\
+ *(((void **)memptr)-1) = ptr;\
+ }\
+} while(0)
+#define ALIGNED_FREE(memptr) free(*(((void **)memptr)-1))
+
+#else
+
+#define SYSTEM_GET_PAGESIZE(ret) ret = sysconf(_SC_PAGESIZE)
+#define SYSTEM_GET_TIME(ret) do {\
+ struct timeval tv;\
+ gettimeofday(&tv, NULL);\
+ ret = (unsigned int)(tv.tv_sec*1000 + tv.tv_usec/1000);\
+} while(0)
+
+#define ALIGNED_MALLOC(memptr, alignment, size) if (posix_memalign((void **)&memptr, alignment, size)) memptr = NULL
+#define ALIGNED_FREE(memptr) free(memptr)
+
+#endif
+
+#endif
diff --git a/lib/mirror_buffer.c b/lib/mirror_buffer.c
new file mode 100755
index 0000000..abb438b
--- /dev/null
+++ b/lib/mirror_buffer.c
@@ -0,0 +1,142 @@
+/*
+ * Copyright (c) 2019 dsafa22, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include "mirror_buffer.h"
+#include "raop_rtp.h"
+#include "raop_rtp.h"
+#include
+#include "crypto.h"
+#include "compat.h"
+#include
+#include
+#include
+#include
+#include
+
+//#define DUMP_KEI_IV
+struct mirror_buffer_s {
+ logger_t *logger;
+ aes_ctx_t *aes_ctx;
+ int nextDecryptCount;
+ uint8_t og[16];
+ /* AES key and IV */
+ // Need secondary processing to use
+ unsigned char aeskey[RAOP_AESKEY_LEN];
+ unsigned char ecdh_secret[32];
+};
+
+void
+mirror_buffer_init_aes(mirror_buffer_t *mirror_buffer, uint64_t streamConnectionID)
+{
+ sha_ctx_t *ctx = sha_init();
+ unsigned char eaeskey[64] = {};
+ memcpy(eaeskey, mirror_buffer->aeskey, 16);
+ sha_update(ctx, eaeskey, 16);
+ sha_update(ctx, mirror_buffer->ecdh_secret, 32);
+ sha_final(ctx, eaeskey, NULL);
+
+ unsigned char hash1[64];
+ unsigned char hash2[64];
+ char* skey = "AirPlayStreamKey";
+ char* siv = "AirPlayStreamIV";
+ unsigned char skeyall[255];
+ unsigned char sivall[255];
+ sprintf((char*) skeyall, "%s%llu", skey, streamConnectionID);
+ sprintf((char*) sivall, "%s%llu", siv, streamConnectionID);
+ sha_reset(ctx);
+ sha_update(ctx, skeyall, strlen((char*) skeyall));
+ sha_update(ctx, eaeskey, 16);
+ sha_final(ctx, hash1, NULL);
+
+ sha_reset(ctx);
+ sha_update(ctx, sivall, strlen((char*) sivall));
+ sha_update(ctx, eaeskey, 16);
+ sha_final(ctx, hash2, NULL);
+ sha_destroy(ctx);
+
+ unsigned char decrypt_aeskey[16];
+ unsigned char decrypt_aesiv[16];
+ memcpy(decrypt_aeskey, hash1, 16);
+ memcpy(decrypt_aesiv, hash2, 16);
+#ifdef DUMP_KEI_IV
+ FILE* keyfile = fopen("/sdcard/111.keyiv", "wb");
+ fwrite(decrypt_aeskey, 16, 1, keyfile);
+ fwrite(decrypt_aesiv, 16, 1, keyfile);
+ fclose(keyfile);
+#endif
+ // Need to be initialized externally
+ mirror_buffer->aes_ctx = aes_ctr_init(decrypt_aeskey, decrypt_aesiv);
+ mirror_buffer->nextDecryptCount = 0;
+}
+
+mirror_buffer_t *
+mirror_buffer_init(logger_t *logger,
+ const unsigned char *aeskey,
+ const unsigned char *ecdh_secret)
+{
+ mirror_buffer_t *mirror_buffer;
+ assert(aeskey);
+ assert(ecdh_secret);
+ mirror_buffer = calloc(1, sizeof(mirror_buffer_t));
+ if (!mirror_buffer) {
+ return NULL;
+ }
+ memcpy(mirror_buffer->aeskey, aeskey, RAOP_AESKEY_LEN);
+ memcpy(mirror_buffer->ecdh_secret, ecdh_secret, 32);
+ mirror_buffer->logger = logger;
+ mirror_buffer->nextDecryptCount = 0;
+ //mirror_buffer_init_aes(mirror_buffer, aeskey, ecdh_secret, streamConnectionID);
+ return mirror_buffer;
+}
+
+void mirror_buffer_decrypt(mirror_buffer_t *mirror_buffer, unsigned char* input, unsigned char* output, int inputLen) {
+ // Start decrypting
+ if (mirror_buffer->nextDecryptCount > 0) {//mirror_buffer->nextDecryptCount = 10
+ for (int i = 0; i < mirror_buffer->nextDecryptCount; i++) {
+ output[i] = (input[i] ^ mirror_buffer->og[(16 - mirror_buffer->nextDecryptCount) + i]);
+ }
+ }
+ // Handling encrypted bytes
+ int encryptlen = ((inputLen - mirror_buffer->nextDecryptCount) / 16) * 16;
+ // Aes decryption
+ aes_ctr_start_fresh_block(mirror_buffer->aes_ctx);
+ aes_ctr_decrypt(mirror_buffer->aes_ctx, input + mirror_buffer->nextDecryptCount,
+ input + mirror_buffer->nextDecryptCount, encryptlen);
+ // Copy to output
+ memcpy(output + mirror_buffer->nextDecryptCount, input + mirror_buffer->nextDecryptCount, encryptlen);
+ int outputlength = mirror_buffer->nextDecryptCount + encryptlen;
+ // Processing remaining length
+ int restlen = (inputLen - mirror_buffer->nextDecryptCount) % 16;
+ int reststart = inputLen - restlen;
+ mirror_buffer->nextDecryptCount = 0;
+ if (restlen > 0) {
+ memset(mirror_buffer->og, 0, 16);
+ memcpy(mirror_buffer->og, input + reststart, restlen);
+ aes_ctr_decrypt(mirror_buffer->aes_ctx, mirror_buffer->og, mirror_buffer->og, 16);
+ for (int j = 0; j < restlen; j++) {
+ output[reststart + j] = mirror_buffer->og[j];
+ }
+ outputlength += restlen;
+ mirror_buffer->nextDecryptCount = 16 - restlen;// Difference 16-6=10 bytes
+ }
+}
+
+void
+mirror_buffer_destroy(mirror_buffer_t *mirror_buffer)
+{
+ if (mirror_buffer) {
+ aes_ctr_destroy(mirror_buffer->aes_ctx);
+ free(mirror_buffer);
+ }
+}
diff --git a/lib/mirror_buffer.h b/lib/mirror_buffer.h
new file mode 100755
index 0000000..f64b340
--- /dev/null
+++ b/lib/mirror_buffer.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2019 dsafa22, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef MIRROR_BUFFER_H
+#define MIRROR_BUFFER_H
+
+#include
+#include "logger.h"
+
+typedef struct mirror_buffer_s mirror_buffer_t;
+
+
+mirror_buffer_t *mirror_buffer_init( logger_t *logger,
+ const unsigned char *aeskey,
+ const unsigned char *ecdh_secret);
+void mirror_buffer_init_aes(mirror_buffer_t *mirror_buffer, uint64_t streamConnectionID);
+void mirror_buffer_decrypt(mirror_buffer_t *raop_mirror, unsigned char* input, unsigned char* output, int datalen);
+void mirror_buffer_destroy(mirror_buffer_t *mirror_buffer);
+#endif //MIRROR_BUFFER_H
diff --git a/lib/netutils.c b/lib/netutils.c
new file mode 100755
index 0000000..9e160c7
--- /dev/null
+++ b/lib/netutils.c
@@ -0,0 +1,203 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include
+#include
+#include
+
+#include "compat.h"
+
+int
+netutils_init()
+{
+#ifdef WIN32
+ WORD wVersionRequested;
+ WSADATA wsaData;
+ int ret;
+
+ wVersionRequested = MAKEWORD(2, 2);
+ ret = WSAStartup(wVersionRequested, &wsaData);
+ if (ret) {
+ return -1;
+ }
+
+ if (LOBYTE(wsaData.wVersion) != 2 ||
+ HIBYTE(wsaData.wVersion) != 2) {
+ /* Version mismatch, requested version not found */
+ return -1;
+ }
+#endif
+ return 0;
+}
+
+void
+netutils_cleanup()
+{
+#ifdef WIN32
+ WSACleanup();
+#endif
+}
+
+unsigned char *
+netutils_get_address(void *sockaddr, int *length)
+{
+ unsigned char ipv4_prefix[] = { 0,0,0,0,0,0,0,0,0,0,255,255 };
+ struct sockaddr *address = sockaddr;
+
+ assert(address);
+ assert(length);
+
+ if (address->sa_family == AF_INET) {
+ struct sockaddr_in *sin;
+
+ sin = (struct sockaddr_in *)address;
+ *length = sizeof(sin->sin_addr.s_addr);
+ return (unsigned char *)&sin->sin_addr.s_addr;
+ } else if (address->sa_family == AF_INET6) {
+ struct sockaddr_in6 *sin6;
+
+ sin6 = (struct sockaddr_in6 *)address;
+ if (!memcmp(sin6->sin6_addr.s6_addr, ipv4_prefix, 12)) {
+ /* Actually an embedded IPv4 address */
+ *length = sizeof(sin6->sin6_addr.s6_addr)-12;
+ return (sin6->sin6_addr.s6_addr+12);
+ }
+ *length = sizeof(sin6->sin6_addr.s6_addr);
+ return sin6->sin6_addr.s6_addr;
+ }
+
+ *length = 0;
+ return NULL;
+}
+
+int
+netutils_init_socket(unsigned short *port, int use_ipv6, int use_udp)
+{
+ int family = use_ipv6 ? AF_INET6 : AF_INET;
+ int type = use_udp ? SOCK_DGRAM : SOCK_STREAM;
+ int proto = use_udp ? IPPROTO_UDP : IPPROTO_TCP;
+
+ struct sockaddr_storage saddr;
+ socklen_t socklen;
+ int server_fd;
+ int ret;
+ int reuseaddr = 1;
+
+ assert(port);
+
+ server_fd = socket(family, type, proto);
+ if (server_fd == -1) {
+ goto cleanup;
+ }
+
+ ret = setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, sizeof (reuseaddr));
+ if (ret == -1) {
+ goto cleanup;
+ }
+
+ memset(&saddr, 0, sizeof(saddr));
+ if (use_ipv6) {
+ struct sockaddr_in6 *sin6ptr = (struct sockaddr_in6 *)&saddr;
+ int v6only = 1;
+
+ /* Initialize sockaddr for bind */
+ sin6ptr->sin6_family = family;
+ sin6ptr->sin6_addr = in6addr_any;
+ sin6ptr->sin6_port = htons(*port);
+
+#ifndef WIN32
+ /* Make sure we only listen to IPv6 addresses */
+ setsockopt(server_fd, IPPROTO_IPV6, IPV6_V6ONLY,
+ (char *) &v6only, sizeof(v6only));
+#endif
+
+ socklen = sizeof(*sin6ptr);
+ ret = bind(server_fd, (struct sockaddr *)sin6ptr, socklen);
+ if (ret == -1) {
+ goto cleanup;
+ }
+
+ ret = getsockname(server_fd, (struct sockaddr *)sin6ptr, &socklen);
+ if (ret == -1) {
+ goto cleanup;
+ }
+ *port = ntohs(sin6ptr->sin6_port);
+ } else {
+ struct sockaddr_in *sinptr = (struct sockaddr_in *)&saddr;
+
+ /* Initialize sockaddr for bind */
+ sinptr->sin_family = family;
+ sinptr->sin_addr.s_addr = INADDR_ANY;
+ sinptr->sin_port = htons(*port);
+
+ socklen = sizeof(*sinptr);
+ ret = bind(server_fd, (struct sockaddr *)sinptr, socklen);
+ if (ret == -1) {
+ goto cleanup;
+ }
+
+ ret = getsockname(server_fd, (struct sockaddr *)sinptr, &socklen);
+ if (ret == -1) {
+ goto cleanup;
+ }
+ *port = ntohs(sinptr->sin_port);
+ }
+ return server_fd;
+
+ cleanup:
+ ret = SOCKET_GET_ERROR();
+ if (server_fd != -1) {
+ closesocket(server_fd);
+ }
+ SOCKET_SET_ERROR(ret);
+ return -1;
+}
+
+// Src is the ip address
+int
+netutils_parse_address(int family, const char *src, void *dst, int dstlen)
+{
+ struct addrinfo *result;
+ struct addrinfo *ptr;
+ struct addrinfo hints;
+ int length;
+ int ret;
+
+ if (family != AF_INET && family != AF_INET6) {
+ return -1;
+ }
+ if (!src || !dst) {
+ return -1;
+ }
+
+ memset(&hints, 0, sizeof(hints));
+ hints.ai_family = family;
+ hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
+
+ ret = getaddrinfo(src, NULL, &hints, &result);
+ if (ret != 0) {
+ return -1;
+ }
+
+ length = -1;
+ for (ptr=result; ptr!=NULL; ptr=ptr->ai_next) {
+ if (family == ptr->ai_family && (unsigned int)dstlen >= ptr->ai_addrlen) {
+ memcpy(dst, ptr->ai_addr, ptr->ai_addrlen);
+ length = ptr->ai_addrlen;
+ break;
+ }
+ }
+ freeaddrinfo(result);
+ return length;
+}
diff --git a/lib/netutils.h b/lib/netutils.h
new file mode 100755
index 0000000..63854ad
--- /dev/null
+++ b/lib/netutils.h
@@ -0,0 +1,25 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef NETUTILS_H
+#define NETUTILS_H
+
+int netutils_init();
+void netutils_cleanup();
+
+int netutils_init_socket(unsigned short *port, int use_ipv6, int use_udp);
+unsigned char *netutils_get_address(void *sockaddr, int *length);
+int netutils_parse_address(int family, const char *src, void *dst, int dstlen);
+
+#endif
diff --git a/lib/pairing.c b/lib/pairing.c
new file mode 100755
index 0000000..1a70cc5
--- /dev/null
+++ b/lib/pairing.c
@@ -0,0 +1,261 @@
+/**
+ * Copyright (C) 2018 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include
+#include
+#include
+
+#include "pairing.h"
+#include "curve25519/curve25519.h"
+#include "ed25519/ed25519.h"
+#include "crypto.h"
+
+#define SALT_KEY "Pair-Verify-AES-Key"
+#define SALT_IV "Pair-Verify-AES-IV"
+
+struct pairing_s {
+ unsigned char ed_private[64];
+ unsigned char ed_public[32];
+};
+
+typedef enum {
+ STATUS_INITIAL,
+ STATUS_SETUP,
+ STATUS_HANDSHAKE,
+ STATUS_FINISHED
+} status_t;
+
+struct pairing_session_s {
+ status_t status;
+
+ unsigned char ed_private[64];
+ unsigned char ed_ours[32];
+ unsigned char ed_theirs[32];
+
+ unsigned char ecdh_ours[32];
+ unsigned char ecdh_theirs[32];
+ unsigned char ecdh_secret[32];
+};
+
+static int
+derive_key_internal(pairing_session_t *session, const unsigned char *salt, unsigned int saltlen, unsigned char *key, unsigned int keylen)
+{
+ unsigned char hash[64];
+
+ if (keylen > sizeof(hash)) {
+ return -1;
+ }
+
+ sha_ctx_t *ctx = sha_init();
+ sha_update(ctx, salt, saltlen);
+ sha_update(ctx, session->ecdh_secret, 32);
+ sha_final(ctx, hash, NULL);
+ sha_destroy(ctx);
+
+ memcpy(key, hash, keylen);
+ return 0;
+}
+
+pairing_t *
+pairing_init_generate()
+{
+ unsigned char seed[32];
+
+ if (ed25519_create_seed(seed)) {
+ return NULL;
+ }
+ return pairing_init_seed(seed);
+}
+
+pairing_t *
+pairing_init_seed(const unsigned char seed[32])
+{
+ pairing_t *pairing;
+
+ pairing = calloc(1, sizeof(pairing_t));
+ if (!pairing) {
+ return NULL;
+ }
+
+ ed25519_create_keypair(pairing->ed_public, pairing->ed_private, seed);
+ return pairing;
+}
+
+void
+pairing_get_public_key(pairing_t *pairing, unsigned char public_key[32])
+{
+ assert(pairing);
+
+ memcpy(public_key, pairing->ed_public, 32);
+}
+
+void
+pairing_get_ecdh_secret_key(pairing_session_t *session, unsigned char ecdh_secret[32])
+{
+ assert(session);
+ memcpy(ecdh_secret, session->ecdh_secret, 32);
+}
+
+
+pairing_session_t *
+pairing_session_init(pairing_t *pairing)
+{
+ pairing_session_t *session;
+
+ if (!pairing) {
+ return NULL;
+ }
+
+ session = calloc(1, sizeof(pairing_session_t));
+ if (!session) {
+ return NULL;
+ }
+ memcpy(session->ed_private, pairing->ed_private, 64);
+ memcpy(session->ed_ours, pairing->ed_public, 32);
+ session->status = STATUS_INITIAL;
+
+ return session;
+}
+
+void
+pairing_session_set_setup_status(pairing_session_t *session)
+{
+ assert(session);
+ session->status = STATUS_SETUP;
+}
+
+int
+pairing_session_check_handshake_status(pairing_session_t *session)
+{
+ assert(session);
+ if (session->status != STATUS_SETUP) {
+ return -1;
+ }
+ return 0;
+}
+
+int
+pairing_session_handshake(pairing_session_t *session, const unsigned char ecdh_key[32], const unsigned char ed_key[32])
+{
+ unsigned char ecdh_priv[32];
+
+ assert(session);
+
+ if (session->status == STATUS_FINISHED) {
+ return -1;
+ }
+ if (ed25519_create_seed(ecdh_priv)) {
+ return -2;
+ }
+
+ memcpy(session->ecdh_theirs, ecdh_key, 32);
+ memcpy(session->ed_theirs, ed_key, 32);
+ curve25519_donna(session->ecdh_ours, ecdh_priv, kCurve25519BasePoint);
+ curve25519_donna(session->ecdh_secret, ecdh_priv, session->ecdh_theirs);
+
+ session->status = STATUS_HANDSHAKE;
+ return 0;
+}
+
+int
+pairing_session_get_public_key(pairing_session_t *session, unsigned char ecdh_key[32])
+{
+ assert(session);
+
+ if (session->status != STATUS_HANDSHAKE) {
+ return -1;
+ }
+
+ memcpy(ecdh_key, session->ecdh_ours, 32);
+ return 0;
+}
+
+int
+pairing_session_get_signature(pairing_session_t *session, unsigned char signature[64])
+{
+ unsigned char sig_msg[64];
+ unsigned char key[16];
+ unsigned char iv[16];
+ aes_ctx_t *aes_ctx;
+
+ assert(session);
+
+ if (session->status != STATUS_HANDSHAKE) {
+ return -1;
+ }
+
+ /* First sign the public ECDH keys of both parties */
+ memcpy(&sig_msg[0], session->ecdh_ours, 32);
+ memcpy(&sig_msg[32], session->ecdh_theirs, 32);
+
+ ed25519_sign(signature, sig_msg, sizeof(sig_msg), session->ed_ours, session->ed_private);
+
+ /* Then encrypt the result with keys derived from the shared secret */
+ derive_key_internal(session, (const unsigned char *) SALT_KEY, strlen(SALT_KEY), key, sizeof(key));
+ derive_key_internal(session, (const unsigned char *) SALT_IV, strlen(SALT_IV), iv, sizeof(key));
+
+ aes_ctx = aes_ctr_init(key, iv);
+ aes_ctr_encrypt(aes_ctx, signature, signature, 64);
+ aes_ctr_destroy(aes_ctx);
+
+ return 0;
+}
+
+int
+pairing_session_finish(pairing_session_t *session, const unsigned char signature[64])
+{
+ unsigned char sig_buffer[64];
+ unsigned char sig_msg[64];
+ unsigned char key[16];
+ unsigned char iv[16];
+ aes_ctx_t *aes_ctx;
+
+ assert(session);
+
+ if (session->status != STATUS_HANDSHAKE) {
+ return -1;
+ }
+
+ /* First decrypt the signature with keys derived from the shared secret */
+ derive_key_internal(session, (const unsigned char *) SALT_KEY, strlen(SALT_KEY), key, sizeof(key));
+ derive_key_internal(session, (const unsigned char *) SALT_IV, strlen(SALT_IV), iv, sizeof(key));
+
+ aes_ctx = aes_ctr_init(key, iv);
+ /* One fake round for the initial handshake encryption */
+ aes_ctr_encrypt(aes_ctx, sig_buffer, sig_buffer, 64);
+ aes_ctr_encrypt(aes_ctx, signature, sig_buffer, 64);
+ aes_ctr_destroy(aes_ctx);
+
+ /* Then verify the signature with public ECDH keys of both parties */
+ memcpy(&sig_msg[0], session->ecdh_theirs, 32);
+ memcpy(&sig_msg[32], session->ecdh_ours, 32);
+ if (!ed25519_verify(sig_buffer, sig_msg, sizeof(sig_msg), session->ed_theirs)) {
+ return -2;
+ }
+
+ session->status = STATUS_FINISHED;
+ return 0;
+}
+
+void
+pairing_session_destroy(pairing_session_t *session)
+{
+ free(session);
+}
+
+void
+pairing_destroy(pairing_t *pairing)
+{
+ free(pairing);
+}
diff --git a/lib/pairing.h b/lib/pairing.h
new file mode 100755
index 0000000..2df7dd0
--- /dev/null
+++ b/lib/pairing.h
@@ -0,0 +1,38 @@
+/**
+ * Copyright (C) 2018 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef PAIRING_H
+#define PAIRING_H
+
+typedef struct pairing_s pairing_t;
+typedef struct pairing_session_s pairing_session_t;
+
+pairing_t *pairing_init_generate();
+pairing_t *pairing_init_seed(const unsigned char seed[32]);
+void pairing_get_public_key(pairing_t *pairing, unsigned char public_key[32]);
+
+pairing_session_t *pairing_session_init(pairing_t *pairing);
+void pairing_session_set_setup_status(pairing_session_t *session);
+int pairing_session_check_handshake_status(pairing_session_t *session);
+int pairing_session_handshake(pairing_session_t *session, const unsigned char ecdh_key[32], const unsigned char ed_key[32]);
+int pairing_session_get_public_key(pairing_session_t *session, unsigned char ecdh_key[32]);
+int pairing_session_get_signature(pairing_session_t *session, unsigned char signature[64]);
+int pairing_session_finish(pairing_session_t *session, const unsigned char signature[64]);
+void pairing_session_destroy(pairing_session_t *session);
+
+void pairing_destroy(pairing_t *pairing);
+
+void pairing_get_ecdh_secret_key(pairing_session_t *session, unsigned char ecdh_secret[32]);
+
+#endif
diff --git a/lib/playfair/CMakeLists.txt b/lib/playfair/CMakeLists.txt
new file mode 100755
index 0000000..792daf0
--- /dev/null
+++ b/lib/playfair/CMakeLists.txt
@@ -0,0 +1,7 @@
+cmake_minimum_required(VERSION 3.4.1)
+aux_source_directory(. playfair_src)
+set(DIR_SRCS ${playfair_src})
+include_directories(.)
+add_library( playfair
+ STATIC
+ ${DIR_SRCS})
\ No newline at end of file
diff --git a/lib/playfair/LICENSE.md b/lib/playfair/LICENSE.md
new file mode 100755
index 0000000..09f984d
--- /dev/null
+++ b/lib/playfair/LICENSE.md
@@ -0,0 +1,637 @@
+
+# GNU GENERAL PUBLIC LICENSE
+Version 3, 29 June 2007
+
+Copyright (C) 2007 [Free Software Foundation, Inc.](http://fsf.org/)
+
+Everyone is permitted to copy and distribute verbatim copies of this license
+document, but changing it is not allowed.
+
+## Preamble
+
+The GNU General Public License is a free, copyleft license for software and
+other kinds of works.
+
+The licenses for most software and other practical works are designed to take
+away your freedom to share and change the works. By contrast, the GNU General
+Public License is intended to guarantee your freedom to share and change all
+versions of a program--to make sure it remains free software for all its users.
+We, the Free Software Foundation, use the GNU General Public License for most
+of our software; it applies also to any other work released this way by its
+authors. You can apply it to your programs, too.
+
+When we speak of free software, we are referring to freedom, not price. Our
+General Public Licenses are designed to make sure that you have the freedom to
+distribute copies of free software (and charge for them if you wish), that you
+receive source code or can get it if you want it, that you can change the
+software or use pieces of it in new free programs, and that you know you can do
+these things.
+
+To protect your rights, we need to prevent others from denying you these rights
+or asking you to surrender the rights. Therefore, you have certain
+responsibilities if you distribute copies of the software, or if you modify it:
+responsibilities to respect the freedom of others.
+
+For example, if you distribute copies of such a program, whether gratis or for
+a fee, you must pass on to the recipients the same freedoms that you received.
+You must make sure that they, too, receive or can get the source code. And you
+must show them these terms so they know their rights.
+
+Developers that use the GNU GPL protect your rights with two steps:
+
+ 1. assert copyright on the software, and
+ 2. offer you this License giving you legal permission to copy, distribute
+ and/or modify it.
+
+For the developers' and authors' protection, the GPL clearly explains that
+there is no warranty for this free software. For both users' and authors' sake,
+the GPL requires that modified versions be marked as changed, so that their
+problems will not be attributed erroneously to authors of previous versions.
+
+Some devices are designed to deny users access to install or run modified
+versions of the software inside them, although the manufacturer can do so. This
+is fundamentally incompatible with the aim of protecting users' freedom to
+change the software. The systematic pattern of such abuse occurs in the area of
+products for individuals to use, which is precisely where it is most
+unacceptable. Therefore, we have designed this version of the GPL to prohibit
+the practice for those products. If such problems arise substantially in other
+domains, we stand ready to extend this provision to those domains in future
+versions of the GPL, as needed to protect the freedom of users.
+
+Finally, every program is threatened constantly by software patents. States
+should not allow patents to restrict development and use of software on
+general-purpose computers, but in those that do, we wish to avoid the special
+danger that patents applied to a free program could make it effectively
+proprietary. To prevent this, the GPL assures that patents cannot be used to
+render the program non-free.
+
+The precise terms and conditions for copying, distribution and modification
+follow.
+
+## TERMS AND CONDITIONS
+
+### 0. Definitions.
+
+*This License* refers to version 3 of the GNU General Public License.
+
+*Copyright* also means copyright-like laws that apply to other kinds of works,
+such as semiconductor masks.
+
+*The Program* refers to any copyrightable work licensed under this License.
+Each licensee is addressed as *you*. *Licensees* and *recipients* may be
+individuals or organizations.
+
+To *modify* a work means to copy from or adapt all or part of the work in a
+fashion requiring copyright permission, other than the making of an exact copy.
+The resulting work is called a *modified version* of the earlier work or a work
+*based on* the earlier work.
+
+A *covered work* means either the unmodified Program or a work based on the
+Program.
+
+To *propagate* a work means to do anything with it that, without permission,
+would make you directly or secondarily liable for infringement under applicable
+copyright law, except executing it on a computer or modifying a private copy.
+Propagation includes copying, distribution (with or without modification),
+making available to the public, and in some countries other activities as well.
+
+To *convey* a work means any kind of propagation that enables other parties to
+make or receive copies. Mere interaction with a user through a computer
+network, with no transfer of a copy, is not conveying.
+
+An interactive user interface displays *Appropriate Legal Notices* to the
+extent that it includes a convenient and prominently visible feature that
+
+ 1. displays an appropriate copyright notice, and
+ 2. tells the user that there is no warranty for the work (except to the
+ extent that warranties are provided), that licensees may convey the work
+ under this License, and how to view a copy of this License.
+
+If the interface presents a list of user commands or options, such as a menu, a
+prominent item in the list meets this criterion.
+
+### 1. Source Code.
+
+The *source code* for a work means the preferred form of the work for making
+modifications to it. *Object code* means any non-source form of a work.
+
+A *Standard Interface* means an interface that either is an official standard
+defined by a recognized standards body, or, in the case of interfaces specified
+for a particular programming language, one that is widely used among developers
+working in that language.
+
+The *System Libraries* of an executable work include anything, other than the
+work as a whole, that (a) is included in the normal form of packaging a Major
+Component, but which is not part of that Major Component, and (b) serves only
+to enable use of the work with that Major Component, or to implement a Standard
+Interface for which an implementation is available to the public in source code
+form. A *Major Component*, in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system (if any) on
+which the executable work runs, or a compiler used to produce the work, or an
+object code interpreter used to run it.
+
+The *Corresponding Source* for a work in object code form means all the source
+code needed to generate, install, and (for an executable work) run the object
+code and to modify the work, including scripts to control those activities.
+However, it does not include the work's System Libraries, or general-purpose
+tools or generally available free programs which are used unmodified in
+performing those activities but which are not part of the work. For example,
+Corresponding Source includes interface definition files associated with source
+files for the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require, such as
+by intimate data communication or control flow between those subprograms and
+other parts of the work.
+
+The Corresponding Source need not include anything that users can regenerate
+automatically from other parts of the Corresponding Source.
+
+The Corresponding Source for a work in source code form is that same work.
+
+### 2. Basic Permissions.
+
+All rights granted under this License are granted for the term of copyright on
+the Program, and are irrevocable provided the stated conditions are met. This
+License explicitly affirms your unlimited permission to run the unmodified
+Program. The output from running a covered work is covered by this License only
+if the output, given its content, constitutes a covered work. This License
+acknowledges your rights of fair use or other equivalent, as provided by
+copyright law.
+
+You may make, run and propagate covered works that you do not convey, without
+conditions so long as your license otherwise remains in force. You may convey
+covered works to others for the sole purpose of having them make modifications
+exclusively for you, or provide you with facilities for running those works,
+provided that you comply with the terms of this License in conveying all
+material for which you do not control copyright. Those thus making or running
+the covered works for you must do so exclusively on your behalf, under your
+direction and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+Conveying under any other circumstances is permitted solely under the
+conditions stated below. Sublicensing is not allowed; section 10 makes it
+unnecessary.
+
+### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+No covered work shall be deemed part of an effective technological measure
+under any applicable law fulfilling obligations under article 11 of the WIPO
+copyright treaty adopted on 20 December 1996, or similar laws prohibiting or
+restricting circumvention of such measures.
+
+When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention is
+effected by exercising rights under this License with respect to the covered
+work, and you disclaim any intention to limit operation or modification of the
+work as a means of enforcing, against the work's users, your or third parties'
+legal rights to forbid circumvention of technological measures.
+
+### 4. Conveying Verbatim Copies.
+
+You may convey verbatim copies of the Program's source code as you receive it,
+in any medium, provided that you conspicuously and appropriately publish on
+each copy an appropriate copyright notice; keep intact all notices stating that
+this License and any non-permissive terms added in accord with section 7 apply
+to the code; keep intact all notices of the absence of any warranty; and give
+all recipients a copy of this License along with the Program.
+
+You may charge any price or no price for each copy that you convey, and you may
+offer support or warranty protection for a fee.
+
+### 5. Conveying Modified Source Versions.
+
+You may convey a work based on the Program, or the modifications to produce it
+from the Program, in the form of source code under the terms of section 4,
+provided that you also meet all of these conditions:
+
+ - a) The work must carry prominent notices stating that you modified it, and
+ giving a relevant date.
+ - b) The work must carry prominent notices stating that it is released under
+ this License and any conditions added under section 7. This requirement
+ modifies the requirement in section 4 to *keep intact all notices*.
+ - c) You must license the entire work, as a whole, under this License to
+ anyone who comes into possession of a copy. This License will therefore
+ apply, along with any applicable section 7 additional terms, to the whole
+ of the work, and all its parts, regardless of how they are packaged. This
+ License gives no permission to license the work in any other way, but it
+ does not invalidate such permission if you have separately received it.
+ - d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your work need
+ not make them do so.
+
+A compilation of a covered work with other separate and independent works,
+which are not by their nature extensions of the covered work, and which are not
+combined with it such as to form a larger program, in or on a volume of a
+storage or distribution medium, is called an *aggregate* if the compilation and
+its resulting copyright are not used to limit the access or legal rights of the
+compilation's users beyond what the individual works permit. Inclusion of a
+covered work in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+### 6. Conveying Non-Source Forms.
+
+You may convey a covered work in object code form under the terms of sections 4
+and 5, provided that you also convey the machine-readable Corresponding Source
+under the terms of this License, in one of these ways:
+
+ - a) Convey the object code in, or embodied in, a physical product (including
+ a physical distribution medium), accompanied by the Corresponding Source
+ fixed on a durable physical medium customarily used for software
+ interchange.
+ - b) Convey the object code in, or embodied in, a physical product (including
+ a physical distribution medium), accompanied by a written offer, valid for
+ at least three years and valid for as long as you offer spare parts or
+ customer support for that product model, to give anyone who possesses the
+ object code either
+ 1. a copy of the Corresponding Source for all the software in the product
+ that is covered by this License, on a durable physical medium
+ customarily used for software interchange, for a price no more than your
+ reasonable cost of physically performing this conveying of source, or
+ 2. access to copy the Corresponding Source from a network server at no
+ charge.
+ - c) Convey individual copies of the object code with a copy of the written
+ offer to provide the Corresponding Source. This alternative is allowed only
+ occasionally and noncommercially, and only if you received the object code
+ with such an offer, in accord with subsection 6b.
+ - d) Convey the object code by offering access from a designated place
+ (gratis or for a charge), and offer equivalent access to the Corresponding
+ Source in the same way through the same place at no further charge. You
+ need not require recipients to copy the Corresponding Source along with the
+ object code. If the place to copy the object code is a network server, the
+ Corresponding Source may be on a different server operated by you or a
+ third party) that supports equivalent copying facilities, provided you
+ maintain clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the Corresponding
+ Source, you remain obligated to ensure that it is available for as long as
+ needed to satisfy these requirements.
+ - e) Convey the object code using peer-to-peer transmission, provided you
+ inform other peers where the object code and Corresponding Source of the
+ work are being offered to the general public at no charge under subsection
+ 6d.
+
+A separable portion of the object code, whose source code is excluded from the
+Corresponding Source as a System Library, need not be included in conveying the
+object code work.
+
+A *User Product* is either
+
+ 1. a *consumer product*, which means any tangible personal property which is
+ normally used for personal, family, or household purposes, or
+ 2. anything designed or sold for incorporation into a dwelling.
+
+In determining whether a product is a consumer product, doubtful cases shall be
+resolved in favor of coverage. For a particular product received by a
+particular user, *normally used* refers to a typical or common use of that
+class of product, regardless of the status of the particular user or of the way
+in which the particular user actually uses, or expects or is expected to use,
+the product. A product is a consumer product regardless of whether the product
+has substantial commercial, industrial or non-consumer uses, unless such uses
+represent the only significant mode of use of the product.
+
+*Installation Information* for a User Product means any methods, procedures,
+authorization keys, or other information required to install and execute
+modified versions of a covered work in that User Product from a modified
+version of its Corresponding Source. The information must suffice to ensure
+that the continued functioning of the modified object code is in no case
+prevented or interfered with solely because modification has been made.
+
+If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as part of a
+transaction in which the right of possession and use of the User Product is
+transferred to the recipient in perpetuity or for a fixed term (regardless of
+how the transaction is characterized), the Corresponding Source conveyed under
+this section must be accompanied by the Installation Information. But this
+requirement does not apply if neither you nor any third party retains the
+ability to install modified object code on the User Product (for example, the
+work has been installed in ROM).
+
+The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates for a
+work that has been modified or installed by the recipient, or for the User
+Product in which it has been modified or installed. Access to a network may be
+denied when the modification itself materially and adversely affects the
+operation of the network or violates the rules and protocols for communication
+across the network.
+
+Corresponding Source conveyed, and Installation Information provided, in accord
+with this section must be in a format that is publicly documented (and with an
+implementation available to the public in source code form), and must require
+no special password or key for unpacking, reading or copying.
+
+### 7. Additional Terms.
+
+*Additional permissions* are terms that supplement the terms of this License by
+making exceptions from one or more of its conditions. Additional permissions
+that are applicable to the entire Program shall be treated as though they were
+included in this License, to the extent that they are valid under applicable
+law. If additional permissions apply only to part of the Program, that part may
+be used separately under those permissions, but the entire Program remains
+governed by this License without regard to the additional permissions.
+
+When you convey a copy of a covered work, you may at your option remove any
+additional permissions from that copy, or from any part of it. (Additional
+permissions may be written to require their own removal in certain cases when
+you modify the work.) You may place additional permissions on material, added
+by you to a covered work, for which you have or can give appropriate copyright
+permission.
+
+Notwithstanding any other provision of this License, for material you add to a
+covered work, you may (if authorized by the copyright holders of that material)
+supplement the terms of this License with terms:
+
+ - a) Disclaiming warranty or limiting liability differently from the terms of
+ sections 15 and 16 of this License; or
+ - b) Requiring preservation of specified reasonable legal notices or author
+ attributions in that material or in the Appropriate Legal Notices displayed
+ by works containing it; or
+ - c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in reasonable
+ ways as different from the original version; or
+ - d) Limiting the use for publicity purposes of names of licensors or authors
+ of the material; or
+ - e) Declining to grant rights under trademark law for use of some trade
+ names, trademarks, or service marks; or
+ - f) Requiring indemnification of licensors and authors of that material by
+ anyone who conveys the material (or modified versions of it) with
+ contractual assumptions of liability to the recipient, for any liability
+ that these contractual assumptions directly impose on those licensors and
+ authors.
+
+All other non-permissive additional terms are considered *further restrictions*
+within the meaning of section 10. If the Program as you received it, or any
+part of it, contains a notice stating that it is governed by this License along
+with a term that is a further restriction, you may remove that term. If a
+license document contains a further restriction but permits relicensing or
+conveying under this License, you may add to a covered work material governed
+by the terms of that license document, provided that the further restriction
+does not survive such relicensing or conveying.
+
+If you add terms to a covered work in accord with this section, you must place,
+in the relevant source files, a statement of the additional terms that apply to
+those files, or a notice indicating where to find the applicable terms.
+
+Additional terms, permissive or non-permissive, may be stated in the form of a
+separately written license, or stated as exceptions; the above requirements
+apply either way.
+
+### 8. Termination.
+
+You may not propagate or modify a covered work except as expressly provided
+under this License. Any attempt otherwise to propagate or modify it is void,
+and will automatically terminate your rights under this License (including any
+patent licenses granted under the third paragraph of section 11).
+
+However, if you cease all violation of this License, then your license from a
+particular copyright holder is reinstated
+
+ - a) provisionally, unless and until the copyright holder explicitly and
+ finally terminates your license, and
+ - b) permanently, if the copyright holder fails to notify you of the
+ violation by some reasonable means prior to 60 days after the cessation.
+
+Moreover, your license from a particular copyright holder is reinstated
+permanently if the copyright holder notifies you of the violation by some
+reasonable means, this is the first time you have received notice of violation
+of this License (for any work) from that copyright holder, and you cure the
+violation prior to 30 days after your receipt of the notice.
+
+Termination of your rights under this section does not terminate the licenses
+of parties who have received copies or rights from you under this License. If
+your rights have been terminated and not permanently reinstated, you do not
+qualify to receive new licenses for the same material under section 10.
+
+### 9. Acceptance Not Required for Having Copies.
+
+You are not required to accept this License in order to receive or run a copy
+of the Program. Ancillary propagation of a covered work occurring solely as a
+consequence of using peer-to-peer transmission to receive a copy likewise does
+not require acceptance. However, nothing other than this License grants you
+permission to propagate or modify any covered work. These actions infringe
+copyright if you do not accept this License. Therefore, by modifying or
+propagating a covered work, you indicate your acceptance of this License to do
+so.
+
+### 10. Automatic Licensing of Downstream Recipients.
+
+Each time you convey a covered work, the recipient automatically receives a
+license from the original licensors, to run, modify and propagate that work,
+subject to this License. You are not responsible for enforcing compliance by
+third parties with this License.
+
+An *entity transaction* is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered work
+results from an entity transaction, each party to that transaction who receives
+a copy of the work also receives whatever licenses to the work the party's
+predecessor in interest had or could give under the previous paragraph, plus a
+right to possession of the Corresponding Source of the work from the
+predecessor in interest, if the predecessor has it or can get it with
+reasonable efforts.
+
+You may not impose any further restrictions on the exercise of the rights
+granted or affirmed under this License. For example, you may not impose a
+license fee, royalty, or other charge for exercise of rights granted under this
+License, and you may not initiate litigation (including a cross-claim or
+counterclaim in a lawsuit) alleging that any patent claim is infringed by
+making, using, selling, offering for sale, or importing the Program or any
+portion of it.
+
+### 11. Patents.
+
+A *contributor* is a copyright holder who authorizes use under this License of
+the Program or a work on which the Program is based. The work thus licensed is
+called the contributor's *contributor version*.
+
+A contributor's *essential patent claims* are all patent claims owned or
+controlled by the contributor, whether already acquired or hereafter acquired,
+that would be infringed by some manner, permitted by this License, of making,
+using, or selling its contributor version, but do not include claims that would
+be infringed only as a consequence of further modification of the contributor
+version. For purposes of this definition, *control* includes the right to grant
+patent sublicenses in a manner consistent with the requirements of this
+License.
+
+Each contributor grants you a non-exclusive, worldwide, royalty-free patent
+license under the contributor's essential patent claims, to make, use, sell,
+offer for sale, import and otherwise run, modify and propagate the contents of
+its contributor version.
+
+In the following three paragraphs, a *patent license* is any express agreement
+or commitment, however denominated, not to enforce a patent (such as an express
+permission to practice a patent or covenant not to sue for patent
+infringement). To *grant* such a patent license to a party means to make such
+an agreement or commitment not to enforce a patent against the party.
+
+If you convey a covered work, knowingly relying on a patent license, and the
+Corresponding Source of the work is not available for anyone to copy, free of
+charge and under the terms of this License, through a publicly available
+network server or other readily accessible means, then you must either
+
+ 1. cause the Corresponding Source to be so available, or
+ 2. arrange to deprive yourself of the benefit of the patent license for this
+ particular work, or
+ 3. arrange, in a manner consistent with the requirements of this License, to
+ extend the patent license to downstream recipients.
+
+*Knowingly relying* means you have actual knowledge that, but for the patent
+license, your conveying the covered work in a country, or your recipient's use
+of the covered work in a country, would infringe one or more identifiable
+patents in that country that you have reason to believe are valid.
+
+If, pursuant to or in connection with a single transaction or arrangement, you
+convey, or propagate by procuring conveyance of, a covered work, and grant a
+patent license to some of the parties receiving the covered work authorizing
+them to use, propagate, modify or convey a specific copy of the covered work,
+then the patent license you grant is automatically extended to all recipients
+of the covered work and works based on it.
+
+A patent license is *discriminatory* if it does not include within the scope of
+its coverage, prohibits the exercise of, or is conditioned on the non-exercise
+of one or more of the rights that are specifically granted under this License.
+You may not convey a covered work if you are a party to an arrangement with a
+third party that is in the business of distributing software, under which you
+make payment to the third party based on the extent of your activity of
+conveying the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory patent
+license
+
+ - a) in connection with copies of the covered work conveyed by you (or copies
+ made from those copies), or
+ - b) primarily for and in connection with specific products or compilations
+ that contain the covered work, unless you entered into that arrangement, or
+ that patent license was granted, prior to 28 March 2007.
+
+Nothing in this License shall be construed as excluding or limiting any implied
+license or other defenses to infringement that may otherwise be available to
+you under applicable patent law.
+
+### 12. No Surrender of Others' Freedom.
+
+If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not excuse
+you from the conditions of this License. If you cannot convey a covered work so
+as to satisfy simultaneously your obligations under this License and any other
+pertinent obligations, then as a consequence you may not convey it at all. For
+example, if you agree to terms that obligate you to collect a royalty for
+further conveying from those to whom you convey the Program, the only way you
+could satisfy both those terms and this License would be to refrain entirely
+from conveying the Program.
+
+### 13. Use with the GNU Affero General Public License.
+
+Notwithstanding any other provision of this License, you have permission to
+link or combine any covered work with a work licensed under version 3 of the
+GNU Affero General Public License into a single combined work, and to convey
+the resulting work. The terms of this License will continue to apply to the
+part which is the covered work, but the special requirements of the GNU Affero
+General Public License, section 13, concerning interaction through a network
+will apply to the combination as such.
+
+### 14. Revised Versions of this License.
+
+The Free Software Foundation may publish revised and/or new versions of the GNU
+General Public License from time to time. Such new versions will be similar in
+spirit to the present version, but may differ in detail to address new problems
+or concerns.
+
+Each version is given a distinguishing version number. If the Program specifies
+that a certain numbered version of the GNU General Public License *or any later
+version* applies to it, you have the option of following the terms and
+conditions either of that numbered version or of any later version published by
+the Free Software Foundation. If the Program does not specify a version number
+of the GNU General Public License, you may choose any version ever published by
+the Free Software Foundation.
+
+If the Program specifies that a proxy can decide which future versions of the
+GNU General Public License can be used, that proxy's public statement of
+acceptance of a version permanently authorizes you to choose that version for
+the Program.
+
+Later license versions may give you additional or different permissions.
+However, no additional obligations are imposed on any author or copyright
+holder as a result of your choosing to follow a later version.
+
+### 15. Disclaimer of Warranty.
+
+THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
+LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
+PARTIES PROVIDE THE PROGRAM *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER
+EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
+QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
+DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
+CORRECTION.
+
+### 16. Limitation of Liability.
+
+IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY
+COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS
+PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
+INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
+THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
+INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
+PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY
+HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+### 17. Interpretation of Sections 15 and 16.
+
+If the disclaimer of warranty and limitation of liability provided above cannot
+be given local legal effect according to their terms, reviewing courts shall
+apply local law that most closely approximates an absolute waiver of all civil
+liability in connection with the Program, unless a warranty or assumption of
+liability accompanies a copy of the Program in return for a fee.
+
+## END OF TERMS AND CONDITIONS ###
+
+### How to Apply These Terms to Your New Programs
+
+If you develop a new program, and you want it to be of the greatest possible
+use to the public, the best way to achieve this is to make it free software
+which everyone can redistribute and change under these terms.
+
+To do so, attach the following notices to the program. It is safest to attach
+them to the start of each source file to most effectively state the exclusion
+of warranty; and each file should have at least the *copyright* line and a
+pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program does terminal interaction, make it output a short notice like
+this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w` and `show c` should show the appropriate
+parts of the General Public License. Of course, your program's commands might
+be different; for a GUI interface, you would use an *about box*.
+
+You should also get your employer (if you work as a programmer) or school, if
+any, to sign a *copyright disclaimer* for the program, if necessary. For more
+information on this, and how to apply and follow the GNU GPL, see
+[http://www.gnu.org/licenses/](http://www.gnu.org/licenses/).
+
+The GNU General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may consider
+it more useful to permit linking proprietary applications with the library. If
+this is what you want to do, use the GNU Lesser General Public License instead
+of this License. But first, please read
+[http://www.gnu.org/philosophy/why-not-lgpl.html](http://www.gnu.org/philosophy/why-not-lgpl.html).
diff --git a/lib/playfair/hand_garble.c b/lib/playfair/hand_garble.c
new file mode 100755
index 0000000..8e8361b
--- /dev/null
+++ b/lib/playfair/hand_garble.c
@@ -0,0 +1,443 @@
+#include
+#include
+
+#define printf(...) (void)0;
+
+uint8_t rol8(uint8_t x, int y);
+uint32_t rol8x(uint8_t x, int y);
+
+uint32_t weird_ror8(uint8_t input, int count)
+{
+ if (count == 0)
+ return 0;
+ return ((input >> count) & 0xff) | (input & 0xff) << (8-count);
+
+}
+
+uint32_t weird_rol8(uint8_t input, int count)
+{
+ if (count == 0)
+ return 0;
+ return ((input << count) & 0xff) | (input & 0xff) >> (8-count);
+}
+
+uint32_t weird_rol32(uint8_t input, int count)
+{
+ if (count == 0)
+ return 0;
+ return (input << count) ^ (input >> (8 - count));
+}
+
+// I do not know why it is doing all of this, and there is still a possibility for a gremlin or two to be lurking in the background
+// I DO know it is not trivial. It could be purely random garbage, of course.
+void garble(unsigned char* buffer0, unsigned char* buffer1, unsigned char* buffer2, unsigned char* buffer3, unsigned char* buffer4)
+{
+ unsigned int tmp, tmp2, tmp3;
+ unsigned int A, B, C, D, E, M, J, G, F, H, K, R, S, T, U, V, W, X, Y, Z;
+ // buffer1[64] = A
+ // (buffer1[99] / 3) = B
+ // 0ABAAABB
+ // Then we AND with a complex expression, and add 20 just for good measure
+ buffer2[12] = 0x14 + (((buffer1[64] & 92) | ((buffer1[99] / 3) & 35)) & buffer4[rol8x(buffer4[(buffer1[206] % 21)],4) % 21]);
+ printf("buffer2[12] = %02x\n", buffer2[12]);
+
+ // This is a bit simpler: 2*B*B/25
+ buffer1[4] = (buffer1[99] / 5) * (buffer1[99] / 5) * 2;
+ printf("buffer1[4] = %02x\n", buffer1[4]);
+
+ // Simpler still!
+ buffer2[34] = 0xb8;
+ printf("buffer2[34] = %02x\n", buffer2[34]);
+
+ // ...
+ buffer1[153] ^= (buffer2[buffer1[203] % 35] * buffer2[buffer1[203] % 35] * buffer1[190]);
+ printf("buffer1[153] = %02x\n", buffer1[153]);
+
+ // This one looks simple, but wow was it not :(
+ buffer0[3] -= (((buffer4[buffer1[205] % 21]>>1) & 80) | 0xe6440);
+ printf("buffer0[3] = %02x\n", buffer0[3]);
+
+ // This is always 0x93
+ buffer0[16] = 0x93;
+ printf("buffer0[16] = %02x\n", buffer0[16]);
+
+ // This is always 0x62
+ buffer0[13] = 0x62;
+ printf("buffer0[13] = %02x\n", buffer0[13]);
+
+ buffer1[33] -= (buffer4[buffer1[36] % 21] & 0xf6);
+ printf("buffer1[33] = %02x\n", buffer1[33]);
+
+ // This is always 7
+ tmp2 = buffer2[buffer1[67] % 35];
+ buffer2[12] = 0x07;
+ printf("buffer2[12] = %02x\n", buffer2[12]);
+
+ // This is pretty easy!
+ tmp = buffer0[buffer1[181] % 20];
+ buffer1[2] -= 3136;
+ printf("buffer1[2] = %02x\n", buffer1[2]);
+
+ buffer0[19] = buffer4[buffer1[58] % 21];
+ printf("buffer0[19] = %02x\n", buffer0[19]);
+
+ buffer3[0] = 92 - buffer2[buffer1[32] % 35];
+ printf("buffer3[0] = %02x\n", buffer3[0]);
+
+ buffer3[4] = buffer2[buffer1[15] % 35] + 0x9e;
+ printf("buffer3[4] = %02x\n", buffer3[4]);
+
+ buffer1[34] += (buffer4[((buffer2[buffer1[15] % 35] + 0x9e) & 0xff) % 21] / 5);
+ printf("buffer1[34] = %02x\n", buffer1[34]);
+
+ buffer0[19] += 0xfffffee6 - ((buffer0[buffer3[4] % 20]>>1) & 102);
+ printf("buffer0[19] = %02x\n", buffer0[19]);
+
+ // This LOOKS like it should be a rol8x, but it just doesnt work out because if the shift amount is 0, then the output is 0 too :(
+ // FIXME: Switch to weird_ror8
+ buffer1[15] = (3*(((buffer1[72] >> (buffer4[buffer1[190] % 21] & 7)) ^ (buffer1[72] << ((7 - (buffer4[buffer1[190] % 21]-1)&7)))) - (3*buffer4[buffer1[126] % 21]))) ^ buffer1[15];
+ printf("buffer1[15] = %02x\n", buffer1[15]);
+
+ buffer0[15] ^= buffer2[buffer1[181] % 35] * buffer2[buffer1[181] % 35] * buffer2[buffer1[181] % 35];
+ printf("buffer0[15] = %02x\n", buffer0[15]);
+
+ buffer2[4] ^= buffer1[202]/3;
+ printf("buffer2[4] = %02x\n", buffer2[4]);
+
+ // This could probably be quite a bit simpler.
+ A = 92 - buffer0[buffer3[0] % 20];
+ E = (A & 0xc6) | (~buffer1[105] & 0xc6) | (A & (~buffer1[105]));
+ buffer2[1] += (E*E*E);
+ printf("buffer2[1] = %02x\n", buffer2[1]);
+
+ buffer0[19] ^= ((224 | (buffer4[buffer1[92] % 21] & 27)) * buffer2[buffer1[41] % 35]) / 3;
+ printf("buffer0[19] = %02x\n", buffer0[19]);
+
+ buffer1[140] += weird_ror8(92, buffer1[5] & 7);
+ printf("buffer1[140] = %02x\n", buffer1[140]);
+
+ // Is this as simple as it could be?
+ buffer2[12] += ((((~buffer1[4]) ^ buffer2[buffer1[12] % 35]) | buffer1[182]) & 192) | (((~buffer1[4]) ^ buffer2[buffer1[12] % 35]) & buffer1[182]);
+ printf("buffer2[12] = %02x\n", buffer2[12]);
+
+ buffer1[36] += 125;
+ printf("buffer1[36] = %02x\n", buffer1[36]);
+
+ buffer1[124] = rol8x((((74 & buffer1[138]) | ((74 | buffer1[138]) & buffer0[15])) & buffer0[buffer1[43] % 20]) | (((74 & buffer1[138]) | ((74 | buffer1[138]) & buffer0[15]) | buffer0[buffer1[43] % 20]) & 95), 4);
+ printf("buffer1[124] = %02x\n", buffer1[124]);
+
+ buffer3[8] = ((((buffer0[buffer3[4] % 20] & 95)) & ((buffer4[buffer1[68] % 21] & 46) << 1)) | 16) ^ 92;
+ printf("buffer3[8] = %02x\n", buffer3[8]);
+
+ A = buffer1[177] + buffer4[buffer1[79] % 21];
+ D = (((A >> 1) | ((3 * buffer1[148]) / 5)) & buffer2[1]) | ((A >> 1) & ((3 * buffer1[148])/5));
+ buffer3[12] = ((-34 - D));
+ printf("buffer3[12] = %02x\n", buffer3[12]);
+
+ A = 8 - ((buffer2[22] & 7)); // FIXME: buffer2[22] = 74, so A is always 6 and B^C is just ror8(buffer1[33], 6)
+ B = (buffer1[33] >> (A & 7));
+ C = buffer1[33] << (buffer2[22] & 7);
+ buffer2[16] += ((buffer2[buffer3[0] % 35] & 159) | buffer0[buffer3[4] % 20] | 8) - ((B^C) | 128);
+ printf("buffer2[16] = %02x\n", buffer2[16]);
+
+ // This one was very easy so I just skipped ahead and did it
+ buffer0[14] ^= buffer2[buffer3[12] % 35];
+ printf("buffer0[14] = %02x\n", buffer0[14]);
+
+ // Monster goes here
+ A = weird_rol8(buffer4[buffer0[buffer1[201] % 20] % 21], ((buffer2[buffer1[112] % 35] << 1) & 7));
+ D = (buffer0[buffer1[208] % 20] & 131) | (buffer0[buffer1[164] % 20] & 124);
+ buffer1[19] += (A & (D/5)) | ((A | (D/5)) & 37);
+ printf("buffer1[19] = %02x\n", buffer1[19]);
+
+ buffer2[8] = weird_ror8(140, ((buffer4[buffer1[45] % 21] + 92) * (buffer4[buffer1[45] % 21] + 92)) & 7);
+ printf("buffer2[8] = %02x\n", buffer2[8]);
+
+ buffer1[190] = 56;
+ printf("buffer1[190] = %02x\n", buffer1[190]);
+
+ buffer2[8] ^= buffer3[0];
+ printf("buffer2[8] = %02x\n", buffer2[8]);
+
+ buffer1[53] = ~((buffer0[buffer1[83] % 20] | 204)/5);
+ printf("buffer1[53] = %02x\n", buffer1[53]);
+
+ buffer0[13] += buffer0[buffer1[41] % 20];
+ printf("buffer0[13] = %02x\n", buffer0[13]);
+
+ buffer0[10] = ((buffer2[buffer3[0] % 35] & buffer1[2]) | ((buffer2[buffer3[0] % 35] | buffer1[2]) & buffer3[12])) / 15;
+ printf("buffer0[10] = %02x\n", buffer0[10]);
+
+ A = (((56 | (buffer4[buffer1[2] % 21] & 68)) | buffer2[buffer3[8] % 35]) & 42) | (((buffer4[buffer1[2] % 21] & 68) | 56) & buffer2[buffer3[8] % 35]);
+ buffer3[16] = (A*A) + 110;
+ printf("buffer3[16] = %02x\n", buffer3[16]);
+
+ buffer3[20] = 202 - buffer3[16];
+ printf("buffer3[20] = %02x\n", buffer3[20]);
+
+ buffer3[24] = buffer1[151];
+ printf("buffer3[24] = %02x\n", buffer3[24]);
+
+ buffer2[13] ^= buffer4[buffer3[0] % 21];
+ printf("buffer2[13] = %02x\n", buffer2[13]);
+
+ B = ((buffer2[buffer1[179] % 35] - 38) & 177) | (buffer3[12] & 177);
+ C = ((buffer2[buffer1[179] % 35] - 38)) & buffer3[12];
+ buffer3[28] = 30 + ((B | C) * (B | C));
+ printf("buffer3[28] = %02x\n", buffer3[28]);
+
+ buffer3[32] = buffer3[28] + 62;
+ printf("buffer3[32] = %02x\n", buffer3[32]);
+
+ // eek
+ A = ((buffer3[20] + (buffer3[0] & 74)) | ~buffer4[buffer3[0] % 21]) & 121;
+ B = ((buffer3[20] + (buffer3[0] & 74)) & ~buffer4[buffer3[0] % 21]);
+ tmp3 = (A|B);
+ C = ((((A|B) ^ 0xffffffa6) | buffer3[0]) & 4) | (((A|B) ^ 0xffffffa6) & buffer3[0]);
+ buffer1[47] = (buffer2[buffer1[89] % 35] + C) ^ buffer1[47];
+ printf("buffer1[47] = %02x\n", buffer1[47]);
+
+ buffer3[36] = ((rol8((tmp & 179) + 68, 2) & buffer0[3]) | (tmp2 & ~buffer0[3])) - 15;
+ printf("buffer3[36] = %02x\n", buffer3[36]);
+
+ buffer1[123] ^= 221;
+ printf("buffer1[123] = %02x\n", buffer1[123]);
+
+ A = ((buffer4[buffer3[0] % 21]) / 3) - buffer2[buffer3[4] % 35];
+ C = (((buffer3[0] & 163) + 92) & 246) | (buffer3[0] & 92);
+ E = ((C | buffer3[24]) & 54) | (C & buffer3[24]);
+ buffer3[40] = A - E;
+ printf("buffer3[40] = %02x\n", buffer3[40]);
+
+ buffer3[44] = tmp3 ^ 81 ^ (((buffer3[0] >> 1) & 101) + 26);
+ printf("buffer3[44] = %02x\n", buffer3[44]);
+
+ buffer3[48] = buffer2[buffer3[4] % 35] & 27;
+ printf("buffer3[48] = %02x\n", buffer3[48]);
+ buffer3[52] = 27;
+ printf("buffer3[52] = %02x\n", buffer3[52]);
+ buffer3[56] = 199;
+ printf("buffer3[56] = %02x\n", buffer3[56]);
+
+ // caffeine
+ buffer3[64] = buffer3[4] + (((((((buffer3[40] | buffer3[24]) & 177) | (buffer3[40] & buffer3[24])) & ((((buffer4[buffer3[0] % 20] & 177) | 176)) | ((buffer4[buffer3[0] % 21]) & ~3))) | ((((buffer3[40] & buffer3[24]) | ((buffer3[40] | buffer3[24]) & 177)) & 199) | ((((buffer4[buffer3[0] % 21] & 1) + 176) | (buffer4[buffer3[0] % 21] & ~3)) & buffer3[56]))) & (~buffer3[52])) | buffer3[48]);
+ printf("buffer3[64] = %02x (want E7)\n", buffer3[64]);
+
+ buffer2[33] ^= buffer1[26];
+ printf("buffer2[33] = %02x\n", buffer2[33]);
+
+ buffer1[106] ^= buffer3[20] ^ 133;
+ printf("buffer1[106] = %02x\n", buffer1[106]);
+
+ buffer2[30] = ((buffer3[64] / 3) - (275 | (buffer3[0] & 247))) ^ buffer0[buffer1[122] % 20];
+ printf("buffer2[130] = %02x\n", buffer2[30]);
+
+ buffer1[22] = (buffer2[buffer1[90] % 35] & 95) | 68;
+ printf("buffer1[22] = %02x\n", buffer1[22]);
+
+ A = (buffer4[buffer3[36] % 21] & 184) | (buffer2[buffer3[44] % 35] & ~184);
+ buffer2[18] += ((A*A*A) >> 1);
+ printf("buffer2[18] = %02x\n", buffer2[18]);
+
+ buffer2[5] -= buffer4[buffer1[92] % 21];
+ printf("buffer2[5] = %02x\n", buffer2[5]);
+
+ A = (((buffer1[41] & ~24)|(buffer2[buffer1[183] % 35] & 24)) & (buffer3[16] + 53)) | (buffer3[20] & buffer2[buffer3[20] % 35]);
+ B = (buffer1[17] & (~buffer3[44])) | (buffer0[buffer1[59] % 20] & buffer3[44]);
+ buffer2[18] ^= (A*B);
+ printf("buffer2[18] = %02x\n", buffer2[18]);
+
+
+ A = weird_ror8(buffer1[11], buffer2[buffer1[28] % 35] & 7) & 7;
+ B = (((buffer0[buffer1[93] % 20] & ~buffer0[14]) | (buffer0[14] & 150)) & ~28) | (buffer1[7] & 28);
+ buffer2[22] = (((((B | weird_rol8(buffer2[buffer3[0] % 35], A)) & buffer2[33]) | (B & weird_rol8(buffer2[buffer3[0] % 35], A))) + 74) & 0xff);
+ printf("buffer2[22] = %02x\n", buffer2[22]);
+
+ A = buffer4[(buffer0[buffer1[39] % 20] ^ 217) % 21]; // X5
+ buffer0[15] -= ((((buffer3[20] | buffer3[0]) & 214) | (buffer3[20] & buffer3[0])) & A) | ((((buffer3[20] | buffer3[0]) & 214) | (buffer3[20] & buffer3[0]) | A) & buffer3[32]);
+ printf("buffer0[15] = %02x\n", buffer0[15]);
+
+ // We need to save T here, and boy is it complicated to calculate!
+ B = (((buffer2[buffer1[57] % 35] & buffer0[buffer3[64] % 20]) | ((buffer0[buffer3[64] % 20] | buffer2[buffer1[57] % 35]) & 95) | (buffer3[64] & 45) | 82) & 32);
+ C = ((buffer2[buffer1[57] % 35] & buffer0[buffer3[64] % 20]) | ((buffer2[buffer1[57] % 35] | buffer0[buffer3[64] % 20]) & 95)) & ((buffer3[64] & 45) | 82);
+ D = ((((buffer3[0]/3) - (buffer3[64]|buffer1[22]))) ^ (buffer3[28] + 62) ^ ((B|C)));
+ T = buffer0[(D & 0xff) % 20];
+
+ buffer3[68] = (buffer0[buffer1[99] % 20] * buffer0[buffer1[99] % 20] * buffer0[buffer1[99] % 20] * buffer0[buffer1[99] % 20]) | buffer2[buffer3[64] % 35];
+ printf("buffer3[68] = %02x\n", buffer3[68]);
+
+ U = buffer0[buffer1[50] % 20]; // this is also v100
+ W = buffer2[buffer1[138] % 35];
+ X = buffer4[buffer1[39] % 21];
+ Y = buffer0[buffer1[4] % 20]; // this is also v120
+ Z = buffer4[buffer1[202] % 21]; // also v124
+ V = buffer0[buffer1[151] % 20];
+ S = buffer2[buffer1[14] % 35];
+ R = buffer0[buffer1[145] % 20];
+
+ A = (buffer2[buffer3[68] % 35] & buffer0[buffer1[209] % 20]) | ((buffer2[buffer3[68] % 35] | buffer0[buffer1[209] % 20]) & 24);
+ B = weird_rol8(buffer4[buffer1[127] % 21], buffer2[buffer3[68] % 35] & 7);
+ C = (A & buffer0[10]) | (B & ~buffer0[10]);
+ D = 7 ^ (buffer4[buffer2[buffer3[36] % 35] % 21] << 1);
+ buffer3[72] = (C & 71) | (D & ~71);
+ printf("buffer3[72] = %02x\n", buffer3[72]);
+
+ buffer2[2] += (((buffer0[buffer3[20] % 20] << 1) & 159) | (buffer4[buffer1[190] % 21] & ~159)) & ((((buffer4[buffer3[64] % 21] & 110) | (buffer0[buffer1[25] % 20] & ~110)) & ~150) | (buffer1[25] & 150));
+ printf("buffer2[2] = %02x\n", buffer2[2]);
+
+ buffer2[14] -= ((buffer2[buffer3[20] % 35] & (buffer3[72] ^ buffer2[buffer1[100] % 35])) & ~34) | (buffer1[97] & 34);
+ printf("buffer2[14] = %02x\n", buffer2[14]);
+
+ buffer0[17] = 115;
+ printf("buffer0[17] = %02x\n", buffer0[17]);
+
+ buffer1[23] ^= ((((((buffer4[buffer1[17] % 21] | buffer0[buffer3[20] % 20]) & buffer3[72]) | (buffer4[buffer1[17] % 21] & buffer0[buffer3[20] % 20])) & (buffer1[50]/3)) |
+ ((((buffer4[buffer1[17] % 21] | buffer0[buffer3[20] % 20]) & buffer3[72]) | (buffer4[buffer1[17] % 21] & buffer0[buffer3[20] % 20]) | (buffer1[50] / 3)) & 246)) << 1);
+ printf("buffer1[23] = %02x\n", buffer1[23]);
+
+ buffer0[13] = ((((((buffer0[buffer3[40] % 20] | buffer1[10]) & 82) | (buffer0[buffer3[40] % 20] & buffer1[10])) & 209) |
+ ((buffer0[buffer1[39] % 20] << 1) & 46)) >> 1);
+ printf("buffer0[13] = %02x\n", buffer0[13]);
+
+ buffer2[33] -= buffer1[113] & 9;
+ printf("buffer2[33] = %02x\n", buffer2[33]);
+
+ buffer2[28] -= ((((2 | (buffer1[110] & 222)) >> 1) & ~223) | (buffer3[20] & 223));
+ printf("buffer2[28] = %02x\n", buffer2[28]);
+
+ J = weird_rol8((V | Z), (U & 7)); // OK
+ A = (buffer2[16] & T) | (W & (~buffer2[16]));
+ B = (buffer1[33] & 17) | (X & ~17);
+ E = ((Y | ((A+B) / 5)) & 147) |
+ (Y & ((A+B) / 5)); // OK
+ M = (buffer3[40] & buffer4[((buffer3[8] + J + E) & 0xff) % 21]) |
+ ((buffer3[40] | buffer4[((buffer3[8] + J + E) & 0xff) % 21]) & buffer2[23]);
+
+ buffer0[15] = (((buffer4[buffer3[20] % 21] - 48) & (~buffer1[184])) | ((buffer4[buffer3[20] % 21] - 48) & 189) | (189 & ~buffer1[184])) & (M*M*M);
+ printf("buffer0[15] = %02x\n", buffer0[15]);
+
+ buffer2[22] += buffer1[183];
+ printf("buffer2[22] = %02x\n", buffer2[22]);
+
+ buffer3[76] = (3 * buffer4[buffer1[1] % 21]) ^ buffer3[0];
+ printf("buffer3[76] = %02x\n", buffer3[76]);
+
+ A = buffer2[((buffer3[8] + (J + E)) & 0xff) % 35];
+ F = (((buffer4[buffer1[178] % 21] & A) | ((buffer4[buffer1[178] % 21] | A) & 209)) * buffer0[buffer1[13] % 20]) * (buffer4[buffer1[26] % 21] >> 1);
+ G = (F + 0x733ffff9) * 198 - (((F + 0x733ffff9) * 396 + 212) & 212) + 85;
+ buffer3[80] = buffer3[36] + (G ^ 148) + ((G ^ 107) << 1) - 127;
+ printf("buffer3[80] = %02x\n", buffer3[80]);
+
+ buffer3[84] = ((buffer2[buffer3[64] % 35]) & 245) | (buffer2[buffer3[20] % 35] & 10);
+ printf("buffer3[84] = %02x\n", buffer3[84]);
+
+ A = buffer0[buffer3[68] % 20] | 81;
+ buffer2[18] -= ((A*A*A) & ~buffer0[15]) | ((buffer3[80] / 15) & buffer0[15]);
+ printf("buffer2[18] = %02x\n", buffer2[18]);
+
+ buffer3[88] = buffer3[8] + J + E - buffer0[buffer1[160] % 20] + (buffer4[buffer0[((buffer3[8] + J + E) & 255) % 20] % 21] / 3);
+ printf("buffer3[88] = %02x\n", buffer3[88]);
+
+ B = ((R ^ buffer3[72]) & ~198) | ((S * S) & 198);
+ F = (buffer4[buffer1[69] % 21] & buffer1[172]) | ((buffer4[buffer1[69] % 21] | buffer1[172] ) & ((buffer3[12] - B) + 77));
+ buffer0[16] = 147 - ((buffer3[72] & ((F & 251) | 1)) | (((F & 250) | buffer3[72]) & 198));
+ printf("buffer0[16] = %02x\n", buffer0[16]);
+
+ C = (buffer4[buffer1[168] % 21] & buffer0[buffer1[29] % 20] & 7) | ((buffer4[buffer1[168] % 21] | buffer0[buffer1[29] % 20]) & 6);
+ F = (buffer4[buffer1[155] % 21] & buffer1[105]) | ((buffer4[buffer1[155] % 21] | buffer1[105]) & 141);
+ buffer0[3] -= buffer4[weird_rol32(F, C) % 21];
+ printf("buffer0[3] = %02x\n", buffer0[3]);
+
+ buffer1[5] = weird_ror8(buffer0[12], ((buffer0[buffer1[61] % 20] / 5) & 7)) ^ (((~buffer2[buffer3[84] % 35]) & 0xffffffff) / 5);
+ printf("buffer1[5] = %02x\n", buffer1[5]);
+
+ buffer1[198] += buffer1[3];
+ printf("buffer1[198] = %02x\n", buffer1[198]);
+
+ A = (162 | buffer2[buffer3[64] % 35]);
+ buffer1[164] += ((A*A)/5);
+ printf("buffer1[164] = %02x\n", buffer1[164]);
+
+ G = weird_ror8(139, (buffer3[80] & 7));
+ C = ((buffer4[buffer3[64] % 21] * buffer4[buffer3[64] % 21] * buffer4[buffer3[64] % 21]) & 95) | (buffer0[buffer3[40] % 20] & ~95);
+ buffer3[92] = (G & 12) | (buffer0[buffer3[20] % 20] & 12) | (G & buffer0[buffer3[20] % 20]) | C;
+ printf("buffer3[92] = %02x\n", buffer3[92]);
+
+ buffer2[12] += ((buffer1[103] & 32) | (buffer3[92] & ((buffer1[103] | 60))) | 16)/3;
+ printf("buffer2[12] = %02x\n", buffer2[12]);
+
+ buffer3[96] = buffer1[143];
+ printf("buffer3[96] = %02x\n", buffer3[96]);
+
+ buffer3[100] = 27;
+ printf("buffer3[100] = %02x\n", buffer3[100]);
+
+ buffer3[104] = (((buffer3[40] & ~buffer2[8]) | (buffer1[35] & buffer2[8])) & buffer3[64]) ^ 119;
+ printf("buffer3[104] = %02x\n", buffer3[104]);
+
+ buffer3[108] = 238 & ((((buffer3[40] & ~buffer2[8]) | (buffer1[35] & buffer2[8])) & buffer3[64]) << 1);
+ printf("buffer3[108] = %02x\n", buffer3[108]);
+
+ buffer3[112] = (~buffer3[64] & (buffer3[84] / 3)) ^ 49;
+ printf("buffer3[112] = %02x\n", buffer3[112]);
+
+ buffer3[116] = 98 & ((~buffer3[64] & (buffer3[84] / 3)) << 1);
+ printf("buffer3[116] = %02x\n", buffer3[116]);
+
+ // finale
+ A = (buffer1[35] & buffer2[8]) | (buffer3[40] & ~buffer2[8]);
+ B = (A & buffer3[64]) | (((buffer3[84] / 3) & ~buffer3[64]));
+ buffer1[143] = buffer3[96] - ((B & (86 + ((buffer1[172] & 64) >> 1))) | (((((buffer1[172] & 65) >> 1) ^ 86) | ((~buffer3[64] & (buffer3[84] / 3)) | (((buffer3[40] & ~buffer2[8]) | (buffer1[35] & buffer2[8])) & buffer3[64]))) & buffer3[100]));
+ printf("buffer1[143] = %02x\n", buffer1[143]);
+
+ buffer2[29] = 162;
+ printf("buffer2[29] = %02x\n", buffer2[29]);
+
+ A = ((((buffer4[buffer3[88] % 21]) & 160) | (buffer0[buffer1[125] % 20] & 95)) >> 1);
+ B = buffer2[buffer1[149] % 35] ^ (buffer1[43] * buffer1[43]);
+ buffer0[15] += (B&A) | ((A|B) & 115);
+ printf("buffer0[15] = %02x\n", buffer0[15]);
+
+ buffer3[120] = buffer3[64] - buffer0[buffer3[40] % 20];
+ printf("buffer3[120] = %02x\n", buffer3[120]);
+
+ buffer1[95] = buffer4[buffer3[20] % 21];
+ printf("buffer1[95] = %02x\n", buffer1[95]);
+
+ A = weird_ror8(buffer2[buffer3[80] % 35], (buffer2[buffer1[17] % 35] * buffer2[buffer1[17] % 35] * buffer2[buffer1[17] % 35]) & 7);
+ buffer0[7] -= (A*A);
+ printf("buffer0[7] = %02x\n", buffer0[7]);
+
+ buffer2[8] = buffer2[8] - buffer1[184] + (buffer4[buffer1[202] % 21] * buffer4[buffer1[202] % 21] * buffer4[buffer1[202] % 21]);
+ printf("buffer2[8] = %02x\n", buffer2[8]);
+
+ buffer0[16] = (buffer2[buffer1[102] % 35] << 1) & 132;
+ printf("buffer0[16] = %02x\n", buffer0[16]);
+
+ buffer3[124] = (buffer4[buffer3[40] % 21] >> 1) ^ buffer3[68];
+ printf("buffer3[124] = %02x\n", buffer3[124]);
+
+ buffer0[7] -= (buffer0[buffer1[191] % 20] - (((buffer4[buffer1[80] % 21] << 1) & ~177) | (buffer4[buffer4[buffer3[88] % 21] % 21] & 177)));
+ printf("buffer0[7] = %02x\n", buffer0[7]);
+
+ buffer0[6] = buffer0[buffer1[119] % 20];
+ printf("buffer0[6] = %02x\n", buffer0[6]);
+
+ A = (buffer4[buffer1[190] % 21] & ~209) | (buffer1[118] & 209);
+ B = buffer0[buffer3[120] % 20] * buffer0[buffer3[120] % 20];
+ buffer0[12] = (buffer0[buffer3[84] % 20] ^ (buffer2[buffer1[71] % 35] + buffer2[buffer1[15] % 35])) & ((A & B) | ((A | B) & 27));
+ printf("buffer0[12] = %02x\n", buffer0[12]);
+
+ B = (buffer1[32] & buffer2[buffer3[88] % 35]) | ((buffer1[32] | buffer2[buffer3[88] % 35]) & 23);
+ D = (((buffer4[buffer1[57] % 21] * 231) & 169) | (B & 86));
+ F = (((buffer0[buffer1[82] % 20] & ~29) | (buffer4[buffer3[124] % 21] & 29)) & 190) | (buffer4[(D/5) % 21] & ~190);
+ H = buffer0[buffer3[40] % 20] * buffer0[buffer3[40] % 20] * buffer0[buffer3[40] % 20];
+ K = (H & buffer1[82]) | (H & 92) | (buffer1[82] & 92);
+ buffer3[128] = ((F & K) | ((F | K) & 192)) ^ (D/5);
+ printf("buffer3[128] = %02x\n", buffer3[128]);
+
+ buffer2[25] ^= ((buffer0[buffer3[120] % 20] << 1) * buffer1[5]) - (weird_rol8(buffer3[76], (buffer4[buffer3[124] % 21] & 7)) & (buffer3[20] + 110));
+ printf("buffer2[25] = %02x\n", buffer2[25]);
+ //exit(0);
+
+}
diff --git a/lib/playfair/modified_md5.c b/lib/playfair/modified_md5.c
new file mode 100755
index 0000000..3758a33
--- /dev/null
+++ b/lib/playfair/modified_md5.c
@@ -0,0 +1,119 @@
+#include
+#include
+#include
+#include
+#include
+#include
+#define printf(...) (void)0;
+
+int shift[] = {7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
+ 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
+ 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
+ 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21};
+
+uint32_t F(uint32_t B, uint32_t C, uint32_t D)
+{
+ return (B & C) | (~B & D);
+}
+
+uint32_t G(uint32_t B, uint32_t C, uint32_t D)
+{
+ return (B & D) | (C & ~D);
+}
+
+uint32_t H(uint32_t B, uint32_t C, uint32_t D)
+{
+ return B ^ C ^ D;
+}
+
+uint32_t I(uint32_t B, uint32_t C, uint32_t D)
+{
+ return C ^ (B | ~D);
+}
+
+
+uint32_t rol(uint32_t input, int count)
+{
+ return ((input << count) & 0xffffffff) | (input & 0xffffffff) >> (32-count);
+}
+
+void swap(uint32_t* a, uint32_t* b)
+{
+ printf("%08x <-> %08x\n", *a, *b);
+ uint32_t c = *a;
+ *a = *b;
+ *b = c;
+}
+
+void modified_md5(unsigned char* originalblockIn, unsigned char* keyIn, unsigned char* keyOut)
+{
+ unsigned char blockIn[64];
+ uint32_t* block_words = (uint32_t*)blockIn;
+ uint32_t* key_words = (uint32_t*)keyIn;
+ uint32_t* out_words = (uint32_t*)keyOut;
+ uint32_t A, B, C, D, Z, tmp;
+ int i;
+
+ memcpy(blockIn, originalblockIn, 64);
+
+ // Each cycle does something like this:
+ A = key_words[0];
+ B = key_words[1];
+ C = key_words[2];
+ D = key_words[3];
+ for (i = 0; i < 64; i++)
+ {
+ uint32_t input;
+ int j;
+ if (i < 16)
+ j = i;
+ else if (i < 32)
+ j = (5*i + 1) % 16;
+ else if (i < 48)
+ j = (3*i + 5) % 16;
+ else if (i < 64)
+ j = 7*i % 16;
+
+ input = blockIn[4*j] << 24 | blockIn[4*j+1] << 16 | blockIn[4*j+2] << 8 | blockIn[4*j+3];
+ printf("Key = %08x\n", A);
+ Z = A + input + (int)(long long)((1LL << 32) * fabs(sin(i + 1)));
+ if (i < 16)
+ Z = rol(Z + F(B,C,D), shift[i]);
+ else if (i < 32)
+ Z = rol(Z + G(B,C,D), shift[i]);
+ else if (i < 48)
+ Z = rol(Z + H(B,C,D), shift[i]);
+ else if (i < 64)
+ Z = rol(Z + I(B,C,D), shift[i]);
+ if (i == 63)
+ printf("Ror is %08x\n", Z);
+ printf("Output of round %d: %08X + %08X = %08X (shift %d, constant %08X)\n", i, Z, B, Z+B, shift[i], (int)(long long)((1LL << 32) * fabs(sin(i + 1))));
+ Z = Z + B;
+ tmp = D;
+ D = C;
+ C = B;
+ B = Z;
+ A = tmp;
+ if (i == 31)
+ {
+ // swapsies
+ swap(&block_words[A & 15], &block_words[B & 15]);
+ swap(&block_words[C & 15], &block_words[D & 15]);
+ swap(&block_words[(A & (15<<4))>>4], &block_words[(B & (15<<4))>>4]);
+ swap(&block_words[(A & (15<<8))>>8], &block_words[(B & (15<<8))>>8]);
+ swap(&block_words[(A & (15<<12))>>12], &block_words[(B & (15<<12))>>12]);
+ }
+ }
+ printf("%08X %08X %08X %08X\n", A, B, C, D);
+ // Now we can actually compute the output
+ printf("Out:\n");
+ printf("%08x + %08x = %08x\n", key_words[0], A, key_words[0] + A);
+ printf("%08x + %08x = %08x\n", key_words[1], B, key_words[1] + B);
+ printf("%08x + %08x = %08x\n", key_words[2], C, key_words[2] + C);
+ printf("%08x + %08x = %08x\n", key_words[3], D, key_words[3] + D);
+ out_words[0] = key_words[0] + A;
+ out_words[1] = key_words[1] + B;
+ out_words[2] = key_words[2] + C;
+ out_words[3] = key_words[3] + D;
+
+}
diff --git a/lib/playfair/omg_hax.c b/lib/playfair/omg_hax.c
new file mode 100755
index 0000000..96f79a9
--- /dev/null
+++ b/lib/playfair/omg_hax.c
@@ -0,0 +1,540 @@
+void modified_md5(unsigned char* originalblockIn, unsigned char* keyIn, unsigned char* keyOut);
+void sap_hash(unsigned char* blockIn, unsigned char* keyOut);
+
+#include
+#include
+#include
+#include
+#include "omg_hax.h"
+
+#define printf(...) (void)0;
+
+void xor_blocks(unsigned char* a, unsigned char* b, unsigned char* out)
+{
+ for (int i = 0; i < 16; i++)
+ out[i] = a[i] ^ b[i];
+}
+
+
+void z_xor(unsigned char* in, unsigned char* out, int blocks)
+{
+ for (int j = 0; j < blocks; j++)
+ for (int i = 0; i < 16; i++)
+ out[j*16+i] = in[j*16+i] ^ z_key[i];
+}
+
+void x_xor(unsigned char* in, unsigned char* out, int blocks)
+{
+ for (int j = 0; j < blocks; j++)
+ for (int i = 0; i < 16; i++)
+ out[j*16+i] = in[j*16+i] ^ x_key[i];
+}
+
+
+void t_xor(unsigned char* in, unsigned char* out)
+{
+ for (int i = 0; i < 16; i++)
+ out[i] = in[i] ^ t_key[i];
+}
+
+unsigned char sap_iv[] = {0x2B,0x84,0xFB,0x79,0xDA,0x75,0xB9,0x04,0x6C,0x24,0x73,0xF7,0xD1,0xC4,0xAB,0x0E,0x2B,0x84,0xFB,0x79,0x75,0xB9,0x04,0x6C,0x24,0x73};
+
+unsigned char sap_key_material[] = {0xA1, 0x1A, 0x4A, 0x83,
+ 0xF2, 0x7A, 0x75, 0xEE,
+ 0xA2, 0x1A, 0x7D, 0xB8,
+ 0x8D, 0x77, 0x92, 0xAB};
+
+unsigned char index_mangle[] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1B, 0x36, 0x6C};
+
+unsigned char* table_index(int i)
+{
+ return &table_s1[((31*i) % 0x28) << 8];
+}
+
+unsigned char* message_table_index(int i)
+{
+ return &table_s2[(97*i % 144) << 8];
+}
+
+void print_block(char* msg, unsigned char* dword)
+{
+ printf("%s", msg);
+ for (int i = 0; i < 16; i++)
+ printf("%02X ", dword[i]);
+ printf("\n");
+}
+
+void permute_block_1(unsigned char* block)
+{
+ block[0] = table_s3[block[0]];
+ block[4] = table_s3[0x400+block[4]];
+ block[8] = table_s3[0x800+block[8]];
+ block[12] = table_s3[0xc00+block[12]];
+
+ unsigned char tmp = block[13];
+ block[13] = table_s3[0x100+block[9]];
+ block[9] = table_s3[0xd00+block[5]];
+ block[5] = table_s3[0x900+block[1]];
+ block[1] = table_s3[0x500+tmp];
+
+ tmp = block[2];
+ block[2] = table_s3[0xa00+block[10]];
+ block[10] = table_s3[0x200+tmp];
+ tmp = block[6];
+ block[6] = table_s3[0xe00+block[14]];
+ block[14] = table_s3[0x600+tmp];
+
+ tmp = block[3];
+ block[3] = table_s3[0xf00+block[7]];
+ block[7] = table_s3[0x300+block[11]];
+ block[11] = table_s3[0x700+block[15]];
+ block[15] = table_s3[0xb00+tmp];
+ print_block("Permutation complete. Final value of block: ", block); // This looks right to me, at least for decrypt_kernel
+}
+
+unsigned char* permute_table_2(unsigned int i)
+{
+ return &table_s4[((71 * i) % 144) << 8];
+}
+
+void permute_block_2(unsigned char* block, int round)
+{
+ // round is 0..8?
+ printf("Permuting via table2, round %d... (block[0] = %02X)\n", round, block[0]);
+ block[0] = permute_table_2(round*16+0)[block[0]];
+ block[4] = permute_table_2(round*16+4)[block[4]];
+ block[8] = permute_table_2(round*16+8)[block[8]];
+ block[12] = permute_table_2(round*16+12)[block[12]];
+
+ unsigned char tmp = block[13];
+ block[13] = permute_table_2(round*16+13)[block[9]];
+ block[9] = permute_table_2(round*16+9)[block[5]];
+ block[5] = permute_table_2(round*16+5)[block[1]];
+ block[1] = permute_table_2(round*16+1)[tmp];
+
+ tmp = block[2];
+ block[2] = permute_table_2(round*16+2)[block[10]];
+ block[10] = permute_table_2(round*16+10)[tmp];
+ tmp = block[6];
+ block[6] = permute_table_2(round*16+6)[block[14]];
+ block[14] = permute_table_2(round*16+14)[tmp];
+
+ tmp = block[3];
+ block[3] = permute_table_2(round*16+3)[block[7]];
+ block[7] = permute_table_2(round*16+7)[block[11]];
+ block[11] = permute_table_2(round*16+11)[block[15]];
+ block[15] = permute_table_2(round*16+15)[tmp];
+ print_block("Permutation (2) complete. Final value of block: ", block); // This looks right to me, at least for decrypt_kernel
+}
+
+// This COULD just be Rijndael key expansion, but with a different set of S-boxes
+void generate_key_schedule(unsigned char* key_material, uint32_t key_schedule[11][4])
+{
+ uint32_t key_data[4];
+ int i;
+ for (i = 0; i < 11; i++)
+ {
+ key_schedule[i][0] = 0xdeadbeef;
+ key_schedule[i][1] = 0xdeadbeef;
+ key_schedule[i][2] = 0xdeadbeef;
+ key_schedule[i][3] = 0xdeadbeef;
+ }
+ unsigned char* buffer = (unsigned char*)key_data;
+ int ti = 0;
+ printf("Generating key schedule\n");
+ // G
+ print_block("Raw key material: ", key_material);
+ t_xor(key_material, buffer);
+ print_block("G has produced: ", buffer);
+ for (int round = 0; round < 11; round++)
+ {
+ printf("Starting round %d\n", round);
+ // H
+ key_schedule[round][0] = key_data[0];
+ printf("H has set chunk 1 of round %d %08X\n", round, key_schedule[round][0]);
+ printf("H complete\n");
+ // I
+ unsigned char* table1 = table_index(ti);
+ unsigned char* table2 = table_index(ti+1);
+ unsigned char* table3 = table_index(ti+2);
+ unsigned char* table4 = table_index(ti+3);
+ ti += 4;
+ //buffer[0] = (buffer[0] - (4 & (buffer[0] << 1)) + 2) ^ 2 ^ index_mangle[round] ^ table1[buffer[0x0d]];
+ printf("S-box: 0x%02x -> 0x%02x\n", buffer[0x0d], table1[buffer[0x0d]]);
+ printf("S-box: 0x%02x -> 0x%02x\n", buffer[0x0e], table2[buffer[0x0e]]);
+ printf("S-box: 0x%02x -> 0x%02x\n", buffer[0x0f], table3[buffer[0x0f]]);
+ printf("S-box: 0x%02x -> 0x%02x\n", buffer[0x0c], table4[buffer[0x0c]]);
+ buffer[0] ^= table1[buffer[0x0d]] ^ index_mangle[round];
+ buffer[1] ^= table2[buffer[0x0e]];
+ buffer[2] ^= table3[buffer[0x0f]];
+ buffer[3] ^= table4[buffer[0x0c]];
+ print_block("After I, buffer is now: ", buffer);
+ printf("I complete\n");
+ // H
+ key_schedule[round][1] = key_data[1];
+ printf("H has set chunk 2 to %08X\n", key_schedule[round][1]);
+
+ printf("H complete\n");
+ // J
+ key_data[1] ^= key_data[0];
+ printf("J complete\n");
+ print_block("Buffer is now ", buffer);
+ // H
+ key_schedule[round][2] = key_data[2];
+ printf("H has set chunk3 to %08X\n", key_schedule[round][2]);
+ printf("H complete\n");
+
+ // J
+ key_data[2] ^= key_data[1];
+ printf("J complete\n");
+ // K and L
+ // Implement K and L to fill in other bits of the key schedule
+ key_schedule[round][3] = key_data[3];
+ // J again
+ key_data[3] ^= key_data[2];
+ printf("J complete\n");
+ }
+ for (i = 0; i < 11; i++)
+ print_block("Schedule: ", (unsigned char*)key_schedule[i]);
+}
+
+// This MIGHT just be AES, or some variant thereof.
+void cycle(unsigned char* block, uint32_t key_schedule[11][4])
+{
+ uint32_t ptr1 = 0;
+ uint32_t ptr2 = 0;
+ uint32_t ptr3 = 0;
+ uint32_t ptr4 = 0;
+ uint32_t ab;
+ unsigned char* buffer = (unsigned char*)&ab;
+ uint32_t* bWords = (uint32_t*)block;
+ bWords[0] ^= key_schedule[10][0];
+ bWords[1] ^= key_schedule[10][1];
+ bWords[2] ^= key_schedule[10][2];
+ bWords[3] ^= key_schedule[10][3];
+ // First, these are permuted
+ permute_block_1(block);
+
+ for (int round = 0; round < 9; round++)
+ {
+ // E
+ // Note that table_s5 is a table of 4-byte words. Therefore we do not need to <<2 these indices
+ // TODO: Are these just T-tables?
+ unsigned char* key0 = (unsigned char*)&key_schedule[9-round][0];
+ ptr1 = table_s5[block[3] ^ key0[3]];
+ ptr2 = table_s6[block[2] ^ key0[2]];
+ ptr3 = table_s8[block[0] ^ key0[0]];
+ ptr4 = table_s7[block[1] ^ key0[1]];
+
+ // A B
+ ab = ptr1 ^ ptr2 ^ ptr3 ^ ptr4;
+ printf("ab: %08X %08X %08X %08X -> %08X\n", ptr1, ptr2, ptr3, ptr4, ab);
+ // C
+ ((uint32_t*)block)[0] = ab;
+ printf("f7 = %02X\n", block[7]);
+ unsigned char* key1 = (unsigned char*)&key_schedule[9-round][1];
+ ptr2 = table_s5[block[7] ^ key1[3]];
+ ptr1 = table_s6[block[6] ^ key1[2]];
+ ptr4 = table_s7[block[5] ^ key1[1]];
+ ptr3 = table_s8[block[4] ^ key1[0]];
+ // A B again
+ ab = ptr1 ^ ptr2 ^ ptr3 ^ ptr4;
+ printf("ab: %08X %08X %08X %08X -> %08X\n", ptr1, ptr2, ptr3, ptr4, ab);
+ // D is a bit of a nightmare, but it is really not as complicated as you might think
+ unsigned char* key2 = (unsigned char*)&key_schedule[9-round][2];
+ unsigned char* key3 = (unsigned char*)&key_schedule[9-round][3];
+ ((uint32_t*)block)[1] = ab;
+ ((uint32_t*)block)[2] = table_s5[block[11] ^ key2[3]] ^
+ table_s6[block[10] ^ key2[2]] ^
+ table_s7[block[9] ^ key2[1]] ^
+ table_s8[block[8] ^ key2[0]];
+
+ ((uint32_t*)block)[3] = table_s5[block[15] ^ key3[3]] ^
+ table_s6[block[14] ^ key3[2]] ^
+ table_s7[block[13] ^ key3[1]] ^
+ table_s8[block[12] ^ key3[0]];
+ printf("Set block2 = %08X, block3 = %08X\n", ((uint32_t*)block)[2], ((uint32_t*)block)[3]);
+ // In the last round, instead of the permute, we do F
+ permute_block_2(block, 8-round);
+ }
+ printf("Using last bit of key up: %08X xor %08X -> %08X\n", ((uint32_t*)block)[0], key_schedule[0][0], ((uint32_t*)block)[0] ^ key_schedule[0][0]);
+ ((uint32_t*)block)[0] ^= key_schedule[0][0];
+ ((uint32_t*)block)[1] ^= key_schedule[0][1];
+ ((uint32_t*)block)[2] ^= key_schedule[0][2];
+ ((uint32_t*)block)[3] ^= key_schedule[0][3];
+}
+
+
+void decrypt_sap(unsigned char* sapIn, unsigned char* sapOut)
+{
+ uint32_t key_schedule[11][4];
+ unsigned char* iv;
+ print_block("Base sap: ", &sapIn[0xf0]);
+ z_xor(sapIn, sapOut, 16);
+ generate_key_schedule(sap_key_material, key_schedule);
+ print_block("lastSap before cycle: ", &sapOut[0xf0]);
+ for (int i = 0xf0; i >= 0x00; i-=0x10)
+ {
+ printf("Ready to cycle %02X\n", i);
+ cycle(&sapOut[i], key_schedule);
+ print_block("After cycling, block is: ", &sapOut[i]);
+ if (i > 0)
+ { // xor with previous block
+ iv = &sapOut[i-0x10];
+ }
+ else
+ { // xor with sap IV
+ iv = sap_iv;
+ }
+ for (int j = 0; j < 16; j++)
+ {
+ printf("%02X ^ %02X -> %02X\n", sapOut[i+j], iv[j], sapOut[i+j] ^ iv[j]);
+ sapOut[i+j] = sapOut[i+j] ^ iv[j];
+ }
+ printf("Decrypted SAP %02X-%02X:\n", i, i+0xf);
+ print_block("", &sapOut[i]);
+ }
+ // Lastly grind the whole thing through x_key. This is the last time we modify sap
+ x_xor(sapOut, sapOut, 16);
+ printf("Sap is decrypted to\n");
+ for (int i = 0xf0; i >= 0x00; i-=0x10)
+ {
+ printf("Final SAP %02X-%02X: ", i, i+0xf);
+ print_block("", &sapOut[i]);
+ }
+}
+
+unsigned char initial_session_key[] = {0xDC, 0xDC, 0xF3, 0xB9, 0x0B, 0x74, 0xDC, 0xFB, 0x86, 0x7F, 0xF7, 0x60, 0x16, 0x72, 0x90, 0x51};
+
+
+void decrypt_key(unsigned char* decryptedSap, unsigned char* keyIn, unsigned char* iv, unsigned char* keyOut)
+{
+ unsigned char blockIn[16];
+ uint32_t key_schedule[11][4];
+ uint32_t mode_key_schedule[11][4];
+ generate_key_schedule(&decryptedSap[8], key_schedule);
+ printf("Generating mode key:\n");
+ generate_key_schedule(initial_session_key, mode_key_schedule);
+ z_xor(keyIn, blockIn, 1);
+ print_block("Input to cycle is: ", blockIn);
+ cycle(blockIn, key_schedule);
+ for (int j = 0; j < 16; j++)
+ keyOut[j] = blockIn[j] ^ iv[j];
+ print_block("Output from cycle is: ", keyOut);
+ x_xor(keyOut, keyOut, 1);
+}
+
+
+void decryptMessage(unsigned char* messageIn, unsigned char* decryptedMessage)
+{
+ unsigned char buffer[16];
+ int i, j;
+ unsigned char tmp;
+ uint32_t key_schedule[11][4];
+ int mode = messageIn[12]; // 0,1,2,3
+ printf("mode = %02x\n", mode);
+ generate_key_schedule(initial_session_key, key_schedule);
+
+ // For M0-M6 we follow the same pattern
+ for (i = 0; i < 8; i++)
+ {
+ // First, copy in the nth block (we must start with the last one)
+ for (j = 0; j < 16; j++)
+ {
+ if (mode == 3)
+ buffer[j] = messageIn[(0x80-0x10*i)+j];
+ else if (mode == 2 || mode == 1 || mode == 0)
+ buffer[j] = messageIn[(0x10*(i+1))+j];
+ }
+ // do this permutation and update 9 times. Could this be cycle(), or the reverse of cycle()?
+ for (j = 0; j < 9; j++)
+ {
+ int base = 0x80 - 0x10*j;
+ //print_block("About to cycle. Buffer is currently: ", buffer);
+ buffer[0x0] = message_table_index(base+0x0)[buffer[0x0]] ^ message_key[mode][base+0x0];
+ buffer[0x4] = message_table_index(base+0x4)[buffer[0x4]] ^ message_key[mode][base+0x4];
+ buffer[0x8] = message_table_index(base+0x8)[buffer[0x8]] ^ message_key[mode][base+0x8];
+ buffer[0xc] = message_table_index(base+0xc)[buffer[0xc]] ^ message_key[mode][base+0xc];
+
+ tmp = buffer[0x0d];
+ buffer[0xd] = message_table_index(base+0xd)[buffer[0x9]] ^ message_key[mode][base+0xd];
+ buffer[0x9] = message_table_index(base+0x9)[buffer[0x5]] ^ message_key[mode][base+0x9];
+ buffer[0x5] = message_table_index(base+0x5)[buffer[0x1]] ^ message_key[mode][base+0x5];
+ buffer[0x1] = message_table_index(base+0x1)[tmp] ^ message_key[mode][base+0x1];
+
+ tmp = buffer[0x02];
+ buffer[0x2] = message_table_index(base+0x2)[buffer[0xa]] ^ message_key[mode][base+0x2];
+ buffer[0xa] = message_table_index(base+0xa)[tmp] ^ message_key[mode][base+0xa];
+ tmp = buffer[0x06];
+ buffer[0x6] = message_table_index(base+0x6)[buffer[0xe]] ^ message_key[mode][base+0x6];
+ buffer[0xe] = message_table_index(base+0xe)[tmp] ^ message_key[mode][base+0xe];
+
+ tmp = buffer[0x3];
+ buffer[0x3] = message_table_index(base+0x3)[buffer[0x7]] ^ message_key[mode][base+0x3];
+ buffer[0x7] = message_table_index(base+0x7)[buffer[0xb]] ^ message_key[mode][base+0x7];
+ buffer[0xb] = message_table_index(base+0xb)[buffer[0xf]] ^ message_key[mode][base+0xb];
+ buffer[0xf] = message_table_index(base+0xf)[tmp] ^ message_key[mode][base+0xf];
+
+ // Now we must replace the entire buffer with 4 words that we read and xor together
+ uint32_t word;
+ uint32_t* block = (uint32_t*)buffer;
+
+ block[0] = table_s9[0x000 + buffer[0x0]] ^
+ table_s9[0x100 + buffer[0x1]] ^
+ table_s9[0x200 + buffer[0x2]] ^
+ table_s9[0x300 + buffer[0x3]];
+ block[1] = table_s9[0x000 + buffer[0x4]] ^
+ table_s9[0x100 + buffer[0x5]] ^
+ table_s9[0x200 + buffer[0x6]] ^
+ table_s9[0x300 + buffer[0x7]];
+ block[2] = table_s9[0x000 + buffer[0x8]] ^
+ table_s9[0x100 + buffer[0x9]] ^
+ table_s9[0x200 + buffer[0xa]] ^
+ table_s9[0x300 + buffer[0xb]];
+ block[3] = table_s9[0x000 + buffer[0xc]] ^
+ table_s9[0x100 + buffer[0xd]] ^
+ table_s9[0x200 + buffer[0xe]] ^
+ table_s9[0x300 + buffer[0xf]];
+ }
+ // Next, another permute with a different table
+ buffer[0x0] = table_s10[(0x0 << 8) + buffer[0x0]];
+ buffer[0x4] = table_s10[(0x4 << 8) + buffer[0x4]];
+ buffer[0x8] = table_s10[(0x8 << 8) + buffer[0x8]];
+ buffer[0xc] = table_s10[(0xc << 8) + buffer[0xc]];
+
+ tmp = buffer[0x0d];
+ buffer[0xd] = table_s10[(0xd << 8) + buffer[0x9]];
+ buffer[0x9] = table_s10[(0x9 << 8) + buffer[0x5]];
+ buffer[0x5] = table_s10[(0x5 << 8) + buffer[0x1]];
+ buffer[0x1] = table_s10[(0x1 << 8) + tmp];
+
+ tmp = buffer[0x02];
+ buffer[0x2] = table_s10[(0x2 << 8) + buffer[0xa]];
+ buffer[0xa] = table_s10[(0xa << 8) + tmp];
+ tmp = buffer[0x06];
+ buffer[0x6] = table_s10[(0x6 << 8) + buffer[0xe]];
+ buffer[0xe] = table_s10[(0xe << 8) + tmp];
+
+ tmp = buffer[0x3];
+ buffer[0x3] = table_s10[(0x3 << 8) + buffer[0x7]];
+ buffer[0x7] = table_s10[(0x7 << 8) + buffer[0xb]];
+ buffer[0xb] = table_s10[(0xb << 8) + buffer[0xf]];
+ buffer[0xf] = table_s10[(0xf << 8) + tmp];
+
+ // And finally xor with the previous block of the message, except in mode-2 where we do this in reverse
+ if (mode == 2 || mode == 1 || mode == 0)
+ {
+ if (i > 0)
+ {
+ xor_blocks(buffer, &messageIn[0x10*i], &decryptedMessage[0x10*i]); // remember that the first 0x10 bytes are the header
+ }
+ else
+ xor_blocks(buffer, message_iv[mode], &decryptedMessage[0x10*i]);
+ print_block(" ", &decryptedMessage[0x10*i]);
+ }
+ else
+ {
+ if (i < 7)
+ xor_blocks(buffer, &messageIn[0x70 - 0x10*i], &decryptedMessage[0x70 - 0x10*i]);
+ else
+ xor_blocks(buffer, message_iv[mode], &decryptedMessage[0x70 - 0x10*i]);
+ printf("Decrypted message block %02X-%02X:", 0x70 - 0x10*i, 0x70 - 0x10*i+0xf);
+ print_block(" ", &decryptedMessage[0x70 - 0x10*i]);
+ }
+ }
+}
+
+unsigned char static_source_1[] = {0xFA, 0x9C, 0xAD, 0x4D, 0x4B, 0x68, 0x26, 0x8C, 0x7F, 0xF3, 0x88, 0x99, 0xDE, 0x92, 0x2E, 0x95,
+ 0x1E};
+unsigned char static_source_2[] = {0xEC, 0x4E, 0x27, 0x5E, 0xFD, 0xF2, 0xE8, 0x30, 0x97, 0xAE, 0x70, 0xFB, 0xE0, 0x00, 0x3F, 0x1C,
+ 0x39, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x09, 0x00, 0x0, 0x00, 0x00, 0x00, 0x00};
+
+void swap_bytes(unsigned char* a, unsigned char *b)
+{
+ unsigned char c = *a;
+ *a = *b;
+ *b = c;
+}
+
+void generate_session_key(unsigned char* oldSap, unsigned char* messageIn, unsigned char* sessionKey)
+{
+ unsigned char decryptedMessage[128];
+ unsigned char newSap[320];
+ unsigned char Q[210];
+ int i;
+ int round;
+ unsigned char md5[16];
+ unsigned char otherHash[16];
+
+ decryptMessage(messageIn, decryptedMessage);
+ // Now that we have the decrypted message, we can combine it with our initial sap to form the 5 blocks needed to generate the 5 words which, when added together, give
+ // the session key.
+ memcpy(&newSap[0x000], static_source_1, 0x11);
+ memcpy(&newSap[0x011], decryptedMessage, 0x80);
+ memcpy(&newSap[0x091], &oldSap[0x80], 0x80);
+ memcpy(&newSap[0x111], static_source_2, 0x2f);
+ memcpy(sessionKey, initial_session_key, 16);
+
+ for (round = 0; round < 5; round++)
+ {
+ unsigned char* base = &newSap[round * 64];
+ print_block("Input block: ", &base[0]);
+ print_block("Input block: ", &base[0x10]);
+ print_block("Input block: ", &base[0x20]);
+ print_block("Input block: ", &base[0x30]);
+ modified_md5(base, sessionKey, md5);
+ printf("MD5 OK\n");
+ sap_hash(base, sessionKey);
+ printf("OtherHash OK\n");
+
+ printf("MD5 = ");
+ for (i = 0; i < 4; i++)
+ printf("%08x ", ((uint32_t*)md5)[i]);
+ printf("\nOtherHash = ");
+ for (i = 0; i < 4; i++)
+ printf("%08x ", ((uint32_t*)sessionKey)[i]);
+ printf("\n");
+
+ uint32_t* sessionKeyWords = (uint32_t*)sessionKey;
+ uint32_t* md5Words = (uint32_t*)md5;
+ for (i = 0; i < 4; i++)
+ {
+ sessionKeyWords[i] = (sessionKeyWords[i] + md5Words[i]) & 0xffffffff;
+ }
+ printf("Current key: ");
+ for (i = 0; i < 16; i++)
+ printf("%02x", sessionKey[i]);
+ printf("\n");
+ }
+ for (i = 0; i < 16; i+=4)
+ {
+ swap_bytes(&sessionKey[i], &sessionKey[i+3]);
+ swap_bytes(&sessionKey[i+1], &sessionKey[i+2]);
+ }
+
+ // Finally the whole thing is XORd with 121:
+ for (i = 0; i < 16; i++)
+ sessionKey[i] ^= 121;
+ print_block("Session key computed as: ", sessionKey);
+}
+
+unsigned char default_sap[] =
+ { 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79,
+ 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79,
+ 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79,
+ 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x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x1e, 0x1e};
diff --git a/lib/playfair/omg_hax.h b/lib/playfair/omg_hax.h
new file mode 100755
index 0000000..d6f19d3
--- /dev/null
+++ b/lib/playfair/omg_hax.h
@@ -0,0 +1,32 @@
+unsigned char message_key[4][144] = {{0x1D, 0x24, 0x03, 0x40, 0xDC, 0xAE, 0xC7, 0xA8, 0x26, 0x7C, 0x20, 0x99, 0x5D, 0x7E, 0x89, 0x2E, 0xA2, 0x58, 0xAF, 0xBE, 0xB8, 0x07, 0x9A, 0x2F, 0x87, 0x77, 0xD3, 0xCE, 0x37, 0x3E, 0x1B, 0x16, 0x41, 0x4F, 0x4E, 0xBE, 0x62, 0x5A, 0x00, 0x77, 0xC6, 0xEB, 0xDA, 0x4B, 0x97, 0x1A, 0x61, 0x8D, 0x31, 0x32, 0x1C, 0xA2, 0x78, 0x9B, 0x66, 0x72, 0x60, 0x94, 0x44, 0x86, 0xCB, 0x09, 0xBD, 0x3A, 0x77, 0x57, 0xC1, 0x72, 0x61, 0x1D, 0x32, 0xC7, 0x85, 0xD1, 0xEF, 0xE5, 0x4D, 0x95, 0x0B, 0xF0, 0xD8, 0x18, 0xE7, 0x4A, 0xDC, 0x77, 0xCA, 0x55, 0x28, 0x32, 0x93, 0x2A, 0x7B, 0x3E, 0x3A, 0xD4, 0x97, 0xFD, 0x7D, 0x6D, 0x95, 0x71, 0x27, 0x9C, 0x77, 0x6A, 0x7C, 0xD5, 0xBF, 0x9D, 0x0E, 0xF2, 0x0F, 0x55, 0x91, 0x29, 0xCF, 0xAA, 0x58, 0x1C, 0x7A, 0xE7, 0xCB, 0x8B, 0x20, 0x07, 0x53, 0xAA, 0x59, 0x40, 0x3B, 0x03, 0xBE, 0x33, 0x47, 0x47, 0x5A, 0x4F, 0x86, 0x31, 0x8D, 0x30, 0xF9, 0x1C},
+ {0xF1, 0xA2, 0x04, 0x7A, 0xAE, 0xE9, 0xD8, 0xBF, 0xD4, 0xC0, 0x6B, 0x77, 0xC1, 0x05, 0x8C, 0x99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, 0xBD, 0x72, 0x51, 0xA6, 0x15, 0xD4, 0x9E, 0x17, 0xF3, 0x94, 0x26, 0x6D, 0x07, 0x5F, 0x92, 0xAA, 0xA4, 0x4E, 0xF2, 0xCD, 0x3F, 0x02, 0x4F, 0x05, 0x35, 0xE3, 0x58, 0xDF, 0x82, 0x7E, 0x6A, 0x17, 0xF0, 0x5F, 0x6B, 0xDC, 0xE9, 0x3A, 0xCF, 0x04, 0xB3, 0x01, 0x44, 0x87, 0xD7, 0xBC, 0xAD, 0x3D, 0x74, 0x96, 0x74, 0xA3, 0x99}};
+unsigned char message_iv[4][16] = {{0x57, 0x52, 0xF1, 0xB7, 0x54, 0x9D, 0x8F, 0x87, 0x0C, 0x10, 0x48, 0x5A, 0x60, 0x88, 0xCA, 0xDB},
+ {0xDF, 0x7B, 0x15, 0x63, 0xF0, 0x05, 0x58, 0x77, 0x52, 0xA9, 0x04, 0x02, 0xB9, 0xA3, 0x92, 0x95},
+ {0x68, 0xB5, 0x46, 0x11, 0xFB, 0x04, 0xDE, 0x67, 0x6C, 0x96, 0x8E, 0xFB, 0x8C, 0x9D, 0xB0, 0xC9},
+ {0x27, 0x07, 0x8B, 0x21, 0x23, 0x36, 0x1E, 0x7A, 0xDC, 0x9D, 0x0B, 0x11, 0x53, 0x54, 0x69, 0x0D}};
+
+unsigned char z_key[] = {0x1a, 0x64, 0xf9, 0x60, 0x6c, 0xe3, 0x01, 0xa9, 0x54, 0x48, 0x1b, 0xd4, 0xab, 0x81, 0xfc, 0xc6};
+unsigned char x_key[] = {0x8e, 0xba, 0x07, 0xcc, 0xb6, 0x5a, 0xf6, 0x20, 0x33, 0xcf, 0xf8, 0x42, 0xe5, 0xd5, 0x5a, 0x7d};
+unsigned char t_key[] = {0xd0, 0x04, 0xa9, 0x61, 0x6b, 0xa4, 0x00, 0x87, 0x68, 0x8b, 0x5f, 0x15, 0x15, 0x35, 0xd9, 0xa9};
+
+unsigned long table_s5[] = {0x21aa8423, 0x2fa1892a, 0x3dbc9e31, 0x33b79338, 0x1986b007, 0x178dbd0e, 0x590aa15, 0xb9ba71c, 0x51f2ec6b, 0x5ff9e162, 0x4de4f679, 0x43effb70, 0x69ded84f, 0x67d5d546, 0x75c8c25d, 0x7bc3cf54, 0xc11a54b3, 0xcf1159ba, 0xdd0c4ea1, 0xd30743a8, 0xf9366097, 0xf73d6d9e, 0xe5207a85, 0xeb2b778c, 0xb1423cfb, 0xbf4931f2, 0xad5426e9, 0xa35f2be0, 0x896e08df, 0x876505d6, 0x957812cd, 0x9b731fc4, 0xfad13f18, 0xf4da3211, 0xe6c7250a, 0xe8cc2803, 0xc2fd0b3c, 0xccf60635, 0xdeeb112e, 0xd0e01c27, 0x8a895750, 0x84825a59, 0x969f4d42, 0x9894404b, 0xb2a56374, 0xbcae6e7d, 0xaeb37966, 0xa0b8746f, 0x1a61ef88, 0x146ae281, 0x677f59a, 0x87cf893, 0x224ddbac, 0x2c46d6a5, 0x3e5bc1be, 0x3050ccb7, 0x6a3987c0, 0x64328ac9, 0x762f9dd2, 0x782490db, 0x5215b3e4, 0x5c1ebeed, 0x4e03a9f6, 0x4008a4ff, 0x8c5ce955, 0x8257e45c, 0x904af347, 0x9e41fe4e, 0xb470dd71, 0xba7bd078, 0xa866c763, 0xa66dca6a, 0xfc04811d, 0xf20f8c14, 0xe0129b0f, 0xee199606, 0xc428b539, 0xca23b830, 0xd83eaf2b, 0xd635a222, 0x6cec39c5, 0x62e734cc, 0x70fa23d7, 0x7ef12ede, 0x54c00de1, 0x5acb00e8, 0x48d617f3, 0x46dd1afa, 0x1cb4518d, 0x12bf5c84, 0xa24b9f, 0xea94696, 0x249865a9, 0x2a9368a0, 0x388e7fbb, 0x368572b2, 0x5727526e, 0x592c5f67, 0x4b31487c, 0x453a4575, 0x6f0b664a, 0x61006b43, 0x731d7c58, 0x7d167151, 0x277f3a26, 0x2974372f, 0x3b692034, 0x35622d3d, 0x1f530e02, 0x1158030b, 0x3451410, 0xd4e1919, 0xb79782fe, 0xb99c8ff7, 0xab8198ec, 0xa58a95e5, 0x8fbbb6da, 0x81b0bbd3, 0x93adacc8, 0x9da6a1c1, 0xc7cfeab6, 0xc9c4e7bf, 0xdbd9f0a4, 0xd5d2fdad, 0xffe3de92, 0xf1e8d39b, 0xe3f5c480, 0xedfec989, 0x605d5ecf, 0x6e5653c6, 0x7c4b44dd, 0x724049d4, 0x58716aeb, 0x567a67e2, 0x446770f9, 0x4a6c7df0, 0x10053687, 0x1e0e3b8e, 0xc132c95, 0x218219c, 0x282902a3, 0x26220faa, 0x343f18b1, 0x3a3415b8, 0x80ed8e5f, 0x8ee68356, 0x9cfb944d, 0x92f09944, 0xb8c1ba7b, 0xb6cab772, 0xa4d7a069, 0xaadcad60, 0xf0b5e617, 0xfebeeb1e, 0xeca3fc05, 0xe2a8f10c, 0xc899d233, 0xc692df3a, 0xd48fc821, 0xda84c528, 0xbb26e5f4, 0xb52de8fd, 0xa730ffe6, 0xa93bf2ef, 0x830ad1d0, 0x8d01dcd9, 0x9f1ccbc2, 0x9117c6cb, 0xcb7e8dbc, 0xc57580b5, 0xd76897ae, 0xd9639aa7, 0xf352b998, 0xfd59b491, 0xef44a38a, 0xe14fae83, 0x5b963564, 0x559d386d, 0x47802f76, 0x498b227f, 0x63ba0140, 0x6db10c49, 0x7fac1b52, 0x71a7165b, 0x2bce5d2c, 0x25c55025, 0x37d8473e, 0x39d34a37, 0x13e26908, 0x1de96401, 0xff4731a, 0x1ff7e13, 0xcdab33b9, 0xc3a03eb0, 0xd1bd29ab, 0xdfb624a2, 0xf587079d, 0xfb8c0a94, 0xe9911d8f, 0xe79a1086, 0xbdf35bf1, 0xb3f856f8, 0xa1e541e3, 0xafee4cea, 0x85df6fd5, 0x8bd462dc, 0x99c975c7, 0x97c278ce, 0x2d1be329, 0x2310ee20, 0x310df93b, 0x3f06f432, 0x1537d70d, 0x1b3cda04, 0x921cd1f, 0x72ac016, 0x5d438b61, 0x53488668, 0x41559173, 0x4f5e9c7a, 0x656fbf45, 0x6b64b24c, 0x7979a557, 0x7772a85e, 0x16d08882, 0x18db858b, 0xac69290, 0x4cd9f99, 0x2efcbca6, 0x20f7b1af, 0x32eaa6b4, 0x3ce1abbd, 0x6688e0ca, 0x6883edc3, 0x7a9efad8, 0x7495f7d1, 0x5ea4d4ee, 0x50afd9e7, 0x42b2cefc, 0x4cb9c3f5, 0xf6605812, 0xf86b551b, 0xea764200, 0xe47d4f09, 0xce4c6c36, 0xc047613f, 0xd25a7624, 0xdc517b2d, 0x8638305a, 0x88333d53, 0x9a2e2a48, 0x94252741, 0xbe14047e, 0xb01f0977, 0xa2021e6c, 0xac091365};
+
+unsigned long table_s6[] = {0x5ee7493, 0xce07f9e, 0x17f26289, 0x1efc6984, 0x21d658a7, 0x28d853aa, 0x33ca4ebd, 0x3ac445b0, 0x4d9e2cfb, 0x449027f6, 0x5f823ae1, 0x568c31ec, 0x69a600cf, 0x60a80bc2, 0x7bba16d5, 0x72b41dd8, 0x950ec443, 0x9c00cf4e, 0x8712d259, 0x8e1cd954, 0xb136e877, 0xb838e37a, 0xa32afe6d, 0xaa24f560, 0xdd7e9c2b, 0xd4709726, 0xcf628a31, 0xc66c813c, 0xf946b01f, 0xf048bb12, 0xeb5aa605, 0xe254ad08, 0x3e350f28, 0x373b0425, 0x2c291932, 0x2527123f, 0x1a0d231c, 0x13032811, 0x8113506, 0x11f3e0b, 0x76455740, 0x7f4b5c4d, 0x6459415a, 0x6d574a57, 0x527d7b74, 0x5b737079, 0x40616d6e, 0x496f6663, 0xaed5bff8, 0xa7dbb4f5, 0xbcc9a9e2, 0xb5c7a2ef, 0x8aed93cc, 0x83e398c1, 0x98f185d6, 0x91ff8edb, 0xe6a5e790, 0xefabec9d, 0xf4b9f18a, 0xfdb7fa87, 0xc29dcba4, 0xcb93c0a9, 0xd081ddbe, 0xd98fd6b3, 0x734382fe, 0x7a4d89f3, 0x615f94e4, 0x68519fe9, 0x577baeca, 0x5e75a5c7, 0x4567b8d0, 0x4c69b3dd, 0x3b33da96, 0x323dd19b, 0x292fcc8c, 0x2021c781, 0x1f0bf6a2, 0x1605fdaf, 0xd17e0b8, 0x419ebb5, 0xe3a3322e, 0xeaad3923, 0xf1bf2434, 0xf8b12f39, 0xc79b1e1a, 0xce951517, 0xd5870800, 0xdc89030d, 0xabd36a46, 0xa2dd614b, 0xb9cf7c5c, 0xb0c17751, 0x8feb4672, 0x86e54d7f, 0x9df75068, 0x94f95b65, 0x4898f945, 0x4196f248, 0x5a84ef5f, 0x538ae452, 0x6ca0d571, 0x65aede7c, 0x7ebcc36b, 0x77b2c866, 0xe8a12d, 0x9e6aa20, 0x12f4b737, 0x1bfabc3a, 0x24d08d19, 0x2dde8614, 0x36cc9b03, 0x3fc2900e, 0xd8784995, 0xd1764298, 0xca645f8f, 0xc36a5482, 0xfc4065a1, 0xf54e6eac, 0xee5c73bb, 0xe75278b6, 0x900811fd, 0x99061af0, 0x821407e7, 0x8b1a0cea, 0xb4303dc9, 0xbd3e36c4, 0xa62c2bd3, 0xaf2220de, 0xe9af8349, 0xe0a18844, 0xfbb39553, 0xf2bd9e5e, 0xcd97af7d, 0xc499a470, 0xdf8bb967, 0xd685b26a, 0xa1dfdb21, 0xa8d1d02c, 0xb3c3cd3b, 0xbacdc636, 0x85e7f715, 0x8ce9fc18, 0x97fbe10f, 0x9ef5ea02, 0x794f3399, 0x70413894, 0x6b532583, 0x625d2e8e, 0x5d771fad, 0x547914a0, 0x4f6b09b7, 0x466502ba, 0x313f6bf1, 0x383160fc, 0x23237deb, 0x2a2d76e6, 0x150747c5, 0x1c094cc8, 0x71b51df, 0xe155ad2, 0xd274f8f2, 0xdb7af3ff, 0xc068eee8, 0xc966e5e5, 0xf64cd4c6, 0xff42dfcb, 0xe450c2dc, 0xed5ec9d1, 0x9a04a09a, 0x930aab97, 0x8818b680, 0x8116bd8d, 0xbe3c8cae, 0xb73287a3, 0xac209ab4, 0xa52e91b9, 0x42944822, 0x4b9a432f, 0x50885e38, 0x59865535, 0x66ac6416, 0x6fa26f1b, 0x74b0720c, 0x7dbe7901, 0xae4104a, 0x3ea1b47, 0x18f80650, 0x11f60d5d, 0x2edc3c7e, 0x27d23773, 0x3cc02a64, 0x35ce2169, 0x9f027524, 0x960c7e29, 0x8d1e633e, 0x84106833, 0xbb3a5910, 0xb234521d, 0xa9264f0a, 0xa0284407, 0xd7722d4c, 0xde7c2641, 0xc56e3b56, 0xcc60305b, 0xf34a0178, 0xfa440a75, 0xe1561762, 0xe8581c6f, 0xfe2c5f4, 0x6eccef9, 0x1dfed3ee, 0x14f0d8e3, 0x2bdae9c0, 0x22d4e2cd, 0x39c6ffda, 0x30c8f4d7, 0x47929d9c, 0x4e9c9691, 0x558e8b86, 0x5c80808b, 0x63aab1a8, 0x6aa4baa5, 0x71b6a7b2, 0x78b8acbf, 0xa4d90e9f, 0xadd70592, 0xb6c51885, 0xbfcb1388, 0x80e122ab, 0x89ef29a6, 0x92fd34b1, 0x9bf33fbc, 0xeca956f7, 0xe5a75dfa, 0xfeb540ed, 0xf7bb4be0, 0xc8917ac3, 0xc19f71ce, 0xda8d6cd9, 0xd38367d4, 0x3439be4f, 0x3d37b542, 0x2625a855, 0x2f2ba358, 0x1001927b, 0x190f9976, 0x21d8461, 0xb138f6c, 0x7c49e627, 0x7547ed2a, 0x6e55f03d, 0x675bfb30, 0x5871ca13, 0x517fc11e, 0x4a6ddc09, 0x4363d704};
+
+unsigned long table_s7[] = {0xb33a6e73, 0xbe336078, 0xa9287265, 0xa4217c6e, 0x871e565f, 0x8a175854, 0x9d0c4a49, 0x90054442, 0xdb721e2b, 0xd67b1020, 0xc160023d, 0xcc690c36, 0xef562607, 0xe25f280c, 0xf5443a11, 0xf84d341a, 0x63aa8ec3, 0x6ea380c8, 0x79b892d5, 0x74b19cde, 0x578eb6ef, 0x5a87b8e4, 0x4d9caaf9, 0x4095a4f2, 0xbe2fe9b, 0x6ebf090, 0x11f0e28d, 0x1cf9ec86, 0x3fc6c6b7, 0x32cfc8bc, 0x25d4daa1, 0x28ddd4aa, 0x801b508, 0x508bb03, 0x1213a91e, 0x1f1aa715, 0x3c258d24, 0x312c832f, 0x26379132, 0x2b3e9f39, 0x6049c550, 0x6d40cb5b, 0x7a5bd946, 0x7752d74d, 0x546dfd7c, 0x5964f377, 0x4e7fe16a, 0x4376ef61, 0xd89155b8, 0xd5985bb3, 0xc28349ae, 0xcf8a47a5, 0xecb56d94, 0xe1bc639f, 0xf6a77182, 0xfbae7f89, 0xb0d925e0, 0xbdd02beb, 0xaacb39f6, 0xa7c237fd, 0x84fd1dcc, 0x89f413c7, 0x9eef01da, 0x93e60fd1, 0xde4cc385, 0xd345cd8e, 0xc45edf93, 0xc957d198, 0xea68fba9, 0xe761f5a2, 0xf07ae7bf, 0xfd73e9b4, 0xb604b3dd, 0xbb0dbdd6, 0xac16afcb, 0xa11fa1c0, 0x82208bf1, 0x8f2985fa, 0x983297e7, 0x953b99ec, 0xedc2335, 0x3d52d3e, 0x14ce3f23, 0x19c73128, 0x3af81b19, 0x37f11512, 0x20ea070f, 0x2de30904, 0x6694536d, 0x6b9d5d66, 0x7c864f7b, 0x718f4170, 0x52b06b41, 0x5fb9654a, 0x48a27757, 0x45ab795c, 0x657718fe, 0x687e16f5, 0x7f6504e8, 0x726c0ae3, 0x515320d2, 0x5c5a2ed9, 0x4b413cc4, 0x464832cf, 0xd3f68a6, 0x3666ad, 0x172d74b0, 0x1a247abb, 0x391b508a, 0x34125e81, 0x23094c9c, 0x2e004297, 0xb5e7f84e, 0xb8eef645, 0xaff5e458, 0xa2fcea53, 0x81c3c062, 0x8ccace69, 0x9bd1dc74, 0x96d8d27f, 0xddaf8816, 0xd0a6861d, 0xc7bd9400, 0xcab49a0b, 0xe98bb03a, 0xe482be31, 0xf399ac2c, 0xfe90a227, 0x69d62f84, 0x64df218f, 0x73c43392, 0x7ecd3d99, 0x5df217a8, 0x50fb19a3, 0x47e00bbe, 0x4ae905b5, 0x19e5fdc, 0xc9751d7, 0x1b8c43ca, 0x16854dc1, 0x35ba67f0, 0x38b369fb, 0x2fa87be6, 0x22a175ed, 0xb946cf34, 0xb44fc13f, 0xa354d322, 0xae5ddd29, 0x8d62f718, 0x806bf913, 0x9770eb0e, 0x9a79e505, 0xd10ebf6c, 0xdc07b167, 0xcb1ca37a, 0xc615ad71, 0xe52a8740, 0xe823894b, 0xff389b56, 0xf231955d, 0xd2edf4ff, 0xdfe4faf4, 0xc8ffe8e9, 0xc5f6e6e2, 0xe6c9ccd3, 0xebc0c2d8, 0xfcdbd0c5, 0xf1d2dece, 0xbaa584a7, 0xb7ac8aac, 0xa0b798b1, 0xadbe96ba, 0x8e81bc8b, 0x8388b280, 0x9493a09d, 0x999aae96, 0x27d144f, 0xf741a44, 0x186f0859, 0x15660652, 0x36592c63, 0x3b502268, 0x2c4b3075, 0x21423e7e, 0x6a356417, 0x673c6a1c, 0x70277801, 0x7d2e760a, 0x5e115c3b, 0x53185230, 0x4403402d, 0x490a4e26, 0x4a08272, 0x9a98c79, 0x1eb29e64, 0x13bb906f, 0x3084ba5e, 0x3d8db455, 0x2a96a648, 0x279fa843, 0x6ce8f22a, 0x61e1fc21, 0x76faee3c, 0x7bf3e037, 0x58ccca06, 0x55c5c40d, 0x42ded610, 0x4fd7d81b, 0xd43062c2, 0xd9396cc9, 0xce227ed4, 0xc32b70df, 0xe0145aee, 0xed1d54e5, 0xfa0646f8, 0xf70f48f3, 0xbc78129a, 0xb1711c91, 0xa66a0e8c, 0xab630087, 0x885c2ab6, 0x855524bd, 0x924e36a0, 0x9f4738ab, 0xbf9b5909, 0xb2925702, 0xa589451f, 0xa8804b14, 0x8bbf6125, 0x86b66f2e, 0x91ad7d33, 0x9ca47338, 0xd7d32951, 0xdada275a, 0xcdc13547, 0xc0c83b4c, 0xe3f7117d, 0xeefe1f76, 0xf9e50d6b, 0xf4ec0360, 0x6f0bb9b9, 0x6202b7b2, 0x7519a5af, 0x7810aba4, 0x5b2f8195, 0x56268f9e, 0x413d9d83, 0x4c349388, 0x743c9e1, 0xa4ac7ea, 0x1d51d5f7, 0x1058dbfc, 0x3367f1cd, 0x3e6effc6, 0x2975eddb, 0x247ce3d0};
+
+unsigned long table_s8[] = {0xb4469bf0, 0xbf4b92fe, 0xa25c89ec, 0xa95180e2, 0x9872bfc8, 0x937fb6c6, 0x8e68add4, 0x8565a4da, 0xec2ed380, 0xe723da8e, 0xfa34c19c, 0xf139c892, 0xc01af7b8, 0xcb17feb6, 0xd600e5a4, 0xdd0decaa, 0x4960b10, 0xf9b021e, 0x128c190c, 0x19811002, 0x28a22f28, 0x23af2626, 0x3eb83d34, 0x35b5343a, 0x5cfe4360, 0x57f34a6e, 0x4ae4517c, 0x41e95872, 0x70ca6758, 0x7bc76e56, 0x66d07544, 0x6ddd7c4a, 0xcffda02b, 0xc4f0a925, 0xd9e7b237, 0xd2eabb39, 0xe3c98413, 0xe8c48d1d, 0xf5d3960f, 0xfede9f01, 0x9795e85b, 0x9c98e155, 0x818ffa47, 0x8a82f349, 0xbba1cc63, 0xb0acc56d, 0xadbbde7f, 0xa6b6d771, 0x7f2d30cb, 0x742039c5, 0x693722d7, 0x623a2bd9, 0x531914f3, 0x58141dfd, 0x450306ef, 0x4e0e0fe1, 0x274578bb, 0x2c4871b5, 0x315f6aa7, 0x3a5263a9, 0xb715c83, 0x7c558d, 0x1d6b4e9f, 0x16664791, 0x422bed5d, 0x4926e453, 0x5431ff41, 0x5f3cf64f, 0x6e1fc965, 0x6512c06b, 0x7805db79, 0x7308d277, 0x1a43a52d, 0x114eac23, 0xc59b731, 0x754be3f, 0x36778115, 0x3d7a881b, 0x206d9309, 0x2b609a07, 0xf2fb7dbd, 0xf9f674b3, 0xe4e16fa1, 0xefec66af, 0xdecf5985, 0xd5c2508b, 0xc8d54b99, 0xc3d84297, 0xaa9335cd, 0xa19e3cc3, 0xbc8927d1, 0xb7842edf, 0x86a711f5, 0x8daa18fb, 0x90bd03e9, 0x9bb00ae7, 0x3990d686, 0x329ddf88, 0x2f8ac49a, 0x2487cd94, 0x15a4f2be, 0x1ea9fbb0, 0x3bee0a2, 0x8b3e9ac, 0x61f89ef6, 0x6af597f8, 0x77e28cea, 0x7cef85e4, 0x4dccbace, 0x46c1b3c0, 0x5bd6a8d2, 0x50dba1dc, 0x89404666, 0x824d4f68, 0x9f5a547a, 0x94575d74, 0xa574625e, 0xae796b50, 0xb36e7042, 0xb863794c, 0xd1280e16, 0xda250718, 0xc7321c0a, 0xcc3f1504, 0xfd1c2a2e, 0xf6112320, 0xeb063832, 0xe00b313c, 0x439c77b1, 0x48917ebf, 0x558665ad, 0x5e8b6ca3, 0x6fa85389, 0x64a55a87, 0x79b24195, 0x72bf489b, 0x1bf43fc1, 0x10f936cf, 0xdee2ddd, 0x6e324d3, 0x37c01bf9, 0x3ccd12f7, 0x21da09e5, 0x2ad700eb, 0xf34ce751, 0xf841ee5f, 0xe556f54d, 0xee5bfc43, 0xdf78c369, 0xd475ca67, 0xc962d175, 0xc26fd87b, 0xab24af21, 0xa029a62f, 0xbd3ebd3d, 0xb633b433, 0x87108b19, 0x8c1d8217, 0x910a9905, 0x9a07900b, 0x38274c6a, 0x332a4564, 0x2e3d5e76, 0x25305778, 0x14136852, 0x1f1e615c, 0x2097a4e, 0x9047340, 0x604f041a, 0x6b420d14, 0x76551606, 0x7d581f08, 0x4c7b2022, 0x4776292c, 0x5a61323e, 0x516c3b30, 0x88f7dc8a, 0x83fad584, 0x9eedce96, 0x95e0c798, 0xa4c3f8b2, 0xafcef1bc, 0xb2d9eaae, 0xb9d4e3a0, 0xd09f94fa, 0xdb929df4, 0xc68586e6, 0xcd888fe8, 0xfcabb0c2, 0xf7a6b9cc, 0xeab1a2de, 0xe1bcabd0, 0xb5f1011c, 0xbefc0812, 0xa3eb1300, 0xa8e61a0e, 0x99c52524, 0x92c82c2a, 0x8fdf3738, 0x84d23e36, 0xed99496c, 0xe6944062, 0xfb835b70, 0xf08e527e, 0xc1ad6d54, 0xcaa0645a, 0xd7b77f48, 0xdcba7646, 0x52191fc, 0xe2c98f2, 0x133b83e0, 0x18368aee, 0x2915b5c4, 0x2218bcca, 0x3f0fa7d8, 0x3402aed6, 0x5d49d98c, 0x5644d082, 0x4b53cb90, 0x405ec29e, 0x717dfdb4, 0x7a70f4ba, 0x6767efa8, 0x6c6ae6a6, 0xce4a3ac7, 0xc54733c9, 0xd85028db, 0xd35d21d5, 0xe27e1eff, 0xe97317f1, 0xf4640ce3, 0xff6905ed, 0x962272b7, 0x9d2f7bb9, 0x803860ab, 0x8b3569a5, 0xba16568f, 0xb11b5f81, 0xac0c4493, 0xa7014d9d, 0x7e9aaa27, 0x7597a329, 0x6880b83b, 0x638db135, 0x52ae8e1f, 0x59a38711, 0x44b49c03, 0x4fb9950d, 0x26f2e257, 0x2dffeb59, 0x30e8f04b, 0x3be5f945, 0xac6c66f, 0x1cbcf61, 0x1cdcd473, 0x17d1dd7d};
+
+unsigned char table_s1[] = {0x66,0xac,0x60,0xcb,0x1d,0x74,0x99,0xfc,0x54,0x21,0x15,0xef,0x46,0xcc,0x63,0x55,0x5,0x3,0x17,0x80,0x25,0x84,0xf1,0x76,0x6f,0xb3,0xfe,0x14,0x1c,0x9e,0x4f,0xa2,0x1f,0x73,0xd0,0xe7,0xa,0xb6,0x4d,0x30,0xc,0x2,0x7c,0xca,0x9f,0xa0,0xe5,0xb4,0x5f,0xb0,0xbc,0x9d,0xf3,0xf9,0x95,0x6e,0xdd,0xd2,0x77,0xba,0x1e,0xec,0xf,0xc0,0xb1,0x98,0xe4,0x39,0x7f,0x4e,0x28,0x64,0xbd,0x24,0x20,0x8a,0x2c,0x33,0x38,0x34,0xd3,0xeb,0x3d,0x8f,0xe2,0x9b,0xed,0xe0,0xb5,0x16,0x8,0xbf,0x85,0xcd,0x86,0x32,0x3e,0x97,0x7e,0x5a,0x7b,0xea,0xaa,0xbe,0x79,0x70,0xb8,0x83,0xf8,0xb2,0xdc,0x69,0xa4,0x68,0xfd,0x3a,0x48,0x5d,0xcf,0xad,0x57,0xd9,0x4a,0xd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ba,0x6,0x3c,0x41,0xde,0xd1,0xb6,0x7b,0xe0,0x12,0xcc,0x3,0xbc,0x53,0x91,0xb0,0xf5,0xff,0x62,0x99,0x2d,0x58,0xe3,0x19,0xc0,0x4a,0x59,0x6f,0xa0,0x6a,0xc7,0x6c,0x78,0x11,0xf0,0x95,0xbf,0x63,0x18,0xf2,0x92,0x10,0xae,0x43,0xf,0x9,0x8c,0x1b,0x88,0x29,0x7a,0xfd,0x7c,0x75,0x8f,0xb4,0xbe,0xf4,0x65,0xd0,0x9b,0x32,0x56,0x72,0xe6,0x77,0xb2,0xa6,0xd5,0x5b,0xd9,0x46,0x84,0x47,0x80,0x60,0x64,0xa8,0x36,0xf1,0x51,0x44,0xa1,0xc3,0x28,0xb1,0x86,0x2c,0x3f,0x20,0x38,0x34,0x94,0xbd,0x35,0xe8,0x42,0x73,0x68,0x24,0x1a,0xb9,0xb3,0x4,0xc1,0x89,0x3e,0x8a,0xe7,0xdf,0x83,0x31,0x97,0xee,0xec,0xe1,0x44,0x2e,0x39,0x0,0x23,0x60,0x99,0xfa,0x19,0x4a,0x2,0xca,0x4e,0xb1,0x90,0x51,0x56,0x86,0x83,0x3,0xe5,0x49,0x1b,0xb3,0xcd,0xd5,0x7f,0x77,0x12,0x81,0x3d,0xdc,0xb9,0x24,0xcc,0xc8,0xf1,0x3f,0x9f,0x8e,0x79,0x1,0x14,0x5b,0x67,0x57,0xbd,0x6f,0xf3,0x55,0x38,0x27,0xa9,0xb7,0x31,0xb,0x13,0xf4,0xd0,0x88,0x6a,0x30,0xba,0x95,0xd6,0xd7,0x16,0xe0,0x29,0x42,0xb5,0x80,0xe9,0x9b,0x41,0xfb,0x78,0x73,0xe7,0x25,0x40,0xc3,0xdb,0x9c,0xa,0xe4,0x3c,0x68,0xab,0x53,0x15,0x5e,0xe8,0x3b,0x2d,0x63,0x75,0x82,0x93,0x8,0xda,0xb4,0xc6,0x43,0xd3,0xc9,0x34,0x84,0xc5,0x4c,0xbc,0xa5,0xe6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0xda,0x79,0x73,0xc4,0x26,0xb7,0x72,0x66,0x5b,0xf2,0x96,0xb2,0x7e,0x34,0xa5,0x10,0xbc,0xb5,0x4f,0x74,0x91,0x84,0x61,0x3,0xa4,0x68,0xf6,0x31,0x44,0x87,0x40,0xa0,0x15,0x9b,0x19,0x86,0x5e,0x6b,0x9c,0xf7,0x3e,0xc8,0x9,0x8,0xfb,0x39,0xad,0xa6,0x25,0x9f,0x45,0x37,0xb6,0xe2,0x3a,0xd4,0x42,0x5,0x1d,0x9e,0xbd,0xf3,0xe5,0x36,0x80,0xcb,0x8d,0x75,0x9d,0x18,0x6a,0x4,0xd6,0x4d,0x5c,0xab,0x7b,0x62,0x92,0x1b,0x5a,0xea,0x17,0xd,0x1a,0xc2,0x8c,0xae,0xd7,0x33,0x95,0x38,0x22,0xf,0x8e,0xa,0x65,0x3c,0xeb,0xc1,0x24,0x47,0xbe,0xfd,0xde,0xe7,0xf0,0x9a,0x8f,0x4e,0x6f,0x90,0x14,0xdc,0x94,0xc7,0x6d,0xc5,0x97,0x3b,0xdd,0x5d,0x58,0x88,0x2,0xe3,0x5f,0xcc,0xa9,0xa1,0xb,0x13,0x50,0x41,0xe1,0x2f,0x16,0x12,0xfa,0x67,0xb1,0x63,0x89,0xb9,0x85,0xca,0xdf,0xa7,0xd5,0xef,0x69,0x77,0xf9,0xe6,0x8b,0x2d,0x4b,0x64,0xee,0xb4,0x56,0xe,0x2a,0xcd};
+
+unsigned char table_s3[] = {0xdd,0xaa,0x28,0xa0,0xc5,0xb4,0x9c,0xe8,0xcd,0xb7,0xde,0xe2,0x1f,0xef,0x73,0xbe,0x72,0xf5,0x1,0x22,0x50,0xa8,0x4a,0x9a,0xf2,0x84,0x69,0x29,0x3c,0x79,0x67,0xe3,0xb3,0x56,0xe4,0x2c,0x55,0x26,0x5a,0x0,0xb6,0x60,0xa9,0x98,0x83,0xc4,0xd0,0x7c,0xd9,0x90,0x78,0xdb,0x25,0x96,0xee,0x49,0x61,0xfa,0x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xaf,0x50,0x57,0x27,0x9d,0xfa,0xd8,0xd7,0xcd,0x2a,0x91,0x6f,0xf0,0xec,0x94,0x88,0x3c,0xb0,0x8d,0xac,0x53,0xc4,0xe8,0x92,0xe0,0x79,0xc6,0x41,0x1a,0xb6,0x2b,0x23,0x25,0xb1,0x5a,0x65,0x48,0xc2,0x36,0x7e,0x98,0xb2,0x75,0x1b,0x3d,0x37,0xa1,0x3b,0xca,0x86,0x18,0xfd,0x5f,0xd0,0x5d,0x51,0xe9,0x87,0x21,0x47,0x68,0x30,0x2e,0xb5,0xd1,0x69,0x8c,0x3e,0xf6,0x8f,0xfc,0x80,0xda,0x6c,0xba,0x73,0x42,0x59,0x1e,0xa,0xa6,0x3,0x4a,0xa2,0x1,0xff,0x4c,0x34,0x93,0xbb,0x20,0xc,0xce,0xd4,0x22,0x9b,0x14,0x7,0x70,0xf2,0x7a,0x1f,0x6e,0x46,0x32,0x17,0x6d,0x4,0x38,0xc5,0x35,0xa9,0x64,0xa8,0x2f,0xdb,0xf8,0x8a,0x72,0x90,0x40,0x28,0x5e,0xb3,0xf3,0xe6,0xa3,0xbd,0x39,0x24,0xfb,0xf1,0xea,0xcc,0x7d,0xf,0x66,0x67,0x31,0x85,0xbf,0x26,0x96,0xf4,0xbe,0xdc,0xdd,0x84,0xe1,0xf5,0x60,0xe3,0xa7,0x2,0x52,0x29,0x82,0xcf,0xf9,0x5c,0x74,0xd3,0xed,0x89,0xc8,0x49,0xe7,0x6b,0xde,0x2d,0x58,0xef,0x45,0x6a,0x33,0xd5,0xc1,0x71,0x1d,0x7c,0xa4,0xad,0x8,0xb9,0xb,0x9,0x62,0x54,0xe2,0xd6,0x9a,0xe,0x3a};
+
+unsigned char table_s4[] = {0x5b,0x9c,0x13,0x35,0x8f,0x19,0xe4,0x15,0x74,0x9f,0x66,0x4b,0x18,0xec,0xb6,0x50,0xf,0xa9,0x46,0x69,0x0,0x1e,0xff,0x9b,0x36,0xa8,0x71,0xd3,0x73,0xfe,0xc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9b,0x51,0xbf,0x2f,0xa1,0xc1,0x4b,0x5d,0xcf,0x5c,0x64,0xab,0x8f,0x9d,0xed,0xf5,0x65,0xd4,0xc4,0xe3,0x80,0x49,0x55,0x69,0x71,0xb4,0x9e,0xbd,0xa4,0x2c,0x67,0x6e,0x7f,0x85,0xb5,0x33,0xea,0xe1,0xa9,0x39,0x92,0x8a,0x81,0x3f,0x7c,0xdd,0xce,0x3c,0x61,0x6,0xf3,0x3b,0x36,0x15,0xe9,0xb6,0x27,0x2a,0x38,0x52,0xb3,0x96,0xf8,0x3a,0x84,0x5e,0x76,0xd3,0xe5,0xa8,0x3,0x78,0x28,0x8d,0xc9,0x4a,0xdf,0xcb,0xae,0xf7,0xf6,0x94,0xde,0xbc,0xc,0x95,0xaf,0x1b,0x4d,0x4c,0x25,0x57,0xe6,0xc0,0xdb,0xd1,0xe,0x10,0x24,0xb0,0xfc,0xc8,0x7e,0x48,0x23,0x21,0x93,0x22,0x87,0x8e,0x56,0x37,0x5b,0xeb,0xff,0x19,0x40,0x6f,0xc5,0x72,0x7,0xf4,0x41,0xcd,0x63,0xe2,0xa3,0xc7,0xf9,0x3e,0xb1,0x8,0xfe,0xe4,0x26,0xa,0x91,0xb9,0x1e,0x66,0xd5,0x2b,0x88,0x60,0x29,0x8c,0x20,0x34,0x73,0x68,0x59,0x90,0x46,0xf0,0xaa,0xd6,0xa5,0xdc,0x14,0xa6,0x43,0x13,0x97,0x89,0xcc,0xd9,0x99,0x74,0x2,0x6a,0xba,0x58,0xa0,0xd2,0xf1,0x5,0x82,0x4e,0x83,0x1f,0xef,0x12,0x2e,0x47,0x3d,0x18,0x6c,0x44,0x35,0x50,0xd8,0x5a,0x2d};
+
+unsigned char table_s2[] = {0xab,0xd,0xb5,0xc8,0x9d,0xed,0x11,0x50,0x63,0x8b,0x83,0x79,0x12,0x7c,0x8d,0x23,0xa1,0xeb,0x4c,0xe6,0xd2,0x53,0x7b,0x62,0xf0,0x14,0x28,0xae,0x9e,0xaf,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,0x9a,0x34,0x5,0x6b,0xf9,0x51,0x4c,0xb3,0x56,0x84,0x30,0xd,0x14,0x4d,0x9e,0xc8,0x77,0xc2,0x4e,0x90,0x92,0x57,0xd1,0xa4,0x25,0x4f,0x83,0x7a,0x91,0xa6,0xe0,0xef,0xeb,0x20,0xca,0xcc,0xbd,0xe5,0x7c,0x82,0xf8,0x6f,0xad,0xd4,0xb5,0x5a,0x1b,0x98,0x6d,0x60,0x53,0x54,0x4a,0x9,0xf4,0x22,0xcd,0x46,0xcf,0xc1,0x1f,0xc0,0x15,0x71,0x27,0x3b,0xd8,0xe6,0x26,0x2c,0xda,0x95,0x79,0x7d,0xdb,0xe,0x64,0x73,0x16,0x61,0xb2,0x9f,0xff,0x99,0xd2,0xe4,0x2,0xbf,0x19,0x18,0x12,0xe3,0xa8,0xf5,0x42,0x5f,0x69,0x7b,0xaa,0x85,0x81,0x13,0x35,0x97,0x38,0x23,0x28,0xfe,0x2f,0xb4,0x72,0x93,0x33,0xd3,0x3c,0xf6,0xc4,0x41,0x10,0x8c,0xb1,0xde,0x3e,0xcb,0x3d,0xea,0x24,0x8b,0x1c,0x6a,0x65,0xe2,0xe8,0x8f,0x88,0x11,0xed,0x8d,0x37,0xc3,0xf,0x67,0xc7,0x9d,0x4,0x2d,0xa5,0x49,0xd7,0xa3,0x68,0x40,0x52,0x8e,0xfd,0xdd,0xab,0x66,0x87,0x62,0xc,0xdc,0xa7,0xe1,0x46,0xe0,0x58,0x25,0x70,0x0,0xfc,0xbd,0x8e,0x66,0x6e,0x94,0xff,0x91,0x60,0xce,0x4c,0x6,0xa1,0xb,0x3f,0xbe,0x96,0x8f,0x1d,0xf9,0xc5,0x43,0x73,0x42,0x5b,0x61,0x2b,0x5e,0x68,0xad,0x79,0x80,0xdf,0xb5,0x1a,0x15,0x6b,0x5c,0x30,0x36,0x11,0xda,0xb6,0x49,0x3,0xab,0xca,0xf7,0xac,0x7e,0x64,0x32,0xee,0xb7,0xb4,0x6a,0x8d,0x38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1,0x5a,0xf0,0xb7,0xfd,0x6d,0x74,0xc4,0x45,0x3e,0xb8,0xe6,0x2,0xa0,0x9a,0x88,0xb9,0xa3,0xde,0xbd,0x1b,0x7,0x46,0x8b,0xfb,0x95,0x6f,0x75,0x9d,0x9b,0x35,0x4,0x6a,0xf8,0x50,0x4d,0xb2,0x57,0x85,0x31,0xc,0x15,0x4c,0x9f,0xc9,0x76,0xc3,0x4f,0x91,0x93,0x56,0xd0,0xa5,0x24,0x4e,0x82,0x7b,0x90,0xa7,0xe1,0xee,0xea,0x21,0xcb,0xcd,0xbc,0xe4,0x7d,0x83,0xf9,0x6e,0xac,0xd5,0xb4,0x5b,0x1a,0x99,0x6c,0x61,0x52,0x55,0x4b,0x8,0xf5,0x23,0xcc,0x47,0xce,0xc0,0x1e,0xc1,0x14,0x70,0x26,0x3a,0xd9,0xe7,0x27,0x2d,0xdb,0x94,0x78,0x7c,0xda,0xf,0x65,0x72,0x17,0x60,0xb3,0x9e,0xfe,0x98,0xd3,0xe5,0x3,0xbe,0x18,0x19,0x13,0xe2,0xa9,0xf4,0x43,0x5e,0x68,0x7a,0xab,0x84,0x80,0x12,0x34,0x96,0x39,0x22,0x29,0xff,0x2e,0xb5,0x73,0x92,0x32,0xd2,0x3d,0xf7,0xc5,0x40,0x11,0x8d,0xb0,0xdf,0x3f,0xca,0x3c,0xeb,0x25,0x8a,0x1d,0x6b,0x64,0xe3,0xe9,0x8e,0x89,0x10,0xec,0x8c,0x36,0xc2,0xe,0x66,0xc6,0x9c,0x5,0x2c,0xa4,0x48,0xd6,0xa2,0x69,0x41,0x53,0x8f,0xfc,0xdc,0xaa,0x67,0x86,0x63,0xd,0xdd,0xa6,0xe0};
+
+uint32_t table_s9[] = {0x7cba6f01,0x2c06b734,0x220ec640,0x72b21e75,0x82c46d87,0xd278b5b2,0xdc70c4c6,0x8ccc1cf3,0xa4a8a905,0xf4147130,0xfa1c0044,0xaaa0d871,0x5ad6ab83,0xa6a73b6,0x46202c2,0x54dedaf7,0x2854fa3e,0x78e8220b,0x76e0537f,0x265c8b4a,0xd62af8b8,0x8696208d,0x889e51f9,0xd82289cc,0xf0463c3a,0xa0fae40f,0xaef2957b,0xfe4e4d4e,0xe383ebc,0x5e84e689,0x508c97fd,0x304fc8,0x613fde08,0x3183063d,0x3f8b7749,0x6f37af7c,0x9f41dc8e,0xcffd04bb,0xc1f575cf,0x9149adfa,0xb92d180c,0xe991c039,0xe799b14d,0xb7256978,0x47531a8a,0x17efc2bf,0x19e7b3cb,0x495b6bfe,0x35d14b37,0x656d9302,0x6b65e276,0x3bd93a43,0xcbaf49b1,0x9b139184,0x951be0f0,0xc5a738c5,0xedc38d33,0xbd7f5506,0xb3772472,0xe3cbfc47,0x13bd8fb5,0x43015780,0x4d0926f4,0x1db5fec1,0x8ab92d9,0x58174aec,0x561f3b98,0x6a3e3ad,0xf6d5905f,0xa669486a,0xa861391e,0xf8dde12b,0xd0b954dd,0x80058ce8,0x8e0dfd9c,0xdeb125a9,0x2ec7565b,0x7e7b8e6e,0x7073ff1a,0x20cf272f,0x5c4507e6,0xcf9dfd3,0x2f1aea7,0x524d7692,0xa23b0560,0xf287dd55,0xfc8fac21,0xac337414,0x8457c1e2,0xd4eb19d7,0xdae368a3,0x8a5fb096,0x7a29c364,0x2a951b51,0x249d6a25,0x7421b210,0x152e23d0,0x4592fbe5,0x4b9a8a91,0x1b2652a4,0xeb502156,0xbbecf963,0xb5e48817,0xe5585022,0xcd3ce5d4,0x9d803de1,0x93884c95,0xc33494a0,0x3342e752,0x63fe3f67,0x6df64e13,0x3d4a9626,0x41c0b6ef,0x117c6eda,0x1f741fae,0x4fc8c79b,0xbfbeb469,0xef026c5c,0xe10a1d28,0xb1b6c51d,0x99d270eb,0xc96ea8de,0xc766d9aa,0x97da019f,0x67ac726d,0x3710aa58,0x3918db2c,0x69a40319,0xec5d851c,0xbce15d29,0xb2e92c5d,0xe255f468,0x1223879a,0x429f5faf,0x4c972edb,0x1c2bf6ee,0x344f4318,0x64f39b2d,0x6afbea59,0x3a47326c,0xca31419e,0x9a8d99ab,0x9485e8df,0xc43930ea,0xb8b31023,0xe80fc816,0xe607b962,0xb6bb6157,0x46cd12a5,0x1671ca90,0x1879bbe4,0x48c563d1,0x60a1d627,0x301d0e12,0x3e157f66,0x6ea9a753,0x9edfd4a1,0xce630c94,0xc06b7de0,0x90d7a5d5,0xf1d83415,0xa164ec20,0xaf6c9d54,0xffd04561,0xfa63693,0x5f1aeea6,0x51129fd2,0x1ae47e7,0x29caf211,0x79762a24,0x777e5b50,0x27c28365,0xd7b4f097,0x870828a2,0x890059d6,0xd9bc81e3,0xa536a12a,0xf58a791f,0xfb82086b,0xab3ed05e,0x5b48a3ac,0xbf47b99,0x5fc0aed,0x5540d2d8,0x7d24672e,0x2d98bf1b,0x2390ce6f,0x732c165a,0x835a65a8,0xd3e6bd9d,0xddeecce9,0x8d5214dc,0x984c78c4,0xc8f0a0f1,0xc6f8d185,0x964409b0,0x66327a42,0x368ea277,0x3886d303,0x683a0b36,0x405ebec0,0x10e266f5,0x1eea1781,0x4e56cfb4,0xbe20bc46,0xee9c6473,0xe0941507,0xb028cd32,0xcca2edfb,0x9c1e35ce,0x921644ba,0xc2aa9c8f,0x32dcef7d,0x62603748,0x6c68463c,0x3cd49e09,0x14b02bff,0x440cf3ca,0x4a0482be,0x1ab85a8b,0xeace2979,0xba72f14c,0xb47a8038,0xe4c6580d,0x85c9c9cd,0xd57511f8,0xdb7d608c,0x8bc1b8b9,0x7bb7cb4b,0x2b0b137e,0x2503620a,0x75bfba3f,0x5ddb0fc9,0xd67d7fc,0x36fa688,0x53d37ebd,0xa3a50d4f,0xf319d57a,0xfd11a40e,0xadad7c3b,0xd1275cf2,0x819b84c7,0x8f93f5b3,0xdf2f2d86,0x2f595e74,0x7fe58641,0x71edf735,0x21512f00,0x9359af6,0x598942c3,0x578133b7,0x73deb82,0xf74b9870,0xa7f74045,0xa9ff3131,0xf943e904,0xcdbd827d,0x7165b72d,0x7914c323,0xc5ccf673,0xb3bf0483,0xf6731d3,0x71645dd,0xbbce708d,0xdf7b86a5,0x63a3b3f5,0x6bd2c7fb,0xd70af2ab,0xa179005b,0x1da1350b,0x15d04105,0xa9087455,0x2328bd29,0x9ff08879,0x9781fc77,0x2b59c927,0x5d2a3bd7,0xe1f20e87,0xe9837a89,0x555b4fd9,0x31eeb9f1,0x8d368ca1,0x8547f8af,0x399fcdff,0x4fec3f0f,0xf3340a5f,0xfb457e51,0x479d4b01,0x480c8b60,0xf4d4be30,0xfca5ca3e,0x407dff6e,0x360e0d9e,0x8ad638ce,0x82a74cc0,0x3e7f7990,0x5aca8fb8,0xe612bae8,0xee63cee6,0x52bbfbb6,0x24c80946,0x98103c16,0x90614818,0x2cb97d48,0xa699b434,0x1a418164,0x1230f56a,0xaee8c03a,0xd89b32ca,0x6443079a,0x6c327394,0xd0ea46c4,0xb45fb0ec,0x88785bc,0xf6f1b2,0xbc2ec4e2,0xca5d3612,0x76850342,0x7ef4774c,0xc22c421c,0xdc405a09,0x60986f59,0x68e91b57,0xd4312e07,0xa242dcf7,0x1e9ae9a7,0x16eb9da9,0xaa33a8f9,0xce865ed1,0x725e6b81,0x7a2f1f8f,0xc6f72adf,0xb084d82f,0xc5ced7f,0x42d9971,0xb8f5ac21,0x32d5655d,0x8e0d500d,0x867c2403,0x3aa41153,0x4cd7e3a3,0xf00fd6f3,0xf87ea2fd,0x44a697ad,0x20136185,0x9ccb54d5,0x94ba20db,0x2862158b,0x5e11e77b,0xe2c9d22b,0xeab8a625,0x56609375,0x59f15314,0xe5296644,0xed58124a,0x5180271a,0x27f3d5ea,0x9b2be0ba,0x935a94b4,0x2f82a1e4,0x4b3757cc,0xf7ef629c,0xff9e1692,0x434623c2,0x3535d132,0x89ede462,0x819c906c,0x3d44a53c,0xb7646c40,0xbbc5910,0x3cd2d1e,0xbf15184e,0xc966eabe,0x75bedfee,0x7dcfabe0,0xc1179eb0,0xa5a26898,0x197a5dc8,0x110b29c6,0xadd31c96,0xdba0ee66,0x6778db36,0x6f09af38,0xd3d19a68,0x2a579fed,0x968faabd,0x9efedeb3,0x2226ebe3,0x54551913,0xe88d2c43,0xe0fc584d,0x5c246d1d,0x38919b35,0x8449ae65,0x8c38da6b,0x30e0ef3b,0x46931dcb,0xfa4b289b,0xf23a5c95,0x4ee269c5,0xc4c2a0b9,0x781a95e9,0x706be1e7,0xccb3d4b7,0xbac02647,0x6181317,0xe696719,0xb2b15249,0xd604a461,0x6adc9131,0x62ade53f,0xde75d06f,0xa806229f,0x14de17cf,0x1caf63c1,0xa0775691,0xafe696f0,0x133ea3a0,0x1b4fd7ae,0xa797e2fe,0xd1e4100e,0x6d3c255e,0x654d5150,0xd9956400,0xbd209228,0x1f8a778,0x989d376,0xb551e626,0xc32214d6,0x7ffa2186,0x778b5588,0xcb5360d8,0x4173a9a4,0xfdab9cf4,0xf5dae8fa,0x4902ddaa,0x3f712f5a,0x83a91a0a,0x8bd86e04,0x37005b54,0x53b5ad7c,0xef6d982c,0xe71cec22,0x5bc4d972,0x2db72b82,0x916f1ed2,0x991e6adc,0x25c65f8c,0x3baa4799,0x877272c9,0x8f0306c7,0x33db3397,0x45a8c167,0xf970f437,0xf1018039,0x4dd9b569,0x296c4341,0x95b47611,0x9dc5021f,0x211d374f,0x576ec5bf,0xebb6f0ef,0xe3c784e1,0x5f1fb1b1,0xd53f78cd,0x69e74d9d,0x61963993,0xdd4e0cc3,0xab3dfe33,0x17e5cb63,0x1f94bf6d,0xa34c8a3d,0xc7f97c15,0x7b214945,0x73503d4b,0xcf88081b,0xb9fbfaeb,0x523cfbb,0xd52bbb5,0xb18a8ee5,0xbe1b4e84,0x2c37bd4,0xab20fda,0xb66a3a8a,0xc019c87a,0x7cc1fd2a,0x74b08924,0xc868bc74,0xacdd4a5c,0x10057f0c,0x18740b02,0xa4ac3e52,0xd2dfcca2,0x6e07f9f2,0x66768dfc,0xdaaeb8ac,0x508e71d0,0xec564480,0xe427308e,0x58ff05de,0x2e8cf72e,0x9254c27e,0x9a25b670,0x26fd8320,0x42487508,0xfe904058,0xf6e13456,0x4a390106,0x3c4af3f6,0x8092c6a6,0x88e3b2a8,0x343b87f8,0xd78d63dd,0xfb83361,0x7ecc3d69,0xa6f96dd5,0xd50b9da3,0xd3ecd1f,0x7c4ac317,0xa47f93ab,0x1189bbcf,0xc9bceb73,0xb8c8e57b,0x60fdb5c7,0x130f45b1,0xcb3a150d,0xba4e1b05,0x627b4bb9,0x42b23733,0x9a87678f,0xebf36987,0x33c6393b,0x4034c94d,0x980199f1,0xe97597f9,0x3140c745,0x84b6ef21,0x5c83bf9d,0x2df7b195,0xf5c2e129,0x8630115f,0x5e0541e3,0x2f714feb,0xf7441f57,0x66847e58,0xbeb12ee4,0xcfc520ec,0x17f07050,0x64028026,0xbc37d09a,0xcd43de92,0x15768e2e,0xa080a64a,0x78b5f6f6,0x9c1f8fe,0xd1f4a842,0xa2065834,0x7a330888,0xb470680,0xd372563c,0xf3bb2ab6,0x2b8e7a0a,0x5afa7402,0x82cf24be,0xf13dd4c8,0x29088474,0x587c8a7c,0x8049dac0,0x35bff2a4,0xed8aa218,0x9cfeac10,0x44cbfcac,0x37390cda,0xef0c5c66,0x9e78526e,0x464d02d2,0x2a5517cc,0xf2604770,0x83144978,0x5b2119c4,0x28d3e9b2,0xf0e6b90e,0x8192b706,0x59a7e7ba,0xec51cfde,0x34649f62,0x4510916a,0x9d25c1d6,0xeed731a0,0x36e2611c,0x47966f14,0x9fa33fa8,0xbf6a4322,0x675f139e,0x162b1d96,0xce1e4d2a,0xbdecbd5c,0x65d9ede0,0x14ade3e8,0xcc98b354,0x796e9b30,0xa15bcb8c,0xd02fc584,0x81a9538,0x7be8654e,0xa3dd35f2,0xd2a93bfa,0xa9c6b46,0x9b5c0a49,0x43695af5,0x321d54fd,0xea280441,0x99daf437,0x41efa48b,0x309baa83,0xe8aefa3f,0x5d58d25b,0x856d82e7,0xf4198cef,0x2c2cdc53,0x5fde2c25,0x87eb7c99,0xf69f7291,0x2eaa222d,0xe635ea7,0xd6560e1b,0xa7220013,0x7f1750af,0xce5a0d9,0xd4d0f065,0xa5a4fe6d,0x7d91aed1,0xc86786b5,0x1052d609,0x6126d801,0xb91388bd,0xcae178cb,0x12d42877,0x63a0267f,0xbb9576c3,0x3d90f33a,0xe5a5a386,0x94d1ad8e,0x4ce4fd32,0x3f160d44,0xe7235df8,0x965753f0,0x4e62034c,0xfb942b28,0x23a17b94,0x52d5759c,0x8ae02520,0xf912d556,0x212785ea,0x50538be2,0x8866db5e,0xa8afa7d4,0x709af768,0x1eef960,0xd9dba9dc,0xaa2959aa,0x721c0916,0x368071e,0xdb5d57a2,0x6eab7fc6,0xb69e2f7a,0xc7ea2172,0x1fdf71ce,0x6c2d81b8,0xb418d104,0xc56cdf0c,0x1d598fb0,0x8c99eebf,0x54acbe03,0x25d8b00b,0xfdede0b7,0x8e1f10c1,0x562a407d,0x275e4e75,0xff6b1ec9,0x4a9d36ad,0x92a86611,0xe3dc6819,0x3be938a5,0x481bc8d3,0x902e986f,0xe15a9667,0x396fc6db,0x19a6ba51,0xc193eaed,0xb0e7e4e5,0x68d2b459,0x1b20442f,0xc3151493,0xb2611a9b,0x6a544a27,0xdfa26243,0x79732ff,0x76e33cf7,0xaed66c4b,0xdd249c3d,0x511cc81,0x7465c289,0xac509235,0xc048872b,0x187dd797,0x6909d99f,0xb13c8923,0xc2ce7955,0x1afb29e9,0x6b8f27e1,0xb3ba775d,0x64c5f39,0xde790f85,0xaf0d018d,0x77385131,0x4caa147,0xdcfff1fb,0xad8bfff3,0x75beaf4f,0x5577d3c5,0x8d428379,0xfc368d71,0x2403ddcd,0x57f12dbb,0x8fc47d07,0xfeb0730f,0x268523b3,0x93730bd7,0x4b465b6b,0x3a325563,0xe20705df,0x91f5f5a9,0x49c0a515,0x38b4ab1d,0xe081fba1,0x71419aae,0xa974ca12,0xd800c41a,0x3594a6,0x73c764d0,0xabf2346c,0xda863a64,0x2b36ad8,0xb74542bc,0x6f701200,0x1e041c08,0xc6314cb4,0xb5c3bcc2,0x6df6ec7e,0x1c82e276,0xc4b7b2ca,0xe47ece40,0x3c4b9efc,0x4d3f90f4,0x950ac048,0xe6f8303e,0x3ecd6082,0x4fb96e8a,0x978c3e36,0x227a1652,0xfa4f46ee,0x8b3b48e6,0x530e185a,0x20fce82c,0xf8c9b890,0x89bdb698,0x5188e624,0x52ae490,0x307a5848,0x44745039,0x7124ece1,0x83d49a92,0xb684264a,0xc28a2e3b,0xf7da92e3,0x1f2f656,0x34a24a8e,0x40ac42ff,0x75fcfe27,0x870c8854,0xb25c348c,0xc6523cfd,0xf3028025,0x3a7e0a05,0xf2eb6dd,0x7b20beac,0x4e700274,0xbc807407,0x89d0c8df,0xfddec0ae,0xc88e7c76,0x3ea618c3,0xbf6a41b,0x7ff8ac6a,0x4aa810b2,0xb85866c1,0x8d08da19,0xf906d268,0xcc566eb0,0xc376121,0x3967ddf9,0x4d69d588,0x78396950,0x8ac91f23,0xbf99a3fb,0xcb97ab8a,0xfec71752,0x8ef73e7,0x3dbfcf3f,0x49b1c74e,0x7ce17b96,0x8e110de5,0xbb41b13d,0xcf4fb94c,0xfa1f0594,0x33638fb4,0x633336c,0x723d3b1d,0x476d87c5,0xb59df1b6,0x80cd4d6e,0xf4c3451f,0xc193f9c7,0x37bb9d72,0x2eb21aa,0x76e529db,0x43b59503,0xb145e370,0x84155fa8,0xf01b57d9,0xc54beb01,0xdd5ef56d,0xe80e49b5,0x9c0041c4,0xa950fd1c,0x5ba08b6f,0x6ef037b7,0x1afe3fc6,0x2fae831e,0xd986e7ab,0xecd65b73,0x98d85302,0xad88efda,0x5f7899a9,0x6a282571,0x1e262d00,0x2b7691d8,0xe20a1bf8,0xd75aa720,0xa354af51,0x96041389,0x64f465fa,0x51a4d922,0x25aad153,0x10fa6d8b,0xe6d2093e,0xd382b5e6,0xa78cbd97,0x92dc014f,0x602c773c,0x557ccbe4,0x2172c395,0x14227f4d,0xd44370dc,0xe113cc04,0x951dc475,0xa04d78ad,0x52bd0ede,0x67edb206,0x13e3ba77,0x26b306af,0xd09b621a,0xe5cbdec2,0x91c5d6b3,0xa4956a6b,0x56651c18,0x6335a0c0,0x173ba8b1,0x226b1469,0xeb179e49,0xde472291,0xaa492ae0,0x9f199638,0x6de9e04b,0x58b95c93,0x2cb754e2,0x19e7e83a,0xefcf8c8f,0xda9f3057,0xae913826,0x9bc184fe,0x6931f28d,0x5c614e55,0x286f4624,0x1d3ffafc,0x18ba037a,0x2deabfa2,0x59e4b7d3,0x6cb40b0b,0x9e447d78,0xab14c1a0,0xdf1ac9d1,0xea4a7509,0x1c6211bc,0x2932ad64,0x5d3ca515,0x686c19cd,0x9a9c6fbe,0xafccd366,0xdbc2db17,0xee9267cf,0x27eeedef,0x12be5137,0x66b05946,0x53e0e59e,0xa11093ed,0x94402f35,0xe04e2744,0xd51e9b9c,0x2336ff29,0x166643f1,0x62684b80,0x5738f758,0xa5c8812b,0x90983df3,0xe4963582,0xd1c6895a,0x11a786cb,0x24f73a13,0x50f93262,0x65a98eba,0x9759f8c9,0xa2094411,0xd6074c60,0xe357f0b8,0x157f940d,0x202f28d5,0x542120a4,0x61719c7c,0x9381ea0f,0xa6d156d7,0xd2df5ea6,0xe78fe27e,0x2ef3685e,0x1ba3d486,0x6faddcf7,0x5afd602f,0xa80d165c,0x9d5daa84,0xe953a2f5,0xdc031e2d,0x2a2b7a98,0x1f7bc640,0x6b75ce31,0x5e2572e9,0xacd5049a,0x9985b842,0xed8bb033,0xd8db0ceb,0xc0ce1287,0xf59eae5f,0x8190a62e,0xb4c01af6,0x46306c85,0x7360d05d,0x76ed82c,0x323e64f4,0xc4160041,0xf146bc99,0x8548b4e8,0xb0180830,0x42e87e43,0x77b8c29b,0x3b6caea,0x36e67632,0xff9afc12,0xcaca40ca,0xbec448bb,0x8b94f463,0x79648210,0x4c343ec8,0x383a36b9,0xd6a8a61,0xfb42eed4,0xce12520c,0xba1c5a7d,0x8f4ce6a5,0x7dbc90d6,0x48ec2c0e,0x3ce2247f,0x9b298a7,0xc9d39736,0xfc832bee,0x888d239f,0xbddd9f47,0x4f2de934,0x7a7d55ec,0xe735d9d,0x3b23e145,0xcd0b85f0,0xf85b3928,0x8c553159,0xb9058d81,0x4bf5fbf2,0x7ea5472a,0xaab4f5b,0x3ffbf383,0xf68779a3,0xc3d7c57b,0xb7d9cd0a,0x828971d2,0x707907a1,0x4529bb79,0x3127b308,0x4770fd0,0xf25f6b65,0xc70fd7bd,0xb301dfcc,0x86516314,0x74a11567,0x41f1a9bf,0x35ffa1ce,0xaf1d16};
+
+unsigned char table_s10[] = {0x54,0x67,0xc5,0x1a,0x53,0x9,0xa6,0xeb,0xac,0x7,0xc2,0xe7,0x6c,0xa7,0x8d,0x7b,0xc1,0x83,0x2a,0x6,0x51,0x21,0xb7,0x36,0x52,0xe6,0x74,0x14,0x99,0x8e,0xf,0x17,0x55,0x4f,0x48,0x35,0xc,0xe3,0x3f,0x2e,0x42,0x97,0x82,0x1f,0x84,0xe,0x4d,0x7f,0xe4,0x81,0xc3,0xbf,0xa1,0xa9,0xaf,0x1c,0x57,0xd4,0x28,0x7e,0xb4,0x18,0x66,0x41,0xcc,0x95,0x45,0x70,0x90,0xe9,0x8f,0xb3,0xe5,0xbd,0x3e,0x8c,0x3c,0xbb,0xa0,0xfc,0x3a,0x9c,0x65,0xca,0x5b,0x4e,0x34,0x4,0x4c,0x2b,0x1d,0x30,0xda,0x3b,0xa3,0x8a,0xf1,0x93,0xe0,0xc6,0x77,0x7a,0x5d,0x92,0x6a,0xf4,0x76,0xcf,0x23,0x2c,0x40,0x4b,0xb6,0xde,0xd,0x39,0x56,0x20,0xe2,0x5e,0x44,0xea,0xfe,0x25,0x9b,0x62,0xb9,0x31,0xf2,0xd9,0xcb,0x61,0xee,0x1e,0xd1,0x80,0xa5,0xc9,0x24,0xd7,0xe8,0x12,0xed,0x3d,0xe1,0x8,0x5c,0x38,0xba,0xd3,0x64,0xb5,0x26,0xd2,0xaa,0x91,0xbe,0x16,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b1,0xbf,0x67,0x60,0x84,0x66,0x55,0xcf,0x5a,0x70,0xa8,0x24,0x53,0x8,0xf,0x81,0xf8,0x7e,0xa4,0xc0,0x19,0xf0,0x9c,0x4d,0x42,0x2b,0x52,0x69,0xde,0x2a,0x93,0xfd,0x46,0xee,0x33,0x99,0xa,0x21,0x29,0x78,0x16,0xe6,0xdc,0x2f,0x5d,0x31,0x15,0xc5,0x10,0xea,0x7f,0xeb,0xfb,0x90,0x3f,0xbb,0x49,0x23,0x1,0x40,0xf9,0x65,0xe,0x2,0x2d,0x5c,0x27,0xa7,0x95,0x3,0x8d,0x71,0xe1,0xb2,0x62,0xda,0x2e,0x0,0xcb,0x28,0x7d,0x20,0x86,0xb5,0x17,0xc8,0x81,0xdb,0x74,0x39,0x7e,0xd5,0x10,0x35,0xbe,0x75,0x5f,0xa9,0x13,0x51,0xf8,0xd4,0x83,0xf3,0x65,0xe4,0x80,0x34,0xa6,0xc6,0x4b,0x5c,0xdd,0xc5,0x87,0x9d,0x9a,0xe7,0xde,0x31,0xed,0xfc,0x90,0x45,0x50,0xcd,0x56,0xdc,0x9f,0xad,0x36,0x53,0x11,0x6d,0x73,0x7b,0x7d,0xce,0x85,0x6,0xfa,0xac,0x66,0xca,0xb4,0x93,0x1e,0x47,0x97,0xa2,0x42,0x3b,0x5d,0x61,0x37,0x6f,0xec,0x5e,0xee,0x69,0x72,0x2e,0xe8,0x4e,0xb7,0x18,0x89,0x9c,0xe6,0xd6,0x9e,0xf9,0xcf,0xe2,0x8,0xe9,0x71,0x58,0x23,0x41,0x32,0x14,0xa5,0xa8,0x8f,0x40,0xb8,0x26,0xa4,0x1d,0xf1,0xfe,0x92,0x99,0x64,0xc,0xdf,0xeb,0x84,0xf2,0x30,0x8c,0x96,0x38,0x2c,0xf7,0x49,0xb0,0x6b,0xe3,0x20,0xb,0x19,0xb3,0x3c,0xcc,0x3,0x52,0x77,0x1b,0xf6,0x5,0x3a,0xc0,0x3f,0xef,0x33,0xda,0x8e,0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a,0xbf,0x82,0xb0,0xf3,0x79,0xc8,0xb5,0xb2,0xa8,0xd3,0xc2,0x1e,0xf1,0x4d,0xf6,0x20,0x0,0x55,0xd0,0x2,0x12,0xff,0x33,0x6b,0x94,0x80,0xa4,0xe8,0xed,0xec,0xda,0x11,0x4f,0x53,0x92,0x35,0xf7,0x8e,0x93,0xd2,0xbb,0x8c,0x69,0x76,0x39,0x41,0x8f,0xcf,0x85,0x30,0xe6,0xba,0xb4,0x9d,0x8,0xa5,0xa7,0xe,0xd4,0x9e,0x3d,0x21,0xad,0xd,0x56,0x84,0xa,0x7b,0xfd,0x65,0x62,0x63,0x81,0xca,0x50,0x75,0x5f,0x6c,0x57,0x2f,0xdb,0xf8,0x96,0xeb,0x43,0xc5,0xa1,0xf5,0x1c,0x48,0x99,0x2e,0x47,0x2a,0xd9,0x34,0x58,0xc0,0x10,0xef,0x15,0x9c,0x36,0x24,0xf,0x7d,0x2c,0xe3,0x13,0x45,0x4,0x60,0xfc,0x7,0xb,0x59,0x28,0xee,0x7a,0x95,0xfe,0xbe,0x3a,0x26,0x4c,0xdf,0x67,0x5,0x2b,0x2d,0xce,0x25,0x78,0xa2,0x22,0x6,0x90,0x74,0x88,0xb7,0xe4,0x76,0x9f,0x46,0x22,0xad,0xc4,0xcb,0x1a,0xac,0x58,0xef,0xd4,0x68,0xc0,0x7b,0x15,0xa7,0x8c,0x1f,0xb5,0x60,0x90,0xfe,0xaf,0xb7,0xdb,0xa9,0x5a,0x6c,0x96,0x43,0x93,0x16,0x7d,0x6d,0xf9,0xa5,0xcf,0x3d,0xb9,0xe3,0x7f,0xc6,0x87,0xda,0xab,0x84,0x88,0x85,0x13,0x21,0xa1,0x34,0x67,0xf7,0xb,0x86,0xa8,0x5c,0xe4,0xa6,0xfb,0xae,0x4d,0xe8,0x17,0x7c,0xb0,0x6b,0x6e,0x3,0x27,0xa3,0x83,0xce,0x75,0x81,0x91,0xd6,0x53,0x51,0x38,0xd,0x10,0xf5,0xba,0xf,0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xdf,0x5,0x36,0x95,0x84,0x4a,0x8e,0xc4,0xed,0x3b,0xbf,0xb1,0x69,0x6e,0x8a,0x68,0x5b,0xc1,0x54,0x7e,0xa6,0x2a,0x5d,0x6,0x1,0x8f,0xf6,0x70,0xaa,0xce,0x17,0xfe,0x92,0x43,0x4c,0x25,0x5c,0x67,0xd0,0x24,0x9d,0xf3,0x48,0xe0,0x3d,0x97,0x4,0x2f,0x27,0x76,0x18,0xe8,0xd2,0x21,0x53,0x3f,0x1b,0xcb,0x1e,0xe4,0x71,0xe5,0xf5,0x9e,0x31,0xb5,0x47,0x2d,0xf,0x4e,0xf7,0x6b,0x0,0xc,0x23,0x52,0x29,0xa9,0x9b,0xd,0x83,0x7f,0xef,0xbc,0x6c,0xd4,0x20,0xe,0xc5,0x26,0x73,0x2e};
diff --git a/lib/playfair/playfair.c b/lib/playfair/playfair.c
new file mode 100755
index 0000000..782c17e
--- /dev/null
+++ b/lib/playfair/playfair.c
@@ -0,0 +1,31 @@
+#include
+
+#include "playfair.h"
+
+void generate_key_schedule(unsigned char* key_material, uint32_t key_schedule[11][4]);
+void generate_session_key(unsigned char* oldSap, unsigned char* messageIn, unsigned char* sessionKey);
+void cycle(unsigned char* block, uint32_t key_schedule[11][4]);
+void z_xor(unsigned char* in, unsigned char* out, int blocks);
+void x_xor(unsigned char* in, unsigned char* out, int blocks);
+
+extern unsigned char default_sap[];
+
+void playfair_decrypt(unsigned char* message3, unsigned char* cipherText, unsigned char* keyOut)
+{
+ unsigned char* chunk1 = &cipherText[16];
+ unsigned char* chunk2 = &cipherText[56];
+ int i;
+ unsigned char blockIn[16];
+ unsigned char sapKey[16];
+ uint32_t key_schedule[11][4];
+ generate_session_key(default_sap, message3, sapKey);
+ generate_key_schedule(sapKey, key_schedule);
+ z_xor(chunk2, blockIn, 1);
+ cycle(blockIn, key_schedule);
+ for (i = 0; i < 16; i++) {
+ keyOut[i] = blockIn[i] ^ chunk1[i];
+ }
+ x_xor(keyOut, keyOut, 1);
+ z_xor(keyOut, keyOut, 1);
+}
+
diff --git a/lib/playfair/playfair.h b/lib/playfair/playfair.h
new file mode 100755
index 0000000..5909a99
--- /dev/null
+++ b/lib/playfair/playfair.h
@@ -0,0 +1,6 @@
+#ifndef PLAYFAIR_H
+#define PLAYFAIR_H
+
+void playfair_decrypt(unsigned char* message3, unsigned char* cipherText, unsigned char* keyOut);
+
+#endif
diff --git a/lib/playfair/sap_hash.c b/lib/playfair/sap_hash.c
new file mode 100755
index 0000000..9e7ae85
--- /dev/null
+++ b/lib/playfair/sap_hash.c
@@ -0,0 +1,96 @@
+#include
+#include
+#include
+
+#define printf(...) (void)0;
+
+void garble(unsigned char*, unsigned char*, unsigned char*, unsigned char*, unsigned char*);
+
+unsigned char rol8(unsigned char input, int count)
+{
+ return ((input << count) & 0xff) | (input & 0xff) >> (8-count);
+}
+
+uint32_t rol8x(unsigned char input, int count)
+{
+ return ((input << count)) | (input) >> (8-count);
+}
+
+
+void sap_hash(unsigned char* blockIn, unsigned char* keyOut)
+{
+ uint32_t* block_words = (uint32_t*)blockIn;
+ uint32_t* out_words = (uint32_t*)keyOut;
+ unsigned char buffer0[20] = {0x96, 0x5F, 0xC6, 0x53, 0xF8, 0x46, 0xCC, 0x18, 0xDF, 0xBE, 0xB2, 0xF8, 0x38, 0xD7, 0xEC, 0x22, 0x03, 0xD1, 0x20, 0x8F};
+ unsigned char buffer1[210];
+ unsigned char buffer2[35] = {0x43, 0x54, 0x62, 0x7A, 0x18, 0xC3, 0xD6, 0xB3, 0x9A, 0x56, 0xF6, 0x1C, 0x14, 0x3F, 0x0C, 0x1D, 0x3B, 0x36, 0x83, 0xB1, 0x39, 0x51, 0x4A, 0xAA, 0x09, 0x3E, 0xFE, 0x44, 0xAF, 0xDE, 0xC3, 0x20, 0x9D, 0x42, 0x3A};
+ unsigned char buffer3[132];
+ unsigned char buffer4[21] = {0xED, 0x25, 0xD1, 0xBB, 0xBC, 0x27, 0x9F, 0x02, 0xA2, 0xA9, 0x11, 0x00, 0x0C, 0xB3, 0x52, 0xC0, 0xBD, 0xE3, 0x1B, 0x49, 0xC7};
+ int i0_index[11] = {18, 22, 23, 0, 5, 19, 32, 31, 10, 21, 30};
+ uint8_t w,x,y,z;
+ int i, j;
+
+ // Load the input into the buffer
+ for (i = 0; i < 210; i++)
+ {
+ // We need to swap the byte order around so it is the right endianness
+ uint32_t in_word = block_words[((i % 64)>>2)];
+ uint32_t in_byte = (in_word >> ((3-(i % 4)) << 3)) & 0xff;
+ buffer1[i] = in_byte;
+ }
+ // Next a scrambling
+ for (i = 0; i < 840; i++)
+ {
+ // We have to do unsigned, 32-bit modulo, or we get the wrong indices
+ x = buffer1[((i-155) & 0xffffffff) % 210];
+ y = buffer1[((i-57) & 0xffffffff) % 210];
+ z = buffer1[((i-13) & 0xffffffff) % 210];
+ w = buffer1[(i & 0xffffffff) % 210];
+ buffer1[i % 210] = (rol8(y, 5) + (rol8(z, 3) ^ w) - rol8(x,7)) & 0xff;
+ }
+ printf("Garbling...\n");
+ // I have no idea what this is doing (yet), but it gives the right output
+ garble(buffer0, buffer1, buffer2, buffer3, buffer4);
+
+ // Fill the output with 0xE1
+ for (i = 0; i < 16; i++)
+ keyOut[i] = 0xE1;
+
+ // Now we use all the buffers we have calculated to grind out the output. First buffer3
+ for (i = 0; i < 11; i++)
+ {
+ // Note that this is addition (mod 255) and not XOR
+ // Also note that we only use certain indices
+ // And that index 3 is hard-coded to be 0x3d (Maybe we can hack this up by changing buffer3[0] to be 0xdc?
+ if (i == 3)
+ keyOut[i] = 0x3d;
+ else
+ keyOut[i] = ((keyOut[i] + buffer3[i0_index[i] * 4]) & 0xff);
+ }
+
+ // Then buffer0
+ for (i = 0; i < 20; i++)
+ keyOut[i % 16] ^= buffer0[i];
+
+ // Then buffer2
+ for (i = 0; i < 35; i++)
+ keyOut[i % 16] ^= buffer2[i];
+
+ // Do buffer1
+ for (i = 0; i < 210; i++)
+ keyOut[(i % 16)] ^= buffer1[i];
+
+
+ // Now we do a kind of reverse-scramble
+ for (j = 0; j < 16; j++)
+ {
+ for (i = 0; i < 16; i++)
+ {
+ x = keyOut[((i-7) & 0xffffffff) % 16];
+ y = keyOut[i % 16];
+ z = keyOut[((i-37) & 0xffffffff) % 16];
+ w = keyOut[((i-177) & 0xffffffff) % 16];
+ keyOut[i] = rol8(x, 1) ^ y ^ rol8(z, 6) ^ rol8(w, 5);
+ }
+ }
+}
diff --git a/lib/plist/CMakeLists.txt b/lib/plist/CMakeLists.txt
new file mode 100755
index 0000000..b81a0f0
--- /dev/null
+++ b/lib/plist/CMakeLists.txt
@@ -0,0 +1,6 @@
+cmake_minimum_required(VERSION 3.4.1)
+aux_source_directory(. plist_src)
+set(DIR_SRCS ${plist_src})
+add_library( plist
+ STATIC
+ ${DIR_SRCS})
\ No newline at end of file
diff --git a/lib/plist/base64.c b/lib/plist/base64.c
new file mode 100755
index 0000000..ee02356
--- /dev/null
+++ b/lib/plist/base64.c
@@ -0,0 +1,119 @@
+/*
+ * base64.c
+ * base64 encode/decode implementation
+ *
+ * Copyright (c) 2011 Nikias Bassen, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+#include
+#include "base64.h"
+
+static const char base64_str[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+static const char base64_pad = '=';
+
+static const signed char base64_table[256] = {
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
+ 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -2, -1, -1,
+ -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,
+ -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
+ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
+};
+
+size_t base64encode(char *outbuf, const unsigned char *buf, size_t size)
+{
+ if (!outbuf || !buf || (size <= 0)) {
+ return 0;
+ }
+
+ size_t n = 0;
+ size_t m = 0;
+ unsigned char input[3];
+ unsigned int output[4];
+ while (n < size) {
+ input[0] = buf[n];
+ input[1] = (n+1 < size) ? buf[n+1] : 0;
+ input[2] = (n+2 < size) ? buf[n+2] : 0;
+ output[0] = input[0] >> 2;
+ output[1] = ((input[0] & 3) << 4) + (input[1] >> 4);
+ output[2] = ((input[1] & 15) << 2) + (input[2] >> 6);
+ output[3] = input[2] & 63;
+ outbuf[m++] = base64_str[(int)output[0]];
+ outbuf[m++] = base64_str[(int)output[1]];
+ outbuf[m++] = (n+1 < size) ? base64_str[(int)output[2]] : base64_pad;
+ outbuf[m++] = (n+2 < size) ? base64_str[(int)output[3]] : base64_pad;
+ n+=3;
+ }
+ outbuf[m] = 0; // 0-termination!
+ return m;
+}
+
+unsigned char *base64decode(const char *buf, size_t *size)
+{
+ if (!buf || !size) return NULL;
+ size_t len = (*size > 0) ? *size : strlen(buf);
+ if (len <= 0) return NULL;
+ unsigned char *outbuf = (unsigned char*)malloc((len/4)*3+3);
+ const char *ptr = buf;
+ int p = 0;
+ int wv, w1, w2, w3, w4;
+ int tmpval[4];
+ int tmpcnt = 0;
+
+ do {
+ while (ptr < buf+len && (*ptr == ' ' || *ptr == '\t' || *ptr == '\n' || *ptr == '\r')) {
+ ptr++;
+ }
+ if (*ptr == '\0' || ptr >= buf+len) {
+ break;
+ }
+ if ((wv = base64_table[(int)(unsigned char)*ptr++]) == -1) {
+ continue;
+ }
+ tmpval[tmpcnt++] = wv;
+ if (tmpcnt == 4) {
+ tmpcnt = 0;
+ w1 = tmpval[0];
+ w2 = tmpval[1];
+ w3 = tmpval[2];
+ w4 = tmpval[3];
+
+ if (w1 >= 0 && w2 >= 0) {
+ outbuf[p++] = (unsigned char)(((w1 << 2) + (w2 >> 4)) & 0xFF);
+ }
+ if (w2 >= 0 && w3 >= 0) {
+ outbuf[p++] = (unsigned char)(((w2 << 4) + (w3 >> 2)) & 0xFF);
+ }
+ if (w3 >= 0 && w4 >= 0) {
+ outbuf[p++] = (unsigned char)(((w3 << 6) + w4) & 0xFF);
+ }
+ }
+ } while (1);
+
+ outbuf[p] = 0;
+ *size = p;
+ return outbuf;
+}
diff --git a/lib/plist/base64.h b/lib/plist/base64.h
new file mode 100755
index 0000000..58b8396
--- /dev/null
+++ b/lib/plist/base64.h
@@ -0,0 +1,28 @@
+/*
+ * base64.h
+ * base64 encode/decode implementation
+ *
+ * Copyright (c) 2011 Nikias Bassen, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+#ifndef BASE64_H
+#define BASE64_H
+#include
+
+size_t base64encode(char *outbuf, const unsigned char *buf, size_t size);
+unsigned char *base64decode(const char *buf, size_t *size);
+
+#endif
diff --git a/lib/plist/bplist.c b/lib/plist/bplist.c
new file mode 100755
index 0000000..3636e27
--- /dev/null
+++ b/lib/plist/bplist.c
@@ -0,0 +1,1381 @@
+/*
+ * bplist.c
+ * Binary plist implementation
+ *
+ * Copyright (c) 2011-2017 Nikias Bassen, All Rights Reserved.
+ * Copyright (c) 2008-2010 Jonathan Beck, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifdef HAVE_CONFIG_H
+#include
+#endif
+
+#include
+#include
+#include
+#include
+
+#include
+#include
+
+#include "plist/plist.h"
+#include "plist.h"
+#include "hashtable.h"
+#include "bytearray.h"
+#include "ptrarray.h"
+
+#include "node.h"
+
+/* Magic marker and size. */
+#define BPLIST_MAGIC ((uint8_t*)"bplist")
+#define BPLIST_MAGIC_SIZE 6
+
+#define BPLIST_VERSION ((uint8_t*)"00")
+#define BPLIST_VERSION_SIZE 2
+
+typedef struct __attribute__((packed)) {
+ uint8_t unused[6];
+ uint8_t offset_size;
+ uint8_t ref_size;
+ uint64_t num_objects;
+ uint64_t root_object_index;
+ uint64_t offset_table_offset;
+} bplist_trailer_t;
+
+enum
+{
+ BPLIST_NULL = 0x00,
+ BPLIST_FALSE = 0x08,
+ BPLIST_TRUE = 0x09,
+ BPLIST_FILL = 0x0F, /* will be used for length grabbing */
+ BPLIST_UINT = 0x10,
+ BPLIST_REAL = 0x20,
+ BPLIST_DATE = 0x30,
+ BPLIST_DATA = 0x40,
+ BPLIST_STRING = 0x50,
+ BPLIST_UNICODE = 0x60,
+ BPLIST_UNK_0x70 = 0x70,
+ BPLIST_UID = 0x80,
+ BPLIST_ARRAY = 0xA0,
+ BPLIST_SET = 0xC0,
+ BPLIST_DICT = 0xD0,
+ BPLIST_MASK = 0xF0
+};
+
+union plist_uint_ptr
+{
+ const void *src;
+ uint8_t *u8ptr;
+ uint16_t *u16ptr;
+ uint32_t *u32ptr;
+ uint64_t *u64ptr;
+};
+
+#define get_unaligned(ptr) \
+ ({ \
+ struct __attribute__((packed)) { \
+ typeof(*(ptr)) __v; \
+ } *__p = (void *) (ptr); \
+ __p->__v; \
+ })
+
+
+#ifndef bswap16
+#define bswap16(x) ((((x) & 0xFF00) >> 8) | (((x) & 0x00FF) << 8))
+#endif
+
+#ifndef bswap32
+#define bswap32(x) ((((x) & 0xFF000000) >> 24) \
+ | (((x) & 0x00FF0000) >> 8) \
+ | (((x) & 0x0000FF00) << 8) \
+ | (((x) & 0x000000FF) << 24))
+#endif
+
+#ifndef bswap64
+#define bswap64(x) ((((x) & 0xFF00000000000000ull) >> 56) \
+ | (((x) & 0x00FF000000000000ull) >> 40) \
+ | (((x) & 0x0000FF0000000000ull) >> 24) \
+ | (((x) & 0x000000FF00000000ull) >> 8) \
+ | (((x) & 0x00000000FF000000ull) << 8) \
+ | (((x) & 0x0000000000FF0000ull) << 24) \
+ | (((x) & 0x000000000000FF00ull) << 40) \
+ | (((x) & 0x00000000000000FFull) << 56))
+#endif
+
+#ifndef be16toh
+#ifdef __BIG_ENDIAN__
+#define be16toh(x) (x)
+#else
+#define be16toh(x) bswap16(x)
+#endif
+#endif
+
+#ifndef be32toh
+#ifdef __BIG_ENDIAN__
+#define be32toh(x) (x)
+#else
+#define be32toh(x) bswap32(x)
+#endif
+#endif
+
+#ifndef be64toh
+#ifdef __BIG_ENDIAN__
+#define be64toh(x) (x)
+#else
+#define be64toh(x) bswap64(x)
+#endif
+#endif
+
+#ifdef __BIG_ENDIAN__
+#define beNtoh(x,n) (x >> ((8-n) << 3))
+#else
+#define beNtoh(x,n) be64toh(x << ((8-n) << 3))
+#endif
+
+#define UINT_TO_HOST(x, n) \
+ ({ \
+ union plist_uint_ptr __up; \
+ __up.src = (n > 8) ? x + (n - 8) : x; \
+ (n >= 8 ? be64toh( get_unaligned(__up.u64ptr) ) : \
+ (n == 4 ? be32toh( get_unaligned(__up.u32ptr) ) : \
+ (n == 2 ? be16toh( get_unaligned(__up.u16ptr) ) : \
+ (n == 1 ? *__up.u8ptr : \
+ beNtoh( get_unaligned(__up.u64ptr), n) \
+ )))); \
+ })
+
+#define get_needed_bytes(x) \
+ ( ((uint64_t)x) < (1ULL << 8) ? 1 : \
+ ( ((uint64_t)x) < (1ULL << 16) ? 2 : \
+ ( ((uint64_t)x) < (1ULL << 24) ? 3 : \
+ ( ((uint64_t)x) < (1ULL << 32) ? 4 : 8))))
+
+#define get_real_bytes(x) (x == (float) x ? sizeof(float) : sizeof(double))
+
+#if (defined(__LITTLE_ENDIAN__) \
+ && !defined(__FLOAT_WORD_ORDER__)) \
+ || (defined(__FLOAT_WORD_ORDER__) \
+ && __FLOAT_WORD_ORDER__ == __ORDER_LITTLE_ENDIAN__)
+#define float_bswap64(x) bswap64(x)
+#define float_bswap32(x) bswap32(x)
+#else
+#define float_bswap64(x) (x)
+#define float_bswap32(x) (x)
+#endif
+
+#ifndef __has_builtin
+#define __has_builtin(x) 0
+#endif
+
+#if __has_builtin(__builtin_umulll_overflow) || __GNUC__ >= 5
+#define uint64_mul_overflow(a, b, r) __builtin_umulll_overflow(a, b, (unsigned long long*)r)
+#else
+static int uint64_mul_overflow(uint64_t a, uint64_t b, uint64_t *res)
+{
+ *res = a * b;
+ return (a > UINT64_MAX / b);
+}
+#endif
+
+#define NODE_IS_ROOT(x) (((node_t*)x)->isRoot)
+
+struct bplist_data {
+ const char* data;
+ uint64_t size;
+ uint64_t num_objects;
+ uint8_t ref_size;
+ uint8_t offset_size;
+ const char* offset_table;
+ uint32_t level;
+ plist_t used_indexes;
+};
+
+#ifdef DEBUG
+static int plist_bin_debug = 0;
+#define PLIST_BIN_ERR(...) if (plist_bin_debug) { fprintf(stderr, "libplist[binparser] ERROR: " __VA_ARGS__); }
+#else
+#define PLIST_BIN_ERR(...)
+#endif
+
+void plist_bin_init(void)
+{
+ /* init binary plist stuff */
+#ifdef DEBUG
+ char *env_debug = getenv("PLIST_BIN_DEBUG");
+ if (env_debug && !strcmp(env_debug, "1")) {
+ plist_bin_debug = 1;
+ }
+#endif
+}
+
+void plist_bin_deinit(void)
+{
+ /* deinit binary plist stuff */
+}
+
+static plist_t parse_bin_node_at_index(struct bplist_data *bplist, uint32_t node_index);
+
+static plist_t parse_uint_node(const char **bnode, uint8_t size)
+{
+ plist_data_t data = plist_new_plist_data();
+
+ size = 1 << size; // make length less misleading
+ switch (size)
+ {
+ case sizeof(uint8_t):
+ case sizeof(uint16_t):
+ case sizeof(uint32_t):
+ case sizeof(uint64_t):
+ data->length = sizeof(uint64_t);
+ break;
+ case 16:
+ data->length = size;
+ break;
+ default:
+ free(data);
+ PLIST_BIN_ERR("%s: Invalid byte size for integer node\n", __func__);
+ return NULL;
+ };
+
+ data->intval = UINT_TO_HOST(*bnode, size);
+
+ (*bnode) += size;
+ data->type = PLIST_UINT;
+
+ return node_create(NULL, data);
+}
+
+static plist_t parse_real_node(const char **bnode, uint8_t size)
+{
+ plist_data_t data = plist_new_plist_data();
+ uint8_t buf[8];
+
+ size = 1 << size; // make length less misleading
+ switch (size)
+ {
+ case sizeof(uint32_t):
+ *(uint32_t*)buf = float_bswap32(get_unaligned((uint32_t*)*bnode));
+ data->realval = *(float *) buf;
+ break;
+ case sizeof(uint64_t):
+ *(uint64_t*)buf = float_bswap64(get_unaligned((uint64_t*)*bnode));
+ data->realval = *(double *) buf;
+ break;
+ default:
+ free(data);
+ PLIST_BIN_ERR("%s: Invalid byte size for real node\n", __func__);
+ return NULL;
+ }
+ data->type = PLIST_REAL;
+ data->length = sizeof(double);
+
+ return node_create(NULL, data);
+}
+
+static plist_t parse_date_node(const char **bnode, uint8_t size)
+{
+ plist_t node = parse_real_node(bnode, size);
+ plist_data_t data = plist_get_data(node);
+
+ data->type = PLIST_DATE;
+
+ return node;
+}
+
+static plist_t parse_string_node(const char **bnode, uint64_t size)
+{
+ plist_data_t data = plist_new_plist_data();
+
+ data->type = PLIST_STRING;
+ data->strval = (char *) malloc(sizeof(char) * (size + 1));
+ if (!data->strval) {
+ plist_free_data(data);
+ PLIST_BIN_ERR("%s: Could not allocate %" PRIu64 " bytes\n", __func__, sizeof(char) * (size + 1));
+ return NULL;
+ }
+ memcpy(data->strval, *bnode, size);
+ data->strval[size] = '\0';
+ data->length = strlen(data->strval);
+
+ return node_create(NULL, data);
+}
+
+static char *plist_utf16be_to_utf8(uint16_t *unistr, long len, long *items_read, long *items_written)
+{
+ if (!unistr || (len <= 0)) return NULL;
+ char *outbuf;
+ int p = 0;
+ long i = 0;
+
+ uint16_t wc;
+ uint32_t w;
+ int read_lead_surrogate = 0;
+
+ outbuf = (char*)malloc(4*(len+1));
+ if (!outbuf) {
+ PLIST_BIN_ERR("%s: Could not allocate %" PRIu64 " bytes\n", __func__, (uint64_t)(4*(len+1)));
+ return NULL;
+ }
+
+ while (i < len) {
+ wc = be16toh(get_unaligned(unistr + i));
+ i++;
+ if (wc >= 0xD800 && wc <= 0xDBFF) {
+ if (!read_lead_surrogate) {
+ read_lead_surrogate = 1;
+ w = 0x010000 + ((wc & 0x3FF) << 10);
+ } else {
+ // This is invalid, the next 16 bit char should be a trail surrogate.
+ // Handling error by skipping.
+ read_lead_surrogate = 0;
+ }
+ } else if (wc >= 0xDC00 && wc <= 0xDFFF) {
+ if (read_lead_surrogate) {
+ read_lead_surrogate = 0;
+ w = w | (wc & 0x3FF);
+ outbuf[p++] = (char)(0xF0 + ((w >> 18) & 0x7));
+ outbuf[p++] = (char)(0x80 + ((w >> 12) & 0x3F));
+ outbuf[p++] = (char)(0x80 + ((w >> 6) & 0x3F));
+ outbuf[p++] = (char)(0x80 + (w & 0x3F));
+ } else {
+ // This is invalid. A trail surrogate should always follow a lead surrogate.
+ // Handling error by skipping
+ }
+ } else if (wc >= 0x800) {
+ outbuf[p++] = (char)(0xE0 + ((wc >> 12) & 0xF));
+ outbuf[p++] = (char)(0x80 + ((wc >> 6) & 0x3F));
+ outbuf[p++] = (char)(0x80 + (wc & 0x3F));
+ } else if (wc >= 0x80) {
+ outbuf[p++] = (char)(0xC0 + ((wc >> 6) & 0x1F));
+ outbuf[p++] = (char)(0x80 + (wc & 0x3F));
+ } else {
+ outbuf[p++] = (char)(wc & 0x7F);
+ }
+ }
+ if (items_read) {
+ *items_read = i;
+ }
+ if (items_written) {
+ *items_written = p;
+ }
+ outbuf[p] = 0;
+
+ return outbuf;
+}
+
+static plist_t parse_unicode_node(const char **bnode, uint64_t size)
+{
+ plist_data_t data = plist_new_plist_data();
+ char *tmpstr = NULL;
+ long items_read = 0;
+ long items_written = 0;
+
+ data->type = PLIST_STRING;
+
+ tmpstr = plist_utf16be_to_utf8((uint16_t*)(*bnode), size, &items_read, &items_written);
+ if (!tmpstr) {
+ plist_free_data(data);
+ return NULL;
+ }
+ tmpstr[items_written] = '\0';
+
+ data->type = PLIST_STRING;
+ data->strval = realloc(tmpstr, items_written+1);
+ if (!data->strval)
+ data->strval = tmpstr;
+ data->length = items_written;
+ return node_create(NULL, data);
+}
+
+static plist_t parse_data_node(const char **bnode, uint64_t size)
+{
+ plist_data_t data = plist_new_plist_data();
+
+ data->type = PLIST_DATA;
+ data->length = size;
+ data->buff = (uint8_t *) malloc(sizeof(uint8_t) * size);
+ if (!data->strval) {
+ plist_free_data(data);
+ PLIST_BIN_ERR("%s: Could not allocate %" PRIu64 " bytes\n", __func__, sizeof(uint8_t) * size);
+ return NULL;
+ }
+ memcpy(data->buff, *bnode, sizeof(uint8_t) * size);
+
+ return node_create(NULL, data);
+}
+
+static plist_t parse_dict_node(struct bplist_data *bplist, const char** bnode, uint64_t size)
+{
+ uint64_t j;
+ uint64_t str_i = 0, str_j = 0;
+ uint64_t index1, index2;
+ plist_data_t data = plist_new_plist_data();
+ const char *index1_ptr = NULL;
+ const char *index2_ptr = NULL;
+
+ data->type = PLIST_DICT;
+ data->length = size;
+
+ plist_t node = node_create(NULL, data);
+
+ for (j = 0; j < data->length; j++) {
+ str_i = j * bplist->ref_size;
+ str_j = (j + size) * bplist->ref_size;
+ index1_ptr = (*bnode) + str_i;
+ index2_ptr = (*bnode) + str_j;
+
+ if ((index1_ptr < bplist->data || index1_ptr + bplist->ref_size > bplist->offset_table) ||
+ (index2_ptr < bplist->data || index2_ptr + bplist->ref_size > bplist->offset_table)) {
+ plist_free(node);
+ PLIST_BIN_ERR("%s: dict entry %" PRIu64 " is outside of valid range\n", __func__, j);
+ return NULL;
+ }
+
+ index1 = UINT_TO_HOST(index1_ptr, bplist->ref_size);
+ index2 = UINT_TO_HOST(index2_ptr, bplist->ref_size);
+
+ if (index1 >= bplist->num_objects) {
+ plist_free(node);
+ PLIST_BIN_ERR("%s: dict entry %" PRIu64 ": key index (%" PRIu64 ") must be smaller than the number of objects (%" PRIu64 ")\n", __func__, j, index1, bplist->num_objects);
+ return NULL;
+ }
+ if (index2 >= bplist->num_objects) {
+ plist_free(node);
+ PLIST_BIN_ERR("%s: dict entry %" PRIu64 ": value index (%" PRIu64 ") must be smaller than the number of objects (%" PRIu64 ")\n", __func__, j, index1, bplist->num_objects);
+ return NULL;
+ }
+
+ /* process key node */
+ plist_t key = parse_bin_node_at_index(bplist, index1);
+ if (!key) {
+ plist_free(node);
+ return NULL;
+ }
+
+ if (plist_get_data(key)->type != PLIST_STRING) {
+ PLIST_BIN_ERR("%s: dict entry %" PRIu64 ": invalid node type for key\n", __func__, j);
+ plist_free(key);
+ plist_free(node);
+ return NULL;
+ }
+
+ /* enforce key type */
+ plist_get_data(key)->type = PLIST_KEY;
+ if (!plist_get_data(key)->strval) {
+ PLIST_BIN_ERR("%s: dict entry %" PRIu64 ": key must not be NULL\n", __func__, j);
+ plist_free(key);
+ plist_free(node);
+ return NULL;
+ }
+
+ /* process value node */
+ plist_t val = parse_bin_node_at_index(bplist, index2);
+ if (!val) {
+ plist_free(key);
+ plist_free(node);
+ return NULL;
+ }
+
+ node_attach(node, key);
+ node_attach(node, val);
+ }
+
+ return node;
+}
+
+static plist_t parse_array_node(struct bplist_data *bplist, const char** bnode, uint64_t size)
+{
+ uint64_t j;
+ uint64_t str_j = 0;
+ uint64_t index1;
+ plist_data_t data = plist_new_plist_data();
+ const char *index1_ptr = NULL;
+
+ data->type = PLIST_ARRAY;
+ data->length = size;
+
+ plist_t node = node_create(NULL, data);
+
+ for (j = 0; j < data->length; j++) {
+ str_j = j * bplist->ref_size;
+ index1_ptr = (*bnode) + str_j;
+
+ if (index1_ptr < bplist->data || index1_ptr + bplist->ref_size > bplist->offset_table) {
+ plist_free(node);
+ PLIST_BIN_ERR("%s: array item %" PRIu64 " is outside of valid range\n", __func__, j);
+ return NULL;
+ }
+
+ index1 = UINT_TO_HOST(index1_ptr, bplist->ref_size);
+
+ if (index1 >= bplist->num_objects) {
+ plist_free(node);
+ PLIST_BIN_ERR("%s: array item %" PRIu64 " object index (%" PRIu64 ") must be smaller than the number of objects (%" PRIu64 ")\n", __func__, j, index1, bplist->num_objects);
+ return NULL;
+ }
+
+ /* process value node */
+ plist_t val = parse_bin_node_at_index(bplist, index1);
+ if (!val) {
+ plist_free(node);
+ return NULL;
+ }
+
+ node_attach(node, val);
+ }
+
+ return node;
+}
+
+static plist_t parse_uid_node(const char **bnode, uint8_t size)
+{
+ plist_data_t data = plist_new_plist_data();
+ size = size + 1;
+ data->intval = UINT_TO_HOST(*bnode, size);
+ if (data->intval > UINT32_MAX) {
+ PLIST_BIN_ERR("%s: value %" PRIu64 " too large for UID node (must be <= %u)\n", __func__, (uint64_t)data->intval, UINT32_MAX);
+ free(data);
+ return NULL;
+ }
+
+ (*bnode) += size;
+ data->type = PLIST_UID;
+ data->length = sizeof(uint64_t);
+
+ return node_create(NULL, data);
+}
+
+static plist_t parse_bin_node(struct bplist_data *bplist, const char** object)
+{
+ uint16_t type = 0;
+ uint64_t size = 0;
+ uint64_t pobject = 0;
+ uint64_t poffset_table = (uint64_t)(uintptr_t)bplist->offset_table;
+
+ if (!object)
+ return NULL;
+
+ type = (**object) & BPLIST_MASK;
+ size = (**object) & BPLIST_FILL;
+ (*object)++;
+
+ if (size == BPLIST_FILL) {
+ switch (type) {
+ case BPLIST_DATA:
+ case BPLIST_STRING:
+ case BPLIST_UNICODE:
+ case BPLIST_ARRAY:
+ case BPLIST_SET:
+ case BPLIST_DICT:
+ {
+ uint16_t next_size = **object & BPLIST_FILL;
+ if ((**object & BPLIST_MASK) != BPLIST_UINT) {
+ PLIST_BIN_ERR("%s: invalid size node type for node type 0x%02x: found 0x%02x, expected 0x%02x\n", __func__, type, **object & BPLIST_MASK, BPLIST_UINT);
+ return NULL;
+ }
+ (*object)++;
+ next_size = 1 << next_size;
+ if (*object + next_size > bplist->offset_table) {
+ PLIST_BIN_ERR("%s: size node data bytes for node type 0x%02x point outside of valid range\n", __func__, type);
+ return NULL;
+ }
+ size = UINT_TO_HOST(*object, next_size);
+ (*object) += next_size;
+ break;
+ }
+ default:
+ break;
+ }
+ }
+
+ pobject = (uint64_t)(uintptr_t)*object;
+
+ switch (type)
+ {
+
+ case BPLIST_NULL:
+ switch (size)
+ {
+
+ case BPLIST_TRUE:
+ {
+ plist_data_t data = plist_new_plist_data();
+ data->type = PLIST_BOOLEAN;
+ data->boolval = TRUE;
+ data->length = 1;
+ return node_create(NULL, data);
+ }
+
+ case BPLIST_FALSE:
+ {
+ plist_data_t data = plist_new_plist_data();
+ data->type = PLIST_BOOLEAN;
+ data->boolval = FALSE;
+ data->length = 1;
+ return node_create(NULL, data);
+ }
+
+ case BPLIST_NULL:
+ default:
+ return NULL;
+ }
+
+ case BPLIST_UINT:
+ if (pobject + (uint64_t)(1 << size) > poffset_table) {
+ PLIST_BIN_ERR("%s: BPLIST_UINT data bytes point outside of valid range\n", __func__);
+ return NULL;
+ }
+ return parse_uint_node(object, size);
+
+ case BPLIST_REAL:
+ if (pobject + (uint64_t)(1 << size) > poffset_table) {
+ PLIST_BIN_ERR("%s: BPLIST_REAL data bytes point outside of valid range\n", __func__);
+ return NULL;
+ }
+ return parse_real_node(object, size);
+
+ case BPLIST_DATE:
+ if (3 != size) {
+ PLIST_BIN_ERR("%s: invalid data size for BPLIST_DATE node\n", __func__);
+ return NULL;
+ }
+ if (pobject + (uint64_t)(1 << size) > poffset_table) {
+ PLIST_BIN_ERR("%s: BPLIST_DATE data bytes point outside of valid range\n", __func__);
+ return NULL;
+ }
+ return parse_date_node(object, size);
+
+ case BPLIST_DATA:
+ if (pobject + size < pobject || pobject + size > poffset_table) {
+ PLIST_BIN_ERR("%s: BPLIST_DATA data bytes point outside of valid range\n", __func__);
+ return NULL;
+ }
+ return parse_data_node(object, size);
+
+ case BPLIST_STRING:
+ if (pobject + size < pobject || pobject + size > poffset_table) {
+ PLIST_BIN_ERR("%s: BPLIST_STRING data bytes point outside of valid range\n", __func__);
+ return NULL;
+ }
+ return parse_string_node(object, size);
+
+ case BPLIST_UNICODE:
+ if (size*2 < size) {
+ PLIST_BIN_ERR("%s: Integer overflow when calculating BPLIST_UNICODE data size.\n", __func__);
+ return NULL;
+ }
+ if (pobject + size*2 < pobject || pobject + size*2 > poffset_table) {
+ PLIST_BIN_ERR("%s: BPLIST_UNICODE data bytes point outside of valid range\n", __func__);
+ return NULL;
+ }
+ return parse_unicode_node(object, size);
+
+ case BPLIST_SET:
+ case BPLIST_ARRAY:
+ if (pobject + size < pobject || pobject + size > poffset_table) {
+ PLIST_BIN_ERR("%s: BPLIST_ARRAY data bytes point outside of valid range\n", __func__);
+ return NULL;
+ }
+ return parse_array_node(bplist, object, size);
+
+ case BPLIST_UID:
+ if (pobject + size+1 > poffset_table) {
+ PLIST_BIN_ERR("%s: BPLIST_UID data bytes point outside of valid range\n", __func__);
+ return NULL;
+ }
+ return parse_uid_node(object, size);
+
+ case BPLIST_DICT:
+ if (pobject + size < pobject || pobject + size > poffset_table) {
+ PLIST_BIN_ERR("%s: BPLIST_DICT data bytes point outside of valid range\n", __func__);
+ return NULL;
+ }
+ return parse_dict_node(bplist, object, size);
+
+ default:
+ PLIST_BIN_ERR("%s: unexpected node type 0x%02x\n", __func__, type);
+ return NULL;
+ }
+ return NULL;
+}
+
+static plist_t parse_bin_node_at_index(struct bplist_data *bplist, uint32_t node_index)
+{
+ int i = 0;
+ const char* ptr = NULL;
+ plist_t plist = NULL;
+ const char* idx_ptr = NULL;
+
+ if (node_index >= bplist->num_objects) {
+ PLIST_BIN_ERR("node index (%u) must be smaller than the number of objects (%" PRIu64 ")\n", node_index, bplist->num_objects);
+ return NULL;
+ }
+
+ idx_ptr = bplist->offset_table + node_index * bplist->offset_size;
+ if (idx_ptr < bplist->offset_table ||
+ idx_ptr >= bplist->offset_table + bplist->num_objects * bplist->offset_size) {
+ PLIST_BIN_ERR("node index %u points outside of valid range\n", node_index);
+ return NULL;
+ }
+
+ ptr = bplist->data + UINT_TO_HOST(idx_ptr, bplist->offset_size);
+ /* make sure the node offset is in a sane range */
+ if ((ptr < bplist->data) || (ptr >= bplist->offset_table)) {
+ PLIST_BIN_ERR("offset for node index %u points outside of valid range\n", node_index);
+ return NULL;
+ }
+
+ /* store node_index for current recursion level */
+ if (plist_array_get_size(bplist->used_indexes) < bplist->level+1) {
+ while (plist_array_get_size(bplist->used_indexes) < bplist->level+1) {
+ plist_array_append_item(bplist->used_indexes, plist_new_uint(node_index));
+ }
+ } else {
+ plist_array_set_item(bplist->used_indexes, plist_new_uint(node_index), bplist->level);
+ }
+
+ /* recursion check */
+ if (bplist->level > 0) {
+ for (i = bplist->level-1; i >= 0; i--) {
+ plist_t node_i = plist_array_get_item(bplist->used_indexes, i);
+ plist_t node_level = plist_array_get_item(bplist->used_indexes, bplist->level);
+ if (plist_compare_node_value(node_i, node_level)) {
+ PLIST_BIN_ERR("recursion detected in binary plist\n");
+ return NULL;
+ }
+ }
+ }
+
+ /* finally parse node */
+ bplist->level++;
+ plist = parse_bin_node(bplist, &ptr);
+ bplist->level--;
+ return plist;
+}
+
+PLIST_API void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * plist)
+{
+ bplist_trailer_t *trailer = NULL;
+ uint8_t offset_size = 0;
+ uint8_t ref_size = 0;
+ uint64_t num_objects = 0;
+ uint64_t root_object = 0;
+ const char *offset_table = NULL;
+ uint64_t offset_table_size = 0;
+ const char *start_data = NULL;
+ const char *end_data = NULL;
+
+ //first check we have enough data
+ if (!(length >= BPLIST_MAGIC_SIZE + BPLIST_VERSION_SIZE + sizeof(bplist_trailer_t))) {
+ PLIST_BIN_ERR("plist data is to small to hold a binary plist\n");
+ return;
+ }
+ //check that plist_bin in actually a plist
+ if (memcmp(plist_bin, BPLIST_MAGIC, BPLIST_MAGIC_SIZE) != 0) {
+ PLIST_BIN_ERR("bplist magic mismatch\n");
+ return;
+ }
+ //check for known version
+ if (memcmp(plist_bin + BPLIST_MAGIC_SIZE, BPLIST_VERSION, BPLIST_VERSION_SIZE) != 0) {
+ PLIST_BIN_ERR("unsupported binary plist version '%.2s\n", plist_bin+BPLIST_MAGIC_SIZE);
+ return;
+ }
+
+ start_data = plist_bin + BPLIST_MAGIC_SIZE + BPLIST_VERSION_SIZE;
+ end_data = plist_bin + length - sizeof(bplist_trailer_t);
+
+ //now parse trailer
+ trailer = (bplist_trailer_t*)end_data;
+
+ offset_size = trailer->offset_size;
+ ref_size = trailer->ref_size;
+ num_objects = be64toh(trailer->num_objects);
+ root_object = be64toh(trailer->root_object_index);
+ offset_table = (char *)(plist_bin + be64toh(trailer->offset_table_offset));
+
+ if (num_objects == 0) {
+ PLIST_BIN_ERR("number of objects must be larger than 0\n");
+ return;
+ }
+
+ if (offset_size == 0) {
+ PLIST_BIN_ERR("offset size in trailer must be larger than 0\n");
+ return;
+ }
+
+ if (ref_size == 0) {
+ PLIST_BIN_ERR("object reference size in trailer must be larger than 0\n");
+ return;
+ }
+
+ if (root_object >= num_objects) {
+ PLIST_BIN_ERR("root object index (%" PRIu64 ") must be smaller than number of objects (%" PRIu64 ")\n", root_object, num_objects);
+ return;
+ }
+
+ if (offset_table < start_data || offset_table >= end_data) {
+ PLIST_BIN_ERR("offset table offset points outside of valid range\n");
+ return;
+ }
+
+ if (uint64_mul_overflow(num_objects, offset_size, &offset_table_size)) {
+ PLIST_BIN_ERR("integer overflow when calculating offset table size\n");
+ return;
+ }
+
+ if ((offset_table + offset_table_size < offset_table) || (offset_table + offset_table_size > end_data)) {
+ PLIST_BIN_ERR("offset table points outside of valid range\n");
+ return;
+ }
+
+ struct bplist_data bplist;
+ bplist.data = plist_bin;
+ bplist.size = length;
+ bplist.num_objects = num_objects;
+ bplist.ref_size = ref_size;
+ bplist.offset_size = offset_size;
+ bplist.offset_table = offset_table;
+ bplist.level = 0;
+ bplist.used_indexes = plist_new_array();
+
+ if (!bplist.used_indexes) {
+ PLIST_BIN_ERR("failed to create array to hold used node indexes. Out of memory?\n");
+ return;
+ }
+
+ *plist = parse_bin_node_at_index(&bplist, root_object);
+
+ plist_free(bplist.used_indexes);
+}
+
+static unsigned int plist_data_hash(const void* key)
+{
+ plist_data_t data = plist_get_data((plist_t) key);
+
+ unsigned int hash = data->type;
+ unsigned int i = 0;
+
+ char *buff = NULL;
+ unsigned int size = 0;
+
+ switch (data->type)
+ {
+ case PLIST_BOOLEAN:
+ case PLIST_UINT:
+ case PLIST_REAL:
+ case PLIST_DATE:
+ case PLIST_UID:
+ buff = (char *) &data->intval; //works also for real as we use an union
+ size = 8;
+ break;
+ case PLIST_KEY:
+ case PLIST_STRING:
+ buff = data->strval;
+ size = data->length;
+ break;
+ case PLIST_DATA:
+ case PLIST_ARRAY:
+ case PLIST_DICT:
+ //for these types only hash pointer
+ buff = (char *) &key;
+ size = sizeof(const void*);
+ break;
+ default:
+ break;
+ }
+
+ // now perform hash using djb2 hashing algorithm
+ // see: http://www.cse.yorku.ca/~oz/hash.html
+ hash += 5381;
+ for (i = 0; i < size; buff++, i++) {
+ hash = ((hash << 5) + hash) + *buff;
+ }
+
+ return hash;
+}
+
+struct serialize_s
+{
+ ptrarray_t* objects;
+ hashtable_t* ref_table;
+};
+
+static void serialize_plist(node_t* node, void* data)
+{
+ uint64_t *index_val = NULL;
+ struct serialize_s *ser = (struct serialize_s *) data;
+ uint64_t current_index = ser->objects->len;
+
+ //first check that node is not yet in objects
+ void* val = hash_table_lookup(ser->ref_table, node);
+ if (val)
+ {
+ //data is already in table
+ return;
+ }
+ //insert new ref
+ index_val = (uint64_t *) malloc(sizeof(uint64_t));
+ assert(index_val != NULL);
+ *index_val = current_index;
+ hash_table_insert(ser->ref_table, node, index_val);
+
+ //now append current node to object array
+ ptr_array_add(ser->objects, node);
+
+ //now recurse on children
+ node_t *ch;
+ for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) {
+ serialize_plist(ch, data);
+ }
+
+ return;
+}
+
+#define Log2(x) (x == 8 ? 3 : (x == 4 ? 2 : (x == 2 ? 1 : 0)))
+
+static void write_int(bytearray_t * bplist, uint64_t val)
+{
+ int size = get_needed_bytes(val);
+ uint8_t sz;
+ //do not write 3bytes int node
+ if (size == 3)
+ size++;
+ sz = BPLIST_UINT | Log2(size);
+
+ val = be64toh(val);
+ byte_array_append(bplist, &sz, 1);
+ byte_array_append(bplist, (uint8_t*)&val + (8-size), size);
+}
+
+static void write_uint(bytearray_t * bplist, uint64_t val)
+{
+ uint8_t sz = BPLIST_UINT | 4;
+ uint64_t zero = 0;
+
+ val = be64toh(val);
+ byte_array_append(bplist, &sz, 1);
+ byte_array_append(bplist, &zero, sizeof(uint64_t));
+ byte_array_append(bplist, &val, sizeof(uint64_t));
+}
+
+static void write_real(bytearray_t * bplist, double val)
+{
+ int size = get_real_bytes(val); //cheat to know used space
+ uint8_t buff[16];
+ buff[7] = BPLIST_REAL | Log2(size);
+ if (size == sizeof(float)) {
+ float floatval = (float)val;
+ *(uint32_t*)(buff+8) = float_bswap32(*(uint32_t*)&floatval);
+ } else {
+ *(uint64_t*)(buff+8) = float_bswap64(*(uint64_t*)&val);
+ }
+ byte_array_append(bplist, buff+7, size+1);
+}
+
+static void write_date(bytearray_t * bplist, double val)
+{
+ uint8_t buff[16];
+ buff[7] = BPLIST_DATE | 3;
+ *(uint64_t*)(buff+8) = float_bswap64(*(uint64_t*)&val);
+ byte_array_append(bplist, buff+7, 9);
+}
+
+static void write_raw_data(bytearray_t * bplist, uint8_t mark, uint8_t * val, uint64_t size)
+{
+ uint8_t marker = mark | (size < 15 ? size : 0xf);
+ byte_array_append(bplist, &marker, sizeof(uint8_t));
+ if (size >= 15) {
+ write_int(bplist, size);
+ }
+ if (BPLIST_UNICODE==mark) size <<= 1;
+ byte_array_append(bplist, val, size);
+}
+
+static void write_data(bytearray_t * bplist, uint8_t * val, uint64_t size)
+{
+ write_raw_data(bplist, BPLIST_DATA, val, size);
+}
+
+static void write_string(bytearray_t * bplist, char *val, uint64_t size)
+{
+ write_raw_data(bplist, BPLIST_STRING, (uint8_t *) val, size);
+}
+
+static uint16_t *plist_utf8_to_utf16be(char *unistr, long size, long *items_read, long *items_written)
+{
+ uint16_t *outbuf;
+ int p = 0;
+ long i = 0;
+
+ unsigned char c0;
+ unsigned char c1;
+ unsigned char c2;
+ unsigned char c3;
+
+ uint32_t w;
+
+ outbuf = (uint16_t*)malloc(((size*2)+1)*sizeof(uint16_t));
+ if (!outbuf) {
+ PLIST_BIN_ERR("%s: Could not allocate %" PRIu64 " bytes\n", __func__, (uint64_t)((size*2)+1)*sizeof(uint16_t));
+ return NULL;
+ }
+
+ while (i < size) {
+ c0 = unistr[i];
+ c1 = (i < size-1) ? unistr[i+1] : 0;
+ c2 = (i < size-2) ? unistr[i+2] : 0;
+ c3 = (i < size-3) ? unistr[i+3] : 0;
+ if ((c0 >= 0xF0) && (i < size-3) && (c1 >= 0x80) && (c2 >= 0x80) && (c3 >= 0x80)) {
+ // 4 byte sequence. Need to generate UTF-16 surrogate pair
+ w = ((((c0 & 7) << 18) + ((c1 & 0x3F) << 12) + ((c2 & 0x3F) << 6) + (c3 & 0x3F)) & 0x1FFFFF) - 0x010000;
+ outbuf[p++] = be16toh(0xD800 + (w >> 10));
+ outbuf[p++] = be16toh(0xDC00 + (w & 0x3FF));
+ i+=4;
+ } else if ((c0 >= 0xE0) && (i < size-2) && (c1 >= 0x80) && (c2 >= 0x80)) {
+ // 3 byte sequence
+ outbuf[p++] = be16toh(((c2 & 0x3F) + ((c1 & 3) << 6)) + (((c1 >> 2) & 15) << 8) + ((c0 & 15) << 12));
+ i+=3;
+ } else if ((c0 >= 0xC0) && (i < size-1) && (c1 >= 0x80)) {
+ // 2 byte sequence
+ outbuf[p++] = be16toh(((c1 & 0x3F) + ((c0 & 3) << 6)) + (((c0 >> 2) & 7) << 8));
+ i+=2;
+ } else if (c0 < 0x80) {
+ // 1 byte sequence
+ outbuf[p++] = be16toh(c0);
+ i+=1;
+ } else {
+ // invalid character
+ PLIST_BIN_ERR("%s: invalid utf8 sequence in string at index %lu\n", __func__, i);
+ break;
+ }
+ }
+ if (items_read) {
+ *items_read = i;
+ }
+ if (items_written) {
+ *items_written = p;
+ }
+ outbuf[p] = 0;
+
+ return outbuf;
+}
+
+static void write_unicode(bytearray_t * bplist, char *val, uint64_t size)
+{
+ long items_read = 0;
+ long items_written = 0;
+ uint16_t *unicodestr = NULL;
+
+ unicodestr = plist_utf8_to_utf16be(val, size, &items_read, &items_written);
+ write_raw_data(bplist, BPLIST_UNICODE, (uint8_t*)unicodestr, items_written);
+ free(unicodestr);
+}
+
+static void write_array(bytearray_t * bplist, node_t* node, hashtable_t* ref_table, uint8_t ref_size)
+{
+ node_t* cur = NULL;
+ uint64_t i = 0;
+
+ uint64_t size = node_n_children(node);
+ uint8_t marker = BPLIST_ARRAY | (size < 15 ? size : 0xf);
+ byte_array_append(bplist, &marker, sizeof(uint8_t));
+ if (size >= 15) {
+ write_int(bplist, size);
+ }
+
+ for (i = 0, cur = node_first_child(node); cur && i < size; cur = node_next_sibling(cur), i++) {
+ uint64_t idx = *(uint64_t *) (hash_table_lookup(ref_table, cur));
+ idx = be64toh(idx);
+ byte_array_append(bplist, (uint8_t*)&idx + (sizeof(uint64_t) - ref_size), ref_size);
+ }
+}
+
+static void write_dict(bytearray_t * bplist, node_t* node, hashtable_t* ref_table, uint8_t ref_size)
+{
+ node_t* cur = NULL;
+ uint64_t i = 0;
+
+ uint64_t size = node_n_children(node) / 2;
+ uint8_t marker = BPLIST_DICT | (size < 15 ? size : 0xf);
+ byte_array_append(bplist, &marker, sizeof(uint8_t));
+ if (size >= 15) {
+ write_int(bplist, size);
+ }
+
+ for (i = 0, cur = node_first_child(node); cur && i < size; cur = node_next_sibling(node_next_sibling(cur)), i++) {
+ uint64_t idx1 = *(uint64_t *) (hash_table_lookup(ref_table, cur));
+ idx1 = be64toh(idx1);
+ byte_array_append(bplist, (uint8_t*)&idx1 + (sizeof(uint64_t) - ref_size), ref_size);
+ }
+
+ for (i = 0, cur = node_first_child(node); cur && i < size; cur = node_next_sibling(node_next_sibling(cur)), i++) {
+ uint64_t idx2 = *(uint64_t *) (hash_table_lookup(ref_table, cur->next));
+ idx2 = be64toh(idx2);
+ byte_array_append(bplist, (uint8_t*)&idx2 + (sizeof(uint64_t) - ref_size), ref_size);
+ }
+}
+
+static void write_uid(bytearray_t * bplist, uint64_t val)
+{
+ val = (uint32_t)val;
+ int size = get_needed_bytes(val);
+ uint8_t sz;
+ //do not write 3bytes int node
+ if (size == 3)
+ size++;
+ sz = BPLIST_UID | (size-1); // yes, this is what Apple does...
+
+ val = be64toh(val);
+ byte_array_append(bplist, &sz, 1);
+ byte_array_append(bplist, (uint8_t*)&val + (8-size), size);
+}
+
+static int is_ascii_string(char* s, int len)
+{
+ int ret = 1, i = 0;
+ for(i = 0; i < len; i++)
+ {
+ if ( !isascii( s[i] ) )
+ {
+ ret = 0;
+ break;
+ }
+ }
+ return ret;
+}
+
+PLIST_API void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length)
+{
+ ptrarray_t* objects = NULL;
+ hashtable_t* ref_table = NULL;
+ struct serialize_s ser_s;
+ uint8_t offset_size = 0;
+ uint8_t ref_size = 0;
+ uint64_t num_objects = 0;
+ uint64_t root_object = 0;
+ uint64_t offset_table_index = 0;
+ bytearray_t *bplist_buff = NULL;
+ uint64_t i = 0;
+ uint8_t *buff = NULL;
+ uint64_t *offsets = NULL;
+ bplist_trailer_t trailer;
+ uint64_t objects_len = 0;
+ uint64_t buff_len = 0;
+
+ //check for valid input
+ if (!plist || !plist_bin || *plist_bin || !length)
+ return;
+
+ //list of objects
+ objects = ptr_array_new(4096);
+ //hashtable to write only once same nodes
+ ref_table = hash_table_new(plist_data_hash, plist_data_compare, free);
+
+ //serialize plist
+ ser_s.objects = objects;
+ ser_s.ref_table = ref_table;
+ serialize_plist(plist, &ser_s);
+
+ //now stream to output buffer
+ offset_size = 0; //unknown yet
+ objects_len = objects->len;
+ ref_size = get_needed_bytes(objects_len);
+ num_objects = objects->len;
+ root_object = 0; //root is first in list
+ offset_table_index = 0; //unknown yet
+
+ //figure out the storage size required
+ size_t req = 0;
+ for (i = 0; i < num_objects; i++)
+ {
+ node_t* node = ptr_array_index(objects, i);
+ plist_data_t data = plist_get_data(node);
+ uint64_t size;
+ uint8_t bsize;
+ switch (data->type)
+ {
+ case PLIST_BOOLEAN:
+ req += 1;
+ break;
+ case PLIST_KEY:
+ case PLIST_STRING:
+ req += 1;
+ if (data->length >= 15) {
+ bsize = get_needed_bytes(data->length);
+ if (bsize == 3) bsize = 4;
+ req += 1;
+ req += bsize;
+ }
+ if ( is_ascii_string(data->strval, data->length) )
+ {
+ req += data->length;
+ }
+ else
+ {
+ req += data->length * 2;
+ }
+ break;
+ case PLIST_REAL:
+ size = get_real_bytes(data->realval);
+ req += 1;
+ req += size;
+ break;
+ case PLIST_DATE:
+ req += 9;
+ break;
+ case PLIST_ARRAY:
+ size = node_n_children(node);
+ req += 1;
+ if (size >= 15) {
+ bsize = get_needed_bytes(size);
+ if (bsize == 3) bsize = 4;
+ req += 1;
+ req += bsize;
+ }
+ req += size * ref_size;
+ break;
+ case PLIST_DICT:
+ size = node_n_children(node) / 2;
+ req += 1;
+ if (size >= 15) {
+ bsize = get_needed_bytes(size);
+ if (bsize == 3) bsize = 4;
+ req += 1;
+ req += bsize;
+ }
+ req += size * 2 * ref_size;
+ break;
+ default:
+ size = data->length;
+ req += 1;
+ if (size >= 15) {
+ bsize = get_needed_bytes(size);
+ if (bsize == 3) bsize = 4;
+ req += 1;
+ req += bsize;
+ }
+ req += data->length;
+ break;
+ }
+ }
+ // add size of magic
+ req += BPLIST_MAGIC_SIZE;
+ req += BPLIST_VERSION_SIZE;
+ // add size of offset table
+ req += get_needed_bytes(req) * num_objects;
+ // add size of trailer
+ req += sizeof(bplist_trailer_t);
+
+ //setup a dynamic bytes array to store bplist in
+ bplist_buff = byte_array_new(req);
+
+ //set magic number and version
+ byte_array_append(bplist_buff, BPLIST_MAGIC, BPLIST_MAGIC_SIZE);
+ byte_array_append(bplist_buff, BPLIST_VERSION, BPLIST_VERSION_SIZE);
+
+ //write objects and table
+ offsets = (uint64_t *) malloc(num_objects * sizeof(uint64_t));
+ assert(offsets != NULL);
+ for (i = 0; i < num_objects; i++)
+ {
+
+ plist_data_t data = plist_get_data(ptr_array_index(objects, i));
+ offsets[i] = bplist_buff->len;
+
+ switch (data->type)
+ {
+ case PLIST_BOOLEAN:
+ buff = (uint8_t *) malloc(sizeof(uint8_t));
+ buff[0] = data->boolval ? BPLIST_TRUE : BPLIST_FALSE;
+ byte_array_append(bplist_buff, buff, sizeof(uint8_t));
+ free(buff);
+ break;
+
+ case PLIST_UINT:
+ if (data->length == 16) {
+ write_uint(bplist_buff, data->intval);
+ } else {
+ write_int(bplist_buff, data->intval);
+ }
+ break;
+
+ case PLIST_REAL:
+ write_real(bplist_buff, data->realval);
+ break;
+
+ case PLIST_KEY:
+ case PLIST_STRING:
+ if ( is_ascii_string(data->strval, data->length) )
+ {
+ write_string(bplist_buff, data->strval, data->length);
+ }
+ else
+ {
+ write_unicode(bplist_buff, data->strval, data->length);
+ }
+ break;
+ case PLIST_DATA:
+ write_data(bplist_buff, data->buff, data->length);
+ break;
+ case PLIST_ARRAY:
+ write_array(bplist_buff, ptr_array_index(objects, i), ref_table, ref_size);
+ break;
+ case PLIST_DICT:
+ write_dict(bplist_buff, ptr_array_index(objects, i), ref_table, ref_size);
+ break;
+ case PLIST_DATE:
+ write_date(bplist_buff, data->realval);
+ break;
+ case PLIST_UID:
+ write_uid(bplist_buff, data->intval);
+ break;
+ default:
+ break;
+ }
+ }
+
+ //free intermediate objects
+ ptr_array_free(objects);
+ hash_table_destroy(ref_table);
+
+ //write offsets
+ buff_len = bplist_buff->len;
+ offset_size = get_needed_bytes(buff_len);
+ offset_table_index = bplist_buff->len;
+ for (i = 0; i < num_objects; i++) {
+ uint64_t offset = be64toh(offsets[i]);
+ byte_array_append(bplist_buff, (uint8_t*)&offset + (sizeof(uint64_t) - offset_size), offset_size);
+ }
+ free(offsets);
+
+ //setup trailer
+ memset(trailer.unused, '\0', sizeof(trailer.unused));
+ trailer.offset_size = offset_size;
+ trailer.ref_size = ref_size;
+ trailer.num_objects = be64toh(num_objects);
+ trailer.root_object_index = be64toh(root_object);
+ trailer.offset_table_offset = be64toh(offset_table_index);
+
+ byte_array_append(bplist_buff, &trailer, sizeof(bplist_trailer_t));
+
+ //set output buffer and size
+ *plist_bin = bplist_buff->data;
+ *length = bplist_buff->len;
+
+ bplist_buff->data = NULL; // make sure we don't free the output buffer
+ byte_array_free(bplist_buff);
+}
diff --git a/lib/plist/bytearray.c b/lib/plist/bytearray.c
new file mode 100755
index 0000000..7d0549b
--- /dev/null
+++ b/lib/plist/bytearray.c
@@ -0,0 +1,61 @@
+/*
+ * bytearray.c
+ * simple byte array implementation
+ *
+ * Copyright (c) 2011 Nikias Bassen, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+#include
+#include "bytearray.h"
+
+#define PAGE_SIZE 4096
+
+bytearray_t *byte_array_new(size_t initial)
+{
+ bytearray_t *a = (bytearray_t*)malloc(sizeof(bytearray_t));
+ a->capacity = (initial > PAGE_SIZE) ? (initial+(PAGE_SIZE-1)) & (~(PAGE_SIZE-1)) : PAGE_SIZE;
+ a->data = malloc(a->capacity);
+ a->len = 0;
+ return a;
+}
+
+void byte_array_free(bytearray_t *ba)
+{
+ if (!ba) return;
+ if (ba->data) {
+ free(ba->data);
+ }
+ free(ba);
+}
+
+void byte_array_grow(bytearray_t *ba, size_t amount)
+{
+ size_t increase = (amount > PAGE_SIZE) ? (amount+(PAGE_SIZE-1)) & (~(PAGE_SIZE-1)) : PAGE_SIZE;
+ ba->data = realloc(ba->data, ba->capacity + increase);
+ ba->capacity += increase;
+}
+
+void byte_array_append(bytearray_t *ba, void *buf, size_t len)
+{
+ if (!ba || !ba->data || (len <= 0)) return;
+ size_t remaining = ba->capacity-ba->len;
+ if (len > remaining) {
+ size_t needed = len - remaining;
+ byte_array_grow(ba, needed);
+ }
+ memcpy(((char*)ba->data) + ba->len, buf, len);
+ ba->len += len;
+}
diff --git a/lib/plist/bytearray.h b/lib/plist/bytearray.h
new file mode 100755
index 0000000..312e2aa
--- /dev/null
+++ b/lib/plist/bytearray.h
@@ -0,0 +1,36 @@
+/*
+ * bytearray.h
+ * header file for simple byte array implementation
+ *
+ * Copyright (c) 2011 Nikias Bassen, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+#ifndef BYTEARRAY_H
+#define BYTEARRAY_H
+#include
+
+typedef struct bytearray_t {
+ void *data;
+ size_t len;
+ size_t capacity;
+} bytearray_t;
+
+bytearray_t *byte_array_new(size_t initial);
+void byte_array_free(bytearray_t *ba);
+void byte_array_grow(bytearray_t *ba, size_t amount);
+void byte_array_append(bytearray_t *ba, void *buf, size_t len);
+
+#endif
diff --git a/lib/plist/cnary.c b/lib/plist/cnary.c
new file mode 100755
index 0000000..07321fc
--- /dev/null
+++ b/lib/plist/cnary.c
@@ -0,0 +1,46 @@
+/*
+ * cnary.c
+ *
+ * Created on: Mar 9, 2011
+ * Author: posixninja
+ *
+ * Copyright (c) 2011 Joshua Hill. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include
+
+#include "node.h"
+
+int main(int argc, char* argv[]) {
+ puts("Creating root node");
+ node_t* root = node_create(NULL, NULL);
+
+ puts("Creating child 1 node");
+ node_t* one = node_create(root, NULL);
+ puts("Creating child 2 node");
+ node_t* two = node_create(root, NULL);
+
+ puts("Creating child 3 node");
+ node_t* three = node_create(one, NULL);
+
+ puts("Debugging root node");
+ node_debug(root);
+
+ puts("Destroying root node");
+ node_destroy(root);
+ return 0;
+}
diff --git a/lib/plist/hashtable.c b/lib/plist/hashtable.c
new file mode 100755
index 0000000..dd6dbfc
--- /dev/null
+++ b/lib/plist/hashtable.c
@@ -0,0 +1,140 @@
+/*
+ * hashtable.c
+ * really simple hash table implementation
+ *
+ * Copyright (c) 2011-2016 Nikias Bassen, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+#include "hashtable.h"
+
+hashtable_t* hash_table_new(hash_func_t hash_func, compare_func_t compare_func, free_func_t free_func)
+{
+ hashtable_t* ht = (hashtable_t*)malloc(sizeof(hashtable_t));
+ int i;
+ for (i = 0; i < 4096; i++) {
+ ht->entries[i] = NULL;
+ }
+ ht->count = 0;
+ ht->hash_func = hash_func;
+ ht->compare_func = compare_func;
+ ht->free_func = free_func;
+ return ht;
+}
+
+void hash_table_destroy(hashtable_t *ht)
+{
+ if (!ht) return;
+
+ int i = 0;
+ for (i = 0; i < 4096; i++) {
+ if (ht->entries[i]) {
+ hashentry_t* e = ht->entries[i];
+ while (e) {
+ if (ht->free_func) {
+ ht->free_func(e->value);
+ }
+ hashentry_t* old = e;
+ e = e->next;
+ free(old);
+ }
+ }
+ }
+ free(ht);
+}
+
+void hash_table_insert(hashtable_t* ht, void *key, void *value)
+{
+ if (!ht || !key) return;
+
+ unsigned int hash = ht->hash_func(key);
+
+ int idx0 = hash & 0xFFF;
+
+ // get the idx0 list
+ hashentry_t* e = ht->entries[idx0];
+ while (e) {
+ if (ht->compare_func(e->key, key)) {
+ // element already present. replace value.
+ e->value = value;
+ return;
+ }
+ e = e->next;
+ }
+
+ // if we get here, the element is not yet in the list.
+
+ // make a new entry.
+ hashentry_t* entry = (hashentry_t*)malloc(sizeof(hashentry_t));
+ entry->key = key;
+ entry->value = value;
+ if (!ht->entries[idx0]) {
+ // first entry
+ entry->next = NULL;
+ } else {
+ // add to list
+ entry->next = ht->entries[idx0];
+ }
+ ht->entries[idx0] = entry;
+ ht->count++;
+}
+
+void* hash_table_lookup(hashtable_t* ht, void *key)
+{
+ if (!ht || !key) return NULL;
+ unsigned int hash = ht->hash_func(key);
+
+ int idx0 = hash & 0xFFF;
+
+ hashentry_t* e = ht->entries[idx0];
+ while (e) {
+ if (ht->compare_func(e->key, key)) {
+ return e->value;
+ }
+ e = e->next;
+ }
+ return NULL;
+}
+
+void hash_table_remove(hashtable_t* ht, void *key)
+{
+ if (!ht || !key) return;
+
+ unsigned int hash = ht->hash_func(key);
+
+ int idx0 = hash & 0xFFF;
+
+ // get the idx0 list
+ hashentry_t* e = ht->entries[idx0];
+ hashentry_t* last = e;
+ while (e) {
+ if (ht->compare_func(e->key, key)) {
+ // found element, remove it from the list
+ hashentry_t* old = e;
+ if (e == ht->entries[idx0]) {
+ ht->entries[idx0] = e->next;
+ } else {
+ last->next = e->next;
+ }
+ if (ht->free_func) {
+ ht->free_func(old->value);
+ }
+ free(old);
+ return;
+ }
+ last = e;
+ e = e->next;
+ }
+}
diff --git a/lib/plist/hashtable.h b/lib/plist/hashtable.h
new file mode 100755
index 0000000..42d7b93
--- /dev/null
+++ b/lib/plist/hashtable.h
@@ -0,0 +1,50 @@
+/*
+ * hashtable.h
+ * header file for really simple hash table implementation
+ *
+ * Copyright (c) 2011-2016 Nikias Bassen, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+#ifndef HASHTABLE_H
+#define HASHTABLE_H
+#include
+
+typedef struct hashentry_t {
+ void *key;
+ void *value;
+ void *next;
+} hashentry_t;
+
+typedef unsigned int(*hash_func_t)(const void* key);
+typedef int (*compare_func_t)(const void *a, const void *b);
+typedef void (*free_func_t)(void *ptr);
+
+typedef struct hashtable_t {
+ hashentry_t *entries[4096];
+ size_t count;
+ hash_func_t hash_func;
+ compare_func_t compare_func;
+ free_func_t free_func;
+} hashtable_t;
+
+hashtable_t* hash_table_new(hash_func_t hash_func, compare_func_t compare_func, free_func_t free_func);
+void hash_table_destroy(hashtable_t *ht);
+
+void hash_table_insert(hashtable_t* ht, void *key, void *value);
+void* hash_table_lookup(hashtable_t* ht, void *key);
+void hash_table_remove(hashtable_t* ht, void *key);
+
+#endif
diff --git a/lib/plist/list.c b/lib/plist/list.c
new file mode 100755
index 0000000..2f05347
--- /dev/null
+++ b/lib/plist/list.c
@@ -0,0 +1,47 @@
+/*
+ * list.c
+ *
+ * Created on: Mar 8, 2011
+ * Author: posixninja
+ *
+ * Copyright (c) 2011 Joshua Hill. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include
+#include
+
+#include "list.h"
+
+void list_init(list_t* list) {
+ list->next = NULL;
+ list->prev = list;
+}
+
+
+void list_destroy(list_t* list) {
+ if(list) {
+ free(list);
+ }
+}
+
+int list_add(list_t* list, object_t* object) {
+ return -1;
+}
+
+int list_remove(list_t* list, object_t* object) {
+ return -1;
+}
diff --git a/lib/plist/list.h b/lib/plist/list.h
new file mode 100755
index 0000000..6b18e6f
--- /dev/null
+++ b/lib/plist/list.h
@@ -0,0 +1,40 @@
+/*
+ * list.h
+ *
+ * Created on: Mar 8, 2011
+ * Author: posixninja
+ *
+ * Copyright (c) 2011 Joshua Hill. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef LIST_H_
+#define LIST_H_
+
+#include "object.h"
+
+typedef struct list_t {
+ void* next;
+ void* prev;
+} list_t;
+
+void list_init(struct list_t* list);
+void list_destroy(struct list_t* list);
+
+int list_add(struct list_t* list, struct object_t* object);
+int list_remove(struct list_t* list, struct object_t* object);
+
+#endif /* LIST_H_ */
diff --git a/lib/plist/node.c b/lib/plist/node.c
new file mode 100755
index 0000000..c24ca7a
--- /dev/null
+++ b/lib/plist/node.c
@@ -0,0 +1,216 @@
+/*
+ * node.c
+ *
+ * Created on: Mar 7, 2011
+ * Author: posixninja
+ *
+ * Copyright (c) 2011 Joshua Hill. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+#include
+#include
+#include
+
+#include "node.h"
+#include "node_list.h"
+
+void node_destroy(node_t* node) {
+ if(!node) return;
+
+ if (node->children && node->children->count > 0) {
+ node_t* ch;
+ while ((ch = node->children->begin)) {
+ node_list_remove(node->children, ch);
+ node_destroy(ch);
+ }
+ }
+ node_list_destroy(node->children);
+ node->children = NULL;
+
+ free(node);
+}
+
+node_t* node_create(node_t* parent, void* data) {
+ int error = 0;
+
+ node_t* node = (node_t*) malloc(sizeof(node_t));
+ if(node == NULL) {
+ return NULL;
+ }
+ memset(node, '\0', sizeof(node_t));
+
+ node->data = data;
+ node->next = NULL;
+ node->prev = NULL;
+ node->count = 0;
+ node->parent = NULL;
+ node->children = NULL;
+
+ // Pass NULL to create a root node
+ if(parent != NULL) {
+ // This is a child node so attach it to it's parent
+ error = node_attach(parent, node);
+ if(error < 0) {
+ // Unable to attach nodes
+ printf("ERROR: %d \"Unable to attach nodes\"\n", error);
+ node_destroy(node);
+ return NULL;
+ }
+ }
+
+ return node;
+}
+
+int node_attach(node_t* parent, node_t* child) {
+ if (!parent || !child) return -1;
+ child->parent = parent;
+ if(!parent->children) {
+ parent->children = node_list_create();
+ }
+ int res = node_list_add(parent->children, child);
+ if (res == 0) {
+ parent->count++;
+ }
+ return res;
+}
+
+int node_detach(node_t* parent, node_t* child) {
+ if (!parent || !child) return -1;
+ int node_index = node_list_remove(parent->children, child);
+ if (node_index >= 0) {
+ parent->count--;
+ }
+ return node_index;
+}
+
+int node_insert(node_t* parent, unsigned int node_index, node_t* child)
+{
+ if (!parent || !child) return -1;
+ child->parent = parent;
+ if(!parent->children) {
+ parent->children = node_list_create();
+ }
+ int res = node_list_insert(parent->children, node_index, child);
+ if (res == 0) {
+ parent->count++;
+ }
+ return res;
+}
+
+static void _node_debug(node_t* node, unsigned int depth) {
+ unsigned int i = 0;
+ node_t* current = NULL;
+ for(i = 0; i < depth; i++) {
+ printf("\t");
+ }
+ if(!node->parent) {
+ printf("ROOT\n");
+ }
+
+ if(!node->children && node->parent) {
+ printf("LEAF\n");
+ } else {
+ if(node->parent) {
+ printf("NODE\n");
+ }
+ for (current = node_first_child(node); current; current = node_next_sibling(current)) {
+ _node_debug(current, depth+1);
+ }
+ }
+
+}
+
+void node_debug(node_t* node)
+{
+ _node_debug(node, 0);
+}
+
+unsigned int node_n_children(struct node_t* node)
+{
+ if (!node) return 0;
+ return node->count;
+}
+
+node_t* node_nth_child(struct node_t* node, unsigned int n)
+{
+ if (!node || !node->children || !node->children->begin) return NULL;
+ unsigned int node_index = 0;
+ int found = 0;
+ node_t *ch;
+ for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) {
+ if (node_index++ == n) {
+ found = 1;
+ break;
+ }
+ }
+ if (!found) {
+ return NULL;
+ }
+ return ch;
+}
+
+node_t* node_first_child(struct node_t* node)
+{
+ if (!node || !node->children) return NULL;
+ return node->children->begin;
+}
+
+node_t* node_prev_sibling(struct node_t* node)
+{
+ if (!node) return NULL;
+ return node->prev;
+}
+
+node_t* node_next_sibling(struct node_t* node)
+{
+ if (!node) return NULL;
+ return node->next;
+}
+
+int node_child_position(struct node_t* parent, node_t* child)
+{
+ if (!parent || !parent->children || !parent->children->begin || !child) return -1;
+ int node_index = 0;
+ int found = 0;
+ node_t *ch;
+ for (ch = node_first_child(parent); ch; ch = node_next_sibling(ch)) {
+ if (ch == child) {
+ found = 1;
+ break;
+ }
+ node_index++;
+ }
+ if (!found) {
+ return -1;
+ }
+ return node_index;
+}
+
+node_t* node_copy_deep(node_t* node, copy_func_t copy_func)
+{
+ if (!node) return NULL;
+ void *data = NULL;
+ if (copy_func) {
+ data = copy_func(node->data);
+ }
+ node_t* copy = node_create(NULL, data);
+ node_t* ch;
+ for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) {
+ node_t* cc = node_copy_deep(ch, copy_func);
+ node_attach(copy, cc);
+ }
+ return copy;
+}
diff --git a/lib/plist/node.h b/lib/plist/node.h
new file mode 100755
index 0000000..7e9da50
--- /dev/null
+++ b/lib/plist/node.h
@@ -0,0 +1,65 @@
+/*
+ * node.h
+ *
+ * Created on: Mar 7, 2011
+ * Author: posixninja
+ *
+ * Copyright (c) 2011 Joshua Hill. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef NODE_H_
+#define NODE_H_
+
+#include "object.h"
+
+#define NODE_TYPE 1;
+
+struct node_list_t;
+
+// This class implements the abstract iterator class
+typedef struct node_t {
+ // Super class
+ struct node_t* next;
+ struct node_t* prev;
+ unsigned int count;
+
+ // Local Members
+ void *data;
+ struct node_t* parent;
+ struct node_list_t* children;
+} node_t;
+
+void node_destroy(struct node_t* node);
+struct node_t* node_create(struct node_t* parent, void* data);
+
+int node_attach(struct node_t* parent, struct node_t* child);
+int node_detach(struct node_t* parent, struct node_t* child);
+int node_insert(struct node_t* parent, unsigned int index, struct node_t* child);
+
+unsigned int node_n_children(struct node_t* node);
+node_t* node_nth_child(struct node_t* node, unsigned int n);
+node_t* node_first_child(struct node_t* node);
+node_t* node_prev_sibling(struct node_t* node);
+node_t* node_next_sibling(struct node_t* node);
+int node_child_position(struct node_t* parent, node_t* child);
+
+typedef void* (*copy_func_t)(const void *src);
+node_t* node_copy_deep(node_t* node, copy_func_t copy_func);
+
+void node_debug(struct node_t* node);
+
+#endif /* NODE_H_ */
diff --git a/lib/plist/node_list.c b/lib/plist/node_list.c
new file mode 100755
index 0000000..dd143bb
--- /dev/null
+++ b/lib/plist/node_list.c
@@ -0,0 +1,154 @@
+/*
+ * node_list.c
+ *
+ * Created on: Mar 8, 2011
+ * Author: posixninja
+ *
+ * Copyright (c) 2011 Joshua Hill. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include
+#include
+#include
+
+#include "list.h"
+#include "node.h"
+#include "node_list.h"
+
+void node_list_destroy(node_list_t* list) {
+ if(list != NULL) {
+ list_destroy((list_t*) list);
+ }
+}
+
+node_list_t* node_list_create() {
+ node_list_t* list = (node_list_t*) malloc(sizeof(node_list_t));
+ if(list == NULL) {
+ return NULL;
+ }
+ memset(list, '\0', sizeof(node_list_t));
+
+ // Initialize structure
+ list_init((list_t*) list);
+ list->count = 0;
+ return list;
+}
+
+int node_list_add(node_list_t* list, node_t* node) {
+ if (!list || !node) return -1;
+
+ // Find the last element in the list
+ node_t* last = list->end;
+
+ // Setup our new node as the new last element
+ node->next = NULL;
+ node->prev = last;
+
+ // Set the next element of our old "last" element
+ if (last) {
+ // but only if the node list is not empty
+ last->next = node;
+ }
+
+ // Set the lists prev to the new last element
+ list->end = node;
+
+ // Increment our node count for this list
+ list->count++;
+ return 0;
+}
+
+int node_list_insert(node_list_t* list, unsigned int node_index, node_t* node) {
+ if (!list || !node) return -1;
+ if (node_index >= list->count) {
+ return node_list_add(list, node);
+ }
+
+ // Get the first element in the list
+ node_t* cur = list->begin;
+
+ unsigned int pos = 0;
+ node_t* prev = NULL;
+
+ if (node_index > 0) {
+ while (pos < node_index) {
+ prev = cur;
+ cur = cur->next;
+ pos++;
+ }
+ }
+
+ if (prev) {
+ // Set previous node
+ node->prev = prev;
+ // Set next node of our new node to next node of the previous node
+ node->next = prev->next;
+ // Set next node of previous node to our new node
+ prev->next = node;
+ } else {
+ node->prev = NULL;
+ // get old first element in list
+ node->next = list->begin;
+ // set new node as first element in list
+ list->begin = node;
+ }
+
+ if (node->next == NULL) {
+ // Set the lists prev to the new last element
+ list->end = node;
+ } else {
+ // set prev of the new next element to our node
+ node->next->prev = node;
+ }
+
+ // Increment our node count for this list
+ list->count++;
+ return 0;
+}
+
+int node_list_remove(node_list_t* list, node_t* node) {
+ if (!list || !node) return -1;
+ if (list->count == 0) return -1;
+
+ int node_index = 0;
+ node_t* n;
+ for (n = list->begin; n; n = n->next) {
+ if (node == n) {
+ node_t* newnode = node->next;
+ if (node->prev) {
+ node->prev->next = newnode;
+ if (newnode) {
+ newnode->prev = node->prev;
+ } else {
+ // last element in the list
+ list->end = node->prev;
+ }
+ } else {
+ // we just removed the first element
+ if (newnode) {
+ newnode->prev = NULL;
+ }
+ list->begin = newnode;
+ }
+ list->count--;
+ return node_index;
+ }
+ node_index++;
+ }
+ return -1;
+}
+
diff --git a/lib/plist/node_list.h b/lib/plist/node_list.h
new file mode 100755
index 0000000..380916e
--- /dev/null
+++ b/lib/plist/node_list.h
@@ -0,0 +1,47 @@
+/*
+ * node_list.h
+ *
+ * Created on: Mar 8, 2011
+ * Author: posixninja
+ *
+ * Copyright (c) 2011 Joshua Hill. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef NODE_LIST_H_
+#define NODE_LIST_H_
+
+struct node_t;
+
+// This class implements the list_t abstract class
+typedef struct node_list_t {
+ // list_t members
+ struct node_t* begin;
+ struct node_t* end;
+
+ // node_list_t members
+ unsigned int count;
+
+} node_list_t;
+
+void node_list_destroy(struct node_list_t* list);
+struct node_list_t* node_list_create();
+
+int node_list_add(node_list_t* list, node_t* node);
+int node_list_insert(node_list_t* list, unsigned int index, node_t* node);
+int node_list_remove(node_list_t* list, node_t* node);
+
+#endif /* NODE_LIST_H_ */
diff --git a/lib/plist/object.h b/lib/plist/object.h
new file mode 100755
index 0000000..b0a8cd8
--- /dev/null
+++ b/lib/plist/object.h
@@ -0,0 +1,41 @@
+/*
+ * object.h
+ *
+ * Created on: Mar 8, 2011
+ * Author: posixninja
+ *
+ * Copyright (c) 2011 Joshua Hill. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef OBJECT_H_
+#define OBJECT_H_
+
+#ifndef TRUE
+#define TRUE 1
+#endif
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+
+typedef struct object_t {
+ void* value;
+ unsigned int type;
+ unsigned int size;
+} object_t;
+
+#endif /* OBJECT_H_ */
diff --git a/lib/plist/plist.c b/lib/plist/plist.c
new file mode 100755
index 0000000..dbeafd1
--- /dev/null
+++ b/lib/plist/plist.c
@@ -0,0 +1,963 @@
+/*
+ * plist.c
+ * Builds plist XML structures
+ *
+ * Copyright (c) 2009-2016 Nikias Bassen All Rights Reserved.
+ * Copyright (c) 2010-2015 Martin Szulecki All Rights Reserved.
+ * Copyright (c) 2008 Zach C. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+#include
+#include
+#include "plist.h"
+#include
+#include
+#include
+
+#ifdef WIN32
+#include
+#else
+#include
+#endif
+
+#include "node.h"
+#include "hashtable.h"
+
+extern void plist_xml_init(void);
+extern void plist_xml_deinit(void);
+extern void plist_bin_init(void);
+extern void plist_bin_deinit(void);
+
+static void internal_plist_init(void)
+{
+ plist_bin_init();
+ plist_xml_init();
+}
+
+static void internal_plist_deinit(void)
+{
+ plist_bin_deinit();
+ plist_xml_deinit();
+}
+
+#ifdef WIN32
+
+typedef volatile struct {
+ LONG lock;
+ int state;
+} thread_once_t;
+
+static thread_once_t init_once = {0, 0};
+static thread_once_t deinit_once = {0, 0};
+
+void thread_once(thread_once_t *once_control, void (*init_routine)(void))
+{
+ while (InterlockedExchange(&(once_control->lock), 1) != 0) {
+ Sleep(1);
+ }
+ if (!once_control->state) {
+ once_control->state = 1;
+ init_routine();
+ }
+ InterlockedExchange(&(once_control->lock), 0);
+}
+
+BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
+{
+ switch (dwReason) {
+ case DLL_PROCESS_ATTACH:
+ thread_once(&init_once, internal_plist_init);
+ break;
+ case DLL_PROCESS_DETACH:
+ thread_once(&deinit_once, internal_plist_deinit);
+ break;
+ default:
+ break;
+ }
+ return 1;
+}
+
+#else
+
+static pthread_once_t init_once = PTHREAD_ONCE_INIT;
+static pthread_once_t deinit_once = PTHREAD_ONCE_INIT;
+
+static void __attribute__((constructor)) libplist_initialize(void)
+{
+ pthread_once(&init_once, internal_plist_init);
+}
+
+static void __attribute__((destructor)) libplist_deinitialize(void)
+{
+ pthread_once(&deinit_once, internal_plist_deinit);
+}
+
+#endif
+
+
+PLIST_API int plist_is_binary(const char *plist_data, uint32_t length)
+{
+ if (length < 8) {
+ return 0;
+ }
+
+ return (memcmp(plist_data, "bplist00", 8) == 0);
+}
+
+
+PLIST_API void plist_from_memory(const char *plist_data, uint32_t length, plist_t * plist)
+{
+ if (length < 8) {
+ *plist = NULL;
+ return;
+ }
+
+ if (plist_is_binary(plist_data, length)) {
+ plist_from_bin(plist_data, length, plist);
+ } else {
+ plist_from_xml(plist_data, length, plist);
+ }
+}
+
+plist_t plist_new_node(plist_data_t data)
+{
+ return (plist_t) node_create(NULL, data);
+}
+
+plist_data_t plist_get_data(const plist_t node)
+{
+ if (!node)
+ return NULL;
+ return ((node_t*)node)->data;
+}
+
+plist_data_t plist_new_plist_data(void)
+{
+ plist_data_t data = (plist_data_t) calloc(sizeof(struct plist_data_s), 1);
+ return data;
+}
+
+static unsigned int dict_key_hash(const void *data)
+{
+ plist_data_t keydata = (plist_data_t)data;
+ unsigned int hash = 5381;
+ size_t i;
+ char *str = keydata->strval;
+ for (i = 0; i < keydata->length; str++, i++) {
+ hash = ((hash << 5) + hash) + *str;
+ }
+ return hash;
+}
+
+static int dict_key_compare(const void* a, const void* b)
+{
+ plist_data_t data_a = (plist_data_t)a;
+ plist_data_t data_b = (plist_data_t)b;
+ if (data_a->strval == NULL || data_b->strval == NULL) {
+ return FALSE;
+ }
+ if (data_a->length != data_b->length) {
+ return FALSE;
+ }
+ return (strcmp(data_a->strval, data_b->strval) == 0) ? TRUE : FALSE;
+}
+
+void plist_free_data(plist_data_t data)
+{
+ if (data)
+ {
+ switch (data->type)
+ {
+ case PLIST_KEY:
+ case PLIST_STRING:
+ free(data->strval);
+ break;
+ case PLIST_DATA:
+ free(data->buff);
+ break;
+ case PLIST_DICT:
+ hash_table_destroy(data->hashtable);
+ break;
+ default:
+ break;
+ }
+ free(data);
+ }
+}
+
+static int plist_free_node(node_t* node)
+{
+ plist_data_t data = NULL;
+ int node_index = node_detach(node->parent, node);
+ data = plist_get_data(node);
+ plist_free_data(data);
+ node->data = NULL;
+
+ node_t *ch;
+ for (ch = node_first_child(node); ch; ) {
+ node_t *next = node_next_sibling(ch);
+ plist_free_node(ch);
+ ch = next;
+ }
+
+ node_destroy(node);
+
+ return node_index;
+}
+
+PLIST_API plist_t plist_new_dict(void)
+{
+ plist_data_t data = plist_new_plist_data();
+ data->type = PLIST_DICT;
+ return plist_new_node(data);
+}
+
+PLIST_API plist_t plist_new_array(void)
+{
+ plist_data_t data = plist_new_plist_data();
+ data->type = PLIST_ARRAY;
+ return plist_new_node(data);
+}
+
+//These nodes should not be handled by users
+static plist_t plist_new_key(const char *val)
+{
+ plist_data_t data = plist_new_plist_data();
+ data->type = PLIST_KEY;
+ data->strval = strdup(val);
+ data->length = strlen(val);
+ return plist_new_node(data);
+}
+
+PLIST_API plist_t plist_new_string(const char *val)
+{
+ plist_data_t data = plist_new_plist_data();
+ data->type = PLIST_STRING;
+ data->strval = strdup(val);
+ data->length = strlen(val);
+ return plist_new_node(data);
+}
+
+PLIST_API plist_t plist_new_bool(uint8_t val)
+{
+ plist_data_t data = plist_new_plist_data();
+ data->type = PLIST_BOOLEAN;
+ data->boolval = val;
+ data->length = sizeof(uint8_t);
+ return plist_new_node(data);
+}
+
+PLIST_API plist_t plist_new_uint(uint64_t val)
+{
+ plist_data_t data = plist_new_plist_data();
+ data->type = PLIST_UINT;
+ data->intval = val;
+ data->length = sizeof(uint64_t);
+ return plist_new_node(data);
+}
+
+PLIST_API plist_t plist_new_uid(uint64_t val)
+{
+ plist_data_t data = plist_new_plist_data();
+ data->type = PLIST_UID;
+ data->intval = val;
+ data->length = sizeof(uint64_t);
+ return plist_new_node(data);
+}
+
+PLIST_API plist_t plist_new_real(double val)
+{
+ plist_data_t data = plist_new_plist_data();
+ data->type = PLIST_REAL;
+ data->realval = val;
+ data->length = sizeof(double);
+ return plist_new_node(data);
+}
+
+PLIST_API plist_t plist_new_data(const char *val, uint64_t length)
+{
+ plist_data_t data = plist_new_plist_data();
+ data->type = PLIST_DATA;
+ data->buff = (uint8_t *) malloc(length);
+ memcpy(data->buff, val, length);
+ data->length = length;
+ return plist_new_node(data);
+}
+
+PLIST_API plist_t plist_new_date(int32_t sec, int32_t usec)
+{
+ plist_data_t data = plist_new_plist_data();
+ data->type = PLIST_DATE;
+ data->realval = (double)sec + (double)usec / 1000000;
+ data->length = sizeof(double);
+ return plist_new_node(data);
+}
+
+PLIST_API void plist_free(plist_t plist)
+{
+ if (plist)
+ {
+ plist_free_node(plist);
+ }
+}
+
+static void plist_copy_node(node_t *node, void *parent_node_ptr)
+{
+ plist_type node_type = PLIST_NONE;
+ plist_t newnode = NULL;
+ plist_data_t data = plist_get_data(node);
+ plist_data_t newdata = plist_new_plist_data();
+
+ assert(data); // plist should always have data
+
+ memcpy(newdata, data, sizeof(struct plist_data_s));
+
+ node_type = plist_get_node_type(node);
+ switch (node_type) {
+ case PLIST_DATA:
+ newdata->buff = (uint8_t *) malloc(data->length);
+ memcpy(newdata->buff, data->buff, data->length);
+ break;
+ case PLIST_KEY:
+ case PLIST_STRING:
+ newdata->strval = strdup((char *) data->strval);
+ break;
+ case PLIST_DICT:
+ if (data->hashtable) {
+ hashtable_t* ht = hash_table_new(dict_key_hash, dict_key_compare, NULL);
+ assert(ht);
+ plist_t current = NULL;
+ for (current = (plist_t)node_first_child(node);
+ ht && current;
+ current = (plist_t)node_next_sibling(node_next_sibling(current)))
+ {
+ hash_table_insert(ht, ((node_t*)current)->data, node_next_sibling(current));
+ }
+ newdata->hashtable = ht;
+ }
+ break;
+ default:
+ break;
+ }
+ newnode = plist_new_node(newdata);
+
+ if (*(plist_t*)parent_node_ptr)
+ {
+ node_attach(*(plist_t*)parent_node_ptr, newnode);
+ }
+ else
+ {
+ *(plist_t*)parent_node_ptr = newnode;
+ }
+
+ node_t *ch;
+ for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) {
+ plist_copy_node(ch, &newnode);
+ }
+}
+
+PLIST_API plist_t plist_copy(plist_t node)
+{
+ plist_t copied = NULL;
+ plist_copy_node(node, &copied);
+ return copied;
+}
+
+PLIST_API uint32_t plist_array_get_size(plist_t node)
+{
+ uint32_t ret = 0;
+ if (node && PLIST_ARRAY == plist_get_node_type(node))
+ {
+ ret = node_n_children(node);
+ }
+ return ret;
+}
+
+PLIST_API plist_t plist_array_get_item(plist_t node, uint32_t n)
+{
+ plist_t ret = NULL;
+ if (node && PLIST_ARRAY == plist_get_node_type(node))
+ {
+ ret = (plist_t)node_nth_child(node, n);
+ }
+ return ret;
+}
+
+PLIST_API uint32_t plist_array_get_item_index(plist_t node)
+{
+ plist_t father = plist_get_parent(node);
+ if (PLIST_ARRAY == plist_get_node_type(father))
+ {
+ return node_child_position(father, node);
+ }
+ return 0;
+}
+
+PLIST_API void plist_array_set_item(plist_t node, plist_t item, uint32_t n)
+{
+ if (node && PLIST_ARRAY == plist_get_node_type(node))
+ {
+ plist_t old_item = plist_array_get_item(node, n);
+ if (old_item)
+ {
+ int idx = plist_free_node(old_item);
+ if (idx < 0) {
+ node_attach(node, item);
+ } else {
+ node_insert(node, idx, item);
+ }
+ }
+ }
+ return;
+}
+
+PLIST_API void plist_array_append_item(plist_t node, plist_t item)
+{
+ if (node && PLIST_ARRAY == plist_get_node_type(node))
+ {
+ node_attach(node, item);
+ }
+ return;
+}
+
+PLIST_API void plist_array_insert_item(plist_t node, plist_t item, uint32_t n)
+{
+ if (node && PLIST_ARRAY == plist_get_node_type(node))
+ {
+ node_insert(node, n, item);
+ }
+ return;
+}
+
+PLIST_API void plist_array_remove_item(plist_t node, uint32_t n)
+{
+ if (node && PLIST_ARRAY == plist_get_node_type(node))
+ {
+ plist_t old_item = plist_array_get_item(node, n);
+ if (old_item)
+ {
+ plist_free(old_item);
+ }
+ }
+ return;
+}
+
+PLIST_API uint32_t plist_dict_get_size(plist_t node)
+{
+ uint32_t ret = 0;
+ if (node && PLIST_DICT == plist_get_node_type(node))
+ {
+ ret = node_n_children(node) / 2;
+ }
+ return ret;
+}
+
+PLIST_API void plist_dict_new_iter(plist_t node, plist_dict_iter *iter)
+{
+ if (iter && *iter == NULL)
+ {
+ *iter = malloc(sizeof(node_t*));
+ *((node_t**)(*iter)) = node_first_child(node);
+ }
+ return;
+}
+
+PLIST_API void plist_dict_next_item(plist_t node, plist_dict_iter iter, char **key, plist_t *val)
+{
+ node_t** iter_node = (node_t**)iter;
+
+ if (key)
+ {
+ *key = NULL;
+ }
+ if (val)
+ {
+ *val = NULL;
+ }
+
+ if (node && PLIST_DICT == plist_get_node_type(node) && *iter_node)
+ {
+ if (key)
+ {
+ plist_get_key_val((plist_t)(*iter_node), key);
+ }
+ *iter_node = node_next_sibling(*iter_node);
+ if (val)
+ {
+ *val = (plist_t)(*iter_node);
+ }
+ *iter_node = node_next_sibling(*iter_node);
+ }
+ return;
+}
+
+PLIST_API void plist_dict_get_item_key(plist_t node, char **key)
+{
+ plist_t father = plist_get_parent(node);
+ if (PLIST_DICT == plist_get_node_type(father))
+ {
+ plist_get_key_val( (plist_t) node_prev_sibling(node), key);
+ }
+}
+
+PLIST_API plist_t plist_dict_get_item(plist_t node, const char* key)
+{
+ plist_t ret = NULL;
+
+ if (node && PLIST_DICT == plist_get_node_type(node))
+ {
+ plist_data_t data = plist_get_data(node);
+ hashtable_t *ht = (hashtable_t*)data->hashtable;
+ if (ht) {
+ struct plist_data_s sdata;
+ sdata.strval = (char*)key;
+ sdata.length = strlen(key);
+ ret = (plist_t)hash_table_lookup(ht, &sdata);
+ } else {
+ plist_t current = NULL;
+ for (current = (plist_t)node_first_child(node);
+ current;
+ current = (plist_t)node_next_sibling(node_next_sibling(current)))
+ {
+ data = plist_get_data(current);
+ assert( PLIST_KEY == plist_get_node_type(current) );
+
+ if (data && !strcmp(key, data->strval))
+ {
+ ret = (plist_t)node_next_sibling(current);
+ break;
+ }
+ }
+ }
+ }
+ return ret;
+}
+
+PLIST_API void plist_dict_set_item(plist_t node, const char* key, plist_t item)
+{
+ if (node && PLIST_DICT == plist_get_node_type(node)) {
+ node_t* old_item = plist_dict_get_item(node, key);
+ plist_t key_node = NULL;
+ if (old_item) {
+ int idx = plist_free_node(old_item);
+ if (idx < 0) {
+ node_attach(node, item);
+ } else {
+ node_insert(node, idx, item);
+ }
+ key_node = node_prev_sibling(item);
+ } else {
+ key_node = plist_new_key(key);
+ node_attach(node, key_node);
+ node_attach(node, item);
+ }
+
+ hashtable_t *ht = ((plist_data_t)((node_t*)node)->data)->hashtable;
+ if (ht) {
+ /* store pointer to item in hash table */
+ hash_table_insert(ht, (plist_data_t)((node_t*)key_node)->data, item);
+ } else {
+ if (((node_t*)node)->count > 500) {
+ /* make new hash table */
+ ht = hash_table_new(dict_key_hash, dict_key_compare, NULL);
+ /* calculate the hashes for all entries we have so far */
+ plist_t current = NULL;
+ for (current = (plist_t)node_first_child(node);
+ ht && current;
+ current = (plist_t)node_next_sibling(node_next_sibling(current)))
+ {
+ hash_table_insert(ht, ((node_t*)current)->data, node_next_sibling(current));
+ }
+ ((plist_data_t)((node_t*)node)->data)->hashtable = ht;
+ }
+ }
+ }
+ return;
+}
+
+PLIST_API void plist_dict_insert_item(plist_t node, const char* key, plist_t item)
+{
+ plist_dict_set_item(node, key, item);
+}
+
+PLIST_API void plist_dict_remove_item(plist_t node, const char* key)
+{
+ if (node && PLIST_DICT == plist_get_node_type(node))
+ {
+ plist_t old_item = plist_dict_get_item(node, key);
+ if (old_item)
+ {
+ plist_t key_node = node_prev_sibling(old_item);
+ hashtable_t* ht = ((plist_data_t)((node_t*)node)->data)->hashtable;
+ if (ht) {
+ hash_table_remove(ht, ((node_t*)key_node)->data);
+ }
+ plist_free(key_node);
+ plist_free(old_item);
+ }
+ }
+ return;
+}
+
+PLIST_API void plist_dict_merge(plist_t *target, plist_t source)
+{
+ if (!target || !*target || (plist_get_node_type(*target) != PLIST_DICT) || !source || (plist_get_node_type(source) != PLIST_DICT))
+ return;
+
+ char* key = NULL;
+ plist_dict_iter it = NULL;
+ plist_t subnode = NULL;
+ plist_dict_new_iter(source, &it);
+ if (!it)
+ return;
+
+ do {
+ plist_dict_next_item(source, it, &key, &subnode);
+ if (!key)
+ break;
+
+ plist_dict_set_item(*target, key, plist_copy(subnode));
+ free(key);
+ key = NULL;
+ } while (1);
+ free(it);
+}
+
+PLIST_API plist_t plist_access_pathv(plist_t plist, uint32_t length, va_list v)
+{
+ plist_t current = plist;
+ plist_type type = PLIST_NONE;
+ uint32_t i = 0;
+
+ for (i = 0; i < length && current; i++)
+ {
+ type = plist_get_node_type(current);
+
+ if (type == PLIST_ARRAY)
+ {
+ uint32_t n = va_arg(v, uint32_t);
+ current = plist_array_get_item(current, n);
+ }
+ else if (type == PLIST_DICT)
+ {
+ const char* key = va_arg(v, const char*);
+ current = plist_dict_get_item(current, key);
+ }
+ }
+ return current;
+}
+
+PLIST_API plist_t plist_access_path(plist_t plist, uint32_t length, ...)
+{
+ plist_t ret = NULL;
+ va_list v;
+
+ va_start(v, length);
+ ret = plist_access_pathv(plist, length, v);
+ va_end(v);
+ return ret;
+}
+
+static void plist_get_type_and_value(plist_t node, plist_type * type, void *value, uint64_t * length)
+{
+ plist_data_t data = NULL;
+
+ if (!node)
+ return;
+
+ data = plist_get_data(node);
+
+ *type = data->type;
+ *length = data->length;
+
+ switch (*type)
+ {
+ case PLIST_BOOLEAN:
+ *((char *) value) = data->boolval;
+ break;
+ case PLIST_UINT:
+ case PLIST_UID:
+ *((uint64_t *) value) = data->intval;
+ break;
+ case PLIST_REAL:
+ case PLIST_DATE:
+ *((double *) value) = data->realval;
+ break;
+ case PLIST_KEY:
+ case PLIST_STRING:
+ *((char **) value) = strdup(data->strval);
+ break;
+ case PLIST_DATA:
+ *((uint8_t **) value) = (uint8_t *) malloc(*length * sizeof(uint8_t));
+ memcpy(*((uint8_t **) value), data->buff, *length * sizeof(uint8_t));
+ break;
+ case PLIST_ARRAY:
+ case PLIST_DICT:
+ default:
+ break;
+ }
+}
+
+PLIST_API plist_t plist_get_parent(plist_t node)
+{
+ return node ? (plist_t) ((node_t*) node)->parent : NULL;
+}
+
+PLIST_API plist_type plist_get_node_type(plist_t node)
+{
+ if (node)
+ {
+ plist_data_t data = plist_get_data(node);
+ if (data)
+ return data->type;
+ }
+ return PLIST_NONE;
+}
+
+PLIST_API void plist_get_key_val(plist_t node, char **val)
+{
+ plist_type type = plist_get_node_type(node);
+ uint64_t length = 0;
+ if (PLIST_KEY == type)
+ plist_get_type_and_value(node, &type, (void *) val, &length);
+ assert(length == strlen(*val));
+}
+
+PLIST_API void plist_get_string_val(plist_t node, char **val)
+{
+ plist_type type = plist_get_node_type(node);
+ uint64_t length = 0;
+ if (PLIST_STRING == type)
+ plist_get_type_and_value(node, &type, (void *) val, &length);
+ assert(length == strlen(*val));
+}
+
+PLIST_API void plist_get_bool_val(plist_t node, uint8_t * val)
+{
+ plist_type type = plist_get_node_type(node);
+ uint64_t length = 0;
+ if (PLIST_BOOLEAN == type)
+ plist_get_type_and_value(node, &type, (void *) val, &length);
+ assert(length == sizeof(uint8_t));
+}
+
+PLIST_API void plist_get_uint_val(plist_t node, uint64_t * val)
+{
+ plist_type type = plist_get_node_type(node);
+ uint64_t length = 0;
+ if (PLIST_UINT == type)
+ plist_get_type_and_value(node, &type, (void *) val, &length);
+ assert(length == sizeof(uint64_t) || length == 16);
+}
+
+PLIST_API void plist_get_uid_val(plist_t node, uint64_t * val)
+{
+ plist_type type = plist_get_node_type(node);
+ uint64_t length = 0;
+ if (PLIST_UID == type)
+ plist_get_type_and_value(node, &type, (void *) val, &length);
+ assert(length == sizeof(uint64_t));
+}
+
+PLIST_API void plist_get_real_val(plist_t node, double *val)
+{
+ plist_type type = plist_get_node_type(node);
+ uint64_t length = 0;
+ if (PLIST_REAL == type)
+ plist_get_type_and_value(node, &type, (void *) val, &length);
+ assert(length == sizeof(double));
+}
+
+PLIST_API void plist_get_data_val(plist_t node, char **val, uint64_t * length)
+{
+ plist_type type = plist_get_node_type(node);
+ if (PLIST_DATA == type)
+ plist_get_type_and_value(node, &type, (void *) val, length);
+}
+
+PLIST_API void plist_get_date_val(plist_t node, int32_t * sec, int32_t * usec)
+{
+ plist_type type = plist_get_node_type(node);
+ uint64_t length = 0;
+ double val = 0;
+ if (PLIST_DATE == type)
+ plist_get_type_and_value(node, &type, (void *) &val, &length);
+ assert(length == sizeof(double));
+ *sec = (int32_t)val;
+ *usec = (int32_t)fabs((val - (int64_t)val) * 1000000);
+}
+
+int plist_data_compare(const void *a, const void *b)
+{
+ plist_data_t val_a = NULL;
+ plist_data_t val_b = NULL;
+
+ if (!a || !b)
+ return FALSE;
+
+ if (!((node_t*) a)->data || !((node_t*) b)->data)
+ return FALSE;
+
+ val_a = plist_get_data((plist_t) a);
+ val_b = plist_get_data((plist_t) b);
+
+ if (val_a->type != val_b->type)
+ return FALSE;
+
+ switch (val_a->type)
+ {
+ case PLIST_BOOLEAN:
+ case PLIST_UINT:
+ case PLIST_REAL:
+ case PLIST_DATE:
+ case PLIST_UID:
+ if (val_a->length != val_b->length)
+ return FALSE;
+ if (val_a->intval == val_b->intval) //it is an union so this is sufficient
+ return TRUE;
+ else
+ return FALSE;
+
+ case PLIST_KEY:
+ case PLIST_STRING:
+ if (!strcmp(val_a->strval, val_b->strval))
+ return TRUE;
+ else
+ return FALSE;
+
+ case PLIST_DATA:
+ if (val_a->length != val_b->length)
+ return FALSE;
+ if (!memcmp(val_a->buff, val_b->buff, val_a->length))
+ return TRUE;
+ else
+ return FALSE;
+ case PLIST_ARRAY:
+ case PLIST_DICT:
+ //compare pointer
+ if (a == b)
+ return TRUE;
+ else
+ return FALSE;
+ break;
+ default:
+ break;
+ }
+ return FALSE;
+}
+
+PLIST_API char plist_compare_node_value(plist_t node_l, plist_t node_r)
+{
+ return plist_data_compare(node_l, node_r);
+}
+
+static void plist_set_element_val(plist_t node, plist_type type, const void *value, uint64_t length)
+{
+ //free previous allocated buffer
+ plist_data_t data = plist_get_data(node);
+ assert(data); // a node should always have data attached
+
+ switch (data->type)
+ {
+ case PLIST_KEY:
+ case PLIST_STRING:
+ free(data->strval);
+ data->strval = NULL;
+ break;
+ case PLIST_DATA:
+ free(data->buff);
+ data->buff = NULL;
+ break;
+ default:
+ break;
+ }
+
+ //now handle value
+
+ data->type = type;
+ data->length = length;
+
+ switch (type)
+ {
+ case PLIST_BOOLEAN:
+ data->boolval = *((char *) value);
+ break;
+ case PLIST_UINT:
+ case PLIST_UID:
+ data->intval = *((uint64_t *) value);
+ break;
+ case PLIST_REAL:
+ case PLIST_DATE:
+ data->realval = *((double *) value);
+ break;
+ case PLIST_KEY:
+ case PLIST_STRING:
+ data->strval = strdup((char *) value);
+ break;
+ case PLIST_DATA:
+ data->buff = (uint8_t *) malloc(length);
+ memcpy(data->buff, value, length);
+ break;
+ case PLIST_ARRAY:
+ case PLIST_DICT:
+ default:
+ break;
+ }
+}
+
+PLIST_API void plist_set_key_val(plist_t node, const char *val)
+{
+ plist_set_element_val(node, PLIST_KEY, val, strlen(val));
+}
+
+PLIST_API void plist_set_string_val(plist_t node, const char *val)
+{
+ plist_set_element_val(node, PLIST_STRING, val, strlen(val));
+}
+
+PLIST_API void plist_set_bool_val(plist_t node, uint8_t val)
+{
+ plist_set_element_val(node, PLIST_BOOLEAN, &val, sizeof(uint8_t));
+}
+
+PLIST_API void plist_set_uint_val(plist_t node, uint64_t val)
+{
+ plist_set_element_val(node, PLIST_UINT, &val, sizeof(uint64_t));
+}
+
+PLIST_API void plist_set_uid_val(plist_t node, uint64_t val)
+{
+ plist_set_element_val(node, PLIST_UID, &val, sizeof(uint64_t));
+}
+
+PLIST_API void plist_set_real_val(plist_t node, double val)
+{
+ plist_set_element_val(node, PLIST_REAL, &val, sizeof(double));
+}
+
+PLIST_API void plist_set_data_val(plist_t node, const char *val, uint64_t length)
+{
+ plist_set_element_val(node, PLIST_DATA, val, length);
+}
+
+PLIST_API void plist_set_date_val(plist_t node, int32_t sec, int32_t usec)
+{
+ double val = (double)sec + (double)usec / 1000000;
+ plist_set_element_val(node, PLIST_DATE, &val, sizeof(struct timeval));
+}
+
diff --git a/lib/plist/plist.h b/lib/plist/plist.h
new file mode 100755
index 0000000..7bf62a8
--- /dev/null
+++ b/lib/plist/plist.h
@@ -0,0 +1,74 @@
+/*
+ * plist.h
+ * contains structures and the like for plists
+ *
+ * Copyright (c) 2008 Zach C. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef PLIST_H
+#define PLIST_H
+
+#ifdef HAVE_CONFIG_H
+#include
+#endif
+
+#include "plist/plist.h"
+
+#include
+#include
+#include
+
+#ifdef _MSC_VER
+#pragma warning(disable:4996)
+#pragma warning(disable:4244)
+#endif
+
+#ifdef WIN32
+ #define PLIST_API __declspec( dllexport )
+#else
+ #ifdef HAVE_FVISIBILITY
+ #define PLIST_API __attribute__((visibility("default")))
+ #else
+ #define PLIST_API
+ #endif
+#endif
+
+struct plist_data_s
+{
+ union
+ {
+ char boolval;
+ uint64_t intval;
+ double realval;
+ char *strval;
+ uint8_t *buff;
+ void *hashtable;
+ };
+ uint64_t length;
+ plist_type type;
+};
+
+typedef struct plist_data_s *plist_data_t;
+
+plist_t plist_new_node(plist_data_t data);
+plist_data_t plist_get_data(const plist_t node);
+plist_data_t plist_new_plist_data(void);
+void plist_free_data(plist_data_t data);
+int plist_data_compare(const void *a, const void *b);
+
+
+#endif
diff --git a/lib/plist/plist/plist.h b/lib/plist/plist/plist.h
new file mode 100755
index 0000000..e817b4b
--- /dev/null
+++ b/lib/plist/plist/plist.h
@@ -0,0 +1,686 @@
+/**
+ * @file plist/plist.h
+ * @brief Main include of libplist
+ * \internal
+ *
+ * Copyright (c) 2008 Jonathan Beck All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef LIBPLIST_H
+#define LIBPLIST_H
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#ifdef _MSC_VER
+ typedef __int8 int8_t;
+ typedef __int16 int16_t;
+ typedef __int32 int32_t;
+ typedef __int64 int64_t;
+
+ typedef unsigned __int8 uint8_t;
+ typedef unsigned __int16 uint16_t;
+ typedef unsigned __int32 uint32_t;
+ typedef unsigned __int64 uint64_t;
+
+#else
+#include
+#endif
+
+#ifdef __llvm__
+ #if defined(__has_extension)
+ #if (__has_extension(attribute_deprecated_with_message))
+ #ifndef PLIST_WARN_DEPRECATED
+ #define PLIST_WARN_DEPRECATED(x) __attribute__((deprecated(x)))
+ #endif
+ #else
+ #ifndef PLIST_WARN_DEPRECATED
+ #define PLIST_WARN_DEPRECATED(x) __attribute__((deprecated))
+ #endif
+ #endif
+ #else
+ #ifndef PLIST_WARN_DEPRECATED
+ #define PLIST_WARN_DEPRECATED(x) __attribute__((deprecated))
+ #endif
+ #endif
+#elif (__GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 5)))
+ #ifndef PLIST_WARN_DEPRECATED
+ #define PLIST_WARN_DEPRECATED(x) __attribute__((deprecated(x)))
+ #endif
+#elif defined(_MSC_VER)
+ #ifndef PLIST_WARN_DEPRECATED
+ #define PLIST_WARN_DEPRECATED(x) __declspec(deprecated(x))
+ #endif
+#else
+ #define PLIST_WARN_DEPRECATED(x)
+ #pragma message("WARNING: You need to implement DEPRECATED for this compiler")
+#endif
+
+#include
+#include
+
+ /**
+ * \mainpage libplist : A library to handle Apple Property Lists
+ * \defgroup PublicAPI Public libplist API
+ */
+ /*@{*/
+
+
+ /**
+ * The basic plist abstract data type.
+ */
+ typedef void *plist_t;
+
+ /**
+ * The plist dictionary iterator.
+ */
+ typedef void *plist_dict_iter;
+
+ /**
+ * The enumeration of plist node types.
+ */
+ typedef enum
+ {
+ PLIST_BOOLEAN, /**< Boolean, scalar type */
+ PLIST_UINT, /**< Unsigned integer, scalar type */
+ PLIST_REAL, /**< Real, scalar type */
+ PLIST_STRING, /**< ASCII string, scalar type */
+ PLIST_ARRAY, /**< Ordered array, structured type */
+ PLIST_DICT, /**< Unordered dictionary (key/value pair), structured type */
+ PLIST_DATE, /**< Date, scalar type */
+ PLIST_DATA, /**< Binary data, scalar type */
+ PLIST_KEY, /**< Key in dictionaries (ASCII String), scalar type */
+ PLIST_UID, /**< Special type used for 'keyed encoding' */
+ PLIST_NONE /**< No type */
+ } plist_type;
+
+
+ /********************************************
+ * *
+ * Creation & Destruction *
+ * *
+ ********************************************/
+
+ /**
+ * Create a new root plist_t type #PLIST_DICT
+ *
+ * @return the created plist
+ * @sa #plist_type
+ */
+ plist_t plist_new_dict(void);
+
+ /**
+ * Create a new root plist_t type #PLIST_ARRAY
+ *
+ * @return the created plist
+ * @sa #plist_type
+ */
+ plist_t plist_new_array(void);
+
+ /**
+ * Create a new plist_t type #PLIST_STRING
+ *
+ * @param val the sting value, encoded in UTF8.
+ * @return the created item
+ * @sa #plist_type
+ */
+ plist_t plist_new_string(const char *val);
+
+ /**
+ * Create a new plist_t type #PLIST_BOOLEAN
+ *
+ * @param val the boolean value, 0 is false, other values are true.
+ * @return the created item
+ * @sa #plist_type
+ */
+ plist_t plist_new_bool(uint8_t val);
+
+ /**
+ * Create a new plist_t type #PLIST_UINT
+ *
+ * @param val the unsigned integer value
+ * @return the created item
+ * @sa #plist_type
+ */
+ plist_t plist_new_uint(uint64_t val);
+
+ /**
+ * Create a new plist_t type #PLIST_REAL
+ *
+ * @param val the real value
+ * @return the created item
+ * @sa #plist_type
+ */
+ plist_t plist_new_real(double val);
+
+ /**
+ * Create a new plist_t type #PLIST_DATA
+ *
+ * @param val the binary buffer
+ * @param length the length of the buffer
+ * @return the created item
+ * @sa #plist_type
+ */
+ plist_t plist_new_data(const char *val, uint64_t length);
+
+ /**
+ * Create a new plist_t type #PLIST_DATE
+ *
+ * @param sec the number of seconds since 01/01/2001
+ * @param usec the number of microseconds
+ * @return the created item
+ * @sa #plist_type
+ */
+ plist_t plist_new_date(int32_t sec, int32_t usec);
+
+ /**
+ * Create a new plist_t type #PLIST_UID
+ *
+ * @param val the unsigned integer value
+ * @return the created item
+ * @sa #plist_type
+ */
+ plist_t plist_new_uid(uint64_t val);
+
+ /**
+ * Destruct a plist_t node and all its children recursively
+ *
+ * @param plist the plist to free
+ */
+ void plist_free(plist_t plist);
+
+ /**
+ * Return a copy of passed node and it's children
+ *
+ * @param node the plist to copy
+ * @return copied plist
+ */
+ plist_t plist_copy(plist_t node);
+
+
+ /********************************************
+ * *
+ * Array functions *
+ * *
+ ********************************************/
+
+ /**
+ * Get size of a #PLIST_ARRAY node.
+ *
+ * @param node the node of type #PLIST_ARRAY
+ * @return size of the #PLIST_ARRAY node
+ */
+ uint32_t plist_array_get_size(plist_t node);
+
+ /**
+ * Get the nth item in a #PLIST_ARRAY node.
+ *
+ * @param node the node of type #PLIST_ARRAY
+ * @param n the index of the item to get. Range is [0, array_size[
+ * @return the nth item or NULL if node is not of type #PLIST_ARRAY
+ */
+ plist_t plist_array_get_item(plist_t node, uint32_t n);
+
+ /**
+ * Get the index of an item. item must be a member of a #PLIST_ARRAY node.
+ *
+ * @param node the node
+ * @return the node index
+ */
+ uint32_t plist_array_get_item_index(plist_t node);
+
+ /**
+ * Set the nth item in a #PLIST_ARRAY node.
+ * The previous item at index n will be freed using #plist_free
+ *
+ * @param node the node of type #PLIST_ARRAY
+ * @param item the new item at index n. The array is responsible for freeing item when it is no longer needed.
+ * @param n the index of the item to get. Range is [0, array_size[. Assert if n is not in range.
+ */
+ void plist_array_set_item(plist_t node, plist_t item, uint32_t n);
+
+ /**
+ * Append a new item at the end of a #PLIST_ARRAY node.
+ *
+ * @param node the node of type #PLIST_ARRAY
+ * @param item the new item. The array is responsible for freeing item when it is no longer needed.
+ */
+ void plist_array_append_item(plist_t node, plist_t item);
+
+ /**
+ * Insert a new item at position n in a #PLIST_ARRAY node.
+ *
+ * @param node the node of type #PLIST_ARRAY
+ * @param item the new item to insert. The array is responsible for freeing item when it is no longer needed.
+ * @param n The position at which the node will be stored. Range is [0, array_size[. Assert if n is not in range.
+ */
+ void plist_array_insert_item(plist_t node, plist_t item, uint32_t n);
+
+ /**
+ * Remove an existing position in a #PLIST_ARRAY node.
+ * Removed position will be freed using #plist_free.
+ *
+ * @param node the node of type #PLIST_ARRAY
+ * @param n The position to remove. Range is [0, array_size[. Assert if n is not in range.
+ */
+ void plist_array_remove_item(plist_t node, uint32_t n);
+
+ /********************************************
+ * *
+ * Dictionary functions *
+ * *
+ ********************************************/
+
+ /**
+ * Get size of a #PLIST_DICT node.
+ *
+ * @param node the node of type #PLIST_DICT
+ * @return size of the #PLIST_DICT node
+ */
+ uint32_t plist_dict_get_size(plist_t node);
+
+ /**
+ * Create an iterator of a #PLIST_DICT node.
+ * The allocated iterator should be freed with the standard free function.
+ *
+ * @param node the node of type #PLIST_DICT
+ * @param iter iterator of the #PLIST_DICT node
+ */
+ void plist_dict_new_iter(plist_t node, plist_dict_iter *iter);
+
+ /**
+ * Increment iterator of a #PLIST_DICT node.
+ *
+ * @param node the node of type #PLIST_DICT
+ * @param iter iterator of the dictionary
+ * @param key a location to store the key, or NULL. The caller is responsible
+ * for freeing the the returned string.
+ * @param val a location to store the value, or NULL. The caller should *not*
+ * free the returned value.
+ */
+ void plist_dict_next_item(plist_t node, plist_dict_iter iter, char **key, plist_t *val);
+
+ /**
+ * Get key associated to an item. Item must be member of a dictionary
+ *
+ * @param node the node
+ * @param key a location to store the key. The caller is responsible for freeing the returned string.
+ */
+ void plist_dict_get_item_key(plist_t node, char **key);
+
+ /**
+ * Get the nth item in a #PLIST_DICT node.
+ *
+ * @param node the node of type #PLIST_DICT
+ * @param key the identifier of the item to get.
+ * @return the item or NULL if node is not of type #PLIST_DICT. The caller should not free
+ * the returned node.
+ */
+ plist_t plist_dict_get_item(plist_t node, const char* key);
+
+ /**
+ * Set item identified by key in a #PLIST_DICT node.
+ * The previous item identified by key will be freed using #plist_free.
+ * If there is no item for the given key a new item will be inserted.
+ *
+ * @param node the node of type #PLIST_DICT
+ * @param item the new item associated to key
+ * @param key the identifier of the item to set.
+ */
+ void plist_dict_set_item(plist_t node, const char* key, plist_t item);
+
+ /**
+ * Insert a new item into a #PLIST_DICT node.
+ *
+ * @deprecated Deprecated. Use plist_dict_set_item instead.
+ *
+ * @param node the node of type #PLIST_DICT
+ * @param item the new item to insert
+ * @param key The identifier of the item to insert.
+ */
+ PLIST_WARN_DEPRECATED("use plist_dict_set_item instead")
+ void plist_dict_insert_item(plist_t node, const char* key, plist_t item);
+
+ /**
+ * Remove an existing position in a #PLIST_DICT node.
+ * Removed position will be freed using #plist_free
+ *
+ * @param node the node of type #PLIST_DICT
+ * @param key The identifier of the item to remove. Assert if identifier is not present.
+ */
+ void plist_dict_remove_item(plist_t node, const char* key);
+
+ /**
+ * Merge a dictionary into another. This will add all key/value pairs
+ * from the source dictionary to the target dictionary, overwriting
+ * any existing key/value pairs that are already present in target.
+ *
+ * @param target pointer to an existing node of type #PLIST_DICT
+ * @param source node of type #PLIST_DICT that should be merged into target
+ */
+ void plist_dict_merge(plist_t *target, plist_t source);
+
+
+ /********************************************
+ * *
+ * Getters *
+ * *
+ ********************************************/
+
+ /**
+ * Get the parent of a node
+ *
+ * @param node the parent (NULL if node is root)
+ */
+ plist_t plist_get_parent(plist_t node);
+
+ /**
+ * Get the #plist_type of a node.
+ *
+ * @param node the node
+ * @return the type of the node
+ */
+ plist_type plist_get_node_type(plist_t node);
+
+ /**
+ * Get the value of a #PLIST_KEY node.
+ * This function does nothing if node is not of type #PLIST_KEY
+ *
+ * @param node the node
+ * @param val a pointer to a C-string. This function allocates the memory,
+ * caller is responsible for freeing it.
+ */
+ void plist_get_key_val(plist_t node, char **val);
+
+ /**
+ * Get the value of a #PLIST_STRING node.
+ * This function does nothing if node is not of type #PLIST_STRING
+ *
+ * @param node the node
+ * @param val a pointer to a C-string. This function allocates the memory,
+ * caller is responsible for freeing it. Data is UTF-8 encoded.
+ */
+ void plist_get_string_val(plist_t node, char **val);
+
+ /**
+ * Get the value of a #PLIST_BOOLEAN node.
+ * This function does nothing if node is not of type #PLIST_BOOLEAN
+ *
+ * @param node the node
+ * @param val a pointer to a uint8_t variable.
+ */
+ void plist_get_bool_val(plist_t node, uint8_t * val);
+
+ /**
+ * Get the value of a #PLIST_UINT node.
+ * This function does nothing if node is not of type #PLIST_UINT
+ *
+ * @param node the node
+ * @param val a pointer to a uint64_t variable.
+ */
+ void plist_get_uint_val(plist_t node, uint64_t * val);
+
+ /**
+ * Get the value of a #PLIST_REAL node.
+ * This function does nothing if node is not of type #PLIST_REAL
+ *
+ * @param node the node
+ * @param val a pointer to a double variable.
+ */
+ void plist_get_real_val(plist_t node, double *val);
+
+ /**
+ * Get the value of a #PLIST_DATA node.
+ * This function does nothing if node is not of type #PLIST_DATA
+ *
+ * @param node the node
+ * @param val a pointer to an unallocated char buffer. This function allocates the memory,
+ * caller is responsible for freeing it.
+ * @param length the length of the buffer
+ */
+ void plist_get_data_val(plist_t node, char **val, uint64_t * length);
+
+ /**
+ * Get the value of a #PLIST_DATE node.
+ * This function does nothing if node is not of type #PLIST_DATE
+ *
+ * @param node the node
+ * @param sec a pointer to an int32_t variable. Represents the number of seconds since 01/01/2001.
+ * @param usec a pointer to an int32_t variable. Represents the number of microseconds
+ */
+ void plist_get_date_val(plist_t node, int32_t * sec, int32_t * usec);
+
+ /**
+ * Get the value of a #PLIST_UID node.
+ * This function does nothing if node is not of type #PLIST_UID
+ *
+ * @param node the node
+ * @param val a pointer to a uint64_t variable.
+ */
+ void plist_get_uid_val(plist_t node, uint64_t * val);
+
+
+ /********************************************
+ * *
+ * Setters *
+ * *
+ ********************************************/
+
+ /**
+ * Set the value of a node.
+ * Forces type of node to #PLIST_KEY
+ *
+ * @param node the node
+ * @param val the key value
+ */
+ void plist_set_key_val(plist_t node, const char *val);
+
+ /**
+ * Set the value of a node.
+ * Forces type of node to #PLIST_STRING
+ *
+ * @param node the node
+ * @param val the string value. The string is copied when set and will be
+ * freed by the node.
+ */
+ void plist_set_string_val(plist_t node, const char *val);
+
+ /**
+ * Set the value of a node.
+ * Forces type of node to #PLIST_BOOLEAN
+ *
+ * @param node the node
+ * @param val the boolean value
+ */
+ void plist_set_bool_val(plist_t node, uint8_t val);
+
+ /**
+ * Set the value of a node.
+ * Forces type of node to #PLIST_UINT
+ *
+ * @param node the node
+ * @param val the unsigned integer value
+ */
+ void plist_set_uint_val(plist_t node, uint64_t val);
+
+ /**
+ * Set the value of a node.
+ * Forces type of node to #PLIST_REAL
+ *
+ * @param node the node
+ * @param val the real value
+ */
+ void plist_set_real_val(plist_t node, double val);
+
+ /**
+ * Set the value of a node.
+ * Forces type of node to #PLIST_DATA
+ *
+ * @param node the node
+ * @param val the binary buffer. The buffer is copied when set and will
+ * be freed by the node.
+ * @param length the length of the buffer
+ */
+ void plist_set_data_val(plist_t node, const char *val, uint64_t length);
+
+ /**
+ * Set the value of a node.
+ * Forces type of node to #PLIST_DATE
+ *
+ * @param node the node
+ * @param sec the number of seconds since 01/01/2001
+ * @param usec the number of microseconds
+ */
+ void plist_set_date_val(plist_t node, int32_t sec, int32_t usec);
+
+ /**
+ * Set the value of a node.
+ * Forces type of node to #PLIST_UID
+ *
+ * @param node the node
+ * @param val the unsigned integer value
+ */
+ void plist_set_uid_val(plist_t node, uint64_t val);
+
+
+ /********************************************
+ * *
+ * Import & Export *
+ * *
+ ********************************************/
+
+ /**
+ * Export the #plist_t structure to XML format.
+ *
+ * @param plist the root node to export
+ * @param plist_xml a pointer to a C-string. This function allocates the memory,
+ * caller is responsible for freeing it. Data is UTF-8 encoded.
+ * @param length a pointer to an uint32_t variable. Represents the length of the allocated buffer.
+ */
+ void plist_to_xml(plist_t plist, char **plist_xml, uint32_t * length);
+
+ /**
+ * Export the #plist_t structure to binary format.
+ *
+ * @param plist the root node to export
+ * @param plist_bin a pointer to a char* buffer. This function allocates the memory,
+ * caller is responsible for freeing it.
+ * @param length a pointer to an uint32_t variable. Represents the length of the allocated buffer.
+ */
+ void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length);
+
+ /**
+ * Import the #plist_t structure from XML format.
+ *
+ * @param plist_xml a pointer to the xml buffer.
+ * @param length length of the buffer to read.
+ * @param plist a pointer to the imported plist.
+ */
+ void plist_from_xml(const char *plist_xml, uint32_t length, plist_t * plist);
+
+ /**
+ * Import the #plist_t structure from binary format.
+ *
+ * @param plist_bin a pointer to the xml buffer.
+ * @param length length of the buffer to read.
+ * @param plist a pointer to the imported plist.
+ */
+ void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * plist);
+
+ /**
+ * Import the #plist_t structure from memory data.
+ * This method will look at the first bytes of plist_data
+ * to determine if plist_data contains a binary or XML plist.
+ *
+ * @param plist_data a pointer to the memory buffer containing plist data.
+ * @param length length of the buffer to read.
+ * @param plist a pointer to the imported plist.
+ */
+ void plist_from_memory(const char *plist_data, uint32_t length, plist_t * plist);
+
+ /**
+ * Test if in-memory plist data is binary or XML
+ * This method will look at the first bytes of plist_data
+ * to determine if plist_data contains a binary or XML plist.
+ * This method is not validating the whole memory buffer to check if the
+ * content is truly a plist, it's only using some heuristic on the first few
+ * bytes of plist_data.
+ *
+ * @param plist_data a pointer to the memory buffer containing plist data.
+ * @param length length of the buffer to read.
+ * @return 1 if the buffer is a binary plist, 0 otherwise.
+ */
+ int plist_is_binary(const char *plist_data, uint32_t length);
+
+ /********************************************
+ * *
+ * Utils *
+ * *
+ ********************************************/
+
+ /**
+ * Get a node from its path. Each path element depends on the associated father node type.
+ * For Dictionaries, var args are casted to const char*, for arrays, var args are caster to uint32_t
+ * Search is breath first order.
+ *
+ * @param plist the node to access result from.
+ * @param length length of the path to access
+ * @return the value to access.
+ */
+ plist_t plist_access_path(plist_t plist, uint32_t length, ...);
+
+ /**
+ * Variadic version of #plist_access_path.
+ *
+ * @param plist the node to access result from.
+ * @param length length of the path to access
+ * @param v list of array's index and dic'st key
+ * @return the value to access.
+ */
+ plist_t plist_access_pathv(plist_t plist, uint32_t length, va_list v);
+
+ /**
+ * Compare two node values
+ *
+ * @param node_l left node to compare
+ * @param node_r rigth node to compare
+ * @return TRUE is type and value match, FALSE otherwise.
+ */
+ char plist_compare_node_value(plist_t node_l, plist_t node_r);
+
+ #define _PLIST_IS_TYPE(__plist, __plist_type) (__plist && (plist_get_node_type(__plist) == PLIST_##__plist_type))
+
+ /* Helper macros for the different plist types */
+ #define PLIST_IS_BOOLEAN(__plist) _PLIST_IS_TYPE(__plist, BOOLEAN)
+ #define PLIST_IS_UINT(__plist) _PLIST_IS_TYPE(__plist, UINT)
+ #define PLIST_IS_REAL(__plist) _PLIST_IS_TYPE(__plist, REAL)
+ #define PLIST_IS_STRING(__plist) _PLIST_IS_TYPE(__plist, STRING)
+ #define PLIST_IS_ARRAY(__plist) _PLIST_IS_TYPE(__plist, ARRAY)
+ #define PLIST_IS_DICT(__plist) _PLIST_IS_TYPE(__plist, DICT)
+ #define PLIST_IS_DATE(__plist) _PLIST_IS_TYPE(__plist, DATE)
+ #define PLIST_IS_DATA(__plist) _PLIST_IS_TYPE(__plist, DATA)
+ #define PLIST_IS_KEY(__plist) _PLIST_IS_TYPE(__plist, KEY)
+ #define PLIST_IS_UID(__plist) _PLIST_IS_TYPE(__plist, UID)
+
+ /*@}*/
+
+#ifdef __cplusplus
+}
+#endif
+#endif
diff --git a/lib/plist/ptrarray.c b/lib/plist/ptrarray.c
new file mode 100755
index 0000000..eb17d28
--- /dev/null
+++ b/lib/plist/ptrarray.c
@@ -0,0 +1,61 @@
+/*
+ * ptrarray.c
+ * simple pointer array implementation
+ *
+ * Copyright (c) 2011 Nikias Bassen, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+#include "ptrarray.h"
+
+ptrarray_t *ptr_array_new(int capacity)
+{
+ ptrarray_t *pa = (ptrarray_t*)malloc(sizeof(ptrarray_t));
+ pa->pdata = (void**)malloc(sizeof(void*) * capacity);
+ pa->capacity = capacity;
+ pa->capacity_step = (capacity > 4096) ? 4096 : capacity;
+ pa->len = 0;
+ return pa;
+}
+
+void ptr_array_free(ptrarray_t *pa)
+{
+ if (!pa) return;
+ if (pa->pdata) {
+ free(pa->pdata);
+ }
+ free(pa);
+}
+
+void ptr_array_add(ptrarray_t *pa, void *data)
+{
+ if (!pa || !pa->pdata || !data) return;
+ size_t remaining = pa->capacity-pa->len;
+ if (remaining == 0) {
+ pa->pdata = realloc(pa->pdata, sizeof(void*) * (pa->capacity + pa->capacity_step));
+ pa->capacity += pa->capacity_step;
+ }
+ pa->pdata[pa->len] = data;
+ pa->len++;
+}
+
+void* ptr_array_index(ptrarray_t *pa, size_t array_index)
+{
+ if (!pa) return NULL;
+ if (array_index >= pa->len) {
+ return NULL;
+ }
+ return pa->pdata[array_index];
+}
diff --git a/lib/plist/ptrarray.h b/lib/plist/ptrarray.h
new file mode 100755
index 0000000..e8a3c88
--- /dev/null
+++ b/lib/plist/ptrarray.h
@@ -0,0 +1,36 @@
+/*
+ * ptrarray.h
+ * header file for simple pointer array implementation
+ *
+ * Copyright (c) 2011 Nikias Bassen, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+#ifndef PTRARRAY_H
+#define PTRARRAY_H
+#include
+
+typedef struct ptrarray_t {
+ void **pdata;
+ size_t len;
+ size_t capacity;
+ size_t capacity_step;
+} ptrarray_t;
+
+ptrarray_t *ptr_array_new(int capacity);
+void ptr_array_free(ptrarray_t *pa);
+void ptr_array_add(ptrarray_t *pa, void *data);
+void* ptr_array_index(ptrarray_t *pa, size_t index);
+#endif
diff --git a/lib/plist/strbuf.h b/lib/plist/strbuf.h
new file mode 100755
index 0000000..0d28edf
--- /dev/null
+++ b/lib/plist/strbuf.h
@@ -0,0 +1,34 @@
+/*
+ * strbuf.h
+ * header file for simple string buffer, using the bytearray as underlying
+ * structure.
+ *
+ * Copyright (c) 2016 Nikias Bassen, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+#ifndef STRBUF_H
+#define STRBUF_H
+#include
+#include "bytearray.h"
+
+typedef struct bytearray_t strbuf_t;
+
+#define str_buf_new(__sz) byte_array_new(__sz)
+#define str_buf_free(__ba) byte_array_free(__ba)
+#define str_buf_grow(__ba, __am) byte_array_grow(__ba, __am)
+#define str_buf_append(__ba, __str, __len) byte_array_append(__ba, (void*)(__str), __len)
+
+#endif
diff --git a/lib/plist/time64.c b/lib/plist/time64.c
new file mode 100755
index 0000000..8c08caf
--- /dev/null
+++ b/lib/plist/time64.c
@@ -0,0 +1,812 @@
+/*
+
+Copyright (c) 2007-2010 Michael G Schwern
+
+This software originally derived from Paul Sheer's pivotal_gmtime_r.c.
+
+The MIT License:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+*/
+
+/*
+
+Programmers who have available to them 64-bit time values as a 'long
+long' type can use localtime64_r() and gmtime64_r() which correctly
+converts the time even on 32-bit systems. Whether you have 64-bit time
+values will depend on the operating system.
+
+localtime64_r() is a 64-bit equivalent of localtime_r().
+
+gmtime64_r() is a 64-bit equivalent of gmtime_r().
+
+*/
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include "time64.h"
+#include "time64_limits.h"
+
+
+static const char days_in_month[2][12] = {
+ {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},
+ {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},
+};
+
+static const short julian_days_by_month[2][12] = {
+ {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334},
+ {0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335},
+};
+
+static char wday_name[7][4] = {
+ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
+};
+
+static char mon_name[12][4] = {
+ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
+ "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
+};
+
+static const short length_of_year[2] = { 365, 366 };
+
+/* Some numbers relating to the gregorian cycle */
+static const Year years_in_gregorian_cycle = 400;
+#define days_in_gregorian_cycle ((365 * 400) + 100 - 4 + 1)
+static const Time64_T seconds_in_gregorian_cycle = days_in_gregorian_cycle * 60LL * 60LL * 24LL;
+
+/* Year range we can trust the time funcitons with */
+#define MAX_SAFE_YEAR 2037
+#define MIN_SAFE_YEAR 1971
+
+/* 28 year Julian calendar cycle */
+#define SOLAR_CYCLE_LENGTH 28
+
+/* Year cycle from MAX_SAFE_YEAR down. */
+static const short safe_years_high[SOLAR_CYCLE_LENGTH] = {
+ 2016, 2017, 2018, 2019,
+ 2020, 2021, 2022, 2023,
+ 2024, 2025, 2026, 2027,
+ 2028, 2029, 2030, 2031,
+ 2032, 2033, 2034, 2035,
+ 2036, 2037, 2010, 2011,
+ 2012, 2013, 2014, 2015
+};
+
+/* Year cycle from MIN_SAFE_YEAR up */
+static const int safe_years_low[SOLAR_CYCLE_LENGTH] = {
+ 1996, 1997, 1998, 1971,
+ 1972, 1973, 1974, 1975,
+ 1976, 1977, 1978, 1979,
+ 1980, 1981, 1982, 1983,
+ 1984, 1985, 1986, 1987,
+ 1988, 1989, 1990, 1991,
+ 1992, 1993, 1994, 1995,
+};
+
+/* This isn't used, but it's handy to look at */
+#if 0
+static const char dow_year_start[SOLAR_CYCLE_LENGTH] = {
+ 5, 0, 1, 2, /* 0 2016 - 2019 */
+ 3, 5, 6, 0, /* 4 */
+ 1, 3, 4, 5, /* 8 1996 - 1998, 1971*/
+ 6, 1, 2, 3, /* 12 1972 - 1975 */
+ 4, 6, 0, 1, /* 16 */
+ 2, 4, 5, 6, /* 20 2036, 2037, 2010, 2011 */
+ 0, 2, 3, 4 /* 24 2012, 2013, 2014, 2015 */
+};
+#endif
+
+/* Let's assume people are going to be looking for dates in the future.
+ Let's provide some cheats so you can skip ahead.
+ This has a 4x speed boost when near 2008.
+*/
+/* Number of days since epoch on Jan 1st, 2008 GMT */
+#define CHEAT_DAYS (1199145600 / 24 / 60 / 60)
+#define CHEAT_YEARS 108
+
+#define IS_LEAP(n) ((!(((n) + 1900) % 400) || (!(((n) + 1900) % 4) && (((n) + 1900) % 100))) != 0)
+#define WRAP(a,b,m) ((a) = ((a) < 0 ) ? ((b)--, (a) + (m)) : (a))
+
+#ifdef USE_SYSTEM_LOCALTIME
+# define SHOULD_USE_SYSTEM_LOCALTIME(a) ( \
+ (a) <= SYSTEM_LOCALTIME_MAX && \
+ (a) >= SYSTEM_LOCALTIME_MIN \
+)
+#else
+# define SHOULD_USE_SYSTEM_LOCALTIME(a) (0)
+#endif
+
+#ifdef USE_SYSTEM_GMTIME
+# define SHOULD_USE_SYSTEM_GMTIME(a) ( \
+ (a) <= SYSTEM_GMTIME_MAX && \
+ (a) >= SYSTEM_GMTIME_MIN \
+)
+#else
+# define SHOULD_USE_SYSTEM_GMTIME(a) (0)
+#endif
+
+/* Multi varadic macros are a C99 thing, alas */
+#ifdef TIME_64_DEBUG
+# define TIME64_TRACE(format) (fprintf(stderr, format))
+# define TIME64_TRACE1(format, var1) (fprintf(stderr, format, var1))
+# define TIME64_TRACE2(format, var1, var2) (fprintf(stderr, format, var1, var2))
+# define TIME64_TRACE3(format, var1, var2, var3) (fprintf(stderr, format, var1, var2, var3))
+#else
+# define TIME64_TRACE(format) ((void)0)
+# define TIME64_TRACE1(format, var1) ((void)0)
+# define TIME64_TRACE2(format, var1, var2) ((void)0)
+# define TIME64_TRACE3(format, var1, var2, var3) ((void)0)
+#endif
+
+
+static int is_exception_century(Year year)
+{
+ int is_exception = ((year % 100 == 0) && !(year % 400 == 0));
+ TIME64_TRACE1("# is_exception_century: %s\n", is_exception ? "yes" : "no");
+
+ return(is_exception);
+}
+
+
+/* Compare two dates.
+ The result is like cmp.
+ Ignores things like gmtoffset and dst
+*/
+static int cmp_date( const struct TM* left, const struct tm* right ) {
+ if( left->tm_year > right->tm_year )
+ return 1;
+ else if( left->tm_year < right->tm_year )
+ return -1;
+
+ if( left->tm_mon > right->tm_mon )
+ return 1;
+ else if( left->tm_mon < right->tm_mon )
+ return -1;
+
+ if( left->tm_mday > right->tm_mday )
+ return 1;
+ else if( left->tm_mday < right->tm_mday )
+ return -1;
+
+ if( left->tm_hour > right->tm_hour )
+ return 1;
+ else if( left->tm_hour < right->tm_hour )
+ return -1;
+
+ if( left->tm_min > right->tm_min )
+ return 1;
+ else if( left->tm_min < right->tm_min )
+ return -1;
+
+ if( left->tm_sec > right->tm_sec )
+ return 1;
+ else if( left->tm_sec < right->tm_sec )
+ return -1;
+
+ return 0;
+}
+
+
+/* Check if a date is safely inside a range.
+ The intention is to check if its a few days inside.
+*/
+static int date_in_safe_range( const struct TM* date, const struct tm* min, const struct tm* max ) {
+ if( cmp_date(date, min) == -1 )
+ return 0;
+
+ if( cmp_date(date, max) == 1 )
+ return 0;
+
+ return 1;
+}
+
+
+/* timegm() is not in the C or POSIX spec, but it is such a useful
+ extension I would be remiss in leaving it out. Also I need it
+ for localtime64()
+*/
+Time64_T timegm64(const struct TM *date) {
+ Time64_T days = 0;
+ Time64_T seconds = 0;
+ Year year;
+ Year orig_year = (Year)date->tm_year;
+ int cycles = 0;
+
+ if( orig_year > 100 ) {
+ cycles = (orig_year - 100) / 400;
+ orig_year -= cycles * 400;
+ days += (Time64_T)cycles * days_in_gregorian_cycle;
+ }
+ else if( orig_year < -300 ) {
+ cycles = (orig_year - 100) / 400;
+ orig_year -= cycles * 400;
+ days += (Time64_T)cycles * days_in_gregorian_cycle;
+ }
+ TIME64_TRACE3("# timegm/ cycles: %d, days: %lld, orig_year: %lld\n", cycles, days, orig_year);
+
+ if( orig_year > 70 ) {
+ year = 70;
+ while( year < orig_year ) {
+ days += length_of_year[IS_LEAP(year)];
+ year++;
+ }
+ }
+ else if ( orig_year < 70 ) {
+ year = 69;
+ do {
+ days -= length_of_year[IS_LEAP(year)];
+ year--;
+ } while( year >= orig_year );
+ }
+
+ days += julian_days_by_month[IS_LEAP(orig_year)][date->tm_mon];
+ days += date->tm_mday - 1;
+
+ seconds = days * 60 * 60 * 24;
+
+ seconds += date->tm_hour * 60 * 60;
+ seconds += date->tm_min * 60;
+ seconds += date->tm_sec;
+
+ return(seconds);
+}
+
+
+static int check_tm(struct TM *tm)
+{
+ /* Don't forget leap seconds */
+ assert(tm->tm_sec >= 0);
+ assert(tm->tm_sec <= 61);
+
+ assert(tm->tm_min >= 0);
+ assert(tm->tm_min <= 59);
+
+ assert(tm->tm_hour >= 0);
+ assert(tm->tm_hour <= 23);
+
+ assert(tm->tm_mday >= 1);
+ assert(tm->tm_mday <= days_in_month[IS_LEAP(tm->tm_year)][tm->tm_mon]);
+
+ assert(tm->tm_mon >= 0);
+ assert(tm->tm_mon <= 11);
+
+ assert(tm->tm_wday >= 0);
+ assert(tm->tm_wday <= 6);
+
+ assert(tm->tm_yday >= 0);
+ assert(tm->tm_yday <= length_of_year[IS_LEAP(tm->tm_year)]);
+
+#ifdef HAVE_TM_TM_GMTOFF
+ assert(tm->tm_gmtoff >= -24 * 60 * 60);
+ assert(tm->tm_gmtoff <= 24 * 60 * 60);
+#endif
+
+ return 1;
+}
+
+
+/* The exceptional centuries without leap years cause the cycle to
+ shift by 16
+*/
+static Year cycle_offset(Year year)
+{
+ const Year start_year = 2000;
+ Year year_diff = year - start_year;
+ Year exceptions;
+
+ if( year > start_year )
+ year_diff--;
+
+ exceptions = year_diff / 100;
+ exceptions -= year_diff / 400;
+
+ TIME64_TRACE3("# year: %lld, exceptions: %lld, year_diff: %lld\n",
+ year, exceptions, year_diff);
+
+ return exceptions * 16;
+}
+
+/* For a given year after 2038, pick the latest possible matching
+ year in the 28 year calendar cycle.
+
+ A matching year...
+ 1) Starts on the same day of the week.
+ 2) Has the same leap year status.
+
+ This is so the calendars match up.
+
+ Also the previous year must match. When doing Jan 1st you might
+ wind up on Dec 31st the previous year when doing a -UTC time zone.
+
+ Finally, the next year must have the same start day of week. This
+ is for Dec 31st with a +UTC time zone.
+ It doesn't need the same leap year status since we only care about
+ January 1st.
+*/
+static int safe_year(const Year year)
+{
+ int safe_year= (int)year;
+ Year year_cycle;
+
+ if( year >= MIN_SAFE_YEAR && year <= MAX_SAFE_YEAR ) {
+ return safe_year;
+ }
+
+ year_cycle = year + cycle_offset(year);
+
+ /* safe_years_low is off from safe_years_high by 8 years */
+ if( year < MIN_SAFE_YEAR )
+ year_cycle -= 8;
+
+ /* Change non-leap xx00 years to an equivalent */
+ if( is_exception_century(year) )
+ year_cycle += 11;
+
+ /* Also xx01 years, since the previous year will be wrong */
+ if( is_exception_century(year - 1) )
+ year_cycle += 17;
+
+ year_cycle %= SOLAR_CYCLE_LENGTH;
+ if( year_cycle < 0 )
+ year_cycle = SOLAR_CYCLE_LENGTH + year_cycle;
+
+ assert( year_cycle >= 0 );
+ assert( year_cycle < SOLAR_CYCLE_LENGTH );
+ if( year < MIN_SAFE_YEAR )
+ safe_year = safe_years_low[year_cycle];
+ else if( year > MAX_SAFE_YEAR )
+ safe_year = safe_years_high[year_cycle];
+ else
+ assert(0);
+
+ TIME64_TRACE3("# year: %lld, year_cycle: %lld, safe_year: %d\n",
+ year, year_cycle, safe_year);
+
+ assert(safe_year <= MAX_SAFE_YEAR && safe_year >= MIN_SAFE_YEAR);
+
+ return safe_year;
+}
+
+
+void copy_tm_to_TM64(const struct tm *src, struct TM *dest) {
+ if( src == NULL ) {
+ memset(dest, 0, sizeof(*dest));
+ }
+ else {
+# ifdef USE_TM64
+ dest->tm_sec = src->tm_sec;
+ dest->tm_min = src->tm_min;
+ dest->tm_hour = src->tm_hour;
+ dest->tm_mday = src->tm_mday;
+ dest->tm_mon = src->tm_mon;
+ dest->tm_year = (Year)src->tm_year;
+ dest->tm_wday = src->tm_wday;
+ dest->tm_yday = src->tm_yday;
+ dest->tm_isdst = src->tm_isdst;
+
+# ifdef HAVE_TM_TM_GMTOFF
+ dest->tm_gmtoff = src->tm_gmtoff;
+# endif
+
+# ifdef HAVE_TM_TM_ZONE
+ dest->tm_zone = src->tm_zone;
+# endif
+
+# else
+ /* They're the same type */
+ memcpy(dest, src, sizeof(*dest));
+# endif
+ }
+}
+
+
+void copy_TM64_to_tm(const struct TM *src, struct tm *dest) {
+ if( src == NULL ) {
+ memset(dest, 0, sizeof(*dest));
+ }
+ else {
+# ifdef USE_TM64
+ dest->tm_sec = src->tm_sec;
+ dest->tm_min = src->tm_min;
+ dest->tm_hour = src->tm_hour;
+ dest->tm_mday = src->tm_mday;
+ dest->tm_mon = src->tm_mon;
+ dest->tm_year = (int)src->tm_year;
+ dest->tm_wday = src->tm_wday;
+ dest->tm_yday = src->tm_yday;
+ dest->tm_isdst = src->tm_isdst;
+
+# ifdef HAVE_TM_TM_GMTOFF
+ dest->tm_gmtoff = src->tm_gmtoff;
+# endif
+
+# ifdef HAVE_TM_TM_ZONE
+ dest->tm_zone = src->tm_zone;
+# endif
+
+# else
+ /* They're the same type */
+ memcpy(dest, src, sizeof(*dest));
+# endif
+ }
+}
+
+
+#ifndef HAVE_LOCALTIME_R
+/* Simulate localtime_r() to the best of our ability */
+static struct tm * fake_localtime_r(const time_t *time, struct tm *result) {
+ const struct tm *static_result = localtime(time);
+
+ assert(result != NULL);
+
+ if( static_result == NULL ) {
+ memset(result, 0, sizeof(*result));
+ return NULL;
+ }
+ else {
+ memcpy(result, static_result, sizeof(*result));
+ return result;
+ }
+}
+#endif
+
+
+#ifndef HAVE_GMTIME_R
+/* Simulate gmtime_r() to the best of our ability */
+static struct tm * fake_gmtime_r(const time_t *time, struct tm *result) {
+ const struct tm *static_result = gmtime(time);
+
+ assert(result != NULL);
+
+ if( static_result == NULL ) {
+ memset(result, 0, sizeof(*result));
+ return NULL;
+ }
+ else {
+ memcpy(result, static_result, sizeof(*result));
+ return result;
+ }
+}
+#endif
+
+
+static Time64_T seconds_between_years(Year left_year, Year right_year) {
+ int increment = (left_year > right_year) ? 1 : -1;
+ Time64_T seconds = 0;
+ int cycles;
+
+ if( left_year > 2400 ) {
+ cycles = (left_year - 2400) / 400;
+ left_year -= cycles * 400;
+ seconds += cycles * seconds_in_gregorian_cycle;
+ }
+ else if( left_year < 1600 ) {
+ cycles = (left_year - 1600) / 400;
+ left_year += cycles * 400;
+ seconds += cycles * seconds_in_gregorian_cycle;
+ }
+
+ while( left_year != right_year ) {
+ seconds += length_of_year[IS_LEAP(right_year - 1900)] * 60 * 60 * 24;
+ right_year += increment;
+ }
+
+ return seconds * increment;
+}
+
+
+Time64_T mktime64(struct TM *input_date) {
+ struct tm safe_date;
+ struct TM date;
+ Time64_T time;
+ Year year = input_date->tm_year + 1900;
+
+ if( date_in_safe_range(input_date, &SYSTEM_MKTIME_MIN, &SYSTEM_MKTIME_MAX) )
+ {
+ copy_TM64_to_tm(input_date, &safe_date);
+ time = (Time64_T)mktime(&safe_date);
+
+ /* Correct the possibly out of bound input date */
+ copy_tm_to_TM64(&safe_date, input_date);
+ return time;
+ }
+
+ /* Have to make the year safe in date else it won't fit in safe_date */
+ date = *input_date;
+ date.tm_year = safe_year(year) - 1900;
+ copy_TM64_to_tm(&date, &safe_date);
+
+ time = (Time64_T)mktime(&safe_date);
+
+ /* Correct the user's possibly out of bound input date */
+ copy_tm_to_TM64(&safe_date, input_date);
+
+ time += seconds_between_years(year, (Year)(safe_date.tm_year + 1900));
+
+ return time;
+}
+
+
+/* Because I think mktime() is a crappy name */
+Time64_T timelocal64(struct TM *date) {
+ return mktime64(date);
+}
+
+
+struct TM *gmtime64_r (const Time64_T *in_time, struct TM *p)
+{
+ int v_tm_sec, v_tm_min, v_tm_hour, v_tm_mon, v_tm_wday;
+ Time64_T v_tm_tday;
+ int leap;
+ Time64_T m;
+ Time64_T time = *in_time;
+ Year year = 70;
+ int cycles = 0;
+
+ assert(p != NULL);
+
+ /* Use the system gmtime() if time_t is small enough */
+ if( SHOULD_USE_SYSTEM_GMTIME(*in_time) ) {
+ time_t safe_time = (time_t)*in_time;
+ struct tm safe_date;
+ GMTIME_R(&safe_time, &safe_date);
+
+ copy_tm_to_TM64(&safe_date, p);
+ assert(check_tm(p));
+
+ return p;
+ }
+
+#ifdef HAVE_TM_TM_GMTOFF
+ p->tm_gmtoff = 0;
+#endif
+ p->tm_isdst = 0;
+
+#ifdef HAVE_TM_TM_ZONE
+ p->tm_zone = (char*)"UTC";
+#endif
+
+ v_tm_sec = (int)(time % 60);
+ time /= 60;
+ v_tm_min = (int)(time % 60);
+ time /= 60;
+ v_tm_hour = (int)(time % 24);
+ time /= 24;
+ v_tm_tday = time;
+
+ WRAP (v_tm_sec, v_tm_min, 60);
+ WRAP (v_tm_min, v_tm_hour, 60);
+ WRAP (v_tm_hour, v_tm_tday, 24);
+
+ v_tm_wday = (int)((v_tm_tday + 4) % 7);
+ if (v_tm_wday < 0)
+ v_tm_wday += 7;
+ m = v_tm_tday;
+
+ if (m >= CHEAT_DAYS) {
+ year = CHEAT_YEARS;
+ m -= CHEAT_DAYS;
+ }
+
+ if (m >= 0) {
+ /* Gregorian cycles, this is huge optimization for distant times */
+ cycles = (int)(m / (Time64_T) days_in_gregorian_cycle);
+ if( cycles ) {
+ m -= (cycles * (Time64_T) days_in_gregorian_cycle);
+ year += (cycles * years_in_gregorian_cycle);
+ }
+
+ /* Years */
+ leap = IS_LEAP (year);
+ while (m >= (Time64_T) length_of_year[leap]) {
+ m -= (Time64_T) length_of_year[leap];
+ year++;
+ leap = IS_LEAP (year);
+ }
+
+ /* Months */
+ v_tm_mon = 0;
+ while (m >= (Time64_T) days_in_month[leap][v_tm_mon]) {
+ m -= (Time64_T) days_in_month[leap][v_tm_mon];
+ v_tm_mon++;
+ }
+ } else {
+ year--;
+
+ /* Gregorian cycles */
+ cycles = (int)((m / (Time64_T) days_in_gregorian_cycle) + 1);
+ if( cycles ) {
+ m -= (cycles * (Time64_T) days_in_gregorian_cycle);
+ year += (cycles * years_in_gregorian_cycle);
+ }
+
+ /* Years */
+ leap = IS_LEAP (year);
+ while (m < (Time64_T) -length_of_year[leap]) {
+ m += (Time64_T) length_of_year[leap];
+ year--;
+ leap = IS_LEAP (year);
+ }
+
+ /* Months */
+ v_tm_mon = 11;
+ while (m < (Time64_T) -days_in_month[leap][v_tm_mon]) {
+ m += (Time64_T) days_in_month[leap][v_tm_mon];
+ v_tm_mon--;
+ }
+ m += (Time64_T) days_in_month[leap][v_tm_mon];
+ }
+
+ p->tm_year = year;
+ if( p->tm_year != year ) {
+#ifdef EOVERFLOW
+ errno = EOVERFLOW;
+#endif
+ return NULL;
+ }
+
+ /* At this point m is less than a year so casting to an int is safe */
+ p->tm_mday = (int) m + 1;
+ p->tm_yday = julian_days_by_month[leap][v_tm_mon] + (int)m;
+ p->tm_sec = v_tm_sec;
+ p->tm_min = v_tm_min;
+ p->tm_hour = v_tm_hour;
+ p->tm_mon = v_tm_mon;
+ p->tm_wday = v_tm_wday;
+
+ assert(check_tm(p));
+
+ return p;
+}
+
+
+struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm)
+{
+ time_t safe_time;
+ struct tm safe_date;
+ struct TM gm_tm;
+ Year orig_year;
+ int month_diff;
+
+ assert(local_tm != NULL);
+
+ /* Use the system localtime() if time_t is small enough */
+ if( SHOULD_USE_SYSTEM_LOCALTIME(*time) ) {
+ safe_time = (time_t)*time;
+
+ TIME64_TRACE1("Using system localtime for %lld\n", *time);
+
+ LOCALTIME_R(&safe_time, &safe_date);
+
+ copy_tm_to_TM64(&safe_date, local_tm);
+ assert(check_tm(local_tm));
+
+ return local_tm;
+ }
+
+ if( gmtime64_r(time, &gm_tm) == NULL ) {
+ TIME64_TRACE1("gmtime64_r returned null for %lld\n", *time);
+ return NULL;
+ }
+
+ orig_year = gm_tm.tm_year;
+
+ if (gm_tm.tm_year > (2037 - 1900) ||
+ gm_tm.tm_year < (1970 - 1900)
+ )
+ {
+ TIME64_TRACE1("Mapping tm_year %lld to safe_year\n", (Year)gm_tm.tm_year);
+ gm_tm.tm_year = safe_year((Year)(gm_tm.tm_year + 1900)) - 1900;
+ }
+
+ safe_time = (time_t)timegm64(&gm_tm);
+ if( LOCALTIME_R(&safe_time, &safe_date) == NULL ) {
+ TIME64_TRACE1("localtime_r(%d) returned NULL\n", (int)safe_time);
+ return NULL;
+ }
+
+ copy_tm_to_TM64(&safe_date, local_tm);
+
+ local_tm->tm_year = orig_year;
+ if( local_tm->tm_year != orig_year ) {
+ TIME64_TRACE2("tm_year overflow: tm_year %lld, orig_year %lld\n",
+ (Year)local_tm->tm_year, (Year)orig_year);
+
+#ifdef EOVERFLOW
+ errno = EOVERFLOW;
+#endif
+ return NULL;
+ }
+
+
+ month_diff = local_tm->tm_mon - gm_tm.tm_mon;
+
+ /* When localtime is Dec 31st previous year and
+ gmtime is Jan 1st next year.
+ */
+ if( month_diff == 11 ) {
+ local_tm->tm_year--;
+ }
+
+ /* When localtime is Jan 1st, next year and
+ gmtime is Dec 31st, previous year.
+ */
+ if( month_diff == -11 ) {
+ local_tm->tm_year++;
+ }
+
+ /* GMT is Jan 1st, xx01 year, but localtime is still Dec 31st
+ in a non-leap xx00. There is one point in the cycle
+ we can't account for which the safe xx00 year is a leap
+ year. So we need to correct for Dec 31st comming out as
+ the 366th day of the year.
+ */
+ if( !IS_LEAP(local_tm->tm_year) && local_tm->tm_yday == 365 )
+ local_tm->tm_yday--;
+
+ assert(check_tm(local_tm));
+
+ return local_tm;
+}
+
+
+static int valid_tm_wday( const struct TM* date ) {
+ if( 0 <= date->tm_wday && date->tm_wday <= 6 )
+ return 1;
+ else
+ return 0;
+}
+
+static int valid_tm_mon( const struct TM* date ) {
+ if( 0 <= date->tm_mon && date->tm_mon <= 11 )
+ return 1;
+ else
+ return 0;
+}
+
+
+char *asctime64_r( const struct TM* date, char *result ) {
+ /* I figure everything else can be displayed, even hour 25, but if
+ these are out of range we walk off the name arrays */
+ if( !valid_tm_wday(date) || !valid_tm_mon(date) )
+ return NULL;
+
+ sprintf(result, TM64_ASCTIME_FORMAT,
+ wday_name[date->tm_wday],
+ mon_name[date->tm_mon],
+ date->tm_mday, date->tm_hour,
+ date->tm_min, date->tm_sec,
+ 1900 + date->tm_year);
+
+ return result;
+}
+
+
+char *ctime64_r( const Time64_T* time, char* result ) {
+ struct TM date;
+
+ localtime64_r( time, &date );
+ return asctime64_r( &date, result );
+}
+
diff --git a/lib/plist/time64.h b/lib/plist/time64.h
new file mode 100755
index 0000000..bf174c6
--- /dev/null
+++ b/lib/plist/time64.h
@@ -0,0 +1,81 @@
+#ifndef TIME64_H
+# define TIME64_H
+
+#include
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+/* Set our custom types */
+typedef long long Int64;
+typedef Int64 Time64_T;
+typedef Int64 Year;
+
+
+/* A copy of the tm struct but with a 64 bit year */
+struct TM64 {
+ int tm_sec;
+ int tm_min;
+ int tm_hour;
+ int tm_mday;
+ int tm_mon;
+ Year tm_year;
+ int tm_wday;
+ int tm_yday;
+ int tm_isdst;
+
+#ifdef HAVE_TM_TM_GMTOFF
+ long tm_gmtoff;
+#endif
+
+#ifdef HAVE_TM_TM_ZONE
+ char *tm_zone;
+#endif
+};
+
+
+/* Decide which tm struct to use */
+#ifdef USE_TM64
+#define TM TM64
+#else
+#define TM tm
+#endif
+
+
+/* Declare public functions */
+struct TM *gmtime64_r (const Time64_T *, struct TM *);
+struct TM *localtime64_r (const Time64_T *, struct TM *);
+
+char *asctime64_r (const struct TM *, char *);
+
+char *ctime64_r (const Time64_T*, char*);
+
+Time64_T timegm64 (const struct TM *);
+Time64_T mktime64 (struct TM *);
+Time64_T timelocal64 (struct TM *);
+
+
+/* Not everyone has gm/localtime_r(), provide a replacement */
+#ifdef HAVE_LOCALTIME_R
+# define LOCALTIME_R(clock, result) localtime_r(clock, result)
+#else
+# define LOCALTIME_R(clock, result) fake_localtime_r(clock, result)
+#endif
+#ifdef HAVE_GMTIME_R
+# define GMTIME_R(clock, result) gmtime_r(clock, result)
+#else
+# define GMTIME_R(clock, result) fake_gmtime_r(clock, result)
+#endif
+
+
+/* Use a different asctime format depending on how big the year is */
+#ifdef USE_TM64
+ #define TM64_ASCTIME_FORMAT "%.3s %.3s%3d %.2d:%.2d:%.2d %lld\n"
+#else
+ #define TM64_ASCTIME_FORMAT "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n"
+#endif
+
+void copy_tm_to_TM64(const struct tm *src, struct TM *dest);
+void copy_TM64_to_tm(const struct TM *src, struct tm *dest);
+
+#endif
diff --git a/lib/plist/time64_limits.h b/lib/plist/time64_limits.h
new file mode 100755
index 0000000..1151cf2
--- /dev/null
+++ b/lib/plist/time64_limits.h
@@ -0,0 +1,97 @@
+/*
+ Maximum and minimum inputs your system's respective time functions
+ can correctly handle. time64.h will use your system functions if
+ the input falls inside these ranges and corresponding USE_SYSTEM_*
+ constant is defined.
+*/
+
+#ifndef TIME64_LIMITS_H
+#define TIME64_LIMITS_H
+
+#include
+
+/* Max/min for localtime() */
+#define SYSTEM_LOCALTIME_MAX 2147483647
+#define SYSTEM_LOCALTIME_MIN -2147483647-1
+
+/* Max/min for gmtime() */
+#define SYSTEM_GMTIME_MAX 2147483647
+#define SYSTEM_GMTIME_MIN -2147483647-1
+
+/* Max/min for mktime() */
+static const struct tm SYSTEM_MKTIME_MAX = {
+ 7,
+ 14,
+ 19,
+ 18,
+ 0,
+ 138,
+ 1,
+ 17,
+ 0
+#ifdef HAVE_TM_TM_GMTOFF
+ ,-28800
+#endif
+#ifdef HAVE_TM_TM_ZONE
+ ,(char*)"PST"
+#endif
+};
+
+static const struct tm SYSTEM_MKTIME_MIN = {
+ 52,
+ 45,
+ 12,
+ 13,
+ 11,
+ 1,
+ 5,
+ 346,
+ 0
+#ifdef HAVE_TM_TM_GMTOFF
+ ,-28800
+#endif
+#ifdef HAVE_TM_TM_ZONE
+ ,(char*)"PST"
+#endif
+};
+
+/* Max/min for timegm() */
+#ifdef HAVE_TIMEGM
+static const struct tm SYSTEM_TIMEGM_MAX = {
+ 7,
+ 14,
+ 3,
+ 19,
+ 0,
+ 138,
+ 2,
+ 18,
+ 0
+ #ifdef HAVE_TM_TM_GMTOFF
+ ,0
+ #endif
+ #ifdef HAVE_TM_TM_ZONE
+ ,(char*)"UTC"
+ #endif
+};
+
+static const struct tm SYSTEM_TIMEGM_MIN = {
+ 52,
+ 45,
+ 20,
+ 13,
+ 11,
+ 1,
+ 5,
+ 346,
+ 0
+ #ifdef HAVE_TM_TM_GMTOFF
+ ,0
+ #endif
+ #ifdef HAVE_TM_TM_ZONE
+ ,(char*)"UTC"
+ #endif
+};
+#endif /* HAVE_TIMEGM */
+
+#endif /* TIME64_LIMITS_H */
diff --git a/lib/plist/xplist.c b/lib/plist/xplist.c
new file mode 100755
index 0000000..639e044
--- /dev/null
+++ b/lib/plist/xplist.c
@@ -0,0 +1,1438 @@
+/*
+ * xplist.c
+ * XML plist implementation
+ *
+ * Copyright (c) 2010-2017 Nikias Bassen All Rights Reserved.
+ * Copyright (c) 2010-2015 Martin Szulecki All Rights Reserved.
+ * Copyright (c) 2008 Jonathan Beck All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifdef HAVE_CONFIG_H
+#include
+#endif
+
+#ifdef HAVE_STRPTIME
+#define _XOPEN_SOURCE 600
+#endif
+
+#include
+#include
+#include
+#include
+#include
+
+#include
+#include
+#include
+
+#include "node.h"
+#include "node_list.h"
+
+#include "plist.h"
+#include "base64.h"
+#include "strbuf.h"
+#include "time64.h"
+
+#define XPLIST_KEY "key"
+#define XPLIST_KEY_LEN 3
+#define XPLIST_FALSE "false"
+#define XPLIST_FALSE_LEN 5
+#define XPLIST_TRUE "true"
+#define XPLIST_TRUE_LEN 4
+#define XPLIST_INT "integer"
+#define XPLIST_INT_LEN 7
+#define XPLIST_REAL "real"
+#define XPLIST_REAL_LEN 4
+#define XPLIST_DATE "date"
+#define XPLIST_DATE_LEN 4
+#define XPLIST_DATA "data"
+#define XPLIST_DATA_LEN 4
+#define XPLIST_STRING "string"
+#define XPLIST_STRING_LEN 6
+#define XPLIST_ARRAY "array"
+#define XPLIST_ARRAY_LEN 5
+#define XPLIST_DICT "dict"
+#define XPLIST_DICT_LEN 4
+
+#define MAC_EPOCH 978307200
+
+#define MAX_DATA_BYTES_PER_LINE(__i) (((76 - (__i << 3)) >> 2) * 3)
+
+static const char XML_PLIST_PROLOG[] = "\n\
+\n\
+\n";
+static const char XML_PLIST_EPILOG[] = "\n";
+
+#ifdef DEBUG
+static int plist_xml_debug = 0;
+#define PLIST_XML_ERR(...) if (plist_xml_debug) { fprintf(stderr, "libplist[xmlparser] ERROR: " __VA_ARGS__); }
+#else
+#define PLIST_XML_ERR(...)
+#endif
+
+void plist_xml_init(void)
+{
+ /* init XML stuff */
+#ifdef DEBUG
+ char *env_debug = getenv("PLIST_XML_DEBUG");
+ if (env_debug && !strcmp(env_debug, "1")) {
+ plist_xml_debug = 1;
+ }
+#endif
+}
+
+void plist_xml_deinit(void)
+{
+ /* deinit XML stuff */
+}
+
+static size_t dtostr(char *buf, size_t bufsize, double realval)
+{
+ double f = realval;
+ double ip = 0.0;
+ int64_t v;
+ size_t len;
+ size_t p;
+
+ f = modf(f, &ip);
+ len = snprintf(buf, bufsize, "%s%"PRIi64, ((f < 0) && (ip >= 0)) ? "-" : "", (int64_t)ip);
+ if (len >= bufsize) {
+ return 0;
+ }
+
+ if (f < 0) {
+ f *= -1;
+ }
+ f += 0.0000004;
+
+ p = len;
+ buf[p++] = '.';
+
+ while (p < bufsize && (p <= len+6)) {
+ f = modf(f*10, &ip);
+ v = (int)ip;
+ buf[p++] = (v + 0x30);
+ }
+ buf[p] = '\0';
+ return p;
+}
+
+static void node_to_xml(node_t* node, bytearray_t **outbuf, uint32_t depth)
+{
+ plist_data_t node_data = NULL;
+
+ char isStruct = FALSE;
+ char tagOpen = FALSE;
+
+ const char *tag = NULL;
+ size_t tag_len = 0;
+ char *val = NULL;
+ size_t val_len = 0;
+
+ uint32_t i = 0;
+
+ if (!node)
+ return;
+
+ node_data = plist_get_data(node);
+
+ switch (node_data->type)
+ {
+ case PLIST_BOOLEAN:
+ {
+ if (node_data->boolval) {
+ tag = XPLIST_TRUE;
+ tag_len = XPLIST_TRUE_LEN;
+ } else {
+ tag = XPLIST_FALSE;
+ tag_len = XPLIST_FALSE_LEN;
+ }
+ }
+ break;
+
+ case PLIST_UINT:
+ tag = XPLIST_INT;
+ tag_len = XPLIST_INT_LEN;
+ val = (char*)malloc(64);
+ if (node_data->length == 16) {
+ val_len = snprintf(val, 64, "%"PRIu64, node_data->intval);
+ } else {
+ val_len = snprintf(val, 64, "%"PRIi64, node_data->intval);
+ }
+ break;
+
+ case PLIST_REAL:
+ tag = XPLIST_REAL;
+ tag_len = XPLIST_REAL_LEN;
+ val = (char*)malloc(64);
+ val_len = dtostr(val, 64, node_data->realval);
+ break;
+
+ case PLIST_STRING:
+ tag = XPLIST_STRING;
+ tag_len = XPLIST_STRING_LEN;
+ /* contents processed directly below */
+ break;
+
+ case PLIST_KEY:
+ tag = XPLIST_KEY;
+ tag_len = XPLIST_KEY_LEN;
+ /* contents processed directly below */
+ break;
+
+ case PLIST_DATA:
+ tag = XPLIST_DATA;
+ tag_len = XPLIST_DATA_LEN;
+ /* contents processed directly below */
+ break;
+ case PLIST_ARRAY:
+ tag = XPLIST_ARRAY;
+ tag_len = XPLIST_ARRAY_LEN;
+ isStruct = (node->children) ? TRUE : FALSE;
+ break;
+ case PLIST_DICT:
+ tag = XPLIST_DICT;
+ tag_len = XPLIST_DICT_LEN;
+ isStruct = (node->children) ? TRUE : FALSE;
+ break;
+ case PLIST_DATE:
+ tag = XPLIST_DATE;
+ tag_len = XPLIST_DATE_LEN;
+ {
+ Time64_T timev = (Time64_T)node_data->realval + MAC_EPOCH;
+ struct TM _btime;
+ struct TM *btime = gmtime64_r(&timev, &_btime);
+ if (btime) {
+ val = (char*)malloc(24);
+ memset(val, 0, 24);
+ struct tm _tmcopy;
+ copy_TM64_to_tm(btime, &_tmcopy);
+ val_len = strftime(val, 24, "%Y-%m-%dT%H:%M:%SZ", &_tmcopy);
+ if (val_len <= 0) {
+ free (val);
+ val = NULL;
+ }
+ }
+ }
+ break;
+ case PLIST_UID:
+ tag = XPLIST_DICT;
+ tag_len = XPLIST_DICT_LEN;
+ val = (char*)malloc(64);
+ if (node_data->length == 16) {
+ val_len = snprintf(val, 64, "%"PRIu64, node_data->intval);
+ } else {
+ val_len = snprintf(val, 64, "%"PRIi64, node_data->intval);
+ }
+ break;
+ default:
+ break;
+ }
+
+ for (i = 0; i < depth; i++) {
+ str_buf_append(*outbuf, "\t", 1);
+ }
+
+ /* append tag */
+ str_buf_append(*outbuf, "<", 1);
+ str_buf_append(*outbuf, tag, tag_len);
+ if (node_data->type == PLIST_STRING || node_data->type == PLIST_KEY) {
+ size_t j;
+ size_t len;
+ off_t start = 0;
+ off_t cur = 0;
+
+ str_buf_append(*outbuf, ">", 1);
+ tagOpen = TRUE;
+
+ /* make sure we convert the following predefined xml entities */
+ /* < = < > = > & = & */
+ len = node_data->length;
+ for (j = 0; j < len; j++) {
+ switch (node_data->strval[j]) {
+ case '<':
+ str_buf_append(*outbuf, node_data->strval + start, cur - start);
+ str_buf_append(*outbuf, "<", 4);
+ start = cur+1;
+ break;
+ case '>':
+ str_buf_append(*outbuf, node_data->strval + start, cur - start);
+ str_buf_append(*outbuf, ">", 4);
+ start = cur+1;
+ break;
+ case '&':
+ str_buf_append(*outbuf, node_data->strval + start, cur - start);
+ str_buf_append(*outbuf, "&", 5);
+ start = cur+1;
+ break;
+ default:
+ break;
+ }
+ cur++;
+ }
+ str_buf_append(*outbuf, node_data->strval + start, cur - start);
+ } else if (node_data->type == PLIST_DATA) {
+ str_buf_append(*outbuf, ">", 1);
+ tagOpen = TRUE;
+ str_buf_append(*outbuf, "\n", 1);
+ if (node_data->length > 0) {
+ uint32_t j = 0;
+ uint32_t indent = (depth > 8) ? 8 : depth;
+ uint32_t maxread = MAX_DATA_BYTES_PER_LINE(indent);
+ size_t count = 0;
+ size_t amount = (node_data->length / 3 * 4) + 4 + (((node_data->length / maxread) + 1) * (indent+1));
+ if ((*outbuf)->len + amount > (*outbuf)->capacity) {
+ str_buf_grow(*outbuf, amount);
+ }
+ while (j < node_data->length) {
+ for (i = 0; i < indent; i++) {
+ str_buf_append(*outbuf, "\t", 1);
+ }
+ count = (node_data->length-j < maxread) ? node_data->length-j : maxread;
+ assert((*outbuf)->len + count < (*outbuf)->capacity);
+ (*outbuf)->len += base64encode((char*)(*outbuf)->data + (*outbuf)->len, node_data->buff + j, count);
+ str_buf_append(*outbuf, "\n", 1);
+ j+=count;
+ }
+ }
+ for (i = 0; i < depth; i++) {
+ str_buf_append(*outbuf, "\t", 1);
+ }
+ } else if (node_data->type == PLIST_UID) {
+ /* special case for UID nodes: create a DICT */
+ str_buf_append(*outbuf, ">", 1);
+ tagOpen = TRUE;
+ str_buf_append(*outbuf, "\n", 1);
+
+ /* add CF$UID key */
+ for (i = 0; i < depth+1; i++) {
+ str_buf_append(*outbuf, "\t", 1);
+ }
+ str_buf_append(*outbuf, "CF$UID", 17);
+ str_buf_append(*outbuf, "\n", 1);
+
+ /* add UID value */
+ for (i = 0; i < depth+1; i++) {
+ str_buf_append(*outbuf, "\t", 1);
+ }
+ str_buf_append(*outbuf, "", 9);
+ str_buf_append(*outbuf, val, val_len);
+ str_buf_append(*outbuf, "", 10);
+ str_buf_append(*outbuf, "\n", 1);
+
+ for (i = 0; i < depth; i++) {
+ str_buf_append(*outbuf, "\t", 1);
+ }
+ } else if (val) {
+ str_buf_append(*outbuf, ">", 1);
+ tagOpen = TRUE;
+ str_buf_append(*outbuf, val, val_len);
+ } else if (isStruct) {
+ tagOpen = TRUE;
+ str_buf_append(*outbuf, ">", 1);
+ } else {
+ tagOpen = FALSE;
+ str_buf_append(*outbuf, "/>", 2);
+ }
+ free(val);
+
+ if (isStruct) {
+ /* add newline for structured types */
+ str_buf_append(*outbuf, "\n", 1);
+
+ /* add child nodes */
+ if (node_data->type == PLIST_DICT && node->children) {
+ assert((node->children->count % 2) == 0);
+ }
+ node_t *ch;
+ for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) {
+ node_to_xml(ch, outbuf, depth+1);
+ }
+
+ /* fix indent for structured types */
+ for (i = 0; i < depth; i++) {
+ str_buf_append(*outbuf, "\t", 1);
+ }
+ }
+
+ if (tagOpen) {
+ /* add closing tag */
+ str_buf_append(*outbuf, "", 2);
+ str_buf_append(*outbuf, tag, tag_len);
+ str_buf_append(*outbuf, ">", 1);
+ }
+ str_buf_append(*outbuf, "\n", 1);
+
+ return;
+}
+
+static void parse_date(const char *strval, struct TM *btime)
+{
+ if (!btime) return;
+ memset(btime, 0, sizeof(struct tm));
+ if (!strval) return;
+#ifdef HAVE_STRPTIME
+ strptime((char*)strval, "%Y-%m-%dT%H:%M:%SZ", btime);
+#else
+#ifdef USE_TM64
+ #define PLIST_SSCANF_FORMAT "%lld-%d-%dT%d:%d:%dZ"
+#else
+ #define PLIST_SSCANF_FORMAT "%d-%d-%dT%d:%d:%dZ"
+#endif
+ sscanf(strval, PLIST_SSCANF_FORMAT, &btime->tm_year, &btime->tm_mon, &btime->tm_mday, &btime->tm_hour, &btime->tm_min, &btime->tm_sec);
+ btime->tm_year-=1900;
+ btime->tm_mon--;
+#endif
+ btime->tm_isdst=0;
+}
+
+#define PO10i_LIMIT (INT64_MAX/10)
+
+/* based on https://stackoverflow.com/a/4143288 */
+static int num_digits_i(int64_t i)
+{
+ int n;
+ int64_t po10;
+ n=1;
+ if (i < 0) {
+ i = -i;
+ n++;
+ }
+ po10=10;
+ while (i>=po10) {
+ n++;
+ if (po10 > PO10i_LIMIT) break;
+ po10*=10;
+ }
+ return n;
+}
+
+#define PO10u_LIMIT (UINT64_MAX/10)
+
+/* based on https://stackoverflow.com/a/4143288 */
+static int num_digits_u(uint64_t i)
+{
+ int n;
+ uint64_t po10;
+ n=1;
+ po10=10;
+ while (i>=po10) {
+ n++;
+ if (po10 > PO10u_LIMIT) break;
+ po10*=10;
+ }
+ return n;
+}
+
+static void node_estimate_size(node_t *node, uint64_t *size, uint32_t depth)
+{
+ plist_data_t data;
+ if (!node) {
+ return;
+ }
+ data = plist_get_data(node);
+ if (node->children) {
+ node_t *ch;
+ for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) {
+ node_estimate_size(ch, size, depth + 1);
+ }
+ switch (data->type) {
+ case PLIST_DICT:
+ *size += (XPLIST_DICT_LEN << 1) + 7;
+ break;
+ case PLIST_ARRAY:
+ *size += (XPLIST_ARRAY_LEN << 1) + 7;
+ break;
+ default:
+ break;
+ }
+ *size += (depth << 1);
+ } else {
+ uint32_t indent = (depth > 8) ? 8 : depth;
+ switch (data->type) {
+ case PLIST_DATA: {
+ uint32_t req_lines = (data->length / MAX_DATA_BYTES_PER_LINE(indent)) + 1;
+ uint32_t b64len = data->length + (data->length / 3);
+ b64len += b64len % 4;
+ *size += b64len;
+ *size += (XPLIST_DATA_LEN << 1) + 5 + (indent+1) * (req_lines+1) + 1;
+ } break;
+ case PLIST_STRING:
+ *size += data->length;
+ *size += (XPLIST_STRING_LEN << 1) + 6;
+ break;
+ case PLIST_KEY:
+ *size += data->length;
+ *size += (XPLIST_KEY_LEN << 1) + 6;
+ break;
+ case PLIST_UINT:
+ if (data->length == 16) {
+ *size += num_digits_u(data->intval);
+ } else {
+ *size += num_digits_i((int64_t)data->intval);
+ }
+ *size += (XPLIST_INT_LEN << 1) + 6;
+ break;
+ case PLIST_REAL:
+ *size += num_digits_i((int64_t)data->realval) + 7;
+ *size += (XPLIST_REAL_LEN << 1) + 6;
+ break;
+ case PLIST_DATE:
+ *size += 20; /* YYYY-MM-DDThh:mm:ssZ */
+ *size += (XPLIST_DATE_LEN << 1) + 6;
+ break;
+ case PLIST_BOOLEAN:
+ *size += ((data->boolval) ? XPLIST_TRUE_LEN : XPLIST_FALSE_LEN) + 4;
+ break;
+ case PLIST_DICT:
+ *size += XPLIST_DICT_LEN + 4; /* */
+ break;
+ case PLIST_ARRAY:
+ *size += XPLIST_ARRAY_LEN + 4; /* */
+ break;
+ case PLIST_UID:
+ *size += num_digits_i((int64_t)data->intval);
+ *size += (XPLIST_DICT_LEN << 1) + 7;
+ *size += indent + ((indent+1) << 1);
+ *size += 18; /* CF$UID */
+ *size += (XPLIST_INT_LEN << 1) + 6;
+ break;
+ default:
+ break;
+ }
+ *size += indent;
+ }
+}
+
+PLIST_API void plist_to_xml(plist_t plist, char **plist_xml, uint32_t * length)
+{
+ uint64_t size = 0;
+ node_estimate_size(plist, &size, 0);
+ size += sizeof(XML_PLIST_PROLOG) + sizeof(XML_PLIST_EPILOG) - 1;
+
+ strbuf_t *outbuf = str_buf_new(size);
+
+ str_buf_append(outbuf, XML_PLIST_PROLOG, sizeof(XML_PLIST_PROLOG)-1);
+
+ node_to_xml(plist, &outbuf, 0);
+
+ str_buf_append(outbuf, XML_PLIST_EPILOG, sizeof(XML_PLIST_EPILOG));
+
+ *plist_xml = outbuf->data;
+ *length = outbuf->len - 1;
+
+ outbuf->data = NULL;
+ str_buf_free(outbuf);
+}
+
+struct _parse_ctx {
+ const char *pos;
+ const char *end;
+ int err;
+};
+typedef struct _parse_ctx* parse_ctx;
+
+static void parse_skip_ws(parse_ctx ctx)
+{
+ while (ctx->pos < ctx->end && ((*(ctx->pos) == ' ') || (*(ctx->pos) == '\t') || (*(ctx->pos) == '\r') || (*(ctx->pos) == '\n'))) {
+ ctx->pos++;
+ }
+}
+
+static void find_char(parse_ctx ctx, char c, int skip_quotes)
+{
+ while (ctx->pos < ctx->end && (*(ctx->pos) != c)) {
+ if (skip_quotes && (c != '"') && (*(ctx->pos) == '"')) {
+ ctx->pos++;
+ find_char(ctx, '"', 0);
+ if (ctx->pos >= ctx->end) {
+ PLIST_XML_ERR("EOF while looking for matching double quote\n");
+ return;
+ }
+ if (*(ctx->pos) != '"') {
+ PLIST_XML_ERR("Unmatched double quote\n");
+ return;
+ }
+ }
+ ctx->pos++;
+ }
+}
+
+static void find_str(parse_ctx ctx, const char *str, size_t len, int skip_quotes)
+{
+ while (ctx->pos < (ctx->end - len)) {
+ if (!strncmp(ctx->pos, str, len)) {
+ break;
+ }
+ if (skip_quotes && (*(ctx->pos) == '"')) {
+ ctx->pos++;
+ find_char(ctx, '"', 0);
+ if (ctx->pos >= ctx->end) {
+ PLIST_XML_ERR("EOF while looking for matching double quote\n");
+ return;
+ }
+ if (*(ctx->pos) != '"') {
+ PLIST_XML_ERR("Unmatched double quote\n");
+ return;
+ }
+ }
+ ctx->pos++;
+ }
+}
+
+static void find_next(parse_ctx ctx, const char *nextchars, int numchars, int skip_quotes)
+{
+ int i = 0;
+ while (ctx->pos < ctx->end) {
+ if (skip_quotes && (*(ctx->pos) == '"')) {
+ ctx->pos++;
+ find_char(ctx, '"', 0);
+ if (ctx->pos >= ctx->end) {
+ PLIST_XML_ERR("EOF while looking for matching double quote\n");
+ return;
+ }
+ if (*(ctx->pos) != '"') {
+ PLIST_XML_ERR("Unmatched double quote\n");
+ return;
+ }
+ }
+ for (i = 0; i < numchars; i++) {
+ if (*(ctx->pos) == nextchars[i]) {
+ return;
+ }
+ }
+ ctx->pos++;
+ }
+}
+
+typedef struct {
+ const char *begin;
+ size_t length;
+ int is_cdata;
+ void *next;
+} text_part_t;
+
+static text_part_t* text_part_init(text_part_t* part, const char *begin, size_t length, int is_cdata)
+{
+ part->begin = begin;
+ part->length = length;
+ part->is_cdata = is_cdata;
+ part->next = NULL;
+ return part;
+}
+
+static void text_parts_free(text_part_t *tp)
+{
+ while (tp) {
+ text_part_t *tmp = tp;
+ tp = tp->next;
+ free(tmp);
+ }
+}
+
+static text_part_t* text_part_append(text_part_t* parts, const char *begin, size_t length, int is_cdata)
+{
+ text_part_t* newpart = malloc(sizeof(text_part_t));
+ assert(newpart);
+ parts->next = text_part_init(newpart, begin, length, is_cdata);
+ return newpart;
+}
+
+static text_part_t* get_text_parts(parse_ctx ctx, const char* tag, size_t tag_len, int skip_ws, text_part_t *parts)
+{
+ const char *p = NULL;
+ const char *q = NULL;
+ text_part_t *last = NULL;
+
+ if (skip_ws) {
+ parse_skip_ws(ctx);
+ }
+ do {
+ p = ctx->pos;
+ find_char(ctx, '<', 0);
+ if (ctx->pos >= ctx->end || *ctx->pos != '<') {
+ PLIST_XML_ERR("EOF while looking for closing tag\n");
+ ctx->err++;
+ return NULL;
+ }
+ q = ctx->pos;
+ ctx->pos++;
+ if (ctx->pos >= ctx->end) {
+ PLIST_XML_ERR("EOF while parsing '%s'\n", p);
+ ctx->err++;
+ return NULL;
+ }
+ if (*ctx->pos == '!') {
+ ctx->pos++;
+ if (ctx->pos >= ctx->end-1) {
+ PLIST_XML_ERR("EOF while parsing err++;
+ return NULL;
+ }
+ if (*ctx->pos == '-' && *(ctx->pos+1) == '-') {
+ if (last) {
+ last = text_part_append(last, p, q-p, 0);
+ } else if (parts) {
+ last = text_part_init(parts, p, q-p, 0);
+ }
+ ctx->pos += 2;
+ find_str(ctx, "-->", 3, 0);
+ if (ctx->pos > ctx->end-3 || strncmp(ctx->pos, "-->", 3) != 0) {
+ PLIST_XML_ERR("EOF while looking for end of comment\n");
+ ctx->err++;
+ return NULL;
+ }
+ ctx->pos += 3;
+ } else if (*ctx->pos == '[') {
+ ctx->pos++;
+ if (ctx->pos >= ctx->end - 8) {
+ PLIST_XML_ERR("EOF while parsing <[ tag\n");
+ ctx->err++;
+ return NULL;
+ }
+ if (strncmp(ctx->pos, "CDATA[", 6) == 0) {
+ if (q-p > 0) {
+ if (last) {
+ last = text_part_append(last, p, q-p, 0);
+ } else if (parts) {
+ last = text_part_init(parts, p, q-p, 0);
+ }
+ }
+ ctx->pos+=6;
+ p = ctx->pos;
+ find_str(ctx, "]]>", 3, 0);
+ if (ctx->pos > ctx->end-3 || strncmp(ctx->pos, "]]>", 3) != 0) {
+ PLIST_XML_ERR("EOF while looking for end of CDATA block\n");
+ ctx->err++;
+ return NULL;
+ }
+ q = ctx->pos;
+ if (last) {
+ last = text_part_append(last, p, q-p, 1);
+ } else if (parts) {
+ last = text_part_init(parts, p, q-p, 1);
+ }
+ ctx->pos += 3;
+ } else {
+ p = ctx->pos;
+ find_next(ctx, " \r\n\t>", 5, 1);
+ PLIST_XML_ERR("Invalid special tag <[%.*s> encountered inside <%s> tag\n", (int)(ctx->pos - p), p, tag);
+ ctx->err++;
+ return NULL;
+ }
+ } else {
+ p = ctx->pos;
+ find_next(ctx, " \r\n\t>", 5, 1);
+ PLIST_XML_ERR("Invalid special tag encountered inside <%s> tag\n", (int)(ctx->pos - p), p, tag);
+ ctx->err++;
+ return NULL;
+ }
+ } else if (*ctx->pos == '/') {
+ break;
+ } else {
+ p = ctx->pos;
+ find_next(ctx, " \r\n\t>", 5, 1);
+ PLIST_XML_ERR("Invalid tag <%.*s> encountered inside <%s> tag\n", (int)(ctx->pos - p), p, tag);
+ ctx->err++;
+ return NULL;
+ }
+ } while (1);
+ ctx->pos++;
+ if (ctx->pos >= ctx->end-tag_len || strncmp(ctx->pos, tag, tag_len)) {
+ PLIST_XML_ERR("EOF or end tag mismatch\n");
+ ctx->err++;
+ return NULL;
+ }
+ ctx->pos+=tag_len;
+ parse_skip_ws(ctx);
+ if (ctx->pos >= ctx->end) {
+ PLIST_XML_ERR("EOF while parsing closing tag\n");
+ ctx->err++;
+ return NULL;
+ } else if (*ctx->pos != '>') {
+ PLIST_XML_ERR("Invalid closing tag; expected '>', found '%c'\n", *ctx->pos);
+ ctx->err++;
+ return NULL;
+ }
+ ctx->pos++;
+
+ if (q-p > 0) {
+ if (last) {
+ last = text_part_append(last, p, q-p, 0);
+ } else if (parts) {
+ last = text_part_init(parts, p, q-p, 0);
+ }
+ }
+ return parts;
+}
+
+static int unescape_entities(char *str, size_t *length)
+{
+ size_t i = 0;
+ size_t len = *length;
+ while (len > 0 && i < len-1) {
+ if (str[i] == '&') {
+ char *entp = str + i + 1;
+ while (i < len && str[i] != ';') {
+ i++;
+ }
+ if (i >= len) {
+ PLIST_XML_ERR("Invalid entity sequence encountered (missing terminating ';')\n");
+ return -1;
+ }
+ if (str+i >= entp+1) {
+ int entlen = str+i - entp;
+ int bytelen = 1;
+ if (!strncmp(entp, "amp", 3)) {
+ /* the '&' is already there */
+ } else if (!strncmp(entp, "apos", 4)) {
+ *(entp-1) = '\'';
+ } else if (!strncmp(entp, "quot", 4)) {
+ *(entp-1) = '"';
+ } else if (!strncmp(entp, "lt", 2)) {
+ *(entp-1) = '<';
+ } else if (!strncmp(entp, "gt", 2)) {
+ *(entp-1) = '>';
+ } else if (*entp == '#') {
+ /* numerical character reference */
+ uint64_t val = 0;
+ char* ep = NULL;
+ if (entlen > 8) {
+ PLIST_XML_ERR("Invalid numerical character reference encountered, sequence too long: &%.*s;\n", entlen, entp);
+ return -1;
+ }
+ if (*(entp+1) == 'x' || *(entp+1) == 'X') {
+ if (entlen < 3) {
+ PLIST_XML_ERR("Invalid numerical character reference encountered, sequence too short: &%.*s;\n", entlen, entp);
+ return -1;
+ }
+ val = strtoull(entp+2, &ep, 16);
+ } else {
+ if (entlen < 2) {
+ PLIST_XML_ERR("Invalid numerical character reference encountered, sequence too short: &%.*s;\n", entlen, entp);
+ return -1;
+ }
+ val = strtoull(entp+1, &ep, 10);
+ }
+ if (val == 0 || val > 0x10FFFF || ep-entp != entlen) {
+ PLIST_XML_ERR("Invalid numerical character reference found: &%.*s;\n", entlen, entp);
+ return -1;
+ }
+ /* convert to UTF8 */
+ if (val >= 0x10000) {
+ /* four bytes */
+ *(entp-1) = (char)(0xF0 + ((val >> 18) & 0x7));
+ *(entp+0) = (char)(0x80 + ((val >> 12) & 0x3F));
+ *(entp+1) = (char)(0x80 + ((val >> 6) & 0x3F));
+ *(entp+2) = (char)(0x80 + (val & 0x3F));
+ entp+=3;
+ bytelen = 4;
+ } else if (val >= 0x800) {
+ /* three bytes */
+ *(entp-1) = (char)(0xE0 + ((val >> 12) & 0xF));
+ *(entp+0) = (char)(0x80 + ((val >> 6) & 0x3F));
+ *(entp+1) = (char)(0x80 + (val & 0x3F));
+ entp+=2;
+ bytelen = 3;
+ } else if (val >= 0x80) {
+ /* two bytes */
+ *(entp-1) = (char)(0xC0 + ((val >> 6) & 0x1F));
+ *(entp+0) = (char)(0x80 + (val & 0x3F));
+ entp++;
+ bytelen = 2;
+ } else {
+ /* one byte */
+ *(entp-1) = (char)(val & 0x7F);
+ }
+ } else {
+ PLIST_XML_ERR("Invalid entity encountered: &%.*s;\n", entlen, entp);
+ return -1;
+ }
+ memmove(entp, str+i+1, len - i);
+ i -= entlen+1 - bytelen;
+ len -= entlen+2 - bytelen;
+ continue;
+ } else {
+ PLIST_XML_ERR("Invalid empty entity sequence &;\n");
+ return -1;
+ }
+ }
+ i++;
+ }
+ *length = len;
+ return 0;
+}
+
+static char* text_parts_get_content(text_part_t *tp, int unesc_entities, size_t *length, int *requires_free)
+{
+ char *str = NULL;
+ size_t total_length = 0;
+
+ if (!tp) {
+ return NULL;
+ }
+ char *p;
+ if (requires_free && !tp->next) {
+ if (tp->is_cdata || !unesc_entities) {
+ *requires_free = 0;
+ if (length) {
+ *length = tp->length;
+ }
+ return (char*)tp->begin;
+ }
+ }
+ text_part_t *tmp = tp;
+ while (tp && tp->begin) {
+ total_length += tp->length;
+ tp = tp->next;
+ }
+ str = malloc(total_length + 1);
+ assert(str);
+ p = str;
+ tp = tmp;
+ while (tp && tp->begin) {
+ size_t len = tp->length;
+ strncpy(p, tp->begin, len);
+ p[len] = '\0';
+ if (!tp->is_cdata && unesc_entities) {
+ if (unescape_entities(p, &len) < 0) {
+ free(str);
+ return NULL;
+ }
+ }
+ p += len;
+ tp = tp->next;
+ }
+ *p = '\0';
+ if (length) {
+ *length = p - str;
+ }
+ if (requires_free) {
+ *requires_free = 1;
+ }
+ return str;
+}
+
+static void node_from_xml(parse_ctx ctx, plist_t *plist)
+{
+ char *tag = NULL;
+ char *keyname = NULL;
+ plist_t subnode = NULL;
+ const char *p = NULL;
+ plist_t parent = NULL;
+ int has_content = 0;
+
+ struct node_path_item {
+ const char *type;
+ void *prev;
+ };
+ struct node_path_item* node_path = NULL;
+
+ while (ctx->pos < ctx->end && !ctx->err) {
+ parse_skip_ws(ctx);
+ if (ctx->pos >= ctx->end) {
+ break;
+ }
+ if (*ctx->pos != '<') {
+ p = ctx->pos;
+ find_next(ctx, " \t\r\n", 4, 0);
+ PLIST_XML_ERR("Expected: opening tag, found: %.*s\n", (int)(ctx->pos - p), p);
+ ctx->err++;
+ goto err_out;
+ }
+ ctx->pos++;
+ if (ctx->pos >= ctx->end) {
+ PLIST_XML_ERR("EOF while parsing tag\n");
+ ctx->err++;
+ goto err_out;
+ }
+
+ if (*(ctx->pos) == '?') {
+ find_str(ctx, "?>", 2, 1);
+ if (ctx->pos > ctx->end-2) {
+ PLIST_XML_ERR("EOF while looking for tag closing marker\n");
+ ctx->err++;
+ goto err_out;
+ }
+ if (strncmp(ctx->pos, "?>", 2)) {
+ PLIST_XML_ERR("Couldn't find tag closing marker\n");
+ ctx->err++;
+ goto err_out;
+ }
+ ctx->pos += 2;
+ continue;
+ } else if (*(ctx->pos) == '!') {
+ /* comment or DTD */
+ if (((ctx->end - ctx->pos) > 3) && !strncmp(ctx->pos, "!--", 3)) {
+ ctx->pos += 3;
+ find_str(ctx,"-->", 3, 0);
+ if (ctx->pos > ctx->end-3 || strncmp(ctx->pos, "-->", 3)) {
+ PLIST_XML_ERR("Couldn't find end of comment\n");
+ ctx->err++;
+ goto err_out;
+ }
+ ctx->pos+=3;
+ } else if (((ctx->end - ctx->pos) > 8) && !strncmp(ctx->pos, "!DOCTYPE", 8)) {
+ int embedded_dtd = 0;
+ ctx->pos+=8;
+ while (ctx->pos < ctx->end) {
+ find_next(ctx, " \t\r\n[>", 6, 1);
+ if (ctx->pos >= ctx->end) {
+ PLIST_XML_ERR("EOF while parsing !DOCTYPE\n");
+ ctx->err++;
+ goto err_out;
+ }
+ if (*ctx->pos == '[') {
+ embedded_dtd = 1;
+ break;
+ } else if (*ctx->pos == '>') {
+ /* end of DOCTYPE found already */
+ ctx->pos++;
+ break;
+ } else {
+ parse_skip_ws(ctx);
+ }
+ }
+ if (embedded_dtd) {
+ find_str(ctx, "]>", 2, 1);
+ if (ctx->pos > ctx->end-2 || strncmp(ctx->pos, "]>", 2)) {
+ PLIST_XML_ERR("Couldn't find end of DOCTYPE\n");
+ ctx->err++;
+ goto err_out;
+ }
+ ctx->pos += 2;
+ }
+ } else {
+ p = ctx->pos;
+ find_next(ctx, " \r\n\t>", 5, 1);
+ PLIST_XML_ERR("Invalid or incomplete special tag <%.*s> encountered\n", (int)(ctx->pos - p), p);
+ ctx->err++;
+ goto err_out;
+ }
+ continue;
+ } else {
+ int is_empty = 0;
+ int closing_tag = 0;
+ p = ctx->pos;
+ find_next(ctx," \r\n\t<>", 6, 0);
+ if (ctx->pos >= ctx->end) {
+ PLIST_XML_ERR("Unexpected EOF while parsing XML\n");
+ ctx->err++;
+ goto err_out;
+ }
+ int taglen = ctx->pos - p;
+ tag = malloc(taglen + 1);
+ strncpy(tag, p, taglen);
+ tag[taglen] = '\0';
+ if (*ctx->pos != '>') {
+ find_next(ctx, "<>", 2, 1);
+ }
+ if (ctx->pos >= ctx->end) {
+ PLIST_XML_ERR("Unexpected EOF while parsing XML\n");
+ ctx->err++;
+ goto err_out;
+ }
+ if (*ctx->pos != '>') {
+ PLIST_XML_ERR("Missing '>' for tag <%s\n", tag);
+ ctx->err++;
+ goto err_out;
+ }
+ if (*(ctx->pos-1) == '/') {
+ int idx = ctx->pos - p - 1;
+ if (idx < taglen)
+ tag[idx] = '\0';
+ is_empty = 1;
+ }
+ ctx->pos++;
+ if (!strcmp(tag, "plist")) {
+ free(tag);
+ tag = NULL;
+ has_content = 0;
+
+ if (!node_path && *plist) {
+ /* we don't allow another top-level */
+ break;
+ }
+ if (is_empty) {
+ PLIST_XML_ERR("Empty plist tag\n");
+ ctx->err++;
+ goto err_out;
+ }
+
+ struct node_path_item *path_item = malloc(sizeof(struct node_path_item));
+ if (!path_item) {
+ PLIST_XML_ERR("out of memory when allocating node path item\n");
+ ctx->err++;
+ goto err_out;
+ }
+ path_item->type = "plist";
+ path_item->prev = node_path;
+ node_path = path_item;
+
+ continue;
+ } else if (!strcmp(tag, "/plist")) {
+ if (!has_content) {
+ PLIST_XML_ERR("encountered empty plist tag\n");
+ ctx->err++;
+ goto err_out;
+ }
+ if (!node_path) {
+ PLIST_XML_ERR("node path is empty while trying to match closing tag with opening tag\n");
+ ctx->err++;
+ goto err_out;
+ }
+ if (strcmp(node_path->type, tag+1) != 0) {
+ PLIST_XML_ERR("mismatching closing tag <%s> found for opening tag <%s>\n", tag, node_path->type);
+ ctx->err++;
+ goto err_out;
+ }
+ struct node_path_item *path_item = node_path;
+ node_path = node_path->prev;
+ free(path_item);
+
+ free(tag);
+ tag = NULL;
+
+ continue;
+ }
+
+ plist_data_t data = plist_new_plist_data();
+ subnode = plist_new_node(data);
+ has_content = 1;
+
+ if (!strcmp(tag, XPLIST_DICT)) {
+ data->type = PLIST_DICT;
+ } else if (!strcmp(tag, XPLIST_ARRAY)) {
+ data->type = PLIST_ARRAY;
+ } else if (!strcmp(tag, XPLIST_INT)) {
+ if (!is_empty) {
+ text_part_t first_part = { NULL, 0, 0, NULL };
+ text_part_t *tp = get_text_parts(ctx, tag, taglen, 1, &first_part);
+ if (!tp) {
+ PLIST_XML_ERR("Could not parse text content for '%s' node\n", tag);
+ text_parts_free(first_part.next);
+ ctx->err++;
+ goto err_out;
+ }
+ if (tp->begin) {
+ int requires_free = 0;
+ char *str_content = text_parts_get_content(tp, 0, NULL, &requires_free);
+ if (!str_content) {
+ PLIST_XML_ERR("Could not get text content for '%s' node\n", tag);
+ text_parts_free(first_part.next);
+ ctx->err++;
+ goto err_out;
+ }
+ char *str = str_content;
+ int is_negative = 0;
+ if ((str[0] == '-') || (str[0] == '+')) {
+ if (str[0] == '-') {
+ is_negative = 1;
+ }
+ str++;
+ }
+ data->intval = strtoull((char*)str, NULL, 0);
+ if (is_negative || (data->intval <= INT64_MAX)) {
+ uint64_t v = data->intval;
+ if (is_negative) {
+ v = -v;
+ }
+ data->intval = v;
+ data->length = 8;
+ } else {
+ data->length = 16;
+ }
+ if (requires_free) {
+ free(str_content);
+ }
+ } else {
+ is_empty = 1;
+ }
+ text_parts_free(tp->next);
+ }
+ if (is_empty) {
+ data->intval = 0;
+ data->length = 8;
+ }
+ data->type = PLIST_UINT;
+ } else if (!strcmp(tag, XPLIST_REAL)) {
+ if (!is_empty) {
+ text_part_t first_part = { NULL, 0, 0, NULL };
+ text_part_t *tp = get_text_parts(ctx, tag, taglen, 1, &first_part);
+ if (!tp) {
+ PLIST_XML_ERR("Could not parse text content for '%s' node\n", tag);
+ text_parts_free(first_part.next);
+ ctx->err++;
+ goto err_out;
+ }
+ if (tp->begin) {
+ int requires_free = 0;
+ char *str_content = text_parts_get_content(tp, 0, NULL, &requires_free);
+ if (!str_content) {
+ PLIST_XML_ERR("Could not get text content for '%s' node\n", tag);
+ text_parts_free(first_part.next);
+ ctx->err++;
+ goto err_out;
+ }
+ data->realval = atof(str_content);
+ if (requires_free) {
+ free(str_content);
+ }
+ }
+ text_parts_free(tp->next);
+ }
+ data->type = PLIST_REAL;
+ data->length = 8;
+ } else if (!strcmp(tag, XPLIST_TRUE)) {
+ if (!is_empty) {
+ get_text_parts(ctx, tag, taglen, 1, NULL);
+ }
+ data->type = PLIST_BOOLEAN;
+ data->boolval = 1;
+ data->length = 1;
+ } else if (!strcmp(tag, XPLIST_FALSE)) {
+ if (!is_empty) {
+ get_text_parts(ctx, tag, taglen, 1, NULL);
+ }
+ data->type = PLIST_BOOLEAN;
+ data->boolval = 0;
+ data->length = 1;
+ } else if (!strcmp(tag, XPLIST_STRING) || !strcmp(tag, XPLIST_KEY)) {
+ if (!is_empty) {
+ text_part_t first_part = { NULL, 0, 0, NULL };
+ text_part_t *tp = get_text_parts(ctx, tag, taglen, 0, &first_part);
+ char *str = NULL;
+ size_t length = 0;
+ if (!tp) {
+ PLIST_XML_ERR("Could not parse text content for '%s' node\n", tag);
+ text_parts_free(first_part.next);
+ ctx->err++;
+ goto err_out;
+ }
+ str = text_parts_get_content(tp, 1, &length, NULL);
+ text_parts_free(first_part.next);
+ if (!str) {
+ PLIST_XML_ERR("Could not get text content for '%s' node\n", tag);
+ ctx->err++;
+ goto err_out;
+ }
+ if (!strcmp(tag, "key") && !keyname && parent && (plist_get_node_type(parent) == PLIST_DICT)) {
+ keyname = str;
+ free(tag);
+ tag = NULL;
+ plist_free(subnode);
+ subnode = NULL;
+ continue;
+ } else {
+ data->strval = str;
+ data->length = length;
+ }
+ } else {
+ data->strval = strdup("");
+ data->length = 0;
+ }
+ data->type = PLIST_STRING;
+ } else if (!strcmp(tag, XPLIST_DATA)) {
+ if (!is_empty) {
+ text_part_t first_part = { NULL, 0, 0, NULL };
+ text_part_t *tp = get_text_parts(ctx, tag, taglen, 1, &first_part);
+ if (!tp) {
+ PLIST_XML_ERR("Could not parse text content for '%s' node\n", tag);
+ text_parts_free(first_part.next);
+ ctx->err++;
+ goto err_out;
+ }
+ if (tp->begin) {
+ int requires_free = 0;
+ char *str_content = text_parts_get_content(tp, 0, NULL, &requires_free);
+ if (!str_content) {
+ PLIST_XML_ERR("Could not get text content for '%s' node\n", tag);
+ text_parts_free(first_part.next);
+ ctx->err++;
+ goto err_out;
+ }
+ size_t size = tp->length;
+ if (size > 0) {
+ data->buff = base64decode(str_content, &size);
+ data->length = size;
+ }
+
+ if (requires_free) {
+ free(str_content);
+ }
+ }
+ text_parts_free(tp->next);
+ }
+ data->type = PLIST_DATA;
+ } else if (!strcmp(tag, XPLIST_DATE)) {
+ if (!is_empty) {
+ text_part_t first_part = { NULL, 0, 0, NULL };
+ text_part_t *tp = get_text_parts(ctx, tag, taglen, 1, &first_part);
+ if (!tp) {
+ PLIST_XML_ERR("Could not parse text content for '%s' node\n", tag);
+ text_parts_free(first_part.next);
+ ctx->err++;
+ goto err_out;
+ }
+ Time64_T timev = 0;
+ if (tp->begin) {
+ int requires_free = 0;
+ size_t length = 0;
+ char *str_content = text_parts_get_content(tp, 0, &length, &requires_free);
+ if (!str_content) {
+ PLIST_XML_ERR("Could not get text content for '%s' node\n", tag);
+ text_parts_free(first_part.next);
+ ctx->err++;
+ goto err_out;
+ }
+
+ if ((length >= 11) && (length < 32)) {
+ /* we need to copy here and 0-terminate because sscanf will read the entire string (whole rest of XML data) which can be huge */
+ char strval[32];
+ struct TM btime;
+ strncpy(strval, str_content, length);
+ strval[tp->length] = '\0';
+ parse_date(strval, &btime);
+ timev = timegm64(&btime);
+ } else {
+ PLIST_XML_ERR("Invalid text content in date node\n");
+ }
+ if (requires_free) {
+ free(str_content);
+ }
+ }
+ text_parts_free(tp->next);
+ data->realval = (double)(timev - MAC_EPOCH);
+ }
+ data->length = sizeof(double);
+ data->type = PLIST_DATE;
+ } else if (tag[0] == '/') {
+ closing_tag = 1;
+ } else {
+ PLIST_XML_ERR("Unexpected tag <%s%s> encountered\n", tag, (is_empty) ? "/" : "");
+ ctx->pos = ctx->end;
+ ctx->err++;
+ goto err_out;
+ }
+ if (subnode && !closing_tag) {
+ if (!*plist) {
+ /* first node, make this node the parent node */
+ *plist = subnode;
+ if (data->type != PLIST_DICT && data->type != PLIST_ARRAY) {
+ /* if the first node is not a structered node, we're done */
+ subnode = NULL;
+ goto err_out;
+ }
+ parent = subnode;
+ } else if (parent) {
+ switch (plist_get_node_type(parent)) {
+ case PLIST_DICT:
+ if (!keyname) {
+ PLIST_XML_ERR("missing key name while adding dict item\n");
+ ctx->err++;
+ goto err_out;
+ }
+ plist_dict_set_item(parent, keyname, subnode);
+ break;
+ case PLIST_ARRAY:
+ plist_array_append_item(parent, subnode);
+ break;
+ default:
+ /* should not happen */
+ PLIST_XML_ERR("parent is not a structured node\n");
+ ctx->err++;
+ goto err_out;
+ }
+ }
+ if (!is_empty && (data->type == PLIST_DICT || data->type == PLIST_ARRAY)) {
+ struct node_path_item *path_item = malloc(sizeof(struct node_path_item));
+ if (!path_item) {
+ PLIST_XML_ERR("out of memory when allocating node path item\n");
+ ctx->err++;
+ goto err_out;
+ }
+ path_item->type = (data->type == PLIST_DICT) ? XPLIST_DICT : XPLIST_ARRAY;
+ path_item->prev = node_path;
+ node_path = path_item;
+
+ parent = subnode;
+ }
+ subnode = NULL;
+ } else if (closing_tag) {
+ if (!node_path) {
+ PLIST_XML_ERR("node path is empty while trying to match closing tag with opening tag\n");
+ ctx->err++;
+ goto err_out;
+ }
+ if (strcmp(node_path->type, tag+1) != 0) {
+ PLIST_XML_ERR("unexpected %s found (for opening %s)\n", tag, node_path->type);
+ ctx->err++;
+ goto err_out;
+ }
+ struct node_path_item *path_item = node_path;
+ node_path = node_path->prev;
+ free(path_item);
+
+ parent = ((node_t*)parent)->parent;
+ if (!parent) {
+ goto err_out;
+ }
+ }
+
+ free(tag);
+ tag = NULL;
+ free(keyname);
+ keyname = NULL;
+ plist_free(subnode);
+ subnode = NULL;
+ }
+ }
+
+ if (node_path) {
+ PLIST_XML_ERR("EOF encountered while %s> was expected\n", node_path->type);
+ ctx->err++;
+ }
+
+err_out:
+ free(tag);
+ free(keyname);
+ plist_free(subnode);
+
+ /* clean up node_path if required */
+ while (node_path) {
+ struct node_path_item *path_item = node_path;
+ node_path = path_item->prev;
+ free(path_item);
+ }
+
+ if (ctx->err) {
+ plist_free(*plist);
+ *plist = NULL;
+ }
+}
+
+PLIST_API void plist_from_xml(const char *plist_xml, uint32_t length, plist_t * plist)
+{
+ if (!plist_xml || (length == 0)) {
+ *plist = NULL;
+ return;
+ }
+
+ struct _parse_ctx ctx = { plist_xml, plist_xml + length, 0 };
+
+ node_from_xml(&ctx, plist);
+}
diff --git a/lib/raop.c b/lib/raop.c
new file mode 100755
index 0000000..4523a2c
--- /dev/null
+++ b/lib/raop.c
@@ -0,0 +1,380 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include
+#include
+#include
+#include
+
+#include "raop.h"
+#include "raop_rtp.h"
+#include "raop_rtp.h"
+#include "pairing.h"
+#include "httpd.h"
+
+#include "global.h"
+#include "fairplay.h"
+#include "netutils.h"
+#include "logger.h"
+#include "compat.h"
+#include "raop_rtp_mirror.h"
+#include "raop_ntp.h"
+
+struct raop_s {
+ /* Callbacks for audio and video */
+ raop_callbacks_t callbacks;
+
+ /* Logger instance */
+ logger_t *logger;
+
+ /* Pairing, HTTP daemon and RSA key */
+ pairing_t *pairing;
+ httpd_t *httpd;
+
+ dnssd_t *dnssd;
+
+ unsigned short port;
+};
+
+struct raop_conn_s {
+ raop_t *raop;
+ raop_ntp_t *raop_ntp;
+ raop_rtp_t *raop_rtp;
+ raop_rtp_mirror_t *raop_rtp_mirror;
+ fairplay_t *fairplay;
+ pairing_session_t *pairing;
+
+ unsigned char *local;
+ int locallen;
+
+ unsigned char *remote;
+ int remotelen;
+
+};
+typedef struct raop_conn_s raop_conn_t;
+
+#include "raop_handlers.h"
+
+static void *
+conn_init(void *opaque, unsigned char *local, int locallen, unsigned char *remote, int remotelen) {
+ raop_t *raop = opaque;
+ raop_conn_t *conn;
+
+ assert(raop);
+
+ conn = calloc(1, sizeof(raop_conn_t));
+ if (!conn) {
+ return NULL;
+ }
+ conn->raop = raop;
+ conn->raop_rtp = NULL;
+ conn->raop_ntp = NULL;
+ conn->fairplay = fairplay_init(raop->logger);
+
+ if (!conn->fairplay) {
+ free(conn);
+ return NULL;
+ }
+ conn->pairing = pairing_session_init(raop->pairing);
+ if (!conn->pairing) {
+ fairplay_destroy(conn->fairplay);
+ free(conn);
+ return NULL;
+ }
+
+ if (locallen == 4) {
+ logger_log(conn->raop->logger, LOGGER_INFO,
+ "Local: %d.%d.%d.%d",
+ local[0], local[1], local[2], local[3]);
+ } else if (locallen == 16) {
+ logger_log(conn->raop->logger, LOGGER_INFO,
+ "Local: %02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x",
+ local[0], local[1], local[2], local[3], local[4], local[5], local[6], local[7],
+ local[8], local[9], local[10], local[11], local[12], local[13], local[14], local[15]);
+ }
+ if (remotelen == 4) {
+ logger_log(conn->raop->logger, LOGGER_INFO,
+ "Remote: %d.%d.%d.%d",
+ remote[0], remote[1], remote[2], remote[3]);
+ } else if (remotelen == 16) {
+ logger_log(conn->raop->logger, LOGGER_INFO,
+ "Remote: %02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x",
+ remote[0], remote[1], remote[2], remote[3], remote[4], remote[5], remote[6], remote[7],
+ remote[8], remote[9], remote[10], remote[11], remote[12], remote[13], remote[14], remote[15]);
+ }
+
+ conn->local = malloc(locallen);
+ assert(conn->local);
+ memcpy(conn->local, local, locallen);
+
+ conn->remote = malloc(remotelen);
+ assert(conn->remote);
+ memcpy(conn->remote, remote, remotelen);
+
+ conn->locallen = locallen;
+ conn->remotelen = remotelen;
+
+ if (raop->callbacks.conn_init) {
+ raop->callbacks.conn_init(raop->callbacks.cls);
+ }
+
+ return conn;
+}
+
+static void
+conn_request(void *ptr, http_request_t *request, http_response_t **response) {
+ raop_conn_t *conn = ptr;
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "conn_request");
+ const char *method;
+ const char *url;
+ const char *cseq;
+
+ char *response_data = NULL;
+ int response_datalen = 0;
+
+ method = http_request_get_method(request);
+ url = http_request_get_url(request);
+ cseq = http_request_get_header(request, "CSeq");
+ if (!method || !cseq) {
+ return;
+ }
+
+ *response = http_response_init("RTSP/1.0", 200, "OK");
+
+ http_response_add_header(*response, "CSeq", cseq);
+ //http_response_add_header(*response, "Apple-Jack-Status", "connected; type=analog");
+ http_response_add_header(*response, "Server", "AirTunes/220.68");
+
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "Handling request %s with URL %s", method, url);
+ raop_handler_t handler = NULL;
+ if (!strcmp(method, "GET") && !strcmp(url, "/info")) {
+ handler = &raop_handler_info;
+ } else if (!strcmp(method, "POST") && !strcmp(url, "/pair-setup")) {
+ handler = &raop_handler_pairsetup;
+ } else if (!strcmp(method, "POST") && !strcmp(url, "/pair-verify")) {
+ handler = &raop_handler_pairverify;
+ } else if (!strcmp(method, "POST") && !strcmp(url, "/fp-setup")) {
+ handler = &raop_handler_fpsetup;
+ } else if (!strcmp(method, "OPTIONS")) {
+ handler = &raop_handler_options;
+ } else if (!strcmp(method, "SETUP")) {
+ handler = &raop_handler_setup;
+ } else if (!strcmp(method, "GET_PARAMETER")) {
+ handler = &raop_handler_get_parameter;
+ } else if (!strcmp(method, "SET_PARAMETER")) {
+ handler = &raop_handler_set_parameter;
+ } else if (!strcmp(method, "POST") && !strcmp(url, "/feedback")) {
+ handler = &raop_handler_feedback;
+ } else if (!strcmp(method, "RECORD")) {
+ handler = &raop_handler_record;
+ } else if (!strcmp(method, "FLUSH")) {
+ const char *rtpinfo;
+ int next_seq = -1;
+
+ rtpinfo = http_request_get_header(request, "RTP-Info");
+ if (rtpinfo) {
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "Flush with RTP-Info: %s", rtpinfo);
+ if (!strncmp(rtpinfo, "seq=", 4)) {
+ next_seq = strtol(rtpinfo + 4, NULL, 10);
+ }
+ }
+ if (conn->raop_rtp) {
+ raop_rtp_flush(conn->raop_rtp, next_seq);
+ } else {
+ logger_log(conn->raop->logger, LOGGER_WARNING, "RAOP not initialized at FLUSH");
+ }
+ } else if (!strcmp(method, "TEARDOWN")) {
+ //http_response_add_header(*response, "Connection", "close");
+ if (conn->raop_rtp != NULL && raop_rtp_is_running(conn->raop_rtp)) {
+ /* Destroy our RTP session */
+ raop_rtp_stop(conn->raop_rtp);
+ } else if (conn->raop_rtp_mirror) {
+ /* Destroy our sessions */
+ raop_rtp_destroy(conn->raop_rtp);
+ conn->raop_rtp = NULL;
+ raop_rtp_mirror_destroy(conn->raop_rtp_mirror);
+ conn->raop_rtp_mirror = NULL;
+ }
+ }
+ if (handler != NULL) {
+ handler(conn, request, *response, &response_data, &response_datalen);
+ }
+ http_response_finish(*response, response_data, response_datalen);
+ if (response_data) {
+ free(response_data);
+ response_data = NULL;
+ response_datalen = 0;
+ }
+}
+
+static void
+conn_destroy(void *ptr) {
+ raop_conn_t *conn = ptr;
+
+ logger_log(conn->raop->logger, LOGGER_INFO, "Destroying connection");
+
+ if (conn->raop->callbacks.conn_destroy) {
+ conn->raop->callbacks.conn_destroy(conn->raop->callbacks.cls);
+ }
+
+ if (conn->raop_ntp) {
+ raop_ntp_destroy(conn->raop_ntp);
+ }
+ if (conn->raop_rtp) {
+ /* This is done in case TEARDOWN was not called */
+ raop_rtp_destroy(conn->raop_rtp);
+ }
+ if (conn->raop_rtp_mirror) {
+ /* This is done in case TEARDOWN was not called */
+ raop_rtp_mirror_destroy(conn->raop_rtp_mirror);
+ }
+
+ conn->raop->callbacks.video_flush(conn->raop->callbacks.cls);
+
+ free(conn->local);
+ free(conn->remote);
+ pairing_session_destroy(conn->pairing);
+ fairplay_destroy(conn->fairplay);
+ free(conn);
+}
+
+raop_t *
+raop_init(int max_clients, raop_callbacks_t *callbacks) {
+ raop_t *raop;
+ pairing_t *pairing;
+ httpd_t *httpd;
+ httpd_callbacks_t httpd_cbs;
+
+ assert(callbacks);
+ assert(max_clients > 0);
+ assert(max_clients < 100);
+
+ /* Initialize the network */
+ if (netutils_init() < 0) {
+ return NULL;
+ }
+
+ /* Validate the callbacks structure */
+ if (!callbacks->audio_process ||
+ !callbacks->video_process) {
+ return NULL;
+ }
+
+ /* Allocate the raop_t structure */
+ raop = calloc(1, sizeof(raop_t));
+ if (!raop) {
+ return NULL;
+ }
+
+ /* Initialize the logger */
+ raop->logger = logger_init();
+ pairing = pairing_init_generate();
+ if (!pairing) {
+ free(raop);
+ return NULL;
+ }
+
+ /* Set HTTP callbacks to our handlers */
+ memset(&httpd_cbs, 0, sizeof(httpd_cbs));
+ httpd_cbs.opaque = raop;
+ httpd_cbs.conn_init = &conn_init;
+ httpd_cbs.conn_request = &conn_request;
+ httpd_cbs.conn_destroy = &conn_destroy;
+
+ /* Initialize the http daemon */
+ httpd = httpd_init(raop->logger, &httpd_cbs, max_clients);
+ if (!httpd) {
+ pairing_destroy(pairing);
+ free(raop);
+ return NULL;
+ }
+ /* Copy callbacks structure */
+ memcpy(&raop->callbacks, callbacks, sizeof(raop_callbacks_t));
+ raop->pairing = pairing;
+ raop->httpd = httpd;
+ return raop;
+}
+
+void
+raop_destroy(raop_t *raop) {
+ if (raop) {
+ raop_stop(raop);
+ pairing_destroy(raop->pairing);
+ httpd_destroy(raop->httpd);
+ logger_destroy(raop->logger);
+ free(raop);
+
+ /* Cleanup the network */
+ netutils_cleanup();
+ }
+}
+
+int
+raop_is_running(raop_t *raop) {
+ assert(raop);
+
+ return httpd_is_running(raop->httpd);
+}
+
+void
+raop_set_log_level(raop_t *raop, int level) {
+ assert(raop);
+
+ logger_set_level(raop->logger, level);
+}
+
+void
+raop_set_port(raop_t *raop, unsigned short port) {
+ assert(raop);
+ raop->port = port;
+}
+
+unsigned short
+raop_get_port(raop_t *raop) {
+ assert(raop);
+ return raop->port;
+}
+
+void *
+raop_get_callback_cls(raop_t *raop) {
+ assert(raop);
+ return raop->callbacks.cls;
+}
+
+void
+raop_set_log_callback(raop_t *raop, raop_log_callback_t callback, void *cls) {
+ assert(raop);
+
+ logger_set_callback(raop->logger, callback, cls);
+}
+
+void
+raop_set_dnssd(raop_t *raop, dnssd_t *dnssd) {
+ assert(dnssd);
+ raop->dnssd = dnssd;
+}
+
+
+int
+raop_start(raop_t *raop, unsigned short *port) {
+ assert(raop);
+ assert(port);
+ return httpd_start(raop->httpd, port);
+}
+
+void
+raop_stop(raop_t *raop) {
+ assert(raop);
+ httpd_stop(raop->httpd);
+}
\ No newline at end of file
diff --git a/lib/raop.h b/lib/raop.h
new file mode 100755
index 0000000..cfd703e
--- /dev/null
+++ b/lib/raop.h
@@ -0,0 +1,69 @@
+#ifndef RAOP_H
+#define RAOP_H
+
+#include "dnssd.h"
+#include "stream.h"
+#include "raop_ntp.h"
+
+#if defined (WIN32) && defined(DLL_EXPORT)
+# define RAOP_API __declspec(dllexport)
+#else
+# define RAOP_API
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* Define syslog style log levels */
+#define RAOP_LOG_EMERG 0 /* system is unusable */
+#define RAOP_LOG_ALERT 1 /* action must be taken immediately */
+#define RAOP_LOG_CRIT 2 /* critical conditions */
+#define RAOP_LOG_ERR 3 /* error conditions */
+#define RAOP_LOG_WARNING 4 /* warning conditions */
+#define RAOP_LOG_NOTICE 5 /* normal but significant condition */
+#define RAOP_LOG_INFO 6 /* informational */
+#define RAOP_LOG_DEBUG 7 /* debug-level messages */
+
+
+typedef struct raop_s raop_t;
+
+typedef void (*raop_log_callback_t)(void *cls, int level, const char *msg);
+
+struct raop_callbacks_s {
+ void* cls;
+
+ void (*audio_process)(void *cls, raop_ntp_t *ntp, aac_decode_struct *data);
+ void (*video_process)(void *cls, raop_ntp_t *ntp, h264_decode_struct *data);
+
+ /* Optional but recommended callback functions */
+ void (*conn_init)(void *cls);
+ void (*conn_destroy)(void *cls);
+ void (*audio_flush)(void *cls);
+ void (*video_flush)(void *cls);
+ void (*audio_set_volume)(void *cls, float volume);
+ void (*audio_set_metadata)(void *cls, const void *buffer, int buflen);
+ void (*audio_set_coverart)(void *cls, const void *buffer, int buflen);
+ void (*audio_remote_control_id)(void *cls, const char *dacp_id, const char *active_remote_header);
+ void (*audio_set_progress)(void *cls, unsigned int start, unsigned int curr, unsigned int end);
+};
+typedef struct raop_callbacks_s raop_callbacks_t;
+
+RAOP_API raop_t *raop_init(int max_clients, raop_callbacks_t *callbacks);
+
+RAOP_API void raop_set_log_level(raop_t *raop, int level);
+RAOP_API void raop_set_log_callback(raop_t *raop, raop_log_callback_t callback, void *cls);
+RAOP_API void raop_set_port(raop_t *raop, unsigned short port);
+RAOP_API unsigned short raop_get_port(raop_t *raop);
+RAOP_API void *raop_get_callback_cls(raop_t *raop);
+RAOP_API int raop_start(raop_t *raop, unsigned short *port);
+RAOP_API int raop_is_running(raop_t *raop);
+RAOP_API void raop_stop(raop_t *raop);
+RAOP_API void raop_set_dnssd(raop_t *raop, dnssd_t *dnssd);
+RAOP_API void raop_destroy(raop_t *raop);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
diff --git a/lib/raop_buffer.c b/lib/raop_buffer.c
new file mode 100755
index 0000000..1352e93
--- /dev/null
+++ b/lib/raop_buffer.c
@@ -0,0 +1,332 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#include "raop_buffer.h"
+#include "raop_rtp.h"
+
+#include "crypto.h"
+#include "compat.h"
+#include "stream.h"
+
+#define RAOP_BUFFER_LENGTH 32
+
+typedef struct {
+ /* Data available */
+ int filled;
+
+ /* RTP header */
+ unsigned short seqnum;
+ uint64_t timestamp;
+
+ /* Payload data */
+ unsigned int payload_size;
+ void *payload_data;
+} raop_buffer_entry_t;
+
+struct raop_buffer_s {
+ logger_t *logger;
+ /* Key and IV used for decryption */
+ unsigned char aeskey[RAOP_AESKEY_LEN];
+ unsigned char aesiv[RAOP_AESIV_LEN];
+
+ /* First and last seqnum */
+ int is_empty;
+ unsigned short first_seqnum;
+ unsigned short last_seqnum;
+
+ /* RTP buffer entries */
+ raop_buffer_entry_t entries[RAOP_BUFFER_LENGTH];
+};
+
+void
+raop_buffer_init_key_iv(raop_buffer_t *raop_buffer,
+ const unsigned char *aeskey,
+ const unsigned char *aesiv,
+ const unsigned char *ecdh_secret)
+{
+
+ // Initialization key
+ unsigned char eaeskey[64];
+ memcpy(eaeskey, aeskey, 16);
+
+ sha_ctx_t *ctx = sha_init();
+ sha_update(ctx, eaeskey, 16);
+ sha_update(ctx, ecdh_secret, 32);
+ sha_final(ctx, eaeskey, NULL);
+ sha_destroy(ctx);
+
+ memcpy(raop_buffer->aeskey, eaeskey, 16);
+ memcpy(raop_buffer->aesiv, aesiv, RAOP_AESIV_LEN);
+
+#ifdef DUMP_AUDIO
+ if (file_keyiv != NULL) {
+ fwrite(raop_buffer->aeskey, 16, 1, file_keyiv);
+ fwrite(raop_buffer->aesiv, 16, 1, file_keyiv);
+ fclose(file_keyiv);
+ }
+#endif
+}
+
+raop_buffer_t *
+raop_buffer_init(logger_t *logger,
+ const unsigned char *aeskey,
+ const unsigned char *aesiv,
+ const unsigned char *ecdh_secret)
+{
+ raop_buffer_t *raop_buffer;
+ assert(aeskey);
+ assert(aesiv);
+ assert(ecdh_secret);
+ raop_buffer = calloc(1, sizeof(raop_buffer_t));
+ if (!raop_buffer) {
+ return NULL;
+ }
+ raop_buffer->logger = logger;
+ raop_buffer_init_key_iv(raop_buffer, aeskey, aesiv, ecdh_secret);
+
+ for (int i = 0; i < RAOP_BUFFER_LENGTH; i++) {
+ raop_buffer_entry_t *entry = &raop_buffer->entries[i];
+ entry->payload_data = NULL;
+ entry->payload_size = 0;
+ }
+
+ raop_buffer->is_empty = 1;
+
+ return raop_buffer;
+}
+
+void
+raop_buffer_destroy(raop_buffer_t *raop_buffer)
+{
+ for (int i = 0; i < RAOP_BUFFER_LENGTH; i++) {
+ raop_buffer_entry_t *entry = &raop_buffer->entries[i];
+ if (entry->payload_data != NULL) {
+ free(entry->payload_data);
+ }
+ }
+
+ if (raop_buffer) {
+ free(raop_buffer);
+ }
+
+#ifdef DUMP_AUDIO
+ if (file_aac != NULL) {
+ fclose(file_aac);
+ }
+ if (file_source != NULL) {
+ fclose(file_source);
+ }
+#endif
+
+}
+
+static short
+seqnum_cmp(unsigned short s1, unsigned short s2)
+{
+ return (s1 - s2);
+}
+
+//#define DUMP_AUDIO
+
+#ifdef DUMP_AUDIO
+static FILE* file_aac = NULL;
+static FILE* file_source = NULL;
+static FILE* file_keyiv = NULL;
+#endif
+
+
+int
+raop_buffer_decrypt(raop_buffer_t *raop_buffer, unsigned char *data, unsigned char* output, unsigned int payload_size, unsigned int *outputlen)
+{
+ assert(raop_buffer);
+ int encryptedlen;
+#ifdef DUMP_AUDIO
+ if (file_aac == NULL) {
+ file_aac = fopen("/home/pi/Airplay.aac", "wb");
+ file_source = fopen("/home/pi/Airplay.source", "wb");
+ file_keyiv = fopen("/home/pi/Airplay.keyiv", "wb");
+ }
+ // Undecrypted file
+ if (file_source != NULL) {
+ fwrite(&data[12], payloadsize, 1, file_source);
+ }
+#endif
+
+ encryptedlen = payload_size / 16*16;
+ memset(output, 0, payload_size);
+ // Need to be initialized internally
+ aes_ctx_t *aes_ctx_audio = aes_cbc_init(raop_buffer->aeskey, raop_buffer->aesiv, AES_DECRYPT);
+ aes_cbc_decrypt(aes_ctx_audio, &data[12], output, encryptedlen);
+ aes_cbc_destroy(aes_ctx_audio);
+
+ memcpy(output + encryptedlen, &data[12 + encryptedlen], payload_size - encryptedlen);
+ *outputlen = payload_size;
+
+#ifdef DUMP_AUDIO
+ // Decrypted file
+ if (file_aac != NULL) {
+ fwrite(output, payloadsize, 1, file_aac);
+ }
+#endif
+
+ return 1;
+}
+
+int
+raop_buffer_enqueue(raop_buffer_t *raop_buffer, unsigned char *data, unsigned short datalen, uint64_t timestamp, int use_seqnum) {
+ assert(raop_buffer);
+
+ /* Check packet data length is valid */
+ if (datalen < 12 || datalen > RAOP_PACKET_LEN) {
+ return -1;
+ }
+ if (datalen == 16 && data[12] == 0x0 && data[13] == 0x68 && data[14] == 0x34 && data[15] == 0x0) {
+ return 0;
+ }
+ int payload_size = datalen - 12;
+
+ /* Get correct seqnum for the packet */
+ unsigned short seqnum;
+ if (use_seqnum) {
+ seqnum = (data[2] << 8) | data[3];
+ } else {
+ seqnum = raop_buffer->first_seqnum;
+ }
+
+ /* If this packet is too late, just skip it */
+ if (!raop_buffer->is_empty && seqnum_cmp(seqnum, raop_buffer->first_seqnum) < 0) {
+ return 0;
+ }
+
+ /* Check that there is always space in the buffer, otherwise flush */
+ if (seqnum_cmp(seqnum, raop_buffer->first_seqnum + RAOP_BUFFER_LENGTH) >= 0) {
+ raop_buffer_flush(raop_buffer, seqnum);
+ }
+
+ /* Get entry corresponding our seqnum */
+ raop_buffer_entry_t *entry = &raop_buffer->entries[seqnum % RAOP_BUFFER_LENGTH];
+ if (entry->filled && seqnum_cmp(entry->seqnum, seqnum) == 0) {
+ /* Packet resend, we can safely ignore */
+ return 0;
+ }
+
+ /* Update the raop_buffer entry header */
+ entry->seqnum = seqnum;
+ entry->timestamp = timestamp;
+ entry->filled = 1;
+
+ entry->payload_data = malloc(payload_size);
+ int decrypt_ret = raop_buffer_decrypt(raop_buffer, data, entry->payload_data, payload_size, &entry->payload_size);
+ assert(decrypt_ret >= 0);
+ assert(entry->payload_size <= payload_size);
+
+ /* Update the raop_buffer seqnums */
+ if (raop_buffer->is_empty) {
+ raop_buffer->first_seqnum = seqnum;
+ raop_buffer->last_seqnum = seqnum;
+ raop_buffer->is_empty = 0;
+ }
+ if (seqnum_cmp(seqnum, raop_buffer->last_seqnum) > 0) {
+ raop_buffer->last_seqnum = seqnum;
+ }
+ return 1;
+}
+
+void *
+raop_buffer_dequeue(raop_buffer_t *raop_buffer, unsigned int *length, uint64_t *timestamp, int no_resend) {
+ assert(raop_buffer);
+
+ /* Calculate number of entries in the current buffer */
+ short entry_count = seqnum_cmp(raop_buffer->last_seqnum, raop_buffer->first_seqnum)+1;
+
+ /* Cannot dequeue from empty buffer */
+ if (raop_buffer->is_empty || entry_count <= 0) {
+ return NULL;
+ }
+
+ /* Get the first buffer entry for inspection */
+ raop_buffer_entry_t *entry = &raop_buffer->entries[raop_buffer->first_seqnum % RAOP_BUFFER_LENGTH];
+ if (no_resend) {
+ /* If we do no resends, always return the first entry */
+ } else if (!entry->filled) {
+ /* Check how much we have space left in the buffer */
+ if (entry_count < RAOP_BUFFER_LENGTH) {
+ /* Return nothing and hope resend gets on time */
+ return NULL;
+ }
+ /* Risk of buffer overrun, return empty buffer */
+ }
+
+ /* Update buffer and validate entry */
+ raop_buffer->first_seqnum += 1;
+ if (!entry->filled) {
+ return NULL;
+ }
+ entry->filled = 0;
+
+ /* Return entry payload buffer */
+ *timestamp = entry->timestamp;
+ *length = entry->payload_size;
+ entry->payload_size = 0;
+ void* data = entry->payload_data;
+ entry->payload_data = NULL;
+ return data;
+}
+
+void raop_buffer_handle_resends(raop_buffer_t *raop_buffer, raop_resend_cb_t resend_cb, void *opaque) {
+ assert(raop_buffer);
+ assert(resend_cb);
+
+ if (seqnum_cmp(raop_buffer->first_seqnum, raop_buffer->last_seqnum) < 0) {
+ int seqnum, count;
+
+ for (seqnum = raop_buffer->first_seqnum; seqnum_cmp(seqnum, raop_buffer->last_seqnum) < 0; seqnum++) {
+ raop_buffer_entry_t *entry = &raop_buffer->entries[seqnum % RAOP_BUFFER_LENGTH];
+ if (entry->filled) {
+ break;
+ }
+ }
+ if (seqnum_cmp(seqnum, raop_buffer->first_seqnum) == 0) {
+ return;
+ }
+ count = seqnum_cmp(seqnum, raop_buffer->first_seqnum);
+ resend_cb(opaque, raop_buffer->first_seqnum, count);
+ }
+}
+
+void raop_buffer_flush(raop_buffer_t *raop_buffer, int next_seq) {
+ assert(raop_buffer);
+
+ for (int i = 0; i < RAOP_BUFFER_LENGTH; i++) {
+ if (raop_buffer->entries[i].payload_data) {
+ free(raop_buffer->entries[i].payload_data);
+ raop_buffer->entries[i].payload_size = 0;
+ }
+ raop_buffer->entries[i].filled = 0;
+ }
+ if (next_seq < 0 || next_seq > 0xffff) {
+ raop_buffer->is_empty = 1;
+ } else {
+ raop_buffer->first_seqnum = next_seq;
+ raop_buffer->last_seqnum = next_seq - 1;
+ }
+}
diff --git a/lib/raop_buffer.h b/lib/raop_buffer.h
new file mode 100755
index 0000000..b03ed5d
--- /dev/null
+++ b/lib/raop_buffer.h
@@ -0,0 +1,38 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef RAOP_BUFFER_H
+#define RAOP_BUFFER_H
+
+#include "logger.h"
+#include "raop_rtp.h"
+
+typedef struct raop_buffer_s raop_buffer_t;
+
+typedef int (*raop_resend_cb_t)(void *opaque, unsigned short seqno, unsigned short count);
+
+raop_buffer_t *raop_buffer_init(logger_t *logger,
+ const unsigned char *aeskey,
+ const unsigned char *aesiv,
+ const unsigned char *ecdh_secret);
+int raop_buffer_enqueue(raop_buffer_t *raop_buffer, unsigned char *data, unsigned short datalen, uint64_t timestamp, int use_seqnum);
+void *raop_buffer_dequeue(raop_buffer_t *raop_buffer, unsigned int *length, uint64_t *timestamp, int no_resend);
+void raop_buffer_handle_resends(raop_buffer_t *raop_buffer, raop_resend_cb_t resend_cb, void *opaque);
+void raop_buffer_flush(raop_buffer_t *raop_buffer, int next_seq);
+
+int raop_buffer_decrypt(raop_buffer_t *raop_buffer, unsigned char *data, unsigned char* output,
+ unsigned int datalen, unsigned int *outputlen);
+void raop_buffer_destroy(raop_buffer_t *raop_buffer);
+
+#endif
diff --git a/lib/raop_handlers.h b/lib/raop_handlers.h
new file mode 100755
index 0000000..16214e1
--- /dev/null
+++ b/lib/raop_handlers.h
@@ -0,0 +1,574 @@
+/**
+ * Copyright (C) 2018 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+/* This file should be only included from raop.c as it defines static handler
+ * functions and depends on raop internals */
+
+#include "plist/plist/plist.h"
+#include "dnssdint.h"
+#include "utils.h"
+#include
+#include
+
+typedef void (*raop_handler_t)(raop_conn_t *, http_request_t *,
+ http_response_t *, char **, int *);
+
+static void
+raop_handler_info(raop_conn_t *conn,
+ http_request_t *request, http_response_t *response,
+ char **response_data, int *response_datalen)
+{
+ assert(conn->raop->dnssd);
+
+ int airplay_txt_len = 0;
+ const char *airplay_txt = dnssd_get_airplay_txt(conn->raop->dnssd, &airplay_txt_len);
+
+ int name_len = 0;
+ const char *name = dnssd_get_name(conn->raop->dnssd, &name_len);
+
+ int hw_addr_raw_len = 0;
+ const char *hw_addr_raw = dnssd_get_hw_addr(conn->raop->dnssd, &hw_addr_raw_len);
+
+ char *hw_addr = calloc(1, 3 * hw_addr_raw_len);
+ int hw_addr_len = utils_hwaddr_airplay(hw_addr, 3 * hw_addr_raw_len, hw_addr_raw, hw_addr_raw_len);
+
+ int pk_len = 0;
+ char *pk = utils_parse_hex(AIRPLAY_PK, strlen(AIRPLAY_PK), &pk_len);
+
+ plist_t r_node = plist_new_dict();
+
+ plist_t txt_airplay_node = plist_new_data(airplay_txt, airplay_txt_len);
+ plist_dict_set_item(r_node, "txtAirPlay", txt_airplay_node);
+
+ plist_t features_node = plist_new_uint((uint64_t) 0x1E << 32 | 0x5A7FFFF7);
+ plist_dict_set_item(r_node, "features", features_node);
+
+ plist_t name_node = plist_new_string(name);
+ plist_dict_set_item(r_node, "name", name_node);
+
+ plist_t audio_formats_node = plist_new_array();
+ plist_t audio_format_0_node = plist_new_dict();
+ plist_t audio_format_0_type_node = plist_new_uint(100);
+ plist_t audio_format_0_audio_input_formats_node = plist_new_uint(67108860);
+ plist_t audio_format_0_audio_output_formats_node = plist_new_uint(67108860);
+ plist_dict_set_item(audio_format_0_node, "type", audio_format_0_type_node);
+ plist_dict_set_item(audio_format_0_node, "audioInputFormats", audio_format_0_audio_input_formats_node);
+ plist_dict_set_item(audio_format_0_node, "audioOutputFormats", audio_format_0_audio_output_formats_node);
+ plist_array_append_item(audio_formats_node, audio_format_0_node);
+ plist_t audio_format_1_node = plist_new_dict();
+ plist_t audio_format_1_type_node = plist_new_uint(101);
+ plist_t audio_format_1_audio_input_formats_node = plist_new_uint(67108860);
+ plist_t audio_format_1_audio_output_formats_node = plist_new_uint(67108860);
+ plist_dict_set_item(audio_format_1_node, "type", audio_format_1_type_node);
+ plist_dict_set_item(audio_format_1_node, "audioInputFormats", audio_format_1_audio_input_formats_node);
+ plist_dict_set_item(audio_format_1_node, "audioOutputFormats", audio_format_1_audio_output_formats_node);
+ plist_array_append_item(audio_formats_node, audio_format_1_node);
+ plist_dict_set_item(r_node, "audioFormats", audio_formats_node);
+
+ plist_t pi_node = plist_new_string(AIRPLAY_PI);
+ plist_dict_set_item(r_node, "pi", pi_node);
+
+ plist_t vv_node = plist_new_uint(strtol(AIRPLAY_VV, NULL, 10));
+ plist_dict_set_item(r_node, "vv", vv_node);
+
+ plist_t status_flags_node = plist_new_uint(68);
+ plist_dict_set_item(r_node, "statusFlags", status_flags_node);
+
+ plist_t keep_alive_low_power_node = plist_new_bool(1);
+ plist_dict_set_item(r_node, "keepAliveLowPower", keep_alive_low_power_node);
+
+ plist_t source_version_node = plist_new_string(AIRPLAY_SRCVERS);
+ plist_dict_set_item(r_node, "sourceVersion", source_version_node);
+
+ plist_t pk_node = plist_new_data(pk, pk_len);
+ plist_dict_set_item(r_node, "pk", pk_node);
+
+ plist_t keep_alive_send_stats_as_body_node = plist_new_bool(1);
+ plist_dict_set_item(r_node, "keepAliveSendStatsAsBody", keep_alive_send_stats_as_body_node);
+
+ plist_t device_id_node = plist_new_string(hw_addr);
+ plist_dict_set_item(r_node, "deviceID", device_id_node);
+
+ plist_t audio_latencies_node = plist_new_array();
+ plist_t audio_latencies_0_node = plist_new_dict();
+ plist_t audio_latencies_0_output_latency_micros_node = plist_new_uint(0);
+ plist_t audio_latencies_0_type_node = plist_new_uint(100);
+ plist_t audio_latencies_0_audio_type_node = plist_new_string("default");
+ plist_t audio_latencies_0_input_latency_micros_node = plist_new_uint(0);
+ plist_dict_set_item(audio_latencies_0_node, "outputLatencyMicros", audio_latencies_0_output_latency_micros_node);
+ plist_dict_set_item(audio_latencies_0_node, "type", audio_latencies_0_type_node);
+ plist_dict_set_item(audio_latencies_0_node, "audioType", audio_latencies_0_audio_type_node);
+ plist_dict_set_item(audio_latencies_0_node, "inputLatencyMicros", audio_latencies_0_input_latency_micros_node);
+ plist_array_append_item(audio_latencies_node, audio_latencies_0_node);
+ plist_t audio_latencies_1_node = plist_new_dict();
+ plist_t audio_latencies_1_output_latency_micros_node = plist_new_uint(0);
+ plist_t audio_latencies_1_type_node = plist_new_uint(101);
+ plist_t audio_latencies_1_audio_type_node = plist_new_string("default");
+ plist_t audio_latencies_1_input_latency_micros_node = plist_new_uint(0);
+ plist_dict_set_item(audio_latencies_1_node, "outputLatencyMicros", audio_latencies_1_output_latency_micros_node);
+ plist_dict_set_item(audio_latencies_1_node, "type", audio_latencies_1_type_node);
+ plist_dict_set_item(audio_latencies_1_node, "audioType", audio_latencies_1_audio_type_node);
+ plist_dict_set_item(audio_latencies_1_node, "inputLatencyMicros", audio_latencies_1_input_latency_micros_node);
+ plist_array_append_item(audio_latencies_node, audio_latencies_1_node);
+ plist_dict_set_item(r_node, "audioLatencies", audio_latencies_node);
+
+ plist_t model_node = plist_new_string(GLOBAL_MODEL);
+ plist_dict_set_item(r_node, "model", model_node);
+
+ plist_t mac_address_node = plist_new_string(hw_addr);
+ plist_dict_set_item(r_node, "macAddress", mac_address_node);
+
+ plist_t displays_node = plist_new_array();
+ plist_t displays_0_node = plist_new_dict();
+ plist_t displays_0_uuid_node = plist_new_string("e0ff8a27-6738-3d56-8a16-cc53aacee925");
+ plist_t displays_0_width_physical_node = plist_new_uint(0);
+ plist_t displays_0_height_physical_node = plist_new_uint(0);
+ plist_t displays_0_width_node = plist_new_uint(1920);
+ plist_t displays_0_height_node = plist_new_uint(1080);
+ plist_t displays_0_width_pixels_node = plist_new_uint(1920);
+ plist_t displays_0_height_pixels_node = plist_new_uint(1080);
+ plist_t displays_0_rotation_node = plist_new_bool(0);
+ plist_t displays_0_refresh_rate_node = plist_new_real(1.0 / 60.0);
+ plist_t displays_0_overscanned_node = plist_new_bool(1);
+ plist_t displays_0_features = plist_new_uint(14);
+
+ plist_dict_set_item(displays_0_node, "uuid", displays_0_uuid_node);
+ plist_dict_set_item(displays_0_node, "widthPhysical", displays_0_width_physical_node);
+ plist_dict_set_item(displays_0_node, "heightPhysical", displays_0_height_physical_node);
+ plist_dict_set_item(displays_0_node, "width", displays_0_width_node);
+ plist_dict_set_item(displays_0_node, "height", displays_0_height_node);
+ plist_dict_set_item(displays_0_node, "widthPixels", displays_0_width_pixels_node);
+ plist_dict_set_item(displays_0_node, "heightPixels", displays_0_height_pixels_node);
+ plist_dict_set_item(displays_0_node, "rotation", displays_0_rotation_node);
+ plist_dict_set_item(displays_0_node, "refreshRate", displays_0_refresh_rate_node);
+ plist_dict_set_item(displays_0_node, "overscanned", displays_0_overscanned_node);
+ plist_dict_set_item(displays_0_node, "features", displays_0_features);
+ plist_array_append_item(displays_node, displays_0_node);
+ plist_dict_set_item(r_node, "displays", displays_node);
+
+ plist_to_bin(r_node, response_data, (uint32_t *) response_datalen);
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "INFO len = %d", response_datalen);
+ http_response_add_header(response, "Content-Type", "application/x-apple-binary-plist");
+ free(pk);
+ free(hw_addr);
+}
+
+static void
+raop_handler_pairsetup(raop_conn_t *conn,
+ http_request_t *request, http_response_t *response,
+ char **response_data, int *response_datalen)
+{
+ unsigned char public_key[32];
+ const char *data;
+ int datalen;
+
+ data = http_request_get_data(request, &datalen);
+ if (datalen != 32) {
+ logger_log(conn->raop->logger, LOGGER_ERR, "Invalid pair-setup data");
+ return;
+ }
+
+ pairing_get_public_key(conn->raop->pairing, public_key);
+ pairing_session_set_setup_status(conn->pairing);
+
+ *response_data = malloc(sizeof(public_key));
+ if (*response_data) {
+ http_response_add_header(response, "Content-Type", "application/octet-stream");
+ memcpy(*response_data, public_key, sizeof(public_key));
+ *response_datalen = sizeof(public_key);
+ }
+}
+
+static void
+raop_handler_pairverify(raop_conn_t *conn,
+ http_request_t *request, http_response_t *response,
+ char **response_data, int *response_datalen)
+{
+ if (pairing_session_check_handshake_status(conn->pairing)) {
+ return;
+ }
+ unsigned char public_key[32];
+ unsigned char signature[64];
+ const unsigned char *data;
+ int datalen;
+
+ data = (unsigned char *) http_request_get_data(request, &datalen);
+ if (datalen < 4) {
+ logger_log(conn->raop->logger, LOGGER_ERR, "Invalid pair-verify data");
+ return;
+ }
+ switch (data[0]) {
+ case 1:
+ if (datalen != 4 + 32 + 32) {
+ logger_log(conn->raop->logger, LOGGER_ERR, "Invalid pair-verify data");
+ return;
+ }
+ /* We can fall through these errors, the result will just be garbage... */
+ if (pairing_session_handshake(conn->pairing, data + 4, data + 4 + 32)) {
+ logger_log(conn->raop->logger, LOGGER_ERR, "Error initializing pair-verify handshake");
+ }
+ if (pairing_session_get_public_key(conn->pairing, public_key)) {
+ logger_log(conn->raop->logger, LOGGER_ERR, "Error getting ECDH public key");
+ }
+ if (pairing_session_get_signature(conn->pairing, signature)) {
+ logger_log(conn->raop->logger, LOGGER_ERR, "Error getting ED25519 signature");
+ }
+ *response_data = malloc(sizeof(public_key) + sizeof(signature));
+ if (*response_data) {
+ http_response_add_header(response, "Content-Type", "application/octet-stream");
+ memcpy(*response_data, public_key, sizeof(public_key));
+ memcpy(*response_data + sizeof(public_key), signature, sizeof(signature));
+ *response_datalen = sizeof(public_key) + sizeof(signature);
+ }
+ break;
+ case 0:
+ if (datalen != 4 + 64) {
+ logger_log(conn->raop->logger, LOGGER_ERR, "Invalid pair-verify data");
+ return;
+ }
+
+ if (pairing_session_finish(conn->pairing, data + 4)) {
+ logger_log(conn->raop->logger, LOGGER_ERR, "Incorrect pair-verify signature");
+ http_response_set_disconnect(response, 1);
+ return;
+ }
+ http_response_add_header(response, "Content-Type", "application/octet-stream");
+ break;
+ }
+}
+
+static void
+raop_handler_fpsetup(raop_conn_t *conn,
+ http_request_t *request, http_response_t *response,
+ char **response_data, int *response_datalen)
+{
+ const unsigned char *data;
+ int datalen;
+
+ data = (unsigned char *) http_request_get_data(request, &datalen);
+ if (datalen == 16) {
+ *response_data = malloc(142);
+ if (*response_data) {
+ http_response_add_header(response, "Content-Type", "application/octet-stream");
+ if (!fairplay_setup(conn->fairplay, data, (unsigned char *) *response_data)) {
+ *response_datalen = 142;
+ } else {
+ // Handle error?
+ free(*response_data);
+ *response_data = NULL;
+ }
+ }
+ } else if (datalen == 164) {
+ *response_data = malloc(32);
+ if (*response_data) {
+ http_response_add_header(response, "Content-Type", "application/octet-stream");
+ if (!fairplay_handshake(conn->fairplay, data, (unsigned char *) *response_data)) {
+ *response_datalen = 32;
+ } else {
+ // Handle error?
+ free(*response_data);
+ *response_data = NULL;
+ }
+ }
+ } else {
+ logger_log(conn->raop->logger, LOGGER_ERR, "Invalid fp-setup data length");
+ return;
+ }
+}
+
+static void
+raop_handler_options(raop_conn_t *conn,
+ http_request_t *request, http_response_t *response,
+ char **response_data, int *response_datalen)
+{
+ http_response_add_header(response, "Public", "SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER");
+}
+
+static void
+raop_handler_setup(raop_conn_t *conn,
+ http_request_t *request, http_response_t *response,
+ char **response_data, int *response_datalen)
+{
+ unsigned short remote_cport = 0;
+
+ const char *transport;
+ int use_udp;
+ const char *dacp_id;
+ const char *active_remote_header;
+
+ const char *data;
+ int data_len;
+
+ data = http_request_get_data(request, &data_len);
+
+ dacp_id = http_request_get_header(request, "DACP-ID");
+ active_remote_header = http_request_get_header(request, "Active-Remote");
+
+ if (dacp_id && active_remote_header) {
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "DACP-ID: %s", dacp_id);
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "Active-Remote: %s", active_remote_header);
+ if (conn->raop_rtp) {
+ raop_rtp_remote_control_id(conn->raop_rtp, dacp_id, active_remote_header);
+ }
+ }
+
+ transport = http_request_get_header(request, "Transport");
+ if (transport) {
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "Transport: %s", transport);
+ use_udp = strncmp(transport, "RTP/AVP/TCP", 11);
+ } else {
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "Transport: null");
+ use_udp = 0;
+ }
+
+ // Parsing bplist
+ plist_t req_root_node = NULL;
+ plist_from_bin(data, data_len, &req_root_node);
+ plist_t req_streams_node = plist_dict_get_item(req_root_node, "streams");
+ plist_t req_eiv_node = plist_dict_get_item(req_root_node, "eiv");
+ plist_t req_ekey_node = plist_dict_get_item(req_root_node, "ekey");
+
+ // For the response
+ plist_t res_root_node = plist_new_dict();
+
+ if (PLIST_IS_DATA(req_eiv_node) && PLIST_IS_DATA(req_ekey_node)) {
+ // The first SETUP call that initializes keys and timing
+
+ unsigned char aesiv[16];
+ unsigned char aeskey[16];
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "SETUP 1");
+
+ // First setup
+ char* eiv = NULL;
+ uint64_t eiv_len = 0;
+ plist_get_data_val(req_eiv_node, &eiv, &eiv_len);
+ memcpy(aesiv, eiv, 16);
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "eiv_len = %llu", eiv_len);
+ char* ekey = NULL;
+ uint64_t ekey_len = 0;
+ plist_get_data_val(req_ekey_node, &ekey, &ekey_len);
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "ekey_len = %llu", ekey_len);
+
+ // ekey is 72 bytes, aeskey is 16 bytes
+ int ret = fairplay_decrypt(conn->fairplay, (unsigned char*) ekey, aeskey);
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "fairplay_decrypt ret = %d", ret);
+ unsigned char ecdh_secret[32];
+ pairing_get_ecdh_secret_key(conn->pairing, ecdh_secret);
+
+ // Time port
+ uint64_t timing_rport;
+ plist_t time_note = plist_dict_get_item(req_root_node, "timingPort");
+ plist_get_uint_val(time_note, &timing_rport);
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "timing_rport = %llu", timing_rport);
+
+ unsigned short timing_lport;
+ conn->raop_ntp = raop_ntp_init(conn->raop->logger, conn->remote, conn->remotelen, timing_rport);
+ raop_ntp_start(conn->raop_ntp, &timing_lport);
+
+ conn->raop_rtp = raop_rtp_init(conn->raop->logger, &conn->raop->callbacks, conn->raop_ntp, conn->remote, conn->remotelen, aeskey, aesiv, ecdh_secret);
+ conn->raop_rtp_mirror = raop_rtp_mirror_init(conn->raop->logger, &conn->raop->callbacks, conn->raop_ntp, conn->remote, conn->remotelen, aeskey, ecdh_secret);
+
+ plist_t res_event_port_node = plist_new_uint(conn->raop->port);
+ plist_t res_timing_port_node = plist_new_uint(timing_lport);
+ plist_dict_set_item(res_root_node, "timingPort", res_timing_port_node);
+ plist_dict_set_item(res_root_node, "eventPort", res_event_port_node);
+
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "eport = %d, tport = %d", conn->raop->port, timing_lport);
+ }
+
+ // Process stream setup requests
+ if (PLIST_IS_ARRAY(req_streams_node)) {
+ plist_t res_streams_node = plist_new_array();
+
+ int count = plist_array_get_size(req_streams_node);
+ for (int i = 0; i < count; i++) {
+ plist_t req_stream_node = plist_array_get_item(req_streams_node, i);
+ plist_t req_stream_type_node = plist_dict_get_item(req_stream_node, "type");
+ uint64_t type;
+ plist_get_uint_val(req_stream_type_node, &type);
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "type = %llu", type);
+
+ switch (type) {
+ case 110: {
+ // Mirroring
+ unsigned short dport = 0;
+ plist_t stream_id_node = plist_dict_get_item(req_stream_node, "streamConnectionID");
+ uint64_t stream_connection_id;
+ plist_get_uint_val(stream_id_node, &stream_connection_id);
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "streamConnectionID = %llu", stream_connection_id);
+
+ if (conn->raop_rtp_mirror) {
+ raop_rtp_init_mirror_aes(conn->raop_rtp_mirror, stream_connection_id);
+ raop_rtp_start_mirror(conn->raop_rtp_mirror, use_udp, &dport);
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "Mirroring initialized successfully");
+ } else {
+ logger_log(conn->raop->logger, LOGGER_ERR, "Mirroring not initialized at SETUP, playing will fail!");
+ http_response_set_disconnect(response, 1);
+ }
+
+ plist_t res_stream_node = plist_new_dict();
+ plist_t res_stream_data_port_node = plist_new_uint(dport);
+ plist_t res_stream_type_node = plist_new_uint(110);
+ plist_dict_set_item(res_stream_node, "dataPort", res_stream_data_port_node);
+ plist_dict_set_item(res_stream_node, "type", res_stream_type_node);
+ plist_array_append_item(res_streams_node, res_stream_node);
+
+ break;
+ } case 96: {
+ // Audio
+
+ unsigned short cport = 0, dport = 0;
+
+ if (conn->raop_rtp) {
+ raop_rtp_start_audio(conn->raop_rtp, use_udp, remote_cport, &cport, &dport);
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "RAOP initialized success");
+ } else {
+ logger_log(conn->raop->logger, LOGGER_ERR, "RAOP not initialized at SETUP, playing will fail!");
+ http_response_set_disconnect(response, 1);
+ }
+
+ plist_t res_stream_node = plist_new_dict();
+ plist_t res_stream_data_port_node = plist_new_uint(dport);
+ plist_t res_stream_control_port_node = plist_new_uint(cport);
+ plist_t res_stream_type_node = plist_new_uint(96);
+ plist_dict_set_item(res_stream_node, "dataPort", res_stream_data_port_node);
+ plist_dict_set_item(res_stream_node, "controlPort", res_stream_control_port_node);
+ plist_dict_set_item(res_stream_node, "type", res_stream_type_node);
+ plist_array_append_item(res_streams_node, res_stream_node);
+
+ break;
+ }
+
+ default:
+ logger_log(conn->raop->logger, LOGGER_ERR, "SETUP tries to setup stream of unknown type %llu", type);
+ http_response_set_disconnect(response, 1);
+ break;
+ }
+ }
+
+ plist_dict_set_item(res_root_node, "streams", res_streams_node);
+ }
+
+ plist_to_bin(res_root_node, response_data, (uint32_t*) response_datalen);
+ http_response_add_header(response, "Content-Type", "application/x-apple-binary-plist");
+}
+
+static void
+raop_handler_get_parameter(raop_conn_t *conn,
+ http_request_t *request, http_response_t *response,
+ char **response_data, int *response_datalen)
+{
+ const char *content_type;
+ const char *data;
+ int datalen;
+
+ content_type = http_request_get_header(request, "Content-Type");
+ data = http_request_get_data(request, &datalen);
+ if (!strcmp(content_type, "text/parameters")) {
+ const char *current = data;
+
+ while (current) {
+ const char *next;
+ int handled = 0;
+
+ /* This is a bit ugly, but seems to be how airport works too */
+ if (!strncmp(current, "volume\r\n", 8)) {
+ const char volume[] = "volume: 0.0\r\n";
+
+ http_response_add_header(response, "Content-Type", "text/parameters");
+ *response_data = strdup(volume);
+ if (*response_data) {
+ *response_datalen = strlen(*response_data);
+ }
+ handled = 1;
+ }
+
+ next = strstr(current, "\r\n");
+ if (next && !handled) {
+ logger_log(conn->raop->logger, LOGGER_WARNING,
+ "Found an unknown parameter: %.*s", (next - current), current);
+ current = next + 2;
+ } else if (next) {
+ current = next + 2;
+ } else {
+ current = NULL;
+ }
+ }
+ }
+}
+
+static void
+raop_handler_set_parameter(raop_conn_t *conn,
+ http_request_t *request, http_response_t *response,
+ char **response_data, int *response_datalen)
+{
+ const char *content_type;
+ const char *data;
+ int datalen;
+
+ content_type = http_request_get_header(request, "Content-Type");
+ data = http_request_get_data(request, &datalen);
+ if (!strcmp(content_type, "text/parameters")) {
+ char *datastr;
+ datastr = calloc(1, datalen+1);
+ if (data && datastr && conn->raop_rtp) {
+ memcpy(datastr, data, datalen);
+ if (!strncmp(datastr, "volume: ", 8)) {
+ float vol = 0.0;
+ sscanf(datastr+8, "%f", &vol);
+ raop_rtp_set_volume(conn->raop_rtp, vol);
+ } else if (!strncmp(datastr, "progress: ", 10)) {
+ unsigned int start, curr, end;
+ sscanf(datastr+10, "%u/%u/%u", &start, &curr, &end);
+ raop_rtp_set_progress(conn->raop_rtp, start, curr, end);
+ }
+ } else if (!conn->raop_rtp) {
+ logger_log(conn->raop->logger, LOGGER_WARNING, "RAOP not initialized at SET_PARAMETER");
+ }
+ free(datastr);
+ } else if (!strcmp(content_type, "image/jpeg") || !strcmp(content_type, "image/png")) {
+ logger_log(conn->raop->logger, LOGGER_INFO, "Got image data of %d bytes", datalen);
+ if (conn->raop_rtp) {
+ raop_rtp_set_coverart(conn->raop_rtp, data, datalen);
+ } else {
+ logger_log(conn->raop->logger, LOGGER_WARNING, "RAOP not initialized at SET_PARAMETER coverart");
+ }
+ } else if (!strcmp(content_type, "application/x-dmap-tagged")) {
+ logger_log(conn->raop->logger, LOGGER_INFO, "Got metadata of %d bytes", datalen);
+ if (conn->raop_rtp) {
+ raop_rtp_set_metadata(conn->raop_rtp, data, datalen);
+ } else {
+ logger_log(conn->raop->logger, LOGGER_WARNING, "RAOP not initialized at SET_PARAMETER metadata");
+ }
+ }
+}
+
+
+static void
+raop_handler_feedback(raop_conn_t *conn,
+ http_request_t *request, http_response_t *response,
+ char **response_data, int *response_datalen)
+{
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "raop_handler_feedback");
+}
+
+static void
+raop_handler_record(raop_conn_t *conn,
+ http_request_t *request, http_response_t *response,
+ char **response_data, int *response_datalen)
+{
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "raop_handler_record");
+ http_response_add_header(response, "Audio-Latency", "11025");
+ http_response_add_header(response, "Audio-Jack-Status", "connected; type=analog");
+}
diff --git a/lib/raop_ntp.c b/lib/raop_ntp.c
new file mode 100644
index 0000000..214d5cd
--- /dev/null
+++ b/lib/raop_ntp.c
@@ -0,0 +1,446 @@
+/*
+ * Copyright (c) 2019 dsafa22 and 2014 Joakim Plate, modified by Florian Draschbacher,
+ * All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+// Some of the code in here comes from https://github.com/juhovh/shairplay/pull/25/files
+
+#include
+#include
+#include
+#include
+#include
+
+#include "raop_ntp.h"
+#include "threads.h"
+#include "compat.h"
+#include "netutils.h"
+#include "byteutils.h"
+
+#define RAOP_NTP_DATA_COUNT 8
+#define RAOP_NTP_PHI_PPM 15ull // PPM
+#define RAOP_NTP_R_RHO ((1ull << 32) / 1000u) // packet precision
+#define RAOP_NTP_S_RHO ((1ull << 32) / 1000u) // system clock precision
+#define RAOP_NTP_MAX_DIST ((1500ull << 32) / 1000u) // maximum allowed distance
+#define RAOP_NTP_MAX_DISP ((16ull << 32)) // maximum dispersion
+
+#define RAOP_NTP_CLOCK_BASE (2208988800ull << 32)
+
+typedef struct raop_ntp_data_s {
+ uint64_t time; // The local wall clock time at time of ntp packet arrival
+ uint64_t dispersion;
+ int64_t delay; // The round trip delay
+ int64_t offset; // The difference between remote and local wall clock time
+} raop_ntp_data_t;
+
+struct raop_ntp_s {
+ logger_t *logger;
+
+ thread_handle_t thread;
+ mutex_handle_t run_mutex;
+
+ mutex_handle_t wait_mutex;
+ cond_handle_t wait_cond;
+
+ raop_ntp_data_t data[RAOP_NTP_DATA_COUNT];
+ int data_index;
+
+ // The clock sync params are periodically updated to the AirPlay client's NTP clock
+ mutex_handle_t sync_params_mutex;
+ int64_t sync_offset;
+ int64_t sync_dispersion;
+ int64_t sync_delay;
+
+ // Socket address of the AirPlay client
+ struct sockaddr_storage remote_saddr;
+ socklen_t remote_saddr_len;
+
+ // The remote port of the NTP server on the AirPlay client
+ unsigned short timing_rport;
+
+ // The local port of the NTP client on the AirPlay server
+ unsigned short timing_lport;
+
+ /* MUTEX LOCKED VARIABLES START */
+ /* These variables only edited mutex locked */
+ int running;
+ int joined;
+
+ // UDP socket
+ int tsock;
+};
+
+
+/*
+ * Used for sorting the data array by delay
+ */
+static int
+raop_ntp_compare(const void* av, const void* bv)
+{
+ const raop_ntp_data_t* a = (const raop_ntp_data_t*)av;
+ const raop_ntp_data_t* b = (const raop_ntp_data_t*)bv;
+ if (a->delay < b->delay) {
+ return -1;
+ } else if(a->delay > b->delay) {
+ return 1;
+ } else {
+ return 0;
+ }
+}
+
+static int
+raop_ntp_parse_remote_address(raop_ntp_t *raop_ntp, const unsigned char *remote_addr, int remote_addr_len)
+{
+ char current[25];
+ int family;
+ int ret;
+ assert(raop_ntp);
+ if (remote_addr_len == 4) {
+ family = AF_INET;
+ } else if (remote_addr_len == 16) {
+ family = AF_INET6;
+ } else {
+ return -1;
+ }
+ memset(current, 0, sizeof(current));
+ sprintf(current, "%d.%d.%d.%d", remote_addr[0], remote_addr[1], remote_addr[2], remote_addr[3]);
+ logger_log(raop_ntp->logger, LOGGER_DEBUG, "raop_ntp parse remote ip = %s", current);
+ ret = netutils_parse_address(family, current,
+ &raop_ntp->remote_saddr,
+ sizeof(raop_ntp->remote_saddr));
+ if (ret < 0) {
+ return -1;
+ }
+ raop_ntp->remote_saddr_len = ret;
+ return 0;
+}
+
+raop_ntp_t *raop_ntp_init(logger_t *logger, const unsigned char *remote_addr, int remote_addr_len, unsigned short timing_rport) {
+ raop_ntp_t *raop_ntp;
+
+ assert(logger);
+
+ raop_ntp = calloc(1, sizeof(raop_ntp_t));
+ if (!raop_ntp) {
+ return NULL;
+ }
+ raop_ntp->logger = logger;
+ raop_ntp->timing_rport = timing_rport;
+
+ if (raop_ntp_parse_remote_address(raop_ntp, remote_addr, remote_addr_len) < 0) {
+ free(raop_ntp);
+ return NULL;
+ }
+
+ // Set port on the remote address struct
+ ((struct sockaddr_in *) &raop_ntp->remote_saddr)->sin_port = htons(timing_rport);
+
+ raop_ntp->running = 0;
+ raop_ntp->joined = 1;
+
+ uint64_t time = raop_ntp_get_local_time(raop_ntp);
+
+ for (int i = 0; i < RAOP_NTP_DATA_COUNT; ++i) {
+ raop_ntp->data[i].offset = 0ll;
+ raop_ntp->data[i].delay = RAOP_NTP_MAX_DISP;
+ raop_ntp->data[i].dispersion = RAOP_NTP_MAX_DISP;
+ raop_ntp->data[i].time = time;
+ }
+
+ raop_ntp->sync_delay = 0;
+ raop_ntp->sync_dispersion = 0;
+ raop_ntp->sync_offset = 0;
+
+ MUTEX_CREATE(raop_ntp->run_mutex);
+ MUTEX_CREATE(raop_ntp->wait_mutex);
+ COND_CREATE(raop_ntp->wait_cond);
+ MUTEX_CREATE(raop_ntp->sync_params_mutex);
+ return raop_ntp;
+}
+
+void
+raop_ntp_destroy(raop_ntp_t *raop_ntp)
+{
+ if (raop_ntp) {
+ raop_ntp_stop(raop_ntp);
+ MUTEX_DESTROY(raop_ntp->run_mutex);
+ MUTEX_DESTROY(raop_ntp->wait_mutex);
+ COND_DESTROY(raop_ntp->wait_cond);
+ MUTEX_DESTROY(raop_ntp->sync_params_mutex);
+ free(raop_ntp);
+ }
+}
+
+unsigned short raop_ntp_get_port(raop_ntp_t *raop_ntp) {
+ return raop_ntp->timing_lport;
+}
+
+static int
+raop_ntp_init_socket(raop_ntp_t *raop_ntp, int use_ipv6)
+{
+ int tsock = -1;
+ unsigned short tport = 0;
+
+ assert(raop_ntp);
+
+ tsock = netutils_init_socket(&tport, use_ipv6, 1);
+
+ if (tsock == -1) {
+ goto sockets_cleanup;
+ }
+
+ // We're calling recvfrom without knowing whether there is any data, so we need a timeout
+ struct timeval tv;
+ tv.tv_sec = 0;
+ tv.tv_usec = 3000;
+ if (setsockopt(tsock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) {
+ goto sockets_cleanup;
+ }
+
+ /* Set socket descriptors */
+ raop_ntp->tsock = tsock;
+
+ /* Set port values */
+ raop_ntp->timing_lport = tport;
+ return 0;
+
+ sockets_cleanup:
+ if (tsock != -1) closesocket(tsock);
+ return -1;
+}
+
+static THREAD_RETVAL
+raop_ntp_thread(void *arg)
+{
+ raop_ntp_t *raop_ntp = arg;
+ assert(raop_ntp);
+ unsigned char response[128];
+ int response_len;
+ unsigned char request[32] = {0x80, 0xd2, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
+ };
+ raop_ntp_data_t data_sorted[RAOP_NTP_DATA_COUNT];
+ const unsigned two_pow_n[RAOP_NTP_DATA_COUNT] = {2, 4, 8, 16, 32, 64, 128, 256};
+
+ while (1) {
+ MUTEX_LOCK(raop_ntp->run_mutex);
+ if (!raop_ntp->running) {
+ MUTEX_UNLOCK(raop_ntp->run_mutex);
+ break;
+ }
+ MUTEX_UNLOCK(raop_ntp->run_mutex);
+
+ // Send request
+ uint64_t send_time = raop_ntp_get_local_time(raop_ntp);
+ byteutils_put_ntp_timestamp(request, 24, send_time);
+ int send_len = sendto(raop_ntp->tsock, (char *)request, sizeof(request), 0,
+ (struct sockaddr *) &raop_ntp->remote_saddr, raop_ntp->remote_saddr_len);
+ logger_log(raop_ntp->logger, LOGGER_DEBUG, "raop_ntp send_len = %d", send_len);
+ if (send_len < 0) {
+ logger_log(raop_ntp->logger, LOGGER_ERR, "raop_ntp error sending request");
+ break;
+ }
+
+ // Read response
+ response_len = recvfrom(raop_ntp->tsock, (char *)response, sizeof(response), 0,
+ (struct sockaddr *) &raop_ntp->remote_saddr, &raop_ntp->remote_saddr_len);
+ if (response_len < 0) {
+ logger_log(raop_ntp->logger, LOGGER_ERR, "raop_ntp receive timeout");
+ break;
+ }
+ logger_log(raop_ntp->logger, LOGGER_DEBUG, "raop_ntp receive time type_t packetlen = %d", response_len);
+
+ int64_t t3 = (int64_t) raop_ntp_get_local_time(raop_ntp);
+ // Local time of the client when the NTP request packet leaves the client
+ int64_t t0 = (int64_t) byteutils_get_ntp_timestamp(response, 8);
+ // Local time of the server when the NTP request packet arrives at the server
+ int64_t t1 = (int64_t) byteutils_get_ntp_timestamp(response, 16);
+ // Local time of the server when the response message leaves the server
+ int64_t t2 = (int64_t) byteutils_get_ntp_timestamp(response, 24);
+
+ // The iOS device sends its time in micro seconds relative to an arbitrary Epoch (the last boot).
+ // For a little bonus confusion, they add SECONDS_FROM_1900_TO_1970 * 1000000 us.
+ // This means we have to expect some rather huge offset, but its growth or shrink over time should be small.
+
+ raop_ntp->data_index = (raop_ntp->data_index + 1) % RAOP_NTP_DATA_COUNT;
+ raop_ntp->data[raop_ntp->data_index].time = t3;
+ raop_ntp->data[raop_ntp->data_index].offset = ((t1 - t0) + (t2 - t3)) / 2;
+ raop_ntp->data[raop_ntp->data_index].delay = ((t3 - t0) - (t2 - t1));
+ raop_ntp->data[raop_ntp->data_index].dispersion = RAOP_NTP_R_RHO + RAOP_NTP_S_RHO + (t3 - t0) * RAOP_NTP_PHI_PPM / 1000000u;
+
+ // Sort by delay
+ memcpy(data_sorted, raop_ntp->data, sizeof(data_sorted));
+ qsort(data_sorted, RAOP_NTP_DATA_COUNT, sizeof(data_sorted[0]), raop_ntp_compare);
+
+ uint64_t dispersion = 0ull;
+ int64_t offset = data_sorted[0].offset;
+ int64_t delay = data_sorted[RAOP_NTP_DATA_COUNT - 1].delay;
+
+ // Calculate dispersion
+ for(int i = 0; i < RAOP_NTP_DATA_COUNT; ++i) {
+ unsigned long long disp = raop_ntp->data[i].dispersion + (t3 - raop_ntp->data[i].time) * RAOP_NTP_PHI_PPM / 1000000u;
+ dispersion += disp / two_pow_n[i];
+ }
+
+ MUTEX_LOCK(raop_ntp->sync_params_mutex);
+
+ int64_t correction = offset - raop_ntp->sync_offset;
+ raop_ntp->sync_offset = offset;
+ raop_ntp->sync_dispersion = dispersion;
+ raop_ntp->sync_delay = delay;
+ MUTEX_UNLOCK(raop_ntp->sync_params_mutex);
+
+ logger_log(raop_ntp->logger, LOGGER_DEBUG, "raop_ntp sync correction = %lld", correction);
+
+ // Sleep for 3 seconds
+ struct timeval now;
+ struct timespec wait_time;
+ MUTEX_LOCK(raop_ntp->wait_mutex);
+ gettimeofday(&now, NULL);
+ wait_time.tv_sec = now.tv_sec + 3;
+ wait_time.tv_nsec = now.tv_usec * 1000;
+ pthread_cond_timedwait(&raop_ntp->wait_cond, &raop_ntp->wait_mutex, &wait_time);
+ MUTEX_UNLOCK(raop_ntp->wait_mutex);
+ }
+
+ // Ensure running reflects the actual state
+ MUTEX_LOCK(raop_ntp->run_mutex);
+ raop_ntp->running = false;
+ MUTEX_UNLOCK(raop_ntp->run_mutex);
+
+ logger_log(raop_ntp->logger, LOGGER_DEBUG, "raop_ntp exiting thread");
+ return 0;
+}
+
+void
+raop_ntp_start(raop_ntp_t *raop_ntp, unsigned short *timing_lport)
+{
+ logger_log(raop_ntp->logger, LOGGER_DEBUG, "raop_ntp starting time");
+ int use_ipv6 = 0;
+
+ assert(raop_ntp);
+
+ MUTEX_LOCK(raop_ntp->run_mutex);
+ if (raop_ntp->running || !raop_ntp->joined) {
+ MUTEX_UNLOCK(raop_ntp->run_mutex);
+ return;
+ }
+
+ /* Initialize ports and sockets */
+ if (raop_ntp->remote_saddr.ss_family == AF_INET6) {
+ use_ipv6 = 1;
+ }
+ use_ipv6 = 0;
+ if (raop_ntp_init_socket(raop_ntp, use_ipv6) < 0) {
+ logger_log(raop_ntp->logger, LOGGER_ERR, "raop_ntp initializing timing socket failed");
+ MUTEX_UNLOCK(raop_ntp->run_mutex);
+ return;
+ }
+ if (timing_lport) *timing_lport = raop_ntp->timing_lport;
+
+ /* Create the thread and initialize running values */
+ raop_ntp->running = 1;
+ raop_ntp->joined = 0;
+
+ THREAD_CREATE(raop_ntp->thread, raop_ntp_thread, raop_ntp);
+ MUTEX_UNLOCK(raop_ntp->run_mutex);
+}
+
+void
+raop_ntp_stop(raop_ntp_t *raop_ntp)
+{
+ assert(raop_ntp);
+
+ /* Check that we are running and thread is not
+ * joined (should never be while still running) */
+ MUTEX_LOCK(raop_ntp->run_mutex);
+ if (!raop_ntp->running || raop_ntp->joined) {
+ MUTEX_UNLOCK(raop_ntp->run_mutex);
+ return;
+ }
+ raop_ntp->running = 0;
+ MUTEX_UNLOCK(raop_ntp->run_mutex);
+
+ logger_log(raop_ntp->logger, LOGGER_DEBUG, "raop_ntp stopping time thread");
+
+ MUTEX_LOCK(raop_ntp->wait_mutex);
+ COND_SIGNAL(raop_ntp->wait_cond);
+ MUTEX_UNLOCK(raop_ntp->wait_mutex);
+
+ if (raop_ntp->tsock != -1) {
+ closesocket(raop_ntp->tsock);
+ raop_ntp->tsock = -1;
+ }
+
+ THREAD_JOIN(raop_ntp->thread);
+
+ logger_log(raop_ntp->logger, LOGGER_DEBUG, "raop_ntp stopped time thread");
+
+ /* Mark thread as joined */
+ MUTEX_LOCK(raop_ntp->run_mutex);
+ raop_ntp->joined = 1;
+ MUTEX_UNLOCK(raop_ntp->run_mutex);
+}
+
+/**
+ * Converts from a little endian ntp timestamp to micro seconds since the Unix epoch.
+ * Does the same thing as byteutils_get_ntp_timestamp, except its input is an uint64_t
+ * and expected to already be in little endian.
+ * Please note this just converts to a different representation, the clock remains the
+ * same.
+ */
+uint64_t raop_ntp_timestamp_to_micro_seconds(uint64_t ntp_timestamp, bool account_for_epoch_diff) {
+ uint64_t seconds = ((ntp_timestamp >> 32) & 0xffffffff) - (account_for_epoch_diff ? SECONDS_FROM_1900_TO_1970 : 0);
+ uint64_t fraction = (ntp_timestamp & 0xffffffff);
+ return (seconds * 1000000) + ((fraction * 1000000) >> 32);
+}
+
+/**
+ * Returns the current time in micro seconds according to the local wall clock.
+ * The system Unix time is used as the local wall clock.
+ */
+uint64_t raop_ntp_get_local_time(raop_ntp_t *raop_ntp) {
+ struct timespec time;
+ clock_gettime(CLOCK_REALTIME, &time);
+ return (uint64_t)time.tv_sec * 1000000L + (uint64_t)(time.tv_nsec / 1000);
+}
+
+/**
+ * Returns the current time in micro seconds according to the remote wall clock.
+ */
+uint64_t raop_ntp_get_remote_time(raop_ntp_t *raop_ntp) {
+ MUTEX_LOCK(raop_ntp->sync_params_mutex);
+ int64_t offset = raop_ntp->sync_offset;
+ MUTEX_UNLOCK(raop_ntp->sync_params_mutex);
+ return (uint64_t) ((int64_t) raop_ntp_get_local_time(raop_ntp)) + ((int64_t) offset);
+}
+
+/**
+ * Returns the local wall clock time in micro seconds for the given point in remote clock time
+ */
+uint64_t raop_ntp_convert_remote_time(raop_ntp_t *raop_ntp, uint64_t remote_time) {
+ MUTEX_LOCK(raop_ntp->sync_params_mutex);
+ uint64_t offset = raop_ntp->sync_offset;
+ MUTEX_UNLOCK(raop_ntp->sync_params_mutex);
+ return (uint64_t) ((int64_t) remote_time) - ((int64_t) offset);
+}
+
+/**
+ * Returns the remote wall clock time in micro seconds for the given point in local clock time
+ */
+uint64_t raop_ntp_convert_local_time(raop_ntp_t *raop_ntp, uint64_t local_time) {
+ MUTEX_LOCK(raop_ntp->sync_params_mutex);
+ uint64_t offset = raop_ntp->sync_offset;
+ MUTEX_UNLOCK(raop_ntp->sync_params_mutex);
+ return (uint64_t) ((int64_t) local_time) + ((int64_t) offset);
+}
\ No newline at end of file
diff --git a/lib/raop_ntp.h b/lib/raop_ntp.h
new file mode 100644
index 0000000..1a4cfb0
--- /dev/null
+++ b/lib/raop_ntp.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) 2019 dsafa22, modified by Florian Draschbacher,
+ * All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef RAOP_NTP_H
+#define RAOP_NTP_H
+
+#include
+#include
+#include "logger.h"
+
+typedef struct raop_ntp_s raop_ntp_t;
+
+raop_ntp_t *raop_ntp_init(logger_t *logger, const unsigned char *remote_addr, int remote_addr_len, unsigned short timing_rport);
+
+void raop_ntp_start(raop_ntp_t *raop_ntp, unsigned short *timing_lport);
+
+void raop_ntp_stop(raop_ntp_t *raop_ntp);
+
+unsigned short raop_ntp_get_port(raop_ntp_t *raop_ntp);
+
+void raop_ntp_destroy(raop_ntp_t *raop_rtp);
+
+uint64_t raop_ntp_timestamp_to_micro_seconds(uint64_t ntp_timestamp, bool account_for_epoch_diff);
+
+uint64_t raop_ntp_get_local_time(raop_ntp_t *raop_ntp);
+uint64_t raop_ntp_get_remote_time(raop_ntp_t *raop_ntp);
+uint64_t raop_ntp_convert_remote_time(raop_ntp_t *raop_ntp, uint64_t remote_time);
+uint64_t raop_ntp_convert_local_time(raop_ntp_t *raop_ntp, uint64_t local_time);
+
+#endif //RAOP_NTP_H
diff --git a/lib/raop_rtp.c b/lib/raop_rtp.c
new file mode 100755
index 0000000..d31cfef
--- /dev/null
+++ b/lib/raop_rtp.c
@@ -0,0 +1,699 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include
+#include
+#include
+#include
+#include
+#include
+
+#include "raop_rtp.h"
+#include "raop.h"
+#include "raop_buffer.h"
+#include "netutils.h"
+#include "compat.h"
+#include "logger.h"
+#include "byteutils.h"
+#include "mirror_buffer.h"
+#include "stream.h"
+
+#define NO_FLUSH (-42)
+
+#define RAOP_RTP_SAMPLE_RATE (44100.0 / 1000000.0)
+#define RAOP_RTP_SYNC_DATA_COUNT 8
+
+typedef struct raop_rtp_sync_data_s {
+ uint64_t ntp_time; // The local wall clock time at the time of rtp_time
+ uint32_t rtp_time; // The remote rtp clock time corresponding to ntp_time
+} raop_rtp_sync_data_t;
+
+struct raop_rtp_s {
+ logger_t *logger;
+ raop_callbacks_t callbacks;
+
+ // Time and sync
+ raop_ntp_t *ntp;
+ double rtp_sync_scale;
+ int64_t rtp_sync_offset;
+ raop_rtp_sync_data_t sync_data[RAOP_RTP_SYNC_DATA_COUNT];
+ int sync_data_index;
+
+ // Transmission Stats, could be used if a playout buffer is needed
+ // float interarrival_jitter; // As defined by RTP RFC 3550, Section 6.4.1
+ // unsigned int last_packet_transit_time;
+ //int transit = (packet_receive_time - packet_send_time);
+ // int d = transit - last_packet_transit_time;
+ // if (d < 0) d = -d;
+ // interarrival_jitter = (1.f / 16.f) * ((double) d - interarrival_jitter);
+
+ /* Buffer to handle all resends */
+ raop_buffer_t *buffer;
+
+ /* Remote address as sockaddr */
+ struct sockaddr_storage remote_saddr;
+ socklen_t remote_saddr_len;
+
+ /* MUTEX LOCKED VARIABLES START */
+ /* These variables only edited mutex locked */
+ int running;
+ int joined;
+
+ float volume;
+ int volume_changed;
+ unsigned char *metadata;
+ int metadata_len;
+ unsigned char *coverart;
+ int coverart_len;
+ char *dacp_id;
+ char *active_remote_header;
+ unsigned int progress_start;
+ unsigned int progress_curr;
+ unsigned int progress_end;
+ int progress_changed;
+
+ int flush;
+ thread_handle_t thread;
+ mutex_handle_t run_mutex;
+ /* MUTEX LOCKED VARIABLES END */
+
+ /* Remote control and timing ports */
+ unsigned short control_rport;
+
+ /* Sockets for control and data */
+ int csock, dsock;
+
+ /* Local control, timing and data ports */
+ unsigned short control_lport;
+ unsigned short data_lport;
+
+ /* Initialized after the first control packet */
+ struct sockaddr_storage control_saddr;
+ socklen_t control_saddr_len;
+ unsigned short control_seqnum;
+};
+
+static int
+raop_rtp_parse_remote(raop_rtp_t *raop_rtp, const unsigned char *remote, int remotelen)
+{
+ char current[25];
+ int family;
+ int ret;
+ assert(raop_rtp);
+ if (remotelen == 4) {
+ family = AF_INET;
+ } else if (remotelen == 16) {
+ family = AF_INET6;
+ } else {
+ return -1;
+ }
+ memset(current, 0, sizeof(current));
+ sprintf(current, "%d.%d.%d.%d", remote[0], remote[1], remote[2], remote[3]);
+ logger_log(raop_rtp->logger, LOGGER_DEBUG, "raop_rtp parse remote ip = %s", current);
+ ret = netutils_parse_address(family, current,
+ &raop_rtp->remote_saddr,
+ sizeof(raop_rtp->remote_saddr));
+ if (ret < 0) {
+ return -1;
+ }
+ raop_rtp->remote_saddr_len = ret;
+ return 0;
+}
+
+raop_rtp_t *
+raop_rtp_init(logger_t *logger, raop_callbacks_t *callbacks, raop_ntp_t *ntp, const unsigned char *remote, int remotelen,
+ const unsigned char *aeskey, const unsigned char *aesiv, const unsigned char *ecdh_secret)
+{
+ raop_rtp_t *raop_rtp;
+
+ assert(logger);
+ assert(callbacks);
+
+ raop_rtp = calloc(1, sizeof(raop_rtp_t));
+ if (!raop_rtp) {
+ return NULL;
+ }
+ raop_rtp->logger = logger;
+ raop_rtp->ntp = ntp;
+
+ raop_rtp->rtp_sync_offset = 0;
+ raop_rtp->rtp_sync_scale = RAOP_RTP_SAMPLE_RATE;
+ raop_rtp->sync_data_index = 0;
+ for (int i = 0; i < RAOP_RTP_SYNC_DATA_COUNT; ++i) {
+ raop_rtp->sync_data[i].ntp_time = 0;
+ raop_rtp->sync_data[i].rtp_time = 0;
+ }
+
+ memcpy(&raop_rtp->callbacks, callbacks, sizeof(raop_callbacks_t));
+ raop_rtp->buffer = raop_buffer_init(logger, aeskey, aesiv, ecdh_secret);
+ if (!raop_rtp->buffer) {
+ free(raop_rtp);
+ return NULL;
+ }
+ if (raop_rtp_parse_remote(raop_rtp, remote, remotelen) < 0) {
+ free(raop_rtp);
+ return NULL;
+ }
+
+ raop_rtp->running = 0;
+ raop_rtp->joined = 1;
+ raop_rtp->flush = NO_FLUSH;
+
+ MUTEX_CREATE(raop_rtp->run_mutex);
+ return raop_rtp;
+}
+
+
+void
+raop_rtp_destroy(raop_rtp_t *raop_rtp)
+{
+ if (raop_rtp) {
+ raop_rtp_stop(raop_rtp);
+ MUTEX_DESTROY(raop_rtp->run_mutex);
+ raop_buffer_destroy(raop_rtp->buffer);
+ free(raop_rtp->metadata);
+ free(raop_rtp->coverart);
+ free(raop_rtp->dacp_id);
+ free(raop_rtp->active_remote_header);
+ free(raop_rtp);
+ }
+}
+
+static int
+raop_rtp_resend_callback(void *opaque, unsigned short seqnum, unsigned short count)
+{
+ raop_rtp_t *raop_rtp = opaque;
+ unsigned char packet[8];
+ unsigned short ourseqnum;
+ struct sockaddr *addr;
+ socklen_t addrlen;
+ int ret;
+
+ addr = (struct sockaddr *)&raop_rtp->control_saddr;
+ addrlen = raop_rtp->control_saddr_len;
+
+ logger_log(raop_rtp->logger, LOGGER_DEBUG, "raop_rtp got resend request %d %d", seqnum, count);
+ ourseqnum = raop_rtp->control_seqnum++;
+
+ /* Fill the request buffer */
+ packet[0] = 0x80;
+ packet[1] = 0x55|0x80;
+ packet[2] = (ourseqnum >> 8);
+ packet[3] = ourseqnum;
+ packet[4] = (seqnum >> 8);
+ packet[5] = seqnum;
+ packet[6] = (count >> 8);
+ packet[7] = count;
+
+ ret = sendto(raop_rtp->csock, (const char *)packet, sizeof(packet), 0, addr, addrlen);
+ if (ret == -1) {
+ logger_log(raop_rtp->logger, LOGGER_WARNING, "raop_rtp resend failed: %d", SOCKET_GET_ERROR());
+ }
+
+ return 0;
+}
+
+static int
+raop_rtp_init_sockets(raop_rtp_t *raop_rtp, int use_ipv6, int use_udp)
+{
+ int csock = -1, dsock = -1;
+ unsigned short cport = 0, dport = 0;
+
+ assert(raop_rtp);
+
+ csock = netutils_init_socket(&cport, use_ipv6, 1);
+ dsock = netutils_init_socket(&dport, use_ipv6, 1);
+
+ if (csock == -1 || dsock == -1) {
+ goto sockets_cleanup;
+ }
+
+ /* Set socket descriptors */
+ raop_rtp->csock = csock;
+ raop_rtp->dsock = dsock;
+
+ /* Set port values */
+ raop_rtp->control_lport = cport;
+ raop_rtp->data_lport = dport;
+ return 0;
+
+ sockets_cleanup:
+ if (csock != -1) closesocket(csock);
+ if (dsock != -1) closesocket(dsock);
+ return -1;
+}
+
+static int
+raop_rtp_process_events(raop_rtp_t *raop_rtp, void *cb_data)
+{
+ int flush;
+ float volume;
+ int volume_changed;
+ unsigned char *metadata;
+ int metadata_len;
+ unsigned char *coverart;
+ int coverart_len;
+ char *dacp_id;
+ char *active_remote_header;
+ unsigned int progress_start;
+ unsigned int progress_curr;
+ unsigned int progress_end;
+ int progress_changed;
+
+ assert(raop_rtp);
+
+ MUTEX_LOCK(raop_rtp->run_mutex);
+ if (!raop_rtp->running) {
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+ return 1;
+ }
+
+ /* Read the volume level */
+ volume = raop_rtp->volume;
+ volume_changed = raop_rtp->volume_changed;
+ raop_rtp->volume_changed = 0;
+
+ /* Read the flush value */
+ flush = raop_rtp->flush;
+ raop_rtp->flush = NO_FLUSH;
+
+ /* Read the metadata */
+ metadata = raop_rtp->metadata;
+ metadata_len = raop_rtp->metadata_len;
+ raop_rtp->metadata = NULL;
+ raop_rtp->metadata_len = 0;
+
+ /* Read the coverart */
+ coverart = raop_rtp->coverart;
+ coverart_len = raop_rtp->coverart_len;
+ raop_rtp->coverart = NULL;
+ raop_rtp->coverart_len = 0;
+
+ /* Read DACP remote control data */
+ dacp_id = raop_rtp->dacp_id;
+ active_remote_header = raop_rtp->active_remote_header;
+ raop_rtp->dacp_id = NULL;
+ raop_rtp->active_remote_header = NULL;
+
+ /* Read the progress values */
+ progress_start = raop_rtp->progress_start;
+ progress_curr = raop_rtp->progress_curr;
+ progress_end = raop_rtp->progress_end;
+ progress_changed = raop_rtp->progress_changed;
+ raop_rtp->progress_changed = 0;
+
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+
+ /* Call set_volume callback if changed */
+ if (volume_changed) {
+ raop_buffer_flush(raop_rtp->buffer, flush);
+ if (raop_rtp->callbacks.audio_set_volume) {
+ raop_rtp->callbacks.audio_set_volume(raop_rtp->callbacks.cls, volume);
+ }
+ }
+
+ /* Handle flush if requested */
+ if (flush != NO_FLUSH) {
+ if (raop_rtp->callbacks.audio_flush) {
+ raop_rtp->callbacks.audio_flush(raop_rtp->callbacks.cls);
+ }
+ }
+
+ if (metadata != NULL) {
+ if (raop_rtp->callbacks.audio_set_metadata) {
+ raop_rtp->callbacks.audio_set_metadata(raop_rtp->callbacks.cls, metadata, metadata_len);
+ }
+ free(metadata);
+ metadata = NULL;
+ }
+
+ if (coverart != NULL) {
+ if (raop_rtp->callbacks.audio_set_coverart) {
+ raop_rtp->callbacks.audio_set_coverart(raop_rtp->callbacks.cls, coverart, coverart_len);
+ }
+ free(coverart);
+ coverart = NULL;
+ }
+ if (dacp_id && active_remote_header) {
+ if (raop_rtp->callbacks.audio_remote_control_id) {
+ raop_rtp->callbacks.audio_remote_control_id(raop_rtp->callbacks.cls, dacp_id, active_remote_header);
+ }
+ free(dacp_id);
+ free(active_remote_header);
+ dacp_id = NULL;
+ active_remote_header = NULL;
+ }
+
+ if (progress_changed) {
+ if (raop_rtp->callbacks.audio_set_progress) {
+ raop_rtp->callbacks.audio_set_progress(raop_rtp->callbacks.cls, progress_start, progress_curr, progress_end);
+ }
+ }
+ return 0;
+}
+
+void raop_rtp_sync_clock(raop_rtp_t *raop_rtp, uint32_t rtp_time, uint64_t ntp_time) {
+ raop_rtp->sync_data_index = (raop_rtp->sync_data_index + 1) % RAOP_RTP_SYNC_DATA_COUNT;
+ raop_rtp->sync_data[raop_rtp->sync_data_index].rtp_time = rtp_time;
+ raop_rtp->sync_data[raop_rtp->sync_data_index].ntp_time = ntp_time;
+
+ uint32_t valid_data_count = 0;
+ valid_data_count = 0;
+ int64_t total_offsets = 0;
+ for (int i = 0; i < RAOP_RTP_SYNC_DATA_COUNT; ++i) {
+ if (raop_rtp->sync_data[i].ntp_time == 0) continue;
+ total_offsets += (int64_t) (((double) raop_rtp->sync_data[i].rtp_time) / raop_rtp->rtp_sync_scale) - raop_rtp->sync_data[i].ntp_time;
+ valid_data_count++;
+ }
+ int64_t avg_offset = total_offsets / valid_data_count;
+ int64_t correction = avg_offset - raop_rtp->rtp_sync_offset;
+ raop_rtp->rtp_sync_offset = avg_offset;
+
+ logger_log(raop_rtp->logger, LOGGER_DEBUG, "raop_rtp sync correction=%lld", correction);
+}
+
+uint64_t raop_rtp_convert_rtp_time(raop_rtp_t *raop_rtp, uint32_t rtp_time) {
+ return (uint64_t) (((double) rtp_time) / raop_rtp->rtp_sync_scale) - raop_rtp->rtp_sync_offset;
+}
+
+static THREAD_RETVAL
+raop_rtp_thread_udp(void *arg)
+{
+ raop_rtp_t *raop_rtp = arg;
+ unsigned char packet[RAOP_PACKET_LEN];
+ unsigned int packetlen;
+ struct sockaddr_storage saddr;
+ socklen_t saddrlen;
+ assert(raop_rtp);
+
+ while(1) {
+ fd_set rfds;
+ struct timeval tv;
+ int nfds, ret;
+
+ /* Check if we are still running and process callbacks */
+ if (raop_rtp_process_events(raop_rtp, NULL)) {
+ break;
+ }
+
+ /* Set timeout value to 5ms */
+ tv.tv_sec = 0;
+ tv.tv_usec = 5000;
+
+ /* Get the correct nfds value */
+ nfds = raop_rtp->csock+1;
+ if (raop_rtp->dsock >= nfds)
+ nfds = raop_rtp->dsock+1;
+
+ /* Set rfds and call select */
+ FD_ZERO(&rfds);
+ FD_SET(raop_rtp->csock, &rfds);
+ FD_SET(raop_rtp->dsock, &rfds);
+
+ ret = select(nfds, &rfds, NULL, NULL, &tv);
+ if (ret == 0) {
+ /* Timeout happened */
+ continue;
+ } else if (ret == -1) {
+ logger_log(raop_rtp->logger, LOGGER_ERR, "raop_rtp error in select");
+ break;
+ }
+
+ if (FD_ISSET(raop_rtp->csock, &rfds)) {
+ saddrlen = sizeof(saddr);
+ packetlen = recvfrom(raop_rtp->csock, (char *)packet, sizeof(packet), 0,
+ (struct sockaddr *)&saddr, &saddrlen);
+
+ memcpy(&raop_rtp->control_saddr, &saddr, saddrlen);
+ raop_rtp->control_saddr_len = saddrlen;
+ int type_c = packet[1] & ~0x80;
+ logger_log(raop_rtp->logger, LOGGER_DEBUG, "raop_rtp type_c 0x%02x, packetlen = %d", type_c, packetlen);
+ if (type_c == 0x56) {
+ /* Handle resent data packet */
+ uint32_t rtp_timestamp = (packet[4 + 4] << 24) | (packet[4 + 5] << 16) | (packet[4 + 6] << 8) | packet[4 + 7];
+ uint64_t ntp_timestamp = raop_rtp_convert_rtp_time(raop_rtp, rtp_timestamp);
+ uint64_t ntp_now = raop_ntp_get_local_time(raop_rtp->ntp);
+ logger_log(raop_rtp->logger, LOGGER_DEBUG, "raop_rtp audio resent: ntp = %llu, now = %llu, latency=%lld, rtp=%u",
+ ntp_timestamp, ntp_now, ((int64_t) ntp_now) - ((int64_t) ntp_timestamp), rtp_timestamp);
+ int result = raop_buffer_enqueue(raop_rtp->buffer, packet + 4, packetlen - 4, ntp_timestamp, 1);
+ assert(result >= 0);
+ } else if (type_c == 0x54 && packetlen >= 20) {
+ // The unit for the rtp clock is 1 / sample rate = 1 / 44100
+ uint32_t sync_rtp = byteutils_get_int_be(packet, 4) - 11025;
+ uint64_t sync_ntp_raw = byteutils_get_long_be(packet, 8);
+ uint64_t sync_ntp_remote = raop_ntp_timestamp_to_micro_seconds(sync_ntp_raw, true);
+ uint64_t sync_ntp_local = raop_ntp_convert_remote_time(raop_rtp->ntp, sync_ntp_remote);
+ // It's not clear what the additional rtp timestamp indicates
+ uint32_t next_rtp = byteutils_get_int_be(packet, 16);
+ logger_log(raop_rtp->logger, LOGGER_DEBUG, "raop_rtp sync: ntp=%llu, local ntp: %llu, rtp=%u, rtp_next=%u",
+ sync_ntp_remote, sync_ntp_local, sync_rtp, next_rtp);
+ raop_rtp_sync_clock(raop_rtp, sync_rtp, sync_ntp_local);
+ } else {
+ logger_log(raop_rtp->logger, LOGGER_DEBUG, "raop_rtp unknown packet");
+ }
+ }
+
+ if (FD_ISSET(raop_rtp->dsock, &rfds)) {
+ //logger_log(raop_rtp->logger, LOGGER_INFO, "Would have data packet in queue");
+ // Receiving audio data here
+ saddrlen = sizeof(saddr);
+ packetlen = recvfrom(raop_rtp->dsock, (char *)packet, sizeof(packet), 0,
+ (struct sockaddr *)&saddr, &saddrlen);
+ // rtp payload type
+ int type_d = packet[1] & ~0x80;
+ //logger_log(raop_rtp->logger, LOGGER_DEBUG, "raop_rtp_thread_udp type_d 0x%02x, packetlen = %d", type_d, packetlen);
+
+ // Len = 16 appears if there is no time
+ if (packetlen >= 12) {
+ int no_resend = (raop_rtp->control_rport == 0);// false
+
+ uint32_t rtp_timestamp = (packet[4] << 24) | (packet[5] << 16) | (packet[6] << 8) | packet[7];
+ uint64_t ntp_timestamp = raop_rtp_convert_rtp_time(raop_rtp, rtp_timestamp);
+ uint64_t ntp_now = raop_ntp_get_local_time(raop_rtp->ntp);
+ logger_log(raop_rtp->logger, LOGGER_DEBUG, "raop_rtp audio: ntp = %llu, now = %llu, latency=%lld, rtp=%u",
+ ntp_timestamp, ntp_now, ((int64_t) ntp_now) - ((int64_t) ntp_timestamp), rtp_timestamp);
+
+ int result = raop_buffer_enqueue(raop_rtp->buffer, packet, packetlen, ntp_timestamp, 1);
+ assert(result >= 0);
+
+ // Render continuous buffer entries
+ void *payload = NULL;
+ unsigned int payload_size;
+ uint64_t timestamp;
+ while ((payload = raop_buffer_dequeue(raop_rtp->buffer, &payload_size, ×tamp, no_resend))) {
+ aac_decode_struct aac_data;
+ aac_data.data_len = payload_size;
+ aac_data.data = payload;
+ aac_data.pts = timestamp;
+ raop_rtp->callbacks.audio_process(raop_rtp->callbacks.cls, raop_rtp->ntp, &aac_data);
+ free(payload);
+ }
+
+ /* Handle possible resend requests */
+ if (!no_resend) {
+ raop_buffer_handle_resends(raop_rtp->buffer, raop_rtp_resend_callback, raop_rtp);
+ }
+ }
+
+ }
+ }
+
+ // Ensure running reflects the actual state
+ MUTEX_LOCK(raop_rtp->run_mutex);
+ raop_rtp->running = false;
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+
+ logger_log(raop_rtp->logger, LOGGER_DEBUG, "raop_rtp exiting thread");
+
+ return 0;
+}
+
+// Start rtp service, three udp ports
+void
+raop_rtp_start_audio(raop_rtp_t *raop_rtp, int use_udp, unsigned short control_rport,
+ unsigned short *control_lport, unsigned short *data_lport)
+{
+ logger_log(raop_rtp->logger, LOGGER_INFO, "raop_rtp starting audio");
+ int use_ipv6 = 0;
+
+ assert(raop_rtp);
+
+ MUTEX_LOCK(raop_rtp->run_mutex);
+ if (raop_rtp->running || !raop_rtp->joined) {
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+ return;
+ }
+
+ /* Initialize ports and sockets */
+ raop_rtp->control_rport = control_rport;
+ if (raop_rtp->remote_saddr.ss_family == AF_INET6) {
+ use_ipv6 = 1;
+ }
+ use_ipv6 = 0;
+ if (raop_rtp_init_sockets(raop_rtp, use_ipv6, use_udp) < 0) {
+ logger_log(raop_rtp->logger, LOGGER_ERR, "raop_rtp initializing sockets failed");
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+ return;
+ }
+ if (control_lport) *control_lport = raop_rtp->control_lport;
+ if (data_lport) *data_lport = raop_rtp->data_lport;
+ /* Create the thread and initialize running values */
+ raop_rtp->running = 1;
+ raop_rtp->joined = 0;
+
+ THREAD_CREATE(raop_rtp->thread, raop_rtp_thread_udp, raop_rtp);
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+}
+
+void
+raop_rtp_set_volume(raop_rtp_t *raop_rtp, float volume)
+{
+ assert(raop_rtp);
+
+ if (volume > 0.0f) {
+ volume = 0.0f;
+ } else if (volume < -144.0f) {
+ volume = -144.0f;
+ }
+
+ /* Set volume in thread instead */
+ MUTEX_LOCK(raop_rtp->run_mutex);
+ raop_rtp->volume = volume;
+ raop_rtp->volume_changed = 1;
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+}
+
+void
+raop_rtp_set_metadata(raop_rtp_t *raop_rtp, const char *data, int datalen)
+{
+ unsigned char *metadata;
+
+ assert(raop_rtp);
+
+ if (datalen <= 0) {
+ return;
+ }
+ metadata = malloc(datalen);
+ assert(metadata);
+ memcpy(metadata, data, datalen);
+
+ /* Set metadata in thread instead */
+ MUTEX_LOCK(raop_rtp->run_mutex);
+ raop_rtp->metadata = metadata;
+ raop_rtp->metadata_len = datalen;
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+}
+
+void
+raop_rtp_set_coverart(raop_rtp_t *raop_rtp, const char *data, int datalen)
+{
+ unsigned char *coverart;
+
+ assert(raop_rtp);
+
+ if (datalen <= 0) {
+ return;
+ }
+ coverart = malloc(datalen);
+ assert(coverart);
+ memcpy(coverart, data, datalen);
+
+ /* Set coverart in thread instead */
+ MUTEX_LOCK(raop_rtp->run_mutex);
+ raop_rtp->coverart = coverart;
+ raop_rtp->coverart_len = datalen;
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+}
+
+void
+raop_rtp_remote_control_id(raop_rtp_t *raop_rtp, const char *dacp_id, const char *active_remote_header)
+{
+ assert(raop_rtp);
+
+ if (!dacp_id || !active_remote_header) {
+ return;
+ }
+
+ /* Set dacp stuff in thread instead */
+ MUTEX_LOCK(raop_rtp->run_mutex);
+ raop_rtp->dacp_id = strdup(dacp_id);
+ raop_rtp->active_remote_header = strdup(active_remote_header);
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+}
+
+void
+raop_rtp_set_progress(raop_rtp_t *raop_rtp, unsigned int start, unsigned int curr, unsigned int end)
+{
+ assert(raop_rtp);
+
+ /* Set progress in thread instead */
+ MUTEX_LOCK(raop_rtp->run_mutex);
+ raop_rtp->progress_start = start;
+ raop_rtp->progress_curr = curr;
+ raop_rtp->progress_end = end;
+ raop_rtp->progress_changed = 1;
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+}
+
+void
+raop_rtp_flush(raop_rtp_t *raop_rtp, int next_seq)
+{
+ assert(raop_rtp);
+
+ /* Call flush in thread instead */
+ MUTEX_LOCK(raop_rtp->run_mutex);
+ raop_rtp->flush = next_seq;
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+}
+
+void
+raop_rtp_stop(raop_rtp_t *raop_rtp)
+{
+ assert(raop_rtp);
+
+ /* Check that we are running and thread is not
+ * joined (should never be while still running) */
+ MUTEX_LOCK(raop_rtp->run_mutex);
+ if (!raop_rtp->running || raop_rtp->joined) {
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+ return;
+ }
+ raop_rtp->running = 0;
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+
+ /* Join the thread */
+ THREAD_JOIN(raop_rtp->thread);
+
+ if (raop_rtp->csock != -1) closesocket(raop_rtp->csock);
+ if (raop_rtp->dsock != -1) closesocket(raop_rtp->dsock);
+
+ /* Flush buffer into initial state */
+ raop_buffer_flush(raop_rtp->buffer, -1);
+
+ /* Mark thread as joined */
+ MUTEX_LOCK(raop_rtp->run_mutex);
+ raop_rtp->joined = 1;
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+}
+
+int
+raop_rtp_is_running(raop_rtp_t *raop_rtp)
+{
+ assert(raop_rtp);
+ MUTEX_LOCK(raop_rtp->run_mutex);
+ int running = raop_rtp->running;
+ MUTEX_UNLOCK(raop_rtp->run_mutex);
+ return running;
+}
+
diff --git a/lib/raop_rtp.h b/lib/raop_rtp.h
new file mode 100755
index 0000000..5d66b67
--- /dev/null
+++ b/lib/raop_rtp.h
@@ -0,0 +1,45 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef RAOP_RTP_H
+#define RAOP_RTP_H
+
+/* For raop_callbacks_t */
+#include "raop.h"
+#include "logger.h"
+#include "raop_ntp.h"
+
+#define RAOP_AESIV_LEN 16
+#define RAOP_AESKEY_LEN 16
+#define RAOP_PACKET_LEN 32768
+
+typedef struct raop_rtp_s raop_rtp_t;
+
+raop_rtp_t *raop_rtp_init(logger_t *logger, raop_callbacks_t *callbacks, raop_ntp_t *ntp, const unsigned char *remote, int remotelen,
+ const unsigned char *aeskey, const unsigned char *aesiv, const unsigned char *ecdh_secret);
+
+void raop_rtp_start_audio(raop_rtp_t *raop_rtp, int use_udp, unsigned short control_rport,
+ unsigned short *control_lport, unsigned short *data_lport);
+
+void raop_rtp_set_volume(raop_rtp_t *raop_rtp, float volume);
+void raop_rtp_set_metadata(raop_rtp_t *raop_rtp, const char *data, int datalen);
+void raop_rtp_set_coverart(raop_rtp_t *raop_rtp, const char *data, int datalen);
+void raop_rtp_remote_control_id(raop_rtp_t *raop_rtp, const char *dacp_id, const char *active_remote_header);
+void raop_rtp_set_progress(raop_rtp_t *raop_rtp, unsigned int start, unsigned int curr, unsigned int end);
+void raop_rtp_flush(raop_rtp_t *raop_rtp, int next_seq);
+void raop_rtp_stop(raop_rtp_t *raop_rtp);
+int raop_rtp_is_running(raop_rtp_t *raop_rtp);
+void raop_rtp_destroy(raop_rtp_t *raop_rtp);
+
+#endif
diff --git a/lib/raop_rtp_mirror.c b/lib/raop_rtp_mirror.c
new file mode 100755
index 0000000..8ccdcda
--- /dev/null
+++ b/lib/raop_rtp_mirror.c
@@ -0,0 +1,513 @@
+/*
+ * Copyright (c) 2019 dsafa22, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include "raop_rtp_mirror.h"
+
+#include
+#include
+#include
+#include
+#include
+#include
+
+#include "raop.h"
+#include "netutils.h"
+#include "compat.h"
+#include "logger.h"
+#include "byteutils.h"
+#include "mirror_buffer.h"
+#include "stream.h"
+
+
+struct h264codec_s {
+ unsigned char compatibility;
+ short pps_size;
+ short sps_size;
+ unsigned char level;
+ unsigned char number_of_pps;
+ unsigned char* picture_parameter_set;
+ unsigned char profile_high;
+ unsigned char reserved_3_and_sps;
+ unsigned char reserved_6_and_nal;
+ unsigned char* sequence_parameter_set;
+ unsigned char version;
+};
+
+struct raop_rtp_mirror_s {
+ logger_t *logger;
+ raop_callbacks_t callbacks;
+ raop_ntp_t *ntp;
+
+ /* Buffer to handle all resends */
+ mirror_buffer_t *buffer;
+
+ /* Remote address as sockaddr */
+ struct sockaddr_storage remote_saddr;
+ socklen_t remote_saddr_len;
+
+ /* MUTEX LOCKED VARIABLES START */
+ /* These variables only edited mutex locked */
+ int running;
+ int joined;
+
+ int flush;
+ thread_handle_t thread_mirror;
+ mutex_handle_t run_mutex;
+
+ /* MUTEX LOCKED VARIABLES END */
+ int mirror_data_sock;
+
+ unsigned short mirror_data_lport;
+};
+
+static int
+raop_rtp_parse_remote(raop_rtp_mirror_t *raop_rtp_mirror, const unsigned char *remote, int remotelen)
+{
+ char current[25];
+ int family;
+ int ret;
+ assert(raop_rtp_mirror);
+ if (remotelen == 4) {
+ family = AF_INET;
+ } else if (remotelen == 16) {
+ family = AF_INET6;
+ } else {
+ return -1;
+ }
+ memset(current, 0, sizeof(current));
+ sprintf(current, "%d.%d.%d.%d", remote[0], remote[1], remote[2], remote[3]);
+ logger_log(raop_rtp_mirror->logger, LOGGER_DEBUG, "raop_rtp_mirror parse remote ip = %s", current);
+ ret = netutils_parse_address(family, current,
+ &raop_rtp_mirror->remote_saddr,
+ sizeof(raop_rtp_mirror->remote_saddr));
+ if (ret < 0) {
+ return -1;
+ }
+ raop_rtp_mirror->remote_saddr_len = ret;
+ return 0;
+}
+
+#define NO_FLUSH (-42)
+raop_rtp_mirror_t *raop_rtp_mirror_init(logger_t *logger, raop_callbacks_t *callbacks, raop_ntp_t *ntp,
+ const unsigned char *remote, int remotelen,
+ const unsigned char *aeskey, const unsigned char *ecdh_secret)
+{
+ raop_rtp_mirror_t *raop_rtp_mirror;
+
+ assert(logger);
+ assert(callbacks);
+
+ raop_rtp_mirror = calloc(1, sizeof(raop_rtp_mirror_t));
+ if (!raop_rtp_mirror) {
+ return NULL;
+ }
+ raop_rtp_mirror->logger = logger;
+ raop_rtp_mirror->ntp = ntp;
+
+ memcpy(&raop_rtp_mirror->callbacks, callbacks, sizeof(raop_callbacks_t));
+ raop_rtp_mirror->buffer = mirror_buffer_init(logger, aeskey, ecdh_secret);
+ if (!raop_rtp_mirror->buffer) {
+ free(raop_rtp_mirror);
+ return NULL;
+ }
+ if (raop_rtp_parse_remote(raop_rtp_mirror, remote, remotelen) < 0) {
+ free(raop_rtp_mirror);
+ return NULL;
+ }
+ raop_rtp_mirror->running = 0;
+ raop_rtp_mirror->joined = 1;
+ raop_rtp_mirror->flush = NO_FLUSH;
+
+ MUTEX_CREATE(raop_rtp_mirror->run_mutex);
+ return raop_rtp_mirror;
+}
+
+void
+raop_rtp_init_mirror_aes(raop_rtp_mirror_t *raop_rtp_mirror, uint64_t streamConnectionID)
+{
+ mirror_buffer_init_aes(raop_rtp_mirror->buffer, streamConnectionID);
+}
+
+//#define DUMP_H264
+
+#define RAOP_PACKET_LEN 32768
+/**
+ * Mirror
+ */
+static THREAD_RETVAL
+raop_rtp_mirror_thread(void *arg)
+{
+ raop_rtp_mirror_t *raop_rtp_mirror = arg;
+ assert(raop_rtp_mirror);
+
+ int stream_fd = -1;
+ unsigned char packet[128];
+ memset(packet, 0 , 128);
+ unsigned char* payload = NULL;
+ unsigned int readstart = 0;
+
+#ifdef DUMP_H264
+ // C decrypted
+ FILE* file = fopen("/home/pi/Airplay.h264", "wb");
+ // Encrypted source file
+ FILE* file_source = fopen("/home/pi/Airplay.source", "wb");
+ FILE* file_len = fopen("/home/pi/Airplay.len", "wb");
+#endif
+
+ while (1) {
+ fd_set rfds;
+ struct timeval tv;
+ int nfds, ret;
+ MUTEX_LOCK(raop_rtp_mirror->run_mutex);
+ if (!raop_rtp_mirror->running) {
+ MUTEX_UNLOCK(raop_rtp_mirror->run_mutex);
+ break;
+ }
+ MUTEX_UNLOCK(raop_rtp_mirror->run_mutex);
+
+ /* Set timeout value to 5ms */
+ tv.tv_sec = 0;
+ tv.tv_usec = 5000;
+
+ /* Get the correct nfds value and set rfds */
+ FD_ZERO(&rfds);
+ if (stream_fd == -1) {
+ FD_SET(raop_rtp_mirror->mirror_data_sock, &rfds);
+ nfds = raop_rtp_mirror->mirror_data_sock+1;
+ } else {
+ FD_SET(stream_fd, &rfds);
+ nfds = stream_fd+1;
+ }
+ ret = select(nfds, &rfds, NULL, NULL, &tv);
+ if (ret == 0) {
+ /* Timeout happened */
+ continue;
+ } else if (ret == -1) {
+ logger_log(raop_rtp_mirror->logger, LOGGER_ERR, "raop_rtp_mirror error in select");
+ break;
+ }
+
+ if (stream_fd == -1 && FD_ISSET(raop_rtp_mirror->mirror_data_sock, &rfds)) {
+ struct sockaddr_storage saddr;
+ socklen_t saddrlen;
+
+ logger_log(raop_rtp_mirror->logger, LOGGER_DEBUG, "raop_rtp_mirror accepting client");
+ saddrlen = sizeof(saddr);
+ stream_fd = accept(raop_rtp_mirror->mirror_data_sock, (struct sockaddr *)&saddr, &saddrlen);
+ if (stream_fd == -1) {
+ logger_log(raop_rtp_mirror->logger, LOGGER_ERR, "raop_rtp_mirror error in accept %d %s", errno, strerror(errno));
+ break;
+ }
+
+ // We're calling recv for a certain amount of data, so we need a timeout
+ struct timeval tv;
+ tv.tv_sec = 0;
+ tv.tv_usec = 5000;
+ if (setsockopt(stream_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) {
+ logger_log(raop_rtp_mirror->logger, LOGGER_ERR, "raop_rtp_mirror could not set stream socket timeout %d %s", errno, strerror(errno));
+ break;
+ }
+
+ readstart = 0;
+ }
+
+ if (stream_fd != -1 && FD_ISSET(stream_fd, &rfds)) {
+
+ // The first 128 bytes are some kind of header for the payload that follows
+ while (payload == NULL && readstart < 128) {
+ ret = recv(stream_fd, packet + readstart, 128 - readstart, 0);
+ if (ret <= 0) break;
+ readstart = readstart + ret;
+ }
+
+ if (payload == NULL && ret == 0) {
+ logger_log(raop_rtp_mirror->logger, LOGGER_ERR, "raop_rtp_mirror tcp socket closed");
+ FD_CLR(stream_fd, &rfds);
+ stream_fd = -1;
+ continue;
+ } else if (payload == NULL && ret == -1) {
+ if (errno == EAGAIN || errno == EWOULDBLOCK) continue; // Timeouts can happen even if the connection is fine
+ logger_log(raop_rtp_mirror->logger, LOGGER_ERR, "raop_rtp_mirror error in header recv: %d", errno);
+ break;
+ }
+
+ int payload_size = byteutils_get_int(packet, 0);
+ unsigned short payload_type = byteutils_get_short(packet, 4) & 0xff;
+ unsigned short payload_option = byteutils_get_short(packet, 6);
+
+ if (payload == NULL) {
+ payload = malloc(payload_size);
+ readstart = 0;
+ }
+
+ while (readstart < payload_size) {
+ // Payload data
+ ret = recv(stream_fd, payload + readstart, payload_size - readstart, 0);
+ if (ret <= 0) break;
+ readstart = readstart + ret;
+ }
+
+ if (ret == 0) {
+ logger_log(raop_rtp_mirror->logger, LOGGER_ERR, "raop_rtp_mirror tcp socket closed");
+ break;
+ } else if (ret == -1) {
+ if (errno == EAGAIN || errno == EWOULDBLOCK) continue; // Timeouts can happen even if the connection is fine
+ logger_log(raop_rtp_mirror->logger, LOGGER_ERR, "raop_rtp_mirror error in recv: %d", errno);
+ break;
+ }
+
+ if (payload_type == 0) {
+ // Normal video data (VCL NAL)
+
+ // Conveniently, the video data is already stamped with the remote wall clock time,
+ // so no additional clock syncing needed. The only thing odd here is that the video
+ // ntp time stamps don't include the SECONDS_FROM_1900_TO_1970, so it's really just
+ // counting micro seconds since last boot.
+ uint64_t ntp_timestamp_raw = byteutils_get_long(packet, 8);
+ uint64_t ntp_timestamp_remote = raop_ntp_timestamp_to_micro_seconds(ntp_timestamp_raw, false);
+ uint64_t ntp_timestamp = raop_ntp_convert_remote_time(raop_rtp_mirror->ntp, ntp_timestamp_remote);
+
+ uint64_t ntp_now = raop_ntp_get_local_time(raop_rtp_mirror->ntp);
+ logger_log(raop_rtp_mirror->logger, LOGGER_DEBUG, "raop_rtp_mirror video ntp = %llu, now = %llu, latency = %lld",
+ ntp_timestamp, ntp_now, ((int64_t) ntp_now) - ((int64_t) ntp_timestamp));
+
+#ifdef DUMP_H264
+ fwrite(payload, payload_size, 1, file_source);
+ fwrite(&readstart, sizeof(readstart), 1, file_len);
+#endif
+
+ // Decrypt data
+ unsigned char* payload_decrypted = malloc(payload_size);
+ mirror_buffer_decrypt(raop_rtp_mirror->buffer, payload, payload_decrypted, payload_size);
+
+ int nalu_type = payload[4] & 0x1f;
+ int nalu_size = 0;
+ int nalus_count = 0;
+
+ // It seems the AirPlay protocol prepends NALs with their size, which we're replacing with the 4-byte
+ // start code for the NAL Byte-Stream Format.
+ while (nalu_size < payload_size) {
+ int nc_len = (payload_decrypted[nalu_size + 0] << 24) | (payload_decrypted[nalu_size + 1] << 16) |
+ (payload_decrypted[nalu_size + 2] << 8) | (payload_decrypted[nalu_size + 3]);
+ assert(nc_len > 0);
+
+ payload_decrypted[nalu_size + 0] = 0;
+ payload_decrypted[nalu_size + 1] = 0;
+ payload_decrypted[nalu_size + 2] = 0;
+ payload_decrypted[nalu_size + 3] = 1;
+ nalu_size += nc_len + 4;
+ nalus_count++;
+ }
+
+ // logger_log(raop_rtp_mirror->logger, LOGGER_DEBUG, "nalutype = %d", nalu_type);
+ // logger_log(raop_rtp_mirror->logger, LOGGER_DEBUG, "nalu_size = %d, payloadsize = %d nalus_count = %d",
+ // nalu_size, payload_size, nalus_count);
+
+#ifdef DUMP_H264
+ fwrite(payload_decrypted, payload_size, 1, file);
+#endif
+
+ h264_decode_struct h264_data;
+ h264_data.data_len = payload_size;
+ h264_data.data = payload_decrypted;
+ h264_data.frame_type = 1;
+ h264_data.pts = ntp_timestamp;
+
+ raop_rtp_mirror->callbacks.video_process(raop_rtp_mirror->callbacks.cls, raop_rtp_mirror->ntp, &h264_data);
+ free(payload_decrypted);
+
+ } else if ((payload_type & 255) == 1) {
+ // The information in the payload contains an SPS and a PPS NAL
+
+ float width_source = byteutils_get_float(packet, 40);
+ float height_source = byteutils_get_float(packet, 44);
+ float width = byteutils_get_float(packet, 56);
+ float height = byteutils_get_float(packet, 60);
+ logger_log(raop_rtp_mirror->logger, LOGGER_DEBUG, "raop_rtp_mirror width_source = %f height_source = %f width = %f height = %f",
+ width_source, height_source, width, height);
+
+ // The sps_pps is not encrypted
+ h264codec_t h264;
+ h264.version = payload[0];
+ h264.profile_high = payload[1];
+ h264.compatibility = payload[2];
+ h264.level = payload[3];
+ h264.reserved_6_and_nal = payload[4];
+ h264.reserved_3_and_sps = payload[5];
+ h264.sps_size = (short) (((payload[6] & 255) << 8) + (payload[7] & 255));
+ logger_log(raop_rtp_mirror->logger, LOGGER_DEBUG, "raop_rtp_mirror sps size = %d", h264.sps_size);
+ h264.sequence_parameter_set = malloc(h264.sps_size);
+ memcpy(h264.sequence_parameter_set, payload + 8, h264.sps_size);
+ h264.number_of_pps = payload[h264.sps_size + 8];
+ h264.pps_size = (short) (((payload[h264.sps_size + 9] & 2040) + payload[h264.sps_size + 10]) & 255);
+ h264.picture_parameter_set = malloc(h264.pps_size);
+ logger_log(raop_rtp_mirror->logger, LOGGER_DEBUG, "raop_rtp_mirror pps size = %d", h264.pps_size);
+ memcpy(h264.picture_parameter_set, payload + h264.sps_size + 11, h264.pps_size);
+
+ if (h264.sps_size + h264.pps_size < 102400) {
+ // Copy the sps and pps into a buffer to hand to the decoder
+ int sps_pps_len = (h264.sps_size + h264.pps_size) + 8;
+ unsigned char sps_pps[sps_pps_len];
+ sps_pps[0] = 0;
+ sps_pps[1] = 0;
+ sps_pps[2] = 0;
+ sps_pps[3] = 1;
+ memcpy(sps_pps + 4, h264.sequence_parameter_set, h264.sps_size);
+ sps_pps[h264.sps_size + 4] = 0;
+ sps_pps[h264.sps_size + 5] = 0;
+ sps_pps[h264.sps_size + 6] = 0;
+ sps_pps[h264.sps_size + 7] = 1;
+ memcpy(sps_pps + h264.sps_size + 8, h264.picture_parameter_set, h264.pps_size);
+
+#ifdef DUMP_H264
+ fwrite(sps_pps, sps_pps_len, 1, file);
+#endif
+
+ h264_decode_struct h264_data;
+ h264_data.data_len = sps_pps_len;
+ h264_data.data = sps_pps;
+ h264_data.frame_type = 0;
+ h264_data.pts = 0;
+ raop_rtp_mirror->callbacks.video_process(raop_rtp_mirror->callbacks.cls, raop_rtp_mirror->ntp, &h264_data);
+ }
+ free(h264.picture_parameter_set);
+ free(h264.sequence_parameter_set);
+ }
+
+ free(payload);
+ payload = NULL;
+ memset(packet, 0, 128);
+ readstart = 0;
+ }
+ }
+
+ /* Close the stream file descriptor */
+ if (stream_fd != -1) {
+ closesocket(stream_fd);
+ }
+
+#ifdef DUMP_H264
+ fclose(file);
+ fclose(file_source);
+ fclose(file_len);
+#endif
+
+ // Ensure running reflects the actual state
+ MUTEX_LOCK(raop_rtp_mirror->run_mutex);
+ raop_rtp_mirror->running = false;
+ MUTEX_UNLOCK(raop_rtp_mirror->run_mutex);
+
+ logger_log(raop_rtp_mirror->logger, LOGGER_DEBUG, "raop_rtp_mirror exiting TCP thread");
+
+ return 0;
+}
+
+void
+raop_rtp_start_mirror(raop_rtp_mirror_t *raop_rtp_mirror, int use_udp, unsigned short *mirror_data_lport)
+{
+ logger_log(raop_rtp_mirror->logger, LOGGER_INFO, "raop_rtp_mirror starting mirroring");
+ int use_ipv6 = 0;
+
+ assert(raop_rtp_mirror);
+
+ MUTEX_LOCK(raop_rtp_mirror->run_mutex);
+ if (raop_rtp_mirror->running || !raop_rtp_mirror->joined) {
+ MUTEX_UNLOCK(raop_rtp_mirror->run_mutex);
+ return;
+ }
+
+ if (raop_rtp_mirror->remote_saddr.ss_family == AF_INET6) {
+ use_ipv6 = 1;
+ }
+ use_ipv6 = 0;
+ if (raop_rtp_init_mirror_sockets(raop_rtp_mirror, use_ipv6) < 0) {
+ logger_log(raop_rtp_mirror->logger, LOGGER_ERR, "raop_rtp_mirror initializing sockets failed");
+ MUTEX_UNLOCK(raop_rtp_mirror->run_mutex);
+ return;
+ }
+ if (mirror_data_lport) *mirror_data_lport = raop_rtp_mirror->mirror_data_lport;
+
+ /* Create the thread and initialize running values */
+ raop_rtp_mirror->running = 1;
+ raop_rtp_mirror->joined = 0;
+
+ THREAD_CREATE(raop_rtp_mirror->thread_mirror, raop_rtp_mirror_thread, raop_rtp_mirror);
+ MUTEX_UNLOCK(raop_rtp_mirror->run_mutex);
+}
+
+void raop_rtp_mirror_stop(raop_rtp_mirror_t *raop_rtp_mirror) {
+ assert(raop_rtp_mirror);
+
+ /* Check that we are running and thread is not
+ * joined (should never be while still running) */
+ MUTEX_LOCK(raop_rtp_mirror->run_mutex);
+ if (!raop_rtp_mirror->running || raop_rtp_mirror->joined) {
+ MUTEX_UNLOCK(raop_rtp_mirror->run_mutex);
+ return;
+ }
+ raop_rtp_mirror->running = 0;
+ MUTEX_UNLOCK(raop_rtp_mirror->run_mutex);
+
+ if (raop_rtp_mirror->mirror_data_sock != -1) {
+ closesocket(raop_rtp_mirror->mirror_data_sock);
+ raop_rtp_mirror->mirror_data_sock = -1;
+ }
+
+ /* Join the thread */
+ THREAD_JOIN(raop_rtp_mirror->thread_mirror);
+
+ /* Mark thread as joined */
+ MUTEX_LOCK(raop_rtp_mirror->run_mutex);
+ raop_rtp_mirror->joined = 1;
+ MUTEX_UNLOCK(raop_rtp_mirror->run_mutex);
+}
+
+void raop_rtp_mirror_destroy(raop_rtp_mirror_t *raop_rtp_mirror) {
+ if (raop_rtp_mirror) {
+ raop_rtp_mirror_stop(raop_rtp_mirror);
+ MUTEX_DESTROY(raop_rtp_mirror->run_mutex);
+ mirror_buffer_destroy(raop_rtp_mirror->buffer);
+ free(raop_rtp_mirror);
+ }
+}
+
+static int
+raop_rtp_init_mirror_sockets(raop_rtp_mirror_t *raop_rtp_mirror, int use_ipv6)
+{
+ int dsock = -1;
+ unsigned short dport = 0;
+
+ assert(raop_rtp_mirror);
+
+ dsock = netutils_init_socket(&dport, use_ipv6, 0);
+ if (dsock == -1) {
+ goto sockets_cleanup;
+ }
+
+ /* Listen to the data socket if using TCP */
+ if (listen(dsock, 1) < 0) {
+ goto sockets_cleanup;
+ }
+
+ /* Set socket descriptors */
+ raop_rtp_mirror->mirror_data_sock = dsock;
+
+ /* Set port values */
+ raop_rtp_mirror->mirror_data_lport = dport;
+ return 0;
+
+ sockets_cleanup:
+ if (dsock != -1) closesocket(dsock);
+ return -1;
+}
diff --git a/lib/raop_rtp_mirror.h b/lib/raop_rtp_mirror.h
new file mode 100755
index 0000000..c465ee5
--- /dev/null
+++ b/lib/raop_rtp_mirror.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2019 dsafa22, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef RAOP_RTP_MIRROR_H
+#define RAOP_RTP_MIRROR_H
+
+#include
+#include "raop.h"
+#include "logger.h"
+#include "raop_ntp.h"
+
+typedef struct raop_rtp_mirror_s raop_rtp_mirror_t;
+typedef struct h264codec_s h264codec_t;
+
+raop_rtp_mirror_t *raop_rtp_mirror_init(logger_t *logger, raop_callbacks_t *callbacks, raop_ntp_t *ntp,
+ const unsigned char *remote, int remotelen,
+ const unsigned char *aeskey, const unsigned char *ecdh_secret);
+void raop_rtp_init_mirror_aes(raop_rtp_mirror_t *raop_rtp_mirror, uint64_t streamConnectionID);
+void raop_rtp_start_mirror(raop_rtp_mirror_t *raop_rtp_mirror, int use_udp, unsigned short *mirror_data_lport);
+
+static int raop_rtp_init_mirror_sockets(raop_rtp_mirror_t *raop_rtp_mirror, int use_ipv6);
+
+void raop_rtp_mirror_stop(raop_rtp_mirror_t *raop_rtp_mirror);
+void raop_rtp_mirror_destroy(raop_rtp_mirror_t *raop_rtp_mirror);
+#endif //RAOP_RTP_MIRROR_H
diff --git a/lib/sockets.h b/lib/sockets.h
new file mode 100755
index 0000000..ece6d68
--- /dev/null
+++ b/lib/sockets.h
@@ -0,0 +1,49 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef SOCKETS_H
+#define SOCKETS_H
+
+#if defined(WIN32)
+typedef int socklen_t;
+
+#ifndef SHUT_RD
+# define SHUT_RD SD_RECEIVE
+#endif
+#ifndef SHUT_WR
+# define SHUT_WR SD_SEND
+#endif
+#ifndef SHUT_RDWR
+# define SHUT_RDWR SD_BOTH
+#endif
+
+#define SOCKET_GET_ERROR() WSAGetLastError()
+#define SOCKET_SET_ERROR(value) WSASetLastError(value)
+#define SOCKET_ERRORNAME(name) WSA##name
+
+#define WSAEAGAIN WSAEWOULDBLOCK
+#define WSAENOMEM WSA_NOT_ENOUGH_MEMORY
+
+#else
+
+#define closesocket close
+#define ioctlsocket ioctl
+
+#define SOCKET_GET_ERROR() (errno)
+#define SOCKET_SET_ERROR(value) (errno = (value))
+#define SOCKET_ERRORNAME(name) name
+
+#endif
+
+#endif
diff --git a/lib/stream.h b/lib/stream.h
new file mode 100755
index 0000000..a801f4c
--- /dev/null
+++ b/lib/stream.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2019 dsafa22, All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef AIRPLAYSERVER_STREAM_H
+#define AIRPLAYSERVER_STREAM_H
+
+#include
+
+typedef struct {
+ int n_gop_index;
+ int frame_type;
+ int n_frame_poc;
+ unsigned char *data;
+ int data_len;
+ unsigned int n_time_stamp;
+ uint64_t pts;
+} h264_decode_struct;
+
+typedef struct {
+ unsigned char *data;
+ int data_len;
+ uint64_t pts;
+} aac_decode_struct;
+
+#endif //AIRPLAYSERVER_STREAM_H
diff --git a/lib/threads.h b/lib/threads.h
new file mode 100755
index 0000000..0d923cc
--- /dev/null
+++ b/lib/threads.h
@@ -0,0 +1,66 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef THREADS_H
+#define THREADS_H
+
+#if defined(WIN32)
+#include
+
+#define sleepms(x) Sleep(x)
+
+typedef HANDLE thread_handle_t;
+
+#define THREAD_RETVAL DWORD WINAPI
+#define THREAD_CREATE(handle, func, arg) \
+ handle = CreateThread(NULL, 0, func, arg, 0, NULL)
+#define THREAD_JOIN(handle) do { WaitForSingleObject(handle, INFINITE); CloseHandle(handle); } while(0)
+
+typedef HANDLE mutex_handle_t;
+
+#define MUTEX_CREATE(handle) handle = CreateMutex(NULL, FALSE, NULL)
+#define MUTEX_LOCK(handle) WaitForSingleObject(handle, INFINITE)
+#define MUTEX_UNLOCK(handle) ReleaseMutex(handle)
+#define MUTEX_DESTROY(handle) CloseHandle(handle)
+
+#else /* Use pthread library */
+
+#include
+#include
+
+#define sleepms(x) usleep((x)*1000)
+
+typedef pthread_t thread_handle_t;
+
+#define THREAD_RETVAL void *
+#define THREAD_CREATE(handle, func, arg) \
+ if (pthread_create(&(handle), NULL, func, arg)) handle = 0
+#define THREAD_JOIN(handle) pthread_join(handle, NULL)
+
+typedef pthread_mutex_t mutex_handle_t;
+
+typedef pthread_cond_t cond_handle_t;
+
+#define MUTEX_CREATE(handle) pthread_mutex_init(&(handle), NULL)
+#define MUTEX_LOCK(handle) pthread_mutex_lock(&(handle))
+#define MUTEX_UNLOCK(handle) pthread_mutex_unlock(&(handle))
+#define MUTEX_DESTROY(handle) pthread_mutex_destroy(&(handle))
+
+#define COND_CREATE(handle) pthread_cond_init(&(handle), NULL)
+#define COND_SIGNAL(handle) pthread_cond_signal(&(handle))
+#define COND_DESTROY(handle) pthread_cond_destroy(&(handle))
+
+#endif
+
+#endif /* THREADS_H */
diff --git a/lib/utils.c b/lib/utils.c
new file mode 100644
index 0000000..7cdda94
--- /dev/null
+++ b/lib/utils.c
@@ -0,0 +1,181 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#include
+#include
+#include
+#include
+
+char *
+utils_strsep(char **stringp, const char *delim)
+{
+ char *original;
+ char *strptr;
+
+ if (*stringp == NULL) {
+ return NULL;
+ }
+
+ original = *stringp;
+ strptr = strstr(*stringp, delim);
+ if (strptr == NULL) {
+ *stringp = NULL;
+ return original;
+ }
+ *strptr = '\0';
+ *stringp = strptr+strlen(delim);
+ return original;
+}
+
+int
+utils_read_file(char **dst, const char *filename)
+{
+ FILE *stream;
+ int filesize;
+ char *buffer;
+ int read_bytes;
+
+ /* Open stream for reading */
+ stream = fopen(filename, "rb");
+ if (!stream) {
+ return -1;
+ }
+
+ /* Find out file size */
+ fseek(stream, 0, SEEK_END);
+ filesize = ftell(stream);
+ fseek(stream, 0, SEEK_SET);
+
+ /* Allocate one extra byte for zero */
+ buffer = malloc(filesize+1);
+ if (!buffer) {
+ fclose(stream);
+ return -2;
+ }
+
+ /* Read data in a loop to buffer */
+ read_bytes = 0;
+ do {
+ int ret = fread(buffer+read_bytes, 1,
+ filesize-read_bytes, stream);
+ if (ret == 0) {
+ break;
+ }
+ read_bytes += ret;
+ } while (read_bytes < filesize);
+
+ /* Add final null byte and close stream */
+ buffer[read_bytes] = '\0';
+ fclose(stream);
+
+ /* If read didn't finish, return error */
+ if (read_bytes != filesize) {
+ free(buffer);
+ return -3;
+ }
+
+ /* Return buffer */
+ *dst = buffer;
+ return filesize;
+}
+
+int
+utils_hwaddr_raop(char *str, int strlen, const char *hwaddr, int hwaddrlen)
+{
+ int i,j;
+
+ /* Check that our string is long enough */
+ if (strlen == 0 || strlen < 2*hwaddrlen+1)
+ return -1;
+
+ /* Convert hardware address to hex string */
+ for (i=0,j=0; i>4) & 0x0f;
+ int lo = hwaddr[i] & 0x0f;
+
+ if (hi < 10) str[j++] = '0' + hi;
+ else str[j++] = 'A' + hi-10;
+ if (lo < 10) str[j++] = '0' + lo;
+ else str[j++] = 'A' + lo-10;
+ }
+
+ /* Add string terminator */
+ str[j++] = '\0';
+ return j;
+}
+
+int
+utils_hwaddr_airplay(char *str, int strlen, const char *hwaddr, int hwaddrlen)
+{
+ int i,j;
+
+ /* Check that our string is long enough */
+ if (strlen == 0 || strlen < 2*hwaddrlen+hwaddrlen)
+ return -1;
+
+ /* Convert hardware address to hex string */
+ for (i=0,j=0; i>4) & 0x0f;
+ int lo = hwaddr[i] & 0x0f;
+
+ if (hi < 10) str[j++] = '0' + hi;
+ else str[j++] = 'a' + hi-10;
+ if (lo < 10) str[j++] = '0' + lo;
+ else str[j++] = 'a' + lo-10;
+
+ str[j++] = ':';
+ }
+
+ /* Add string terminator */
+ if (j != 0) j--;
+ str[j++] = '\0';
+ return j;
+}
+
+char *utils_parse_hex(const char *str, int str_len, int *data_len) {
+ assert(str_len % 2 == 0);
+
+ char *data = malloc(str_len / 2);
+
+ for (int i = 0; i < (str_len / 2); i++) {
+ char c_1 = str[i * 2];
+ if (c_1 >= 97 && c_1 <= 102) {
+ c_1 -= (97 - 10);
+ } else if (c_1 >= 65 && c_1 <= 70) {
+ c_1 -= (65 - 10);
+ } else if (c_1 >= 48 && c_1 <= 57) {
+ c_1 -= 48;
+ } else {
+ free(data);
+ return NULL;
+ }
+
+ char c_2 = str[(i * 2) + 1];
+ if (c_2 >= 97 && c_2 <= 102) {
+ c_2 -= (97 - 10);
+ } else if (c_2 >= 65 && c_2 <= 70) {
+ c_2 -= (65 - 10);
+ } else if (c_2 >= 48 && c_2 <= 57) {
+ c_2 -= 48;
+ } else {
+ free(data);
+ return NULL;
+ }
+
+ data[i] = (c_1 << 4) | c_2;
+ }
+
+ *data_len = (str_len / 2);
+ return data;
+}
\ No newline at end of file
diff --git a/lib/utils.h b/lib/utils.h
new file mode 100644
index 0000000..58ded9e
--- /dev/null
+++ b/lib/utils.h
@@ -0,0 +1,23 @@
+/**
+ * Copyright (C) 2011-2012 Juho Vähä-Herttua
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ */
+
+#ifndef UTILS_H
+#define UTILS_H
+
+char *utils_strsep(char **stringp, const char *delim);
+int utils_read_file(char **dst, const char *pemstr);
+int utils_hwaddr_raop(char *str, int strlen, const char *hwaddr, int hwaddrlen);
+int utils_hwaddr_airplay(char *str, int strlen, const char *hwaddr, int hwaddrlen);
+char *utils_parse_hex(const char *str, int str_len, int *data_len);
+#endif
\ No newline at end of file
diff --git a/log.h b/log.h
new file mode 100755
index 0000000..b2a7de4
--- /dev/null
+++ b/log.h
@@ -0,0 +1,47 @@
+/**
+ * RPiPlay - An open-source AirPlay mirroring server for Raspberry Pi
+ * Copyright (C) 2019 Florian Draschbacher
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AIRPLAYSERVER_LOG_H
+#define AIRPLAYSERVER_LOG_H
+
+#include
+#include
+
+#define LEVEL_ERROR 0
+#define LEVEL_WARN 1
+#define LEVEL_INFO 2
+#define LEVEL_DEBUG 3
+#define LEVEL_VERBOSE 4
+
+void log(int level, const char* format, ...) {
+ va_list vargs;
+ va_start(vargs, format);
+ vprintf(format, vargs);
+ printf("\n");
+ va_end(vargs);
+}
+
+#define LOGV(...) log(LEVEL_VERBOSE, __VA_ARGS__)
+#define LOGD(...) log(LEVEL_DEBUG, __VA_ARGS__)
+#define LOGI(...) log(LEVEL_INFO, __VA_ARGS__)
+#define LOGW(...) log(LEVEL_WARN, __VA_ARGS__)
+#define LOGE(...) log(LEVEL_ERROR, __VA_ARGS__)
+
+
+#endif //AIRPLAYSERVER_LOG_H
diff --git a/renderers/CMakeLists.txt b/renderers/CMakeLists.txt
new file mode 100644
index 0000000..94c4784
--- /dev/null
+++ b/renderers/CMakeLists.txt
@@ -0,0 +1,19 @@
+cmake_minimum_required(VERSION 3.4.1)
+
+ find_package(PkgConfig)
+
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Ofast -march=native -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g")
+
+ pkg_check_modules(GST REQUIRED gstreamer-1.0>=1.4
+ gstreamer-sdp-1.0>=1.4
+ gstreamer-video-1.0>=1.4
+ gstreamer-app-1.0>=1.4)
+ add_library( renderers
+ STATIC
+ audio_renderer_gstreamer.c video_renderer_gstreamer.c)
+ include_directories ( renderers ${GST_INCLUDE_DIRS} )
+ target_link_libraries ( renderers ${GST_LIBRARIES} )
+
+
+
+ target_link_libraries (renderers airplay)
diff --git a/renderers/audio_renderer.h b/renderers/audio_renderer.h
new file mode 100644
index 0000000..8d4b19b
--- /dev/null
+++ b/renderers/audio_renderer.h
@@ -0,0 +1,48 @@
+/**
+ * RPiPlay - An open-source AirPlay mirroring server for Raspberry Pi
+ * Copyright (C) 2019 Florian Draschbacher
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AUDIO_RENDERER_H
+#define AUDIO_RENDERER_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include
+#include
+#include "../lib/logger.h"
+#include "../lib/raop_ntp.h"
+#include "video_renderer.h"
+
+typedef enum audio_device_e { AUDIO_DEVICE_HDMI, AUDIO_DEVICE_ANALOG, AUDIO_DEVICE_NONE } audio_device_t;
+
+typedef struct audio_renderer_s audio_renderer_t;
+
+audio_renderer_t *audio_renderer_init(logger_t *logger, video_renderer_t *video_renderer, audio_device_t device, bool low_latency);
+void audio_renderer_start(audio_renderer_t *renderer);
+void audio_renderer_render_buffer(audio_renderer_t *renderer, raop_ntp_t *ntp, unsigned char* data, int data_len, uint64_t pts);
+void audio_renderer_set_volume(audio_renderer_t *renderer, float volume);
+void audio_renderer_flush(audio_renderer_t *renderer);
+void audio_renderer_destroy(audio_renderer_t *renderer);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //AUDIO_RENDERER_H
diff --git a/renderers/audio_renderer_gstreamer.c b/renderers/audio_renderer_gstreamer.c
new file mode 100644
index 0000000..1bfa336
--- /dev/null
+++ b/renderers/audio_renderer_gstreamer.c
@@ -0,0 +1,115 @@
+/**
+ * RPiPlay - An open-source AirPlay mirroring server for Raspberry Pi
+ * Copyright (C) 2019 Florian Draschbacher
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "audio_renderer.h"
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+struct audio_renderer_s {
+ logger_t *logger;
+ video_renderer_t *video_renderer;
+ GstElement *appsrc;
+ GstElement *pipeline;
+ GstElement *volume;
+};
+
+audio_renderer_t *audio_renderer_init(logger_t *logger, video_renderer_t *video_renderer, audio_device_t device, bool low_latency) {
+ audio_renderer_t *renderer;
+ GError *error = NULL;
+
+ renderer = calloc(1, sizeof(audio_renderer_t));
+ if (!renderer) {
+ return NULL;
+ }
+ renderer->logger = logger;
+
+ renderer->pipeline = gst_parse_launch("appsrc name=audio_source is-live=true ! queue ! decodebin ! audioconvert ! audiorate ! volume name=volume volume=6 ! queue ! autoaudiosink sync=false", &error);
+ g_assert (renderer->pipeline);
+
+ renderer->appsrc = gst_bin_get_by_name (GST_BIN (renderer->pipeline), "audio_source");
+ renderer->volume = gst_bin_get_by_name (GST_BIN (renderer->pipeline), "volume");
+
+ gchar eld_conf[] = { 0xF8, 0xE8, 0x50, 0x00 };
+ GstBuffer *codec_data = gst_buffer_new_and_alloc(sizeof(eld_conf));
+ GstMapInfo map;
+
+ gst_buffer_map (codec_data, &map, GST_MAP_WRITE);
+ memset (map.data, eld_conf[0], map.size);
+ memset (map.data+1, eld_conf[1], map.size);
+ memset (map.data+2, eld_conf[2], map.size);
+ memset (map.data+3, eld_conf[3], map.size);
+
+ GstCaps *caps = gst_caps_new_simple ("audio/mpeg",
+ "rate", G_TYPE_INT, 44100,
+ "channels", G_TYPE_INT, 2,
+ "mpegversion", G_TYPE_INT, 4,
+ "stream-format", G_TYPE_STRING, "raw",
+ "codec_data", GST_TYPE_BUFFER, codec_data,
+ NULL);
+ g_object_set(renderer->appsrc, "caps", caps, NULL);
+
+ gst_caps_unref(caps);
+ gst_buffer_unmap (codec_data, &map);
+ gst_buffer_unref (codec_data);
+
+ return renderer;
+}
+
+void audio_renderer_start(audio_renderer_t *renderer) {
+ //g_signal_connect( renderer->pipeline, "deep-notify", G_CALLBACK(gst_object_default_deep_notify ), NULL );
+ gst_element_set_state (renderer->pipeline, GST_STATE_PLAYING);
+}
+
+void audio_renderer_render_buffer(audio_renderer_t *renderer, raop_ntp_t *ntp, unsigned char* data, int data_len, uint64_t pts) {
+
+ GstBuffer *buffer;
+
+ if (data_len == 0) return;
+
+ buffer = gst_buffer_new_and_alloc(data_len);
+ assert(buffer != NULL);
+
+ gst_buffer_fill(buffer, 0, data, data_len);
+ gst_app_src_push_buffer(GST_APP_SRC(renderer->appsrc), buffer);
+
+}
+
+void audio_renderer_set_volume(audio_renderer_t *renderer, float volume) {
+ //g_object_set(renderer->volume, "volume", volume, NULL);
+}
+
+void audio_renderer_flush(audio_renderer_t *renderer) {
+}
+
+void audio_renderer_destroy(audio_renderer_t *renderer) {
+
+ gst_app_src_end_of_stream (GST_APP_SRC(renderer->appsrc));
+ gst_element_set_state (renderer->pipeline, GST_STATE_NULL);
+ gst_object_unref (renderer->pipeline);
+ gst_object_unref (renderer->appsrc);
+ gst_object_unref (renderer->volume);
+ if (renderer) {
+ free(renderer);
+ }
+}
diff --git a/renderers/video_renderer.h b/renderers/video_renderer.h
new file mode 100644
index 0000000..edef133
--- /dev/null
+++ b/renderers/video_renderer.h
@@ -0,0 +1,66 @@
+/**
+ * RPiPlay - An open-source AirPlay mirroring server for Raspberry Pi
+ * Copyright (C) 2019 Florian Draschbacher
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * H264 renderer using OpenMAX for hardware accelerated decoding
+ * on the Raspberry Pi.
+ * Based on the hello_video sample from the Raspberry Pi project.
+*/
+
+#ifndef VIDEO_RENDERER_H
+#define VIDEO_RENDERER_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include
+#include
+#include "../lib/logger.h"
+#include "../lib/raop_ntp.h"
+
+typedef enum background_mode_e {
+ BACKGROUND_MODE_ON, // Always show background
+ BACKGROUND_MODE_AUTO, // Only show background while there's an active connection
+ BACKGROUND_MODE_OFF // Never show background
+} background_mode_t;
+
+typedef struct video_renderer_s video_renderer_t;
+
+video_renderer_t *video_renderer_init(logger_t *logger, background_mode_t background_mode, bool low_latency);
+void video_renderer_start(video_renderer_t *renderer);
+void video_renderer_render_buffer(video_renderer_t *renderer, raop_ntp_t *ntp, unsigned char* data, int data_len, uint64_t pts, int type);
+void video_renderer_flush(video_renderer_t *renderer);
+void video_renderer_destroy(video_renderer_t *renderer);
+
+/**
+ * Update background according to background mode and connection activity
+ * @param renderer
+ * @param type visit type.
+ * 0: ignore connections
+ * 1: a new connection come
+ * -1: a connection lost
+ */
+void video_renderer_update_background(video_renderer_t *renderer, int type);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //VIDEO_RENDERER_H
diff --git a/renderers/video_renderer_gstreamer.c b/renderers/video_renderer_gstreamer.c
new file mode 100644
index 0000000..967efa0
--- /dev/null
+++ b/renderers/video_renderer_gstreamer.c
@@ -0,0 +1,88 @@
+/**
+ * RPiPlay - An open-source AirPlay mirroring server for Raspberry Pi
+ * Copyright (C) 2019 Florian Draschbacher
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "video_renderer.h"
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+struct video_renderer_s {
+ logger_t *logger;
+ GstElement *appsrc, *pipeline, *sink;
+};
+
+video_renderer_t *video_renderer_init(logger_t *logger, background_mode_t background_mode, bool low_latency) {
+ video_renderer_t *renderer;
+ GError *error = NULL;
+
+ renderer = calloc(1, sizeof(video_renderer_t));
+ assert(renderer);
+
+ gst_init(NULL, NULL);
+
+ renderer->logger = logger;
+
+ renderer->pipeline = gst_parse_launch("appsrc name=video_source is-live=true ! queue ! decodebin ! videoconvert ! autovideosink name=video_sink display-name=UxPlay sync=false", &error);
+ g_assert (renderer->pipeline);
+
+
+ renderer->appsrc = gst_bin_get_by_name (GST_BIN (renderer->pipeline), "video_source");
+ renderer->sink = gst_bin_get_by_name (GST_BIN (renderer->pipeline), "video_sink");
+
+ return renderer;
+}
+
+void video_renderer_start(video_renderer_t *renderer) {
+ //g_signal_connect( renderer->pipeline, "deep-notify", G_CALLBACK(gst_object_default_deep_notify ), NULL );
+ gst_element_set_state (renderer->pipeline, GST_STATE_PLAYING);
+}
+
+void video_renderer_render_buffer(video_renderer_t *renderer, raop_ntp_t *ntp, unsigned char* data, int data_len, uint64_t pts, int type) {
+ GstBuffer *buffer;
+
+ assert(data_len != 0);
+
+ buffer = gst_buffer_new_and_alloc(data_len);
+ assert(buffer != NULL);
+
+ gst_buffer_fill(buffer, 0, data, data_len);
+ gst_app_src_push_buffer (GST_APP_SRC(renderer->appsrc), buffer);
+}
+
+void video_renderer_flush(video_renderer_t *renderer) {
+
+}
+
+void video_renderer_destroy(video_renderer_t *renderer) {
+ gst_app_src_end_of_stream (GST_APP_SRC(renderer->appsrc));
+ gst_element_set_state (renderer->pipeline, GST_STATE_NULL);
+ gst_object_unref (renderer->pipeline);
+ if (renderer) {
+ free(renderer);
+ }
+}
+
+void video_renderer_update_background(video_renderer_t *renderer, int type) {
+
+}
diff --git a/uxplay.cpp b/uxplay.cpp
new file mode 100755
index 0000000..95d3b05
--- /dev/null
+++ b/uxplay.cpp
@@ -0,0 +1,295 @@
+/**
+ * RPiPlay - An open-source AirPlay mirroring server for Raspberry Pi
+ * Copyright (C) 2019 Florian Draschbacher
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#include "log.h"
+#include "lib/raop.h"
+#include "lib/stream.h"
+#include "lib/logger.h"
+#include "lib/dnssd.h"
+#include "renderers/video_renderer.h"
+#include "renderers/audio_renderer.h"
+
+#define VERSION "1.2"
+
+#define DEFAULT_NAME "UxPlay"
+#define DEFAULT_BACKGROUND_MODE BACKGROUND_MODE_ON
+#define DEFAULT_AUDIO_DEVICE AUDIO_DEVICE_HDMI
+#define DEFAULT_LOW_LATENCY false
+#define DEFAULT_DEBUG_LOG false
+#define DEFAULT_HW_ADDRESS { (char) 0x48, (char) 0x5d, (char) 0x60, (char) 0x7c, (char) 0xee, (char) 0x22 }
+
+int start_server(std::vector hw_addr, std::string name, background_mode_t background_mode,
+ audio_device_t audio_device, bool low_latency, bool debug_log);
+
+int stop_server();
+
+static bool running = false;
+static dnssd_t *dnssd = NULL;
+static raop_t *raop = NULL;
+static video_renderer_t *video_renderer = NULL;
+static audio_renderer_t *audio_renderer = NULL;
+
+static void signal_handler(int sig) {
+ switch (sig) {
+ case SIGINT:
+ case SIGTERM:
+ running = 0;
+ break;
+ }
+}
+
+static void init_signals(void) {
+ struct sigaction sigact;
+
+ sigact.sa_handler = signal_handler;
+ sigemptyset(&sigact.sa_mask);
+ sigact.sa_flags = 0;
+ sigaction(SIGINT, &sigact, NULL);
+ sigaction(SIGTERM, &sigact, NULL);
+}
+
+static int parse_hw_addr(std::string str, std::vector &hw_addr) {
+ for (int i = 0; i < str.length(); i += 3) {
+ hw_addr.push_back((char) stol(str.substr(i), NULL, 16));
+ }
+ return 0;
+}
+
+std::string find_mac() {
+ std::ifstream iface_stream("/sys/class/net/eth0/address");
+ if (!iface_stream) {
+ iface_stream.open("/sys/class/net/wlan0/address");
+ }
+ if (!iface_stream) return "";
+
+ std::string mac_address;
+ iface_stream >> mac_address;
+ iface_stream.close();
+ return mac_address;
+}
+
+void print_info(char *name) {
+ printf("RPiPlay %s: An open-source AirPlay mirroring server for Raspberry Pi\n", VERSION);
+ printf("Usage: %s [-b (on|auto|off)] [-n name] [-a (hdmi|analog|off)]\n", name);
+ printf("Options:\n");
+ printf("-n name Specify the network name of the AirPlay server\n");
+ printf("-b (on|auto|off) Show black background always, only during active connection, or never\n");
+ printf("-a (hdmi|analog|off) Set audio output device\n");
+ printf("-l Enable low-latency mode (disables render clock)\n");
+ printf("-d Enable debug logging\n");
+ printf("-v/-h Displays this help and version information\n");
+}
+
+int main(int argc, char *argv[]) {
+ init_signals();
+
+ background_mode_t background = DEFAULT_BACKGROUND_MODE;
+ std::string server_name = DEFAULT_NAME;
+ std::vector server_hw_addr = DEFAULT_HW_ADDRESS;
+ audio_device_t audio_device = DEFAULT_AUDIO_DEVICE;
+ bool low_latency = DEFAULT_LOW_LATENCY;
+ bool debug_log = DEFAULT_DEBUG_LOG;
+
+ // Parse arguments
+ for (int i = 1; i < argc; i++) {
+ std::string arg(argv[i]);
+ if (arg == "-n") {
+ if (i == argc - 1) continue;
+ server_name = std::string(argv[++i]);
+ } else if (arg == "-b") {
+ // For backwards-compatibility, make just -b disable the background
+ if (i == argc - 1 || argv[i + 1][0] == '-') {
+ background = BACKGROUND_MODE_OFF;
+ continue;
+ }
+
+ std::string background_mode(argv[++i]);
+ background = background_mode == "off" ? BACKGROUND_MODE_OFF :
+ background_mode == "auto" ? BACKGROUND_MODE_AUTO :
+ BACKGROUND_MODE_ON;
+ } else if (arg == "-a") {
+ if (i == argc - 1) continue;
+ std::string audio_device_name(argv[++i]);
+ audio_device = audio_device_name == "hdmi" ? AUDIO_DEVICE_HDMI :
+ audio_device_name == "analog" ? AUDIO_DEVICE_ANALOG :
+ AUDIO_DEVICE_NONE;
+ } else if (arg == "-l") {
+ low_latency = !low_latency;
+ } else if (arg == "-d") {
+ debug_log = !debug_log;
+ } else if (arg == "-h" || arg == "-v") {
+ print_info(argv[0]);
+ exit(0);
+ }
+ }
+
+ std::string mac_address = find_mac();
+ if (!mac_address.empty()) {
+ server_hw_addr.clear();
+ parse_hw_addr(mac_address, server_hw_addr);
+ }
+
+ if (start_server(server_hw_addr, server_name, background, audio_device, low_latency, debug_log) != 0) {
+ return 1;
+ }
+
+ running = true;
+ while (running) {
+ sleep(1);
+ }
+
+ LOGI("Stopping...");
+ stop_server();
+}
+
+// Server callbacks
+extern "C" void conn_init(void *cls) {
+ video_renderer_update_background(video_renderer, 1);
+}
+
+extern "C" void conn_destroy(void *cls) {
+ video_renderer_update_background(video_renderer, -1);
+}
+
+extern "C" void audio_process(void *cls, raop_ntp_t *ntp, aac_decode_struct *data) {
+ if (audio_renderer != NULL) {
+ audio_renderer_render_buffer(audio_renderer, ntp, data->data, data->data_len, data->pts);
+ }
+}
+
+extern "C" void video_process(void *cls, raop_ntp_t *ntp, h264_decode_struct *data) {
+ video_renderer_render_buffer(video_renderer, ntp, data->data, data->data_len, data->pts, data->frame_type);
+}
+
+extern "C" void audio_flush(void *cls) {
+ audio_renderer_flush(audio_renderer);
+}
+
+extern "C" void video_flush(void *cls) {
+ video_renderer_flush(video_renderer);
+}
+
+extern "C" void audio_set_volume(void *cls, float volume) {
+ if (audio_renderer != NULL) {
+ audio_renderer_set_volume(audio_renderer, volume);
+ }
+}
+
+extern "C" void log_callback(void *cls, int level, const char *msg) {
+ switch (level) {
+ case LOGGER_DEBUG: {
+ LOGD("%s", msg);
+ break;
+ }
+ case LOGGER_WARNING: {
+ LOGW("%s", msg);
+ break;
+ }
+ case LOGGER_INFO: {
+ LOGI("%s", msg);
+ break;
+ }
+ case LOGGER_ERR: {
+ LOGE("%s", msg);
+ break;
+ }
+ default:
+ break;
+ }
+
+}
+
+int start_server(std::vector hw_addr, std::string name, background_mode_t background_mode,
+ audio_device_t audio_device, bool low_latency, bool debug_log) {
+ raop_callbacks_t raop_cbs;
+ memset(&raop_cbs, 0, sizeof(raop_cbs));
+ raop_cbs.conn_init = conn_init;
+ raop_cbs.conn_destroy = conn_destroy;
+ raop_cbs.audio_process = audio_process;
+ raop_cbs.video_process = video_process;
+ raop_cbs.audio_flush = audio_flush;
+ raop_cbs.video_flush = video_flush;
+ raop_cbs.audio_set_volume = audio_set_volume;
+
+ raop = raop_init(10, &raop_cbs);
+ if (raop == NULL) {
+ LOGE("Error initializing raop!");
+ return -1;
+ }
+
+ raop_set_log_callback(raop, log_callback, NULL);
+ raop_set_log_level(raop, debug_log ? RAOP_LOG_DEBUG : LOGGER_INFO);
+
+ logger_t *render_logger = logger_init();
+ logger_set_callback(render_logger, log_callback, NULL);
+ logger_set_level(render_logger, debug_log ? LOGGER_DEBUG : LOGGER_INFO);
+
+ if (low_latency) logger_log(render_logger, LOGGER_INFO, "Using low-latency mode");
+
+ if ((video_renderer = video_renderer_init(render_logger, background_mode, low_latency)) == NULL) {
+ LOGE("Could not init video renderer");
+ return -1;
+ }
+
+ if (audio_device == AUDIO_DEVICE_NONE) {
+ LOGI("Audio disabled");
+ } else if ((audio_renderer = audio_renderer_init(render_logger, video_renderer, audio_device, low_latency)) ==
+ NULL) {
+ LOGE("Could not init audio renderer");
+ return -1;
+ }
+
+ if (video_renderer) video_renderer_start(video_renderer);
+ if (audio_renderer) audio_renderer_start(audio_renderer);
+
+ unsigned short port = 0;
+ raop_start(raop, &port);
+ raop_set_port(raop, port);
+
+ int error;
+ dnssd = dnssd_init(name.c_str(), strlen(name.c_str()), hw_addr.data(), hw_addr.size(), &error);
+ if (error) {
+ LOGE("Could not initialize dnssd library!");
+ return -2;
+ }
+
+ raop_set_dnssd(raop, dnssd);
+
+ dnssd_register_raop(dnssd, port);
+ dnssd_register_airplay(dnssd, port + 1);
+
+ return 0;
+}
+
+int stop_server() {
+ raop_destroy(raop);
+ dnssd_unregister_raop(dnssd);
+ dnssd_unregister_airplay(dnssd);
+ audio_renderer_destroy(audio_renderer);
+ video_renderer_destroy(video_renderer);
+ return 0;
+}