Displaying 12 results from an estimated 12 matches for "rsa_generate_key".
2006 Apr 12
0
[schulz@adi.com: 0.9.8a: DSA_generate_parameters & RSA_generate_key not in libcrypto]
...X-Original-To: jaenicke at serv01.aet.tu-cottbus.de
X-Original-To: rt at aet.tu-cottbus.de
Delivered-To: rt at master.openssl.org
Date: Wed, 12 Apr 2006 14:42:27 -0400 (EDT)
From: Thomas Schulz <schulz at adi.com>
To: openssl-bugs at openssl.org
Subject: 0.9.8a: DSA_generate_parameters & RSA_generate_key not in libcrypto
X-Virus-Scanned: by amavisd 0.1
X-Virus-Scanned: by amavisd 0.1
I am not sure if this is a bug or something that was never defined to work.
I tried to build openssh-4.3p2 against openssl-0.9.8a. It died with
DSA_generate_parameters and RSA_generate_key as undefined symbols.
I tri...
1999 Dec 16
3
Progress meter for ssh-keygen
...sh(stdout);
+}
+
+/*
* Generates RSA public and private keys. This initializes the data
* structures; they should be freed with rsa_clear_private_key and
* rsa_clear_public_key.
@@ -69,8 +84,11 @@
if (rsa_verbose) {
printf("Generating RSA keys: ");
fflush(stdout);
+ key = RSA_generate_key(bits, 35, keygen_progress, NULL);
+ printf("\n");
+ } else {
+ key = RSA_generate_key(bits, 35, NULL, NULL);
}
- key = RSA_generate_key(bits, 35, NULL, NULL);
if (key == NULL)
fatal("rsa_generate_key: key generation failed.");
2000 Mar 17
2
Problem with 1.2.3pre4 and RSAref
The following code snippet will not compile support for RSAref on NetBSD even
if it exists on the system (which breaks OpenSSL):
for WANTS_RSAREF in "" 1 ; do
if test -z "$WANTS_RSAREF" ; then
LIBS="$saved_LIBS -lcrypto"
else
LIBS="$saved_LIBS -lcrypto -lRSAglue
2006 Nov 10
4
[Bug 1260] Link failure with openssl 0.9.8
...ured with earlier versions
of openssh and I just worked around it. Trying to build openssh 4.4p1
with openssl 0.9.8, I get the following link failure.
Undefined first referenced
symbol in file
DSA_generate_parameters ./libssh.a(key.o)
RSA_generate_key ./libssh.a(key.o)
ld: fatal: Symbol referencing errors. No output written to ssh
*** Error code 1
If I revert to openssl 0.9.7, there is no problem. Checking the
libcrypto.so library with nm, I find that 0.9.8 has
DSA_generate_parameters_ex and RSA_generate_key_ex defined where...
2000 May 10
4
openssl w/ rsaref openssh won't configure
...openssl-0.9.5a and openssh-2.1.0. I configured ssl with rsaref
and it passes the tests. When I configure ssh I get:
----
checking for OpenSSL directory... configure: error: Could not find
working SSLeay / OpenSSL libraries, please install
----
it is failing RSA_private_decrypt function call. The RSA_generate_key
seems to work (does not return null) but then goes on to fail at
RSA_private_decrypt.
Like I said, the openssl tests passed....
AnyHELP?
conftest.c generated by configure:
---------
gcc -o conftest -g -O2 -Wall -I/opt/openssl/include -L/opt/openssl/lib
-L/opt/openssl conftest.c -ldl -lnsl -lz...
2002 Apr 03
2
cross compilation?
...d.h>
-#include <openssl/rsa.h>
-#include <openssl/bn.h>
-#include <openssl/sha.h>
-int main(void)
-{
-
int num; RSA *key; static unsigned char p_in[] = "blahblah";
-
unsigned char c[256], p[256];
-
memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c));
-
if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1);
-
num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING);
-
return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING));
-}
-
],
-
[
+
AC_TRY_LINK(
+
[
+
#include <string.h>
+
#include <openssl/rand.h>
+
#include &...
2000 May 14
0
OpenSSH 2.1.0+OpenSSL 0.9.5a+RSAref 2.0 trouble
...h>
#include <openssl/rand.h>
#include <openssl/rsa.h>
#include <openssl/bn.h>
#include <openssl/sha.h>
int main(void)
{
RSA *key; char a[2048],b[2048];;
memset(a, 0, sizeof(a));memset(b, 0, sizeof(b));
RAND_add(a, sizeof(a), sizeof(a));
key=RSA_generate_key(32,3,NULL,NULL);
---> if (key==NULL) return(1);
return(-1==RSA_private_decrypt(RSA_size(key),a,b,key,RSA_NO_PADDING));
}
The arrowhead points to the line that fails.
I built this exact code on a Linux system, then wrote a Perl wrapper to
get the return code. I got the 1 return code...
2000 Mar 10
2
problems running configure
I am trying to run the configure script under SuSE 6.3 and get the same
error message that others have seen being unable to find working openssl
libraries. I tried the patch to configure.in suggested in this list but it
did not solve my problem.
openssl(latest version) compiled and installed with no problems in
/usr/local/ssl. I then installed the ssl mods for apache and the
compilation,
2012 Oct 30
5
Pigeonhole 3.3 broken against Dovecot 2.1.10
....0.0'
/usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to
`SSL_CTX_ctrl at OPENSSL_1.0.0'
/usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to
`ERR_peek_last_error at OPENSSL_1.0.0'
/usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to
`RSA_generate_key at OPENSSL_1.0.0'
/usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to
`SSL_state_string_long at OPENSSL_1.0.0'
/usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to
`PEM_X509_INFO_read_bio at OPENSSL_1.0.0'
/usr/local/lib/dovecot/libdovecot-storage.so:...
2017 Aug 25
3
trouble compiling Dovecot 2.2.31 on Solaris 10 SPARC - libssl_iostream_openssl.so is not portable!
...lib-ssl-iostream/.libs/libssl_iostream_openssl.so
SSL_get_current_cipher ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so
X509_STORE_CTX_get_current_cert ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so
SSL_get_ex_data_X509_STORE_CTX_idx
../lib-ssl-iostream/.libs/libssl_iostream_openssl.so
RSA_generate_key ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so
X509_STORE_CTX_get_error ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so
SSL_state_string_long ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so
ERR_remove_state ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so
BIO_free ../lib-ssl-ios...
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
...UINT32 key_length;
-+ size_t key_length;
-
- info("TPM_CreateWrapKey()");
- /* get parent key */
-@@ -450,11 +465,11 @@ TPM_RESULT TPM_CreateWrapKey(TPM_KEY_HAN
- }
- }
- /* generate key and store it */
-- key_length = keyInfo->algorithmParms.parms.rsa.keyLength;
-- if (rsa_generate_key(&rsa, key_length)) return TPM_FAIL;
-- wrappedKey->pubKey.keyLength = key_length >> 3;
-+ if (rsa_generate_key(&rsa,
keyInfo->algorithmParms.parms.rsa.keyLength))
-+ return TPM_FAIL;
-+ wrappedKey->pubKey.keyLength =
keyInfo->algorithmParms.parms.rsa.keyLength >&g...
2003 Dec 01
0
No subject
...>
BOOL sslEnabled;
SSL *ssl = NULL;
@@ -74,12 +74,12 @@
return ok;
}
-static RSA *ssl_temp_rsa_cb(SSL *ssl, int export)
+static RSA *ssl_temp_rsa_cb(SSL *ssl, int is_export, int keylength)
{
static RSA *rsa = NULL;
if(rsa == NULL)
- rsa = RSA_generate_key(512, RSA_F4, NULL, NULL);
+ rsa = RSA_generate_key(keylength, RSA_F4, NULL, NULL);
return rsa;
}
@@ -89,11 +89,19 @@
*/
int sslutil_init(int isServer)
{
-int err;
+int err, entropybytes;
char *certfile, *keyfile, *ciphers, *cacertDir, *cacertFile;
+char *egdsocket, *e...