Blame include/crypto/poly1305.h

Packit c4476c
/*
Packit c4476c
 * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
Packit c4476c
 *
Packit c4476c
 * Licensed under the OpenSSL license (the "License").  You may not use
Packit c4476c
 * this file except in compliance with the License.  You can obtain a copy
Packit c4476c
 * in the file LICENSE in the source distribution or at
Packit c4476c
 * https://www.openssl.org/source/license.html
Packit c4476c
 */
Packit c4476c
Packit c4476c
#include <stddef.h>
Packit c4476c
Packit c4476c
#define POLY1305_BLOCK_SIZE  16
Packit c4476c
#define POLY1305_DIGEST_SIZE 16
Packit c4476c
#define POLY1305_KEY_SIZE    32
Packit c4476c
Packit c4476c
typedef struct poly1305_context POLY1305;
Packit c4476c
Packit c4476c
size_t Poly1305_ctx_size(void);
Packit c4476c
void Poly1305_Init(POLY1305 *ctx, const unsigned char key[32]);
Packit c4476c
void Poly1305_Update(POLY1305 *ctx, const unsigned char *inp, size_t len);
Packit c4476c
void Poly1305_Final(POLY1305 *ctx, unsigned char mac[16]);