⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xec_mul1.h

📁 IBE是一种非对称密码技术
💻 H
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -