10-15-2018
I have to second Neo - your code is nearly incomprehensible. Still I find that you read a cipher and place it into the "chave.txt" file regardless of it being empty or not, thus overwriting or even eliminating the file's contents. And, defining "chave_guardada" at the script's start may not help, either. You may want to untangle the logic flow of your script.
This User Gave Thanks to RudiC For This Post:
5 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
i've seen a few posts regarding this issue, and i've tried the resolutions,
but i keep running into the same problem.
i'm trying to compile OpenSSL with the use of rsaref-2.0 (i'm running
through this tutorial... (1 Reply)
Discussion started by: xyyz
1 Replies
2. Solaris
I am trying to compile nrpe 2.12 against openssl 1.0 on Solaris 10 however I am getting core dumps for some reason. Anyone know a way to fix this?
Here is the output of make:
bash-3.00# make all
cd ./src/; make ; cd ..
gcc -g -fPIC -Wall -O2 -I/usr/local/ssl/include... (0 Replies)
Discussion started by: _JPL_
0 Replies
3. UNIX for Dummies Questions & Answers
I am trying to run an old script to modify an image file with a modified header to bypass the md5 check but it comes up with an error message. The image file is for use on a Expressgate SSD so that I can add sqx files to it. This is a link from where I got the script:-... (3 Replies)
Discussion started by: r1speedyrider
3 Replies
4. Solaris
Hello,
I hope this means something to someone. I have an odd problem that just started happening recently. I am not the system admin, so I don't have full info on any changes to the system lately. Except that I did upgrade OpenSSL to version 1.0.1.c from 1.0.0j.
Anyway, I am trying to... (4 Replies)
Discussion started by: jonycp
4 Replies
5. Shell Programming and Scripting
im trying to make sure the openssl password does not show up in the output of ps.
so i'm trying to do something like this:
MAST=yup
echo "U2FsdGVkX19wH9LrQhuRZes45BM9rfiRpdhTCi+gLls=" | openssl <<HERE 2>&1 >/dev/null
aes-128-cbc -a -d -salt -k "${MAST}"
HERE
But this isn't working.. I... (10 Replies)
Discussion started by: SkySmart
10 Replies
LEARN ABOUT OPENSOLARIS
setkey
setkey(3C) Standard C Library Functions setkey(3C)
NAME
setkey - set encoding key
SYNOPSIS
#include <stdlib.h>
void setkey(const char *key);
DESCRIPTION
The setkey() function provides (rather primitive) access to the hashing algorithm employed by the crypt(3C) function. The argument of
setkey() is an array of length 64 bytes containing only the bytes with numerical value of 0 and 1. If this string is divided into groups of
8, the low-order bit in each group is ignored; this gives a 56-bit key which is used by the algorithm. This is the key that will be used
with the algorithm to encode a string block passed to encrypt(3C).
RETURN VALUES
No values are returned.
ERRORS
The setkey() function will fail if:
ENOSYS The functionality is not supported on this implementation.
USAGE
In some environments, decoding may not be implemented. This is related to U.S. Government restrictions on encryption and decryption rou-
tines: the DES decryption algorithm cannot be exported outside the U.S.A. Historical practice has been to ship a different version of the
encryption library without the decryption feature in the routines supplied. Thus the exported version of encrypt() does encoding but not
decoding.
Because setkey() does not return a value, applications wishing to check for errors should set errno to 0, call setkey(), then test errno
and, if it is non-zero, assume an error has occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
crypt(3C), encrypt(3C), attributes(5), standards(5)
SunOS 5.11 14 Aug 2002 setkey(3C)