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
2
votes
2 answers

Convert Java to python DSA signing

Does anyone know how I would go about converting this java code to python? /** * signs the data for the account account */ private byte[] sign(String pkStr,byte[] data, String keyType) throws Exception { BASE64Decoder decoder = new…
Al W
  • 7,539
  • 1
  • 19
  • 40
2
votes
1 answer

DSA (Digital Signature Alghoritm) implementation - key generation

I have to implement DSA for university and I have a problem with finding number q which is prime factor of p - 1 where p is prime number. I was trying to write some wierd loops but it only worked for small p values. With 512 bit long prime it would…
Ayaka
  • 59
  • 6
2
votes
1 answer

openssl pkeyutl not truncating input with DSA key

I am trying to sign a file directly (not computing any hashes) with openssl pkeyutl using a DSA key, and the man page says that the input should be truncated in case it is larger than the expected hash size. However, when I run the command $…
aurorca
  • 31
  • 4
2
votes
1 answer

'No installed provider supports this key: sun.security.provider.DSAPublicKeyImpl' while using RSA encryption

I'm trying to encrypt a text file using a key I generated. Now I should encrypt this key with RSA algorithm, using the public key of the side that eventually will receive the encrypted data. This is my code so far: package cryptogaphy; import…
Loly
  • 125
  • 2
  • 4
  • 11
2
votes
1 answer

Crypto++ AutoSeededRandomPool copy constructor implicitly deleted

My question is about a crypto++ constructor and why it is in the state of being "implicitly deleted" even though it follows the examples provided in the documentation. I am trying to go off of the code provided by the example on Crypto++'s…
Marty
  • 133
  • 1
  • 2
  • 7
2
votes
1 answer

Verifying DSA Signature generated by PKCS#11 with OpenSSL

I want to sign a SHA-256 hash with DSA using PKCS#11 Java Wrapper for the PKCS#11 API of a hardware security module. For this purpose I selected the Mechanism CKM_DSA, load the corresponding DSA key from the token and have the data (read as…
LuxOnion
2
votes
1 answer

difficulty understanding the example in RFC 6979

I'm trying to follow section A.1.2 of RFC 6979 and am having some difficulty. So h1 is as follows: h1 AF 2B DB E1 AA 9B 6E C1 E2 AD E1 D6 94 F4 1F C7 1A 83 1D 02 68 E9 89 15 62 11 3D 8A 62 AD D1 BF If that is run through…
neubert
  • 15,947
  • 24
  • 120
  • 212
2
votes
0 answers

Using OpenSSL to verify a file signed with Java

A signature that I created with Java fails to be verified with OpenSSL. I would be thankful for any hint. Here is what I did: 1) Generated a key pair with the Java key tool: >> keytool -genkeypair -alias signing_test -keyalg DSA -keysize 2048…
Tilo
  • 3,255
  • 26
  • 31
2
votes
1 answer

PyCrypto is throwing an Invalid Syntax Error when I import pysftp

I am making an SFTP application that connects to my schools server where I have to upload my Python Programs to for class. After adding pysftp, pycrypto and paramiko to the Python 3.5 Library I tried importing the pysftp module only to get an…
pjmorin0001
  • 79
  • 3
  • 10
2
votes
1 answer

M2Crypto: verifying DSA signatures

I'm having trouble verifying DSA signatures using Python/M2Crypto. The signatures are generated in Java, using standard java.security.Signature class, with Sun's crypto provider and SHA1withDSA algorithm designation. Here's some shell output: >>>…
oggy
  • 3,483
  • 1
  • 20
  • 24
2
votes
1 answer

runas argument savecred and netonly are incompatible?

i wrote this: runas /netonly /user:DOMAIN\USERNAME /savecred "mmc dsa.msc" but with /netonly the argument /savecred don't work Someone help me?
2
votes
1 answer

Worked Example of Digital Signature Algorithm

Does anybody have a DSA worked example with simple values on how to calculate r,s and verify v == r. As this standard has been around awhile and is implemented in librarys e.g. the Java Cryptography Extension I'm finding it very hard to find an…
Robben_Ford_Fan_boy
  • 8,494
  • 11
  • 64
  • 85
2
votes
1 answer

How to load a DSA Key from KeyInfo using openSSL

I am trying to verify an XML digital signature using openSSL. When I actually use EVP_VerifyFinal, I get the error code 0D07209B (ASN1_get_object:too long). He's how I load the the KeyInfo from the cert:
Grahame Grieve
  • 3,538
  • 3
  • 15
  • 17
2
votes
1 answer

DSACryptoServiceProvider: VerifySignature vs. SignData

I'm trying to use the DSACryproServiceProvider. But im a bit confused, because I can't see the Difference between a) dsa.VerifySignature() b) dsa.VerifyData() Additionaly I expect that dsa.CreateSignature() just creates the signature for the given…
myst3rium
  • 154
  • 12
2
votes
1 answer

Sending a Public Key Encoded in Base 64 in Ruby using WSSE in SOAP

I'm trying to send a WSSE DSA public key encoded in base 64. I've been trying to use the Open SSL library to separate the public key from the cert file, but it seems that OpenSSL uses my entire cert file instead of extracting just the public key.…
John Kulp
  • 123
  • 1
  • 12