xec_mul1.h

来自「IBE是一种非对称密码技术」· C头文件 代码 · 共 58 行

H
58
字号
/* Copyright 2003-2006, Voltage Security, all rights reserved.
 */

#include "ictk.h"

#ifndef XEC_MUL1_H
#define XEC_MUL1_H

#ifdef __cplusplus
extern "C" {
#endif

/* allocates a multiplication cache big enough for given curve
 */
int mul1New (
   mul1_t **newMul1,
   ec1_t *ec,
   bf_context_t *bf
   );

/* deallocates multiplication cache
 */
void mul1Del (
   mul1_t *mul
   );

/* prepares cache for multiplying point a on E/F_p, a != 0
 */
int ec1PointMulPreprocess (
   mul1_t *mul,
   pt1_t *a,
   ec1_t *ec
   );

/* computes r = [n]a != 0 with MulPreprocessed a and 0 < r < p
 */
int ec1PointMulPostprocess (
   pt1_t *r,
   z_t *n,
   mul1_t *mul,
   ec1_t *ec
   );

/* computes r = [n]a, where a \in E/F_p, using signed sliding window
 */
int ec1PointMulFp (
   pt1_t *r,
   z_t *n,
   pt1_t *a,
   ec1_t *ec
   );

#ifdef __cplusplus
}
#endif

#endif // XEC_MUL1_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?