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

What is the benefit of using DSASignatureFormatter over DSACryptoServiceProvider to generate a signature?

I'm using DSA to create a signature for a binary blob, and I'm trying to figure out what I would gain from using the DSASignatureFormatter's CreateSignature(byte[]), rather than just using DSACryptoServiceProvider's CreateSignature(byte[]) As far…
Nullczyk
  • 11
  • 2
1
vote
1 answer

Mathematical attack on the Digital Signature Algorithm

Does anybody know the mathematics behind an attack on DSA where modulus p has p-1 made up of only small factors. In reality, this would not happen as the key generator would guarantee that this is not so. There is much information on the web on…
Robben_Ford_Fan_boy
  • 8,494
  • 11
  • 64
  • 85
1
vote
1 answer

dnssec-keygen outputfile with DSA private key

I've been trying to crack this for several days now and I don't seem to get it working. Basically I got a .private file which is the result of the following command: dnssec-keygen -C -a DSA -b 1024 -n HOST -T KEY Hostmame The file is in a certain…
Yoeri Smets
  • 142
  • 1
  • 9
1
vote
1 answer

PHP openssl_sign with SHA512

Is there any chance to get PHP’s openssl_sign method working with SHA512 (or any other SHA2 family member)? If I use RSA as the key type (OPENSSL_KEYTYPE_RSA) and sign via openssl_sign($data, $signature, $privatekey, 'sha512'); everything works…
CodeX
  • 717
  • 7
  • 23
1
vote
2 answers

Automating terminal login with DSA key

How would I go about doing this on the terminal? sftp then asks me for a password. how do I include my DSA key so that I do not have to use the password?
wobbles
  • 25
  • 2
1
vote
2 answers

DSA generates different signatures with the same data

I'm using the example given in this MSDN article about the DSACryptoServiceProvider class. The problem is that I get a different signature each time I run the code. I tried OpenSSL and didn't get this problem but I need to work with…
Ibrahim.I
  • 229
  • 1
  • 4
  • 18
1
vote
1 answer

DSA signature: openssl_sign (php) vs Crypt::OpenSSL::DSA (perl) mismatch

Currently in my project DSA signature is being generated via perl and verified via perl on other server. It works fine. Some days ago i've tried to migrate one service from perl to php, and found that php generates signs, that perl is not able to…
avasin
  • 9,186
  • 18
  • 80
  • 127
1
vote
1 answer

Keytool Public/Private key pair for Android

I'm trying to create a public/private key pair using the keytool function so I can submit an Android app to Google Play. When I try to sign the app using the key I made, I get this error from jarsigner jarsigner: Certificate chain not found for:…
Tommy Nicholas
  • 1,133
  • 5
  • 20
  • 31
1
vote
2 answers

Linkedlist implementation in Java Sorting not working

I created my own linkedlist. I wanted to sort my linkedlist using Collections.sort method. So I extends MyLinkedList class to java.util.LinkedList. I also created Comparator and Comparable implementation. But both are not working. Please find below…
Sohan Badaya
  • 365
  • 4
  • 15
1
vote
1 answer

Validating a DSA key pair with pycrypto ( getting pqg values )

I have an application that stores ssh keys. The user writes his private and public key into 2 text boxes and before storing them, my application is supposed to check if private key matches with the public key (using pycrypto). Validating a RSA pair…
Giwrgos Tsopanoglou
  • 1,165
  • 2
  • 8
  • 15
1
vote
1 answer

BigInteger ModInverse

Is this VB calculation Dim s As BigInteger = (BigInteger.ModPow(k,q - 2,q) * (m + x * r)) Mod q a proper implementation of this written calculation I'm basing my calculation of the fact that can be computed by as per this Wikipedia article on…
ic3b3rg
  • 14,629
  • 4
  • 30
  • 53
1
vote
1 answer

Can one tomcat server support both RSA and DSA certificates?

To provide both RSA and DSA certificates, I have used two connectors with different IP addresses. But Is it possible that under one IP address multiple ssl certifices? I have also tried virtual hosting on tomcat, but I didn't found any attribute…
1
vote
0 answers

Java Digital Signatures - Inconsistent Signature

I've been using the Java security api and was following the tutorial on how to generate digital signatures: http://docs.oracle.com/javase/tutorial/security/apisign/gensig.html The problem is when I run the code, the output signature is always…
user1087943
  • 489
  • 1
  • 7
  • 15
1
vote
1 answer

.NET 4.0 DsaKeyValue required/optional parameter query for DSACryptoServiceProvider

Im kinda confused about the required/optional requirement for loading XML for a DSACryptoServiceProvider. From the this website, the following is the schema: Schema Definition:
TheRRRanger
  • 365
  • 3
  • 12
1
vote
1 answer

What is DSA complexity?

I have made some testing and it came out that RSA is lot slower than DSA. What is usual DSA time complexity? RSA[ms] DSA [ms] 1125 218 1KiB 1047 188 2KiB 594 17 4KiB 641 234 8KiB 2938 406 16KiB 9063 937 32KiB 39344 3406 …
Yoda
  • 17,363
  • 67
  • 204
  • 344