ecp_secp384r1.h (1333B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #ifndef __ecp_secp384r1_h_ 6 #define __ecp_secp384r1_h_ 7 8 /*- 9 * Wrapper: simultaneous scalar mutiplication. 10 * outx, outy := a * G + b * P 11 * where P = (inx, iny). 12 * Everything is LE byte ordering. 13 */ 14 void point_mul_two_secp384r1(unsigned char outx[48], unsigned char outy[48], 15 const unsigned char a[48], 16 const unsigned char b[48], 17 const unsigned char inx[48], 18 const unsigned char iny[48]); 19 20 /*- 21 * Wrapper: fixed scalar mutiplication. 22 * outx, outy := scalar * G 23 * Everything is LE byte ordering. 24 */ 25 void 26 point_mul_g_secp384r1(unsigned char outx[48], unsigned char outy[48], 27 const unsigned char scalar[48]); 28 29 /*- 30 * Wrapper: variable point scalar mutiplication. 31 * outx, outy := scalar * P 32 * where P = (inx, iny). 33 * Everything is LE byte ordering. 34 */ 35 void 36 point_mul_secp384r1(unsigned char outx[48], unsigned char outy[48], 37 const unsigned char scalar[48], 38 const unsigned char inx[48], 39 const unsigned char iny[48]); 40 41 #endif