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
1
vote
1 answer

unable to verify string signed by openssl with dsa key

Adapting the directions at Creating a DSA Signature from the Linux command line I created a DSA signed message: echo "foobar" > foo.txt openssl dgst -dss1 -sign dsa_priv.pem foo.txt > sigfile.bin The directions actually used foo.sha1 instead of…
neubert
  • 15,947
  • 24
  • 120
  • 212
1
vote
1 answer

using the same public ssh key on two different accounts

here is the situation: i have one machine which lives at my house (lets call it house_machine) and i have another machine at my office (call this one office_machine). im using ssh with dsa key authentication and without password authentication to…
mulllhausen
  • 4,225
  • 7
  • 49
  • 71
1
vote
1 answer

Indentify DSA/RSA keys in Perl

I am trying to find a Perl solution to identify the type of the keys. I have a list of key files and I need to know which are DSA and which are RSA. I know I can do it on Linux with the following command: ssh-keygen -lf id_dsa.pub I am trying to…
Andrey
  • 1,808
  • 1
  • 16
  • 28
1
vote
1 answer

The signed MSI-package isn't liked by Windows

I have prepared my MSI package using the Advanced Installer and then signed it using the SignTool: signtool sign /debug /f "cert.pfx" /fd SHA256 /p "" /t http://timestamp.comodoca.com/authenticode "" But, when other user is…
user4959035
1
vote
4 answers

Unable to ssh localhost on Mac OS El Capitan

I am having some troubles while trying to make a ssh localhost connexion. I want to do this without passphrase, so when I created the public key/private key couple, I typed on the return key when asked for the passphrase, as indicated. When I try…
S.Mcgalway
  • 11
  • 1
  • 2
1
vote
0 answers

Java DSA Signature: fixed key size and signature size

I have the following code that signs some String data: KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA"); SecureRandom random = SecureRandom.getInstance("SHA1PRNG"); keyGen.initialize(1024, random); KeyPair pair =…
MooMooCoding
  • 319
  • 1
  • 5
  • 15
1
vote
2 answers

Can't verify a DSA signature in Java that was created in Go, and vice versa

I'm trying to verify a signature in Java that was created in Go, and vice versa. However, in each case I'm getting no error, but false on the verify function. The public and private key being used are the same, as are the parameters, I have checked…
Zack Newsham
  • 2,810
  • 1
  • 23
  • 43
1
vote
1 answer

Creating openssh public keys from private keys with pycrypto

How do I create DSA openssh-formatted public key with a given private key? The openssh public key format looks like this: ssh-dss…
encrypt0R
  • 13
  • 5
1
vote
1 answer

DSAParameters are negative when converted from byte[] to BigInteger

I need to implement DSA without any libaries (except key generation) in C# as part of my homework. I managed to generate the public and private key but when i try to get the parameters like G or Y and convert them into a BigInteger i sometimes get…
laphory
  • 13
  • 1
  • 5
1
vote
1 answer

Convert BouncyCastle DSAPrivateKeyParameters to System.Security.Cryptography.DSAParameters

I am trying to generate a new self-signed X509 certificate (instance of X509Certificate2) with private key using Bouncy Castle. I googled some examples for RSA and I created this code based on these examples. I use Bouncy Castle for certificate…
vojta
  • 5,591
  • 2
  • 24
  • 64
1
vote
1 answer

on DSA key size

When you execute ssh-keygen -t ssh-dss it generates two files: one containing the public and the other, the private key. The ssh-keygen man-page says it always generates a 1024bit key, but when I open the public key file, I always get a 580…
1
vote
1 answer

How to load DSA PublicKey using go stdlib

I have a PEM encoded DSA public key. I need this DSA key so I can verify incoming data. But I have yet to figure out how to load the key using go crypto library (I am not a crypto expert but from what I'm reading online, DSA is not a popular choice…
xrl
  • 2,155
  • 5
  • 26
  • 40
1
vote
1 answer

How to send and receive a DSA public/private signed message in Java

I cannot find any good (complete) documentation on how to exchange a public/private key signed message in Java. I have yet to find a concise document on the minimum steps needed to generate a public key and private key using DSA, sign a byte[], and…
Justin
  • 4,196
  • 4
  • 24
  • 48
1
vote
0 answers

What does dsaEncryption mean in X.509 certificates?

I have produced a signing certificate with DSA keys, and it has the following field which made me curious: Public Key Algorithm: dsaEncryption AFAIK, DSA is not suitable for encryption. Then what does this stand for? Did they mean ElGamal encryption…
user289452
  • 11
  • 1
1
vote
0 answers

Perform arithmetic between two rings of integers (with different mods) in SAGE

I'm trying to digitally sign a test message in Sage using DSA (DSS). After running my code, I get: Traceback (most recent call last): File "", line 1, in File "_sage_input_28.py", line 10, in exec…
user623990