Displaying 4 results from an estimated 4 matches for "evp_decryptupdate".
2019 Feb 28
0
[PATCH branch 1.1] fix: use EVP_DecryptUpdate while decrypting
...pher.c
index d51ec0d..974fbeb 100644
--- a/src/openssl/cipher.c
+++ b/src/openssl/cipher.c
@@ -189,7 +189,7 @@ bool cipher_decrypt(cipher_t *cipher, const void *indata, size_t inlen, void *ou
} else {
int len;
- if(EVP_EncryptUpdate(cipher->ctx, outdata, &len, indata, inlen)) {
+ if(EVP_DecryptUpdate(cipher->ctx, outdata, &len, indata, inlen)) {
if(outlen) {
*outlen = len;
}
--
2.19.2
2003 Oct 10
2
tinc rel 1.0.1 gets aborted in OPENSSL call
Hallo,
I?m using tincd now since the old days of 1.0pre4 and ist pretty good
software.
Ths week I went to upgrade from 1.0pre7 to 1.0.1 and failed. The tincd
process gets aborted inside the libcrypto library with OPENSSL_assert
(inl >0).
Tracking down that problem I found, that the EVP_DecryptUpdate gets
called in meta.c with the last argument containing a negativ value
(lenin is -204).
The process sits in my server and waits for incoming connections. In the
middle of the first connection handshaking (via a TCP connection), the
server hosted process gets aborted. The remote end sees a timeout...
2010 Mar 11
1
Plugin like zlib
...The bigger difference from zlib is the i_stream_zlib_read part....
do {
ret = read(zstream->fd ,crypttext, size);
fprintf(zstream->debug,"DENTRO DA READ RET = %d -- ERRNO = %d -- STR
= |%s|\n", ret, errno, strerror(errno));
if(ret > 0){
EVP_DecryptUpdate(&ctx, plaintext, &plain_len, crypttext, ret);
memcpy(stream->w_buffer + stream->pos , plaintext, plain_len);
bzero (plaintext, DEFAULT_MAX_BUFFER_SIZE);
EVP_DecryptFinal(&ctx, plaintext, &plain_len_final);
memcpy(stream->w_bu...
2008 Sep 30
1
Problem compiling tinc-1.0.8 on gcc-2.95
...c->status.active)
+ if(c != from && c->status.st.active)
send_meta(c, buffer, length);
}
}
@@ -170,7 +170,7 @@
while(lenin > 0) {
/* Decrypt */
- if(c->status.decryptin && !decrypted) {
+ if(c->status.st.decryptin && !decrypted) {
result = EVP_DecryptUpdate(c->inctx, (unsigned char *)inbuf, &lenout, (unsigned char *)c->buffer + oldlen, lenin);
if(!result || lenout != lenin) {
logger(LOG_ERR, _("Error while decrypting metadata from %s (%s): %s"),
diff -ubr tinc-1.0.8/src/net.c tinc-1.0.8.my/src/net.c
--- tinc-1.0.8/src/net....