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

Openpgp to encrypt using a DSA public key

I wrote a Go function to encrypt a string using a public DSA key. I understand DSA keys are meant for signing but command line encryption seems to be working fine with the DSA key. I wanted to check if openpgp or any other crypto package in Go can…
0
votes
1 answer

Parsing DSA key with golang into tls config object

I have a set of a DSA client private key, client- and and a CA certificate files, which I would like to use with the kafka-go library. I have been trying to parse the files but have been unsuccessful. The aformentioned key and certificate files are…
Jani
  • 507
  • 3
  • 21
0
votes
0 answers

ECDSA Public key recovery

Helo, I try to recover the public key from cookie, here is what i've done, not sure if thats correct... 1) Register and login to get the cookie: user: test pass: asd cookie:…
0
votes
1 answer

What is wrong with the DSACryptoServiceProvider?

The docs explicitly recommend to not use the DSACryptoServiceProvider as there are Newer asymmetric algorithms are available. Consider using the RSACryptoServiceProvider class instead of the DSACryptoServiceProvider class. Use…
Georg
  • 5,626
  • 1
  • 23
  • 44
0
votes
1 answer

How to implement Digital Signatures in node.js

I'm new in node.js and I need to implement digital signatures.The Scenario is that, a user "A" will send some data by signing it with its private key (Stored on local machine) on to the server. So any other user "B" can verify it by decrypting the…
Zaid
  • 79
  • 10
0
votes
1 answer

Why do exported ECDSA keys look similar?

I use this snippet to see private and public keys generated by DSA: byte[] publicKey, hash, signedHash; string strToSign = "Hello, world!"; SHA512Managed shaComputer = new SHA512Managed(); using (ECDsaCng dsaSigner =…
zergon321
  • 210
  • 1
  • 10
0
votes
1 answer

Verifying signature - What is causing invalid signature?

I need to sign and verify a message using RSA public and private key. The if verifier.verify(h, signature) portion at receiver, every time returns the "Signature not authentic" error. Even though everything is correct. What am I doing wrong? What is…
Hero31
  • 50
  • 2
  • 9
0
votes
1 answer

DSA signature c#

CertificateI have a Certificate This is the text i have to verify: B5080F731EE89EC82FD2E8B22E9_I_CANNOT_SHOW_THE_REAL_TEXT This is the…
Henrique
  • 51
  • 1
  • 7
0
votes
3 answers

What is the proper way to efficiently create digital signatures? Can I use DSA_sign_setup()?

I am working on an application whose performance is critical. In this application I have a lot of messages(i.e. several thousands) needed to be signed (and verified of course) separately with a same private key/public key. I am using the OpenSSL…
Ruiyu Zhu
  • 71
  • 8
0
votes
0 answers

using own password with Digital Signature Algorithm

I am a beginner with DSA and I want to implement its with java. In this code, key are generate random but I want to generate its with my password. Because my goal want to verify key. Please help! Thank you in advance. import…
Jony
  • 101
  • 5
0
votes
1 answer

Python PyCryptodome Digital Signature Algorithm with DSS

in Python Pycryptodome default example for DSA-DSS Hi guys.I asked this question but , it's not clever , I deleted on my profile and just asking from my friends account. Problem is that .I tried to use public key encryption , signature , verifiying…
Günel Resulova
  • 151
  • 1
  • 10
0
votes
1 answer

Verify X509 cert signature with DSA public key

I need to verify a X509 cert signature with a DSA public key. My cert file is x509.crt and my DSA public key is in a file named dsa_pub.key I am trying to use openssl for this purpose. I have read the openssl verify documentation but I cant find any…
DaveMac001
  • 155
  • 3
  • 13
0
votes
1 answer

Java Exceptions: Inappropriate key specification and short read of DER length

Using Base64 functions from the Apache Commons API and working with DSA I am trying to load a base 64 encoded public key from a file here is the method being used /** * Load a base-64 encoded public key in X.509 format * @param pkfile the name of…
cojoe
  • 45
  • 1
  • 8
0
votes
1 answer

DSA Signature Verification and BigInteger class

I have been given a (very) simple DSA problem, and have already found the key and other variables. To verify the signature I need to somehow translate the equation: V = [(y^u1*h^u2)mod p] mod q into a BigInteger operation. Is this even possible on…
0
votes
0 answers

golang/crypto: DSS key no longer works

I'm using an SFTP with my service to download some files which are integral to our functionality. After this commit to the golang/x/crypto packgae, my key no longer works. Considering the commit message, ssh: reject unsupported DSA key sizes, it…