12-06-2007
Working on Linux. But it shouldn't matter. There is not a standard C routine to know when a interruption succeeded? A way to handle signals/events generated from interruptions, for example.
I want to know this to implement a random bit generator. You have to check different sources like the time delaying between keystrokes or maybe the change of the temperature.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I know that Unix is different from windows in that it needs more manual configuring but how do I get Solaris 8 (Intel version) to recognize my floppy drive and cd-rom??
I mean does it automatically detect the drives at startup and I have to mount them or do I have to create the drives somehow and... (1 Reply)
Discussion started by: eloquent99
1 Replies
2. Programming
Could anybody tell me how I can detect a particular key combination and perform a particular task on that event. e.g. if I press Ctrl + L on the shell then it clears the screen. Please tell me how it can be performed on my shell.
And how the Arrow Keys can be detected. I tried but pressing a key... (11 Replies)
Discussion started by: mobile01
11 Replies
3. UNIX for Dummies Questions & Answers
Hello all,
first of all, I apologise if I may ask stupid or obvious questions, but I'm new to UNIX and I think I need a little bit of help before I start gearing up :)
Anyway, I have installed a Solaris 8 on a Sun machine, and it has 2 physical disks in it. However, it seems that it is only... (7 Replies)
Discussion started by: dragunu
7 Replies
4. Shell Programming and Scripting
Hi,
I need help to detect Vmware on Linux and SunOS.
I need to know if Vmware is installed on the box. If yes then if it is a physical or a virtual machine.
Thanks in advance,
amittal (2 Replies)
Discussion started by: amittal
2 Replies
5. Shell Programming and Scripting
Hi Gurus
I have a requirement like this. i use solaris OS..
if there are 2 instances of the same ksh file running in the directory, i need to kill the ksh file that started to run latest.
suppose ragha.ksh starts running thru cron in abc/xyz directory
now ragha.ksh started running by any... (3 Replies)
Discussion started by: ragha81
3 Replies
6. SCO
hi all
i have installed SCO 5.0.5 on a "Netfinity 5000" IBM server. But the OS is not detecting the lan card. how can i detect it.... help and thanks in advance .
bidhayak (3 Replies)
Discussion started by: bidhayakm
3 Replies
7. Solaris
I am looking for some tips or suggestions in how to do the following.
1) From a Solaris server, I run the command iostat -En and receive output that is similiar to the following which shows your disks along with the cdrom/dvdrom:
c0t2d0 Soft Errors: 0 Hard Errors: 0 Transport... (1 Reply)
Discussion started by: sunsysadm2003
1 Replies
8. UNIX for Dummies Questions & Answers
I have a series of filenames of the format junk_x_###.txt where x and ### are numbers. I need to detect when at least 30 consecutive files (e.g. junk_1_001.txt, junk_1_002.txt.....) are in the directory. There are sets of files with similar names that need to be grouped together and counted... (0 Replies)
Discussion started by: stanleymacc
0 Replies
9. UNIX for Advanced & Expert Users
I did search on the subject on services in linux and they do explain how to find what are the services that loaded when the linux boot.
however I have not find how to detect what services run right now.
I would like to now that and how to kill services.
Thanks. (3 Replies)
Discussion started by: programAngel
3 Replies
10. Shell Programming and Scripting
Hi All ,
I need a script to find errors in a particular and in a particular path
Actually in my logs i`ve so many kinds of errors(i can even say as 100 types also).if i run the script i need to know the error (some errors can aviod )
so finally the script o/p should be a numeric... (3 Replies)
Discussion started by: radha254
3 Replies
LEARN ABOUT REDHAT
dh_generate_parameters
DH_generate_parameters(3) OpenSSL DH_generate_parameters(3)
NAME
DH_generate_parameters, DH_check - generate and check Diffie-Hellman parameters
SYNOPSIS
#include <openssl/dh.h>
DH *DH_generate_parameters(int prime_len, int generator,
void (*callback)(int, int, void *), void *cb_arg);
int DH_check(DH *dh, int *codes);
DESCRIPTION
DH_generate_parameters() generates Diffie-Hellman parameters that can be shared among a group of users, and returns them in a newly allo-
cated DH structure. The pseudo-random number generator must be seeded prior to calling DH_generate_parameters().
prime_len is the length in bits of the safe prime to be generated. generator is a small number > 1, typically 2 or 5.
A callback function may be used to provide feedback about the progress of the key generation. If callback is not NULL, it will be called as
described in BN_generate_prime(3) while a random prime number is generated, and when a prime has been found, callback(3, 0, cb_arg) is
called.
DH_check() validates Diffie-Hellman parameters. It checks that p is a safe prime, and that g is a suitable generator. In the case of an
error, the bit flags DH_CHECK_P_NOT_SAFE_PRIME or DH_NOT_SUITABLE_GENERATOR are set in *codes. DH_UNABLE_TO_CHECK_GENERATOR is set if the
generator cannot be checked, i.e. it does not equal 2 or 5.
RETURN VALUES
DH_generate_parameters() returns a pointer to the DH structure, or NULL if the parameter generation fails. The error codes can be obtained
by ERR_get_error(3).
DH_check() returns 1 if the check could be performed, 0 otherwise.
NOTES
DH_generate_parameters() may run for several hours before finding a suitable prime.
The parameters generated by DH_generate_parameters() are not to be used in signature schemes.
BUGS
If generator is not 2 or 5, dh->g=generator is not a usable generator.
SEE ALSO
dh(3), ERR_get_error(3), rand(3), DH_free(3)
HISTORY
DH_check() is available in all versions of SSLeay and OpenSSL. The cb_arg argument to DH_generate_parameters() was added in SSLeay 0.9.0.
In versions before OpenSSL 0.9.5, DH_CHECK_P_NOT_STRONG_PRIME is used instead of DH_CHECK_P_NOT_SAFE_PRIME.
0.9.7a 2002-09-25 DH_generate_parameters(3)