Win a copy of Functional Design and Architecture this week in the Functional programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

RSA mixed up with DH/DSS

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

A simple question, if we are using a RSA keypair to sign/encoding, and the other side are using DH/DSS also for sign/encoding we'll have some problem to decrypt?

We are doing it and we could decrypt as well but in the final line there are some garbage characters, something like binary characters or extended ascii...

Somebody knows why is there that trash?

thanks.
 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

A simple question, if we are using a RSA keypair to sign/encoding, and the other side are using DH/DSS also for sign/encoding we'll have some problem to decrypt?



Not necessarily. As long as each side has access to the other's public key and the software you use can accept either type of keys, everything should work.

As for the so-called "garbage" characters at the end, that is often a symptom of incompatible padding schemes. Without more information or source code it is impossible to know.
 
sergio martinelli
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That "garbage" was a mistake when was wrote the encrypted file.

..and the mixed up keypair work fine anyway.

thanks Greg!
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic