1*f0865ec9SKyle Evans /* 2*f0865ec9SKyle Evans * Copyright (C) 2017 - This file is part of libecc project 3*f0865ec9SKyle Evans * 4*f0865ec9SKyle Evans * Authors: 5*f0865ec9SKyle Evans * Ryad BENADJILA <ryadbenadjila@gmail.com> 6*f0865ec9SKyle Evans * Arnaud EBALARD <arnaud.ebalard@ssi.gouv.fr> 7*f0865ec9SKyle Evans * Jean-Pierre FLORI <jean-pierre.flori@ssi.gouv.fr> 8*f0865ec9SKyle Evans * 9*f0865ec9SKyle Evans * Contributors: 10*f0865ec9SKyle Evans * Nicolas VIVET <nicolas.vivet@ssi.gouv.fr> 11*f0865ec9SKyle Evans * Karim KHALFALLAH <karim.khalfallah@ssi.gouv.fr> 12*f0865ec9SKyle Evans * 13*f0865ec9SKyle Evans * This software is licensed under a dual BSD and GPL v2 license. 14*f0865ec9SKyle Evans * See LICENSE file at the root folder of the project. 15*f0865ec9SKyle Evans */ 16*f0865ec9SKyle Evans #ifndef __NN_MUL_H__ 17*f0865ec9SKyle Evans #define __NN_MUL_H__ 18*f0865ec9SKyle Evans #include <libecc/nn/nn.h> 19*f0865ec9SKyle Evans #include <libecc/nn/nn_mul_public.h> 20*f0865ec9SKyle Evans 21*f0865ec9SKyle Evans ATTRIBUTE_WARN_UNUSED_RET int nn_mul_low(nn_t out, nn_src_t in1, nn_src_t in2, u8 wlimit); 22*f0865ec9SKyle Evans ATTRIBUTE_WARN_UNUSED_RET int nn_sqr_low(nn_t out, nn_src_t in, u8 wlimit); 23*f0865ec9SKyle Evans /* (declared in public header) 24*f0865ec9SKyle Evans ATTRIBUTE_WARN_UNUSED_RET int nn_mul(nn_t out, nn_src_t in1, nn_src_t in2); 25*f0865ec9SKyle Evans ATTRIBUTE_WARN_UNUSED_RET int nn_sqr(nn_t out, nn_src_t in); 26*f0865ec9SKyle Evans ATTRIBUTE_WARN_UNUSED_RET int nn_mul_word(nn_t out, nn_src_t in, word_t w); 27*f0865ec9SKyle Evans */ 28*f0865ec9SKyle Evans 29*f0865ec9SKyle Evans #endif /* __NN_MUL_H__ */ 30