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

📄 xcr_random.h

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