Questions tagged [public-key-exchange]

43 questions
1
vote
2 answers

Does ECDHE-RSA relate to the basic DH scheme?

After reviewing the subject craefully, I know understand how ECDHE-RSA provides PFS by creating a new set of private and public keys for every session. Yet what I cannot understand, is how does this scheme relates to the basic DH scheme? The same…
1
vote
0 answers

Converting a .pub public key certificate to .ASC

I am completely new to the encryption/decryption area and I searched a lot before asking this question (although a very basic one). We have a user who sent his public key certificate in .pub format. We need to convert it into .asc to be able to…
1
vote
1 answer

JWT validation in a micro-services architecture and public key publishing

We are refactoring our web app system to a micro-services architecture. We decided to authenticate our users with JWT and save some authorization data in it. For example, from the payload of the token one can infer if the user can access a certain…
itaied
  • 6,827
  • 13
  • 51
  • 86
1
vote
1 answer

Net::SSH::Perl throws error No kex algorithm at /usr/share/perl5/vendor_perl/Net/SSH/Perl/SSH2.pm line 92

I am using Net::SSH::Perl to connect to a Qlogic switch. when it fails with the below error: No kex algorithm at /usr/share/perl5/vendor_perl/Net/SSH/Perl/SSH2.pm line 92 Code: use Net::SSH::Perl; $ssh = Net::SSH::Perl->new("$switch_name",…
Gary Vernon Grubb
  • 9,695
  • 1
  • 24
  • 27
1
vote
1 answer

Premaster secret and master key in OpenSSL

I have following values: client-random bytes server-random bytes pre-master secret I don't want to use features like SSL , SSL_CTX etc. What I want is, just I have three numbers, I want to calculate master-number from them. How do I calculate…
harihardik
  • 494
  • 1
  • 5
  • 15
0
votes
0 answers

Android newest system version could not read .cer file public key

I want get public key from .cer file, but failure. I find this error from Android newest system version, i can get public key in my lower Android system version. String path =…
0
votes
0 answers

Man-in-the-middle attack by e2ee chat application owner

Is it possible that if some popular end to end encrypted chat application owner want to perform a Man-in-the-middle attack as they have full control over the user data and server can they perform it easily as they can change users public key with…
0
votes
1 answer

Xamarin.iOS => Create Key Pair and send public key (X.509) to ASP.NET MVC Application .NET 4.7.2

I'm new with RSA. I have made Windows and Xamarin.Android client application well communicate with ASP.NET MVC .NET 4.7.2 application. All is working. Client applications can share their public key with the server and server can made same thing with…
Film
  • 1
  • 1
0
votes
2 answers

Diffie Hellman key exchange between C# and C++ on Windows

I want to use the Diffie Hellman algorithm to securely exchange keys between a C++ server an a C# client which both are running on Windows. I tried using ECDiffieHellmanCng in C# to generate a public key as follows: ECDiffieHellmanCng diffieHellman…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
0
votes
1 answer

Reading Public Key Sent by Java Server in Swift

I'm trying to read a public key (x509 format encoded) from a Java Server to finalize my Elliptic Curve Diffie Hellman Exchange. I can send the Public Key to the server with no problem, but now I want to read the public Key that the server has sent…
JCCA
  • 5
  • 2
0
votes
1 answer

Why we need the enclave identity of initiator or responder in DH secure session establishment?

I'm developing a sgx application using sgx_dh API. The workflow can be summarized as follows (two roles here are dh_initiator, dh_i in short, and dh_responder, i.e., dh_r.): step0: Initiate session in dh_i and dh_r side; step1: dh_r generates msg1…
tuziYou
  • 33
  • 5
0
votes
1 answer

Im trying to export EC Public keys from android to iOS, what is the best way to do this?

I'm trying to perform an EC key exchange between iOS and Android clients of my app. I have successfully transported and generated them from iOS to Android. But I'm unable to use the keys generated in the android app in iOS. I'm using the…
AdmiralAnk
  • 53
  • 8
0
votes
0 answers

Correct key exchange procedure for hybrid encryption using Pycryptodome

I'm writing a module that creates a secure communication channel using ZeroMQ sockets and Pycryptodome. The initial handshake between client and server would follow these steps : Both parties send their public RSA key to each other. The server…
0
votes
1 answer

ECDiffieHellmanPublicKey from ByteArray (using ECDiffieHellman NamedCurves)

I'm working on communication nodejs -> c# server. I need to secure connection between them so I chode ECDiffieHellman as the key exchange mechanism (nodejs supports it). I had some problem with it... Just my lack of knowledge so I've made my lesson…
Janso123
  • 192
  • 1
  • 12
0
votes
0 answers

Bootloader/still learning,

I was looking at my Facebook message/call log and there's number I don't know, so I was copy and pasting them to look them up, and got the pop up verify it s me question and after I did this code just took over screen. I also want to add I unlocked…