IT IS A TEST PROGRAM!!!!!!!! The only comment worth while is about errno! Thanks for that.
Type: Posts; User: MrUmunhum
IT IS A TEST PROGRAM!!!!!!!! The only comment worth while is about errno! Thanks for that.
The problem is if the sh hangs waiting for more input. I need a way of sending EOF to the shell. right now, I am looking at termios and catching CTRL-D signal. Nether one has provided a solution. ...
Hi group,
I have a simple test program that opens a pipe to a sh command. I want to be able to send a CTRL-D to the child. I have tried reading from the parent's keyboard and using a write but...
Never mind, I found <linux.inut.h>
Hi group,
I'm being lazy again. I'm looking for a .h file that defines all possibility for keyboard input. Also mouse inputs.
Thanks for your time.
Solved! My problem was on line 7 redefined the term "BIO". Changed that line and all other references to the structure named BIO to a structure named Key now it compiles.
Thanks for your time.
Hi group,
This is a follow on to my other post:https://cboard.cprogramming.com/c-programming/172534-rsa-key-generate-then-encrypt-decrypt-error.html
I am now tryin to create a public RSA to use to...
OK, I found this page Simple Public Key Encryption with RSA and OpenSSL and they cleared this up form me.
I got this code to work:
BIO *pri = BIO_new(BIO_s_mem());
BIO *pub =...
I am really confused now. What I want is to keep the public and private keys in memory. These:
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAwR7fjPVxB9CH3xGe4y0wI0NpLjXsB1UEUURbvzvJY0RnSIkQ...
OK, so this will wrtie the rsa to disk, now how do I write the rsa to an RSA structure? I tries this:
BIO *Public = BIO_new_mem_buf( Key, -1 );
BIO_reset( Public );
RC =...
That did it! Now outputs this:
Starting program: /src/RHID/src/rhid/my_rsa
Plain: 1234567890
Encrypted: 256
0000 0000 3AF4CCF2 7A09F0B8 6BB7BBB5 0096A9FB /* :...z...k....... */
0016 0010 ...
[
Found 1) fixed it.
How do I extract the public/private RSA
the lenght of the input should be the same as the output?
Hi group,
I am having trouble with a test RSA c program. The program is using SSL to
Generate an RSA
Encrypt a test string
Decrypt the output of step 2
Compare the source and the output...
Hi group,
I am fighting with sscanf again! I am attempting to split a string using the '%p' format. Have not been able to find the correct syntax with many searches. My test program:
#define...
Hi group,
I have written a C program that uses Pseudo TTYs calls, The program work with some
problems.
character are not read immediately read.
man causes a program exit
up arrow does not...
Hi group,
I have a simple C program that I am using to using to understand pseudo terminal programming. What I do is open a Pesudo TTY pair, then fork the program and the child calls Bash using...