45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * CDDL HEADER START
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * The contents of this file are subject to the terms of the
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * Common Development and Distribution License (the "License").
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * You may not use this file except in compliance with the License.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * or http://opensource.org/licenses/CDDL-1.0.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * See the License for the specific language governing permissions
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * and limitations under the License.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * When distributing Covered Code, include this CDDL HEADER in each
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * If applicable, add the following below this CDDL HEADER, with the
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * fields enclosed by brackets "[]" replaced with your own identifying
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * information: Portions Copyright [yyyy] [name of copyright owner]
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * CDDL HEADER END
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * Copyright (C) 2009, 2010, Jorn Amundsen <jorn.amundsen@ntnu.no>
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * Tweaked Edon-R implementation for SUPERCOP, based on NIST API.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * $Id: edonr.h 517 2013-02-17 20:34:39Z joern $
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * Portions copyright (c) 2013, Saso Kiselkov, All rights reserved
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * EdonR allows to call EdonRUpdate() consecutively only if the total length
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * of stored unprocessed data and the new supplied data is less than or equal
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * to the BLOCK_SIZE on which the compression functions operates.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens * Otherwise an assertion failure is invoked.
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens/* Specific algorithm definitions */
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrenstypedef struct {
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrenstypedef struct {
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrenstypedef struct {
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens /* + algorithm specific parameters */
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrensvoid EdonRInit(EdonRState *state, size_t hashbitlen);
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrensvoid EdonRUpdate(EdonRState *state, const uint8_t *data, size_t databitlen);
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrensvoid EdonRFinal(EdonRState *state, uint8_t *hashval);
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrensvoid EdonRHash(size_t hashbitlen, const uint8_t *data, size_t databitlen,
45818ee124adeaaf947698996b4f4c722afc6d1fMatthew Ahrens#endif /* _SYS_EDONR_H_ */