Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / openssl / openssl / crypto / poly1305 / poly1305.c
index d223479..bd7946c 100644 (file)
@@ -219,6 +219,7 @@ void CRYPTO_poly1305_init(poly1305_state *statep, const unsigned char key[32])
        struct poly1305_state_st *state = (struct poly1305_state_st*) statep;
        uint32_t t0,t1,t2,t3;
 
+#if 0 /* Disabled because of crbug.com/341598 */
 #if __arm__
        if (CRYPTO_is_NEON_capable())
                {
@@ -226,6 +227,7 @@ void CRYPTO_poly1305_init(poly1305_state *statep, const unsigned char key[32])
                return;
                }
 #endif
+#endif
 
        t0 = U8TO32_LE(key+0);
        t1 = U8TO32_LE(key+4);
@@ -261,6 +263,7 @@ void CRYPTO_poly1305_update(poly1305_state *statep, const unsigned char *in,
        unsigned int i;
        struct poly1305_state_st *state = (struct poly1305_state_st*) statep;
 
+#if 0 /* Disabled because of crbug.com/341598 */
 #if __arm__
        if (CRYPTO_is_NEON_capable())
                {
@@ -268,6 +271,7 @@ void CRYPTO_poly1305_update(poly1305_state *statep, const unsigned char *in,
                return;
                }
 #endif
+#endif
 
        if (state->buf_used)
                {
@@ -310,6 +314,7 @@ void CRYPTO_poly1305_finish(poly1305_state *statep, unsigned char mac[16])
        uint32_t g0,g1,g2,g3,g4;
        uint32_t b, nb;
 
+#if 0 /* Disabled because of crbug.com/341598 */
 #if __arm__
        if (CRYPTO_is_NEON_capable())
                {
@@ -317,6 +322,7 @@ void CRYPTO_poly1305_finish(poly1305_state *statep, unsigned char mac[16])
                return;
                }
 #endif
+#endif
 
        if (state->buf_used)
                poly1305_update(state, state->buf, state->buf_used);