xcr_random.h
来自「IBE是一种非对称密码技术」· C头文件 代码 · 共 31 行
H
31 行
/* Copyright 2003-2006, Voltage Security, all rights reserved.
*/
#include "ictk.h"
#ifndef XCR_RANDOM_H
#define XCR_RANDOM_H
#ifdef __cplusplus
extern "C" {
#endif
/* Generate sz bytes. If modulus is NULL, just generate sz bytes.
* If modulus is not NULL, keep generating bytes until obtaining a
* value less than modulus (which is also sz bytes long).
*/
int xcrRandomBytes (
VoltLibCtx *libCtx,
VoltMpIntCtx *mpCtx,
VtRandomObject userRandom,
unsigned char *modulus,
unsigned char *buf,
unsigned int sz
);
#ifdef __cplusplus
}
#endif
#endif /* XCR_RANDOM_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?