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

Android: DSA signatures - sign and verify

I am having problems verifying a signature which I've just created. After signing I first convert the signature to text using Base64 and as a test I wanted to verify that I can decode the Base64 and verify the signature. This fails. Here is some…
LJB
  • 47
  • 9
1
vote
1 answer

Verify a DSA signature signed by the IHO S-63 scheme

I am trying to verify the signature of ENC (Electronic Navigational Charts). The files are signed with a certificate using DSA with SHA1. The signature file for an individual ENC looks like the following // Signature part R: 0DA3 AFDB CE55 B926…
blackmob
  • 77
  • 5
1
vote
3 answers

HTTP header for entity signature

There is a standard header for giving a digest of an HTTP request body (Content-MD5). Is there a commonly-used header name for including a DSA signature of a digest (generated with openssl dgst -dss1 -sign ), or do I need to just invent an…
OrangeDog
  • 36,653
  • 12
  • 122
  • 207
0
votes
1 answer

How is computed a ssh (rsa or dsa key) and why it changed?

In the last week I generated a SSH id_rsa key on my localhost that I have copied in authorized_key file at the right place on the remote server I want to reach without entering password. This worked fine. Now this morning trying to log again without…
Fabien
  • 166
  • 2
  • 6
0
votes
1 answer

is the time complexity of binary search log n?

How is the time complexity of binary search logn. It should be n because of number of steps. I am confused. So according to definition of time complexity its the number of steps so it should be n.Can anyone clarify for me?
adithya
  • 3
  • 2
0
votes
0 answers

DSA key format not supported

I am trying to do a P2MS script. For my script, I am saving the keys into a text file with DER format instead of the usual PEM file. Both key and signatures are saved in a text file and hexlify. Below is my code for the P2MS execution. from…
0
votes
1 answer

How to Sign XML request with DSC certificate in java or android

Actually I'm working on a project where I have a XML code And I want to do Digital Signature of that particular XML. Can anyone help me in that? O60\\
0
votes
0 answers

How to send a DSA PublicKey via socket?

I'm doing a uni project where the client has to send his Public Key to the Server, so I'm trying to send a DSA PublicKey via socket from the client to the server but I'm struggling, and all the solutions I found only apply to RSA Public Keys. I'm…
Rui
  • 3
  • 2
0
votes
2 answers

how to convert dsa PublicKey to PEM Files use golang

when i use an rsa pem string the follow code can work fine, generate to rsa public key object and regenerate to rsa pem string when i use an dsa pem string the follow code can not work fine, only can generate to dsa public key object x509:…
田伯成
  • 11
  • 4
0
votes
1 answer

modular exponentiation of 2048 bit operands using multiple 256 bit operations

I am implementing RSA digital signature algorithm and one of the operations needed is modular exponentiation of 2048 bit strings. and the hardware i am using provides me an accelerated 256 bit modular exponentiation operation. so, my question here…
0
votes
1 answer

InvalidAlgorithmParameterException When Loading Encrypted Private Key With Bouncycastle

I'm trying to read an encrypted DSA private key file with Bouncycastle using this code: Security.addProvider(new BouncyCastleProvider()); ... public PrivateKey loadKey(String fileName, String password) { try (PEMParser…
Jardo
  • 1,939
  • 2
  • 25
  • 45
0
votes
1 answer

sign a SHA-256 hash with DSA in Go

I want to sign a SHA-256 hash with DSA. Using Java I can write: Signature sig = Signature.getInstance("SHA256withDSA"); sig.initSign(priKey); sig.update(new byte[]{1}); byte[] sign = sig.sign(); …
TBC
  • 43
  • 5
0
votes
0 answers

Java Security java.security.NoSuchAlgorithmException

I am trying to validate a SHA1 DSA signature with this code: X509EncodedKeySpec bobPubKeySpec = new X509EncodedKeySpec(bobEncodedPubKey); KeyFactory keyFactory = KeyFactory.getInstance("DSA"); PublicKey bobPubKey =…
Kaloyan Manev
  • 406
  • 6
  • 20
0
votes
1 answer

How to use OpenSSL command line to operate(signature, for example) after loading OpenSSL engine?

I wrote a self-defined OpenSSL engine and engine tester in ubuntu 20.4. And the OpenSSL version is 1.1.1. The goal is to use engine in TLS session, and the first step is to use command line to sign a digest. The reference website…
coolddd
  • 11
  • 2
0
votes
0 answers

Why does my EC DSA code return false for verification?

I am using the java.security library to do an Elliptic Curve Digital Signature. I do not get a syntax error or any exception error. The code basically creates a public and private key. I then test it by creating a signature of a string and I use the…