Questions tagged [dsa]

DSA (Digital Signature Algorithm) is a public-key signature algorithm defined by NIST. Do NOT use this tag for general "Data Structures and Algorithms" questions.

DSA (short for Digital Signature Algorithm) is a specific public-key cryptography algorithm to sign messages. It is specified by FIPS 186-3 published by NIST.

DSA is normally used to sign a digest, or in recent versions a digest.

Do NOT use this tag for general "Data Structures and Algorithms" questions!

195 questions
0
votes
0 answers

Connect to sftp server with ppk file ssh-dss

I'm trying to connect via sftp to my server with private key (.ppk file and ssh-dss) in PHP The problem is that the private key is ssh-dss not RSA. I tried to use phpseclib with this code but doesn't work (RSA I…
0
votes
1 answer

Extracting public and private keys from openssl key file

I generate a pair of dsa keys with the command: openssl gendsa -out myDSAkey.pem sharedDSA.pem Then, I can "extract" my private and public keys with the commands: openssl dsa -in myDSAkey.pem -aes128 -out myDSApriv.pem openssl dsa -in myDSAkey.pem…
user1868607
  • 2,558
  • 1
  • 17
  • 38
0
votes
2 answers

How use public key with pyOpenSSL for verify a signed message?

I try to use pyOpenSSL for signed a data, I create key pair (private and publique) and certificate. I'm a beginner with this technology, I use OpenSSl, but if you have suggestions for generate a signed message with private and public key in python,…
user6604248
0
votes
2 answers

Trying to transfer file to remote server via SFTP using DSA fingerprint?

Full disclosure, I'm a web developer and not a network admin, so this stuff is a little out of my wheelhouse. I'm trying to use cURL to initiate a SFTP connection and transfer a simple text file to a remote host. When I run this cURL command: curl…
Two Piers
  • 58
  • 7
0
votes
0 answers

Java DSA implementation

This is DSA parameters length from NIST.FIPS.186-4 and NIST.FIPS.186-3: L = 1024, N = 160 L = 2048, N = 224 L = 2048, N = 256 L = 3072, N = 256 And this is code for parameters initialization from OpenJDK protected void engineInit(int strength,…
Feedforward
  • 4,521
  • 4
  • 22
  • 34
0
votes
1 answer

loading a DSA public key in Java

Let's say I have a DSA public key that looks like this: -----BEGIN PUBLIC…
neubert
  • 15,947
  • 24
  • 120
  • 212
0
votes
1 answer

Botan::DSA_PrivateKey to DSA_PublicKey how to?

I've succeeded with creating a new DSA_PrivateKey and Botan::PKCS8::PEM_encode to save to a .pem file. Now I need to save the PublicKey to a separate .pem also. Anybody know how to copy the DSA_PrivateKey to a DSA_PublicKey? I tried many different…
asic
  • 53
  • 10
0
votes
1 answer

Botan::AutoSeeded_RNG / m128i _mm_shuffle_epi8 : target specific option mismatch

This is my first time trying Botan, so the strategy is to try get one thing work first, one at a time. The first thing I'm doing is simply: #include class Myclass { ... Botan::AutoSeeded_RNG rng; } All the .h files in…
asic
  • 53
  • 10
0
votes
0 answers

the code generate error while using bouncycastleprovider

I am trying to generate signature using ECDSA with binary curve (B163) . Also i am using Bouncy Castle libraries. but it generate error like this- Exception in thread "main" java.lang.IllegalAccessError: tried to access method…
divan
  • 87
  • 1
  • 1
  • 7
0
votes
1 answer

Equivalent DSA verifiers with BouncyCastle and DSACryptoServiceProvider

These two function should be equivalent but VerifyBouncyCastle() returns false (failed verification) for the same input that VerifyDotNet() returns true on. The message was signed with .Net's DSACryptoServiceProvider.SignHash(). What's wrong with…
user1318499
  • 1,327
  • 11
  • 33
0
votes
1 answer

Java SHA1withDSA to PHP, convertible?

Any success in implementing SHA1withDSA signature with PHP? A failure reported here. PKCS8EncodedKeySpec prvSpec = new PKCS8EncodedKeySpec(prvKeyBytes); KeyFactory keyFactory = KeyFactory.getInstance("DSA"); PrivateKey prvKey =…
Mohsen
  • 3,512
  • 3
  • 38
  • 66
0
votes
3 answers

How would one write a private/public key system for a server authentication?

I guess this might have been posted somewhere, I did search, but couldn't find anything. I have this server on which I run a game server, and where I want to have some TCP server (possibly written in Ruby) that will provide a pseudo-session with few…
0
votes
1 answer

DSA public key bigger than private key

If I generate a private and public key for DSA using Crypto++: CryptoPP::AutoSeededRandomPool rng; CryptoPP::DSA::PrivateKey privateKey; privateKey.GenerateRandomWithKeySize(rng, 2048); CryptoPP::DSA::PublicKey…
keith
  • 5,122
  • 3
  • 21
  • 50
0
votes
1 answer

ssh: Identical rsa key generation steps work for one user, but no another

I just went through generating rsa keys so that a windows 10 laptop running cygwin can log onto a CentOS machine without a password. It works fine. The same process however didn't work for setting up password-less login for another remote user. I am…
John
  • 775
  • 3
  • 11
  • 25
0
votes
0 answers

error trying to sign a file in java using a MakeCert.exe generated DSA private key

I need to sign a large file in java, using a MakeCert.exe (from from the Windows SDK 8.) generated DSA private key. makecert.exe -sy 13 -sv C:\SignFile3\dsasign.pvk -pe -r -n "CN=LGS CA" C:\SignFile3\dsasign.crt The pvk is the private key I want to…
Bertrand_Szoghy
  • 880
  • 1
  • 11
  • 26