Blame include/crypto/siphash.h

Packit c4476c
/*
Packit c4476c
 * Copyright 2017-2018 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 SIPHASH_BLOCK_SIZE        8
Packit c4476c
#define SIPHASH_KEY_SIZE         16
Packit c4476c
#define SIPHASH_MIN_DIGEST_SIZE   8
Packit c4476c
#define SIPHASH_MAX_DIGEST_SIZE  16
Packit c4476c
Packit c4476c
typedef struct siphash_st SIPHASH;
Packit c4476c
Packit c4476c
size_t SipHash_ctx_size(void);
Packit c4476c
size_t SipHash_hash_size(SIPHASH *ctx);
Packit c4476c
int SipHash_set_hash_size(SIPHASH *ctx, size_t hash_size);
Packit c4476c
int SipHash_Init(SIPHASH *ctx, const unsigned char *k,
Packit c4476c
                 int crounds, int drounds);
Packit c4476c
void SipHash_Update(SIPHASH *ctx, const unsigned char *in, size_t inlen);
Packit c4476c
int SipHash_Final(SIPHASH *ctx, unsigned char *out, size_t outlen);