This software is free for commercial and non-commercial use subject to the following conditions: 1. Copyright remains vested in QUALCOMM Incorporated, and Copyright notices in the code are not to be removed. If this package is used in a product, QUALCOMM should be given attribution as the author of the relevant encryption algorithm. This can be in the form of a textual message at program startup or in documentation (online or textual) provided with the package. 2. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: a. Redistributions of source code must retain the copyright notice, this list of conditions and the disclaimer below. b. 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. c. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by QUALCOMM Incorporated. 3. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND AGAINST INFRINGEMENT ARE DISCLAIMED.IN NO EVENT SHALL THE AUTHOR 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. 4. The license and distribution terms for any publicly available version or derivative of this code cannot be changed, that is, this code cannot simply be copied and put under another distribution license including the GNU Public License. 5. These encryption algorithms are covered by patents in the United States of America and other countries. A free and irrevocable license is hereby granted for the use of such patents to the extent required to utilize the encryption algorithms for any purpose, subject to the condition that any commercial product utilising any of the encryption algorithms should show the words "Encryption by QUALCOMM" either on the product or in the associated documentation.