| 6 | // |
| 7 | // https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 |
| 15 | #ifndef OPENSSL_HEADER_CRYPTO_POLY1305_INTERNAL_H |
| 16 | #define OPENSSL_HEADER_CRYPTO_POLY1305_INTERNAL_H |
| 17 |
| 18 | #include <openssl/base.h> |
| 19 | #include <openssl/poly1305.h> |
| 20 |
| 21 | #if defined(__cplusplus) |
| 22 | extern "C" { |
| 23 | #endif |
| 24 |
| 25 | #if defined(OPENSSL_ARM) && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_APPLE) |
| 26 | #define OPENSSL_POLY1305_NEON |
| 27 |
| 28 | void CRYPTO_poly1305_init_neon(poly1305_state *state, const uint8_t key[32]); |
| 29 |
| 30 | void CRYPTO_poly1305_update_neon(poly1305_state *state, const uint8_t *in, |
| 31 | size_t in_len); |
| 32 |
| 33 | void CRYPTO_poly1305_finish_neon(poly1305_state *state, uint8_t mac[16]); |
| 34 | #endif |
| 35 |
| 36 |
| 37 | #if defined(__cplusplus) |
| 38 | } // extern C |
| 39 | #endif |
| 40 |
| 41 | #endif // OPENSSL_HEADER_CRYPTO_POLY1305_INTERNAL_H |
| 42 |