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

📄 rand_bytes.pod

📁 一个用于点对点传输加密的工具包源码
💻 POD
字号:
=pod=head1 NAMERAND_bytes, RAND_pseudo_bytes - generate random data=head1 SYNOPSIS #include <openssl/rand.h> int RAND_bytes(unsigned char *buf, int num); int RAND_pseudo_bytes(unsigned char *buf, int num);=head1 DESCRIPTIONRAND_bytes() puts B<num> cryptographically strong pseudo-random bytesinto B<buf>. An error occurs if the PRNG has not been seeded withenough randomness to ensure an unpredictable byte sequence.RAND_pseudo_bytes() puts B<num> pseudo-random bytes into B<buf>.Pseudo-random byte sequences generated by RAND_pseudo_bytes() will beunique if they are of sufficient length, but are not necessarilyunpredictable. They can be used for non-cryptographic purposes and forcertain purposes in cryptographic protocols, but usually not for keygeneration etc.=head1 RETURN VALUESRAND_bytes() returns 1 on success, 0 otherwise. The error code can beobtained by L<ERR_get_error(3)|ERR_get_error(3)>. RAND_pseudo_bytes() returns 1 if thebytes generated are cryptographically strong, 0 otherwise. Bothfunctions return -1 if they are not supported by the current RANDmethod.=head1 SEE ALSOL<rand(3)|rand(3)>, L<err(3)|err(3)>, L<RAND_add(3)|RAND_add(3)>=head1 HISTORYRAND_bytes() is available in all versions of SSLeay and OpenSSL.  Ithas a return value since OpenSSL 0.9.5. RAND_pseudo_bytes() was addedin OpenSSL 0.9.5.=cut

⌨️ 快捷键说明

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