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

📄 type_grand.html

📁 一个非常有用的开源代码
💻 HTML
字号:
<html><head><title>Generated Documentation</title></head><body>	<image src="headerimage.png">	<br><br><table><tr><td><big><big><big style="font-family: arial;"><b>GRand</b></big></big></big><br><br></td><td> A pseudo random number generator for big numbers. It's supposed to be cryptographically strong, but I designed it myself so you shouldn't trust it.</td></tr></table><br><br><big><big><i>Statics (public)</i></big></big><br><div style="margin-left: 40px;">void <big><b>Decrypt</b></big>(unsigned char* pData, int nDataSize, const unsigned char* pPassphrase, int nPassphraseSize)<br>void <big><b>Encrypt</b></big>(unsigned char* pData, int nDataSize, const unsigned char* pPassphrase, int nPassphraseSize)<br>void <big><b>ShaDigestEntropy</b></big>(unsigned char* pEntropy, int nEntropyBytes, int nRatio, unsigned int* pResults)<br><div style="margin-left: 80px;"><font color=brown> pEntropy is a pointer to some entropy bytes. nEntropyBytes is the number of bytes of entropy. nRatio is the ratio of entropy bits to random bits.  For example, if nRatio is 2, then 40 bytes of entropy will produce 20 bytes of randomness pResults should be a buffer big enough to hold the results of digesting the entropy with the specified ratio.</font></div><br></div><br><big><big><i>Statics (non-public)</i></big></big><br><div style="margin-left: 40px;">void <big><b>Crypto</b></big>(unsigned char* pData, int nDataSize, const unsigned char* pPassphrase, int nPassphraseSize, bool bEncrypt)<br></div><br><big><big><i>Constructors (public)</i></big></big><br><div style="margin-left: 40px;"><big><b>GRand</b></big>(const unsigned char* pSeedData, int nSeedBytes)<br><div style="margin-left: 80px;"><font color=brown> The seed should already be fully digested into random data when you call this constructor.  The output random numbers will be the same size as the seed.</font></div><br></div><br><big><big><i>Destructors</i></big></big><br><div style="margin-left: 40px;"><big><b>~GRand</b></big>()<br></div><br><big><big><i>Public</i></big></big><br><div style="margin-left: 40px;">void <big><b>AddEntropy</b></big>(const unsigned char* pData, int nSize)<br>char* <big><b>GetRand</b></big>()<br>int <big><b>GetRandByteCount</b></big>()<br></div><br></body></html>

⌨️ 快捷键说明

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