03-03-2005
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all, I'm glad there's a section called UNIX for dummies on this forum cause when it comes to UNIX, I am certainly a dummie. I honestly don't have a clue about 98% of the UNIX commands out there so forgive me if this is a really stupid question.
I'm trying to set up a MySQL server on my Mac... (7 Replies)
Discussion started by: kguenther
7 Replies
2. Programming
is there any difference between "char*" and "char *" (1 Reply)
Discussion started by: amol munde
1 Replies
3. Programming
Hello, Ive got to amke a script to calculate how many emails are in the servers mailbox, how many times each IP address appears in the mailbox and to search for keywords, tehn produce the results in HTML report. The thing is I dont know where to start and what the best language to use would be.
... (4 Replies)
Discussion started by: clueless
4 Replies
4. Shell Programming and Scripting
#! /usr/local/bin/perl -w
$ip = "$ARGV";
$rw = "$ARGV";
$snmpg = "/usr/local/bin/snmpbulkget -v2c -Cn1 -Cn2 -Os -c $rw";
$snmpw = "/usr/local/bin/snmpwalk -Os -c $rw";
$syst=`$snmpg $ip system sysName sysObjectID`;
sysDescr.0 = STRING: Cisco Internetwork Operating System Software... (1 Reply)
Discussion started by: popeye
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Just got handed this script
set def = HLA_DR.pockets
set data = DRB1_1501.dat
foreach a ( 'cat $data | args 3 |sort -u' )
cat $def | xC | grep -v $a > $$.def
cat $data | grep $a | args 1,2 > $a.dat
set pseudo = `cat MHCDR_pseudo.dat | grep HLA | grep $a | args 2`... (8 Replies)
Discussion started by: lost
8 Replies
6. Shell Programming and Scripting
Hey guys,
I have this file generated by me... i want to create some HTML output from it.
The problem is that i am really confused about how do I go about reading the file.
The file is in the following format:
TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
Discussion started by: umar.shaikh
8 Replies
7. Programming
Hi guys,
Assembly language is a low level language designed in 1950's, both system and application programs were written in assembly at that time. There is no question of assembly being very effecient compared to the other high level languages. But it is very cumbersome to write programs in... (9 Replies)
Discussion started by: gabam
9 Replies
8. Shell Programming and Scripting
Hello,
I want to know which shell scripting language (like AWk, Perl or any other) is the best for parsing and editing
1) space or Comma Separated Datsets
2) XML type Datasets. (1 Reply)
Discussion started by: ajayram
1 Replies
LEARN ABOUT OSX
rsa_generate_key
RSA_generate_key(3) OpenSSL RSA_generate_key(3)
NAME
RSA_generate_key - generate RSA key pair
SYNOPSIS
#include <openssl/rsa.h>
RSA *RSA_generate_key(int num, unsigned long e,
void (*callback)(int,int,void *), void *cb_arg);
DESCRIPTION
RSA_generate_key() generates a key pair and returns it in a newly allocated RSA structure. The pseudo-random number generator must be
seeded prior to calling RSA_generate_key().
The modulus size will be num bits, and the public exponent will be e. Key sizes with num < 1024 should be considered insecure. The
exponent is an odd number, typically 3, 17 or 65537.
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
follows:
o While a random prime number is generated, it is called as described in BN_generate_prime(3).
o When the n-th randomly generated prime is rejected as not suitable for the key, callback(2, n, cb_arg) is called.
o When a random p has been found with p-1 relatively prime to e, it is called as callback(3, 0, cb_arg).
The process is then repeated for prime q with callback(3, 1, cb_arg).
RETURN VALUE
If key generation fails, RSA_generate_key() returns NULL; the error codes can be obtained by ERR_get_error(3).
BUGS
callback(2, x, cb_arg) is used with two different meanings.
RSA_generate_key() goes into an infinite loop for illegal input values.
SEE ALSO
ERR_get_error(3), rand(3), rsa(3), RSA_free(3)
HISTORY
The cb_arg argument was added in SSLeay 0.9.0.
50 2013-03-05 RSA_generate_key(3)