dsa

Git error: Unable to negotiate with X.X.X.X : no matching host key type found . their offer: ssh-dss

你离开我真会死。 提交于 2020-03-02 05:46:57
I am trying to create a git repository on my web host and clone it on my computer. Here's what I did: I created a repository on the remote server. I generated a key pair: ssh-keygen -t dsa . I added my key to ssh-agent. I copied to the server public key in ~/.ssh . And then, after an attempt to run the command git clone ssh://user@host/path-to-repository , I get an error: Unable to negotiate with XX.XXX.XX.XX: no matching host key type found. Their offer: ssh-dss fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. What

failed to verify a dsawithSha1 signed message against a DSA public key in python/m2crypto

若如初见. 提交于 2020-01-17 08:06:27
问题 - I'm trying to verify a signed message using a x509 certificate holding a dsa public key. The x509 certificate was provided by an SAP System in PKCS7 encoding and after converting in PEM with openssl I'm able to read the contents (openssl x509 -in sapcert.pem -inform pem -text) It holds a public key in dsaEncryption, showing me the DSA parameters y(pub), p, q and g. Because I did not found a DSA implementation in M2Crypto x509 class, i tried to build the DSA public key by myself. Therefor I

DSA: How to generate the subprime?

社会主义新天地 提交于 2020-01-13 07:19:48
问题 Lately I did a bit of research about the Digital Signature Algorithm and how it works. My question according to this is of no practical matter for me but of pure interest. However, I'm curious how to generate the subprime in DSA: Somewhere during the generation of the parameters for the algorithm one chooses a 1024-bit prime p . The next step is to find a 160-bit prime q which is a divisor of p-1 . That's where I get stuck. I have no idea how to find that subprime q in time, without having to

C# generate a public and private keys for the DSA encryption algorithm [closed]

时间秒杀一切 提交于 2020-01-02 18:25:13
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . How do I generate a public and a private key for the DSA algorithm in byte array format? 回答1: In DSA algorithm (from wiki): Public key is (p, q, g, y). Private key is x. var dsa = new DSACryptoServiceProvider();

How can I generate a valid ECDSA EC key pair?

半世苍凉 提交于 2019-12-31 02:45:29
问题 I am trying to generate ECDSA key pair using SpongyCastle in Android. This is the code: static { Security.insertProviderAt(new org.spongycastle.jce.provider.BouncyCastleProvider(), 1); } public static KeyPair generate() { ECParameterSpec ecSpec = ECNamedCurveTable.getParameterSpec("prime256v1"); KeyPairGenerator generator = KeyPairGenerator.getInstance("ECDSA", "SC"); generator.initialize(ecSpec, new SecureRandom()); KeyPair keyPair = g.generateKeyPair(); Log.i(TAG, "EC Pub Key generated: " +

unable to verify string signed by openssl with dsa key

僤鯓⒐⒋嵵緔 提交于 2019-12-24 06:23:06
问题 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 foo.txt, where foo.sha1 was generated by sha1sum but signing a hash seems a bit redundant since DSA is, itself, supposed to do hashing. So, anyway, I did that. Here's the private key I used (I generated it specifically for testing purposes): -----BEGIN

What is the difference between DSA and RSA?

て烟熏妆下的殇ゞ 提交于 2019-12-20 08:17:28
问题 It appears they are both encryption algorithms that require public and private keys. Why would I pick one versus the other to provide encryption in my client server application? 回答1: Referring, https://web.archive.org/web/20140212143556/http://courses.cs.tamu.edu:80/pooch/665_spring2008/Australian-sec-2006/less19.html RSA RSA encryption and decryption are commutative hence it may be used directly as a digital signature scheme given an RSA scheme {(e,R), (d,p,q)} to sign a message M, compute:

How to read a DICOM file of Dynamic DSA image

不羁岁月 提交于 2019-12-11 22:24:51
问题 I have a Dynamic DSA image of DICOM format, it consists of a header of patient information etc and a series of X-ray image data to show the bone motion in only one file. Is there any method in librarys like VTK, ITK or GDCM can read this data out? 回答1: To load a multiframe DICOM in VTK, simply use GDCM, in particular gdcmviewer: $ gdcmviewer input.dcm 来源: https://stackoverflow.com/questions/19318858/how-to-read-a-dicom-file-of-dynamic-dsa-image

Looking for Signing algorithm that creates 32 or 16 byte keys in Java

无人久伴 提交于 2019-12-11 18:34:59
问题 Cannot match up the size of key generated using public/private keys for licensing application. Ive written a self contained example that creates public/private key, create a license by signing user emailaddress with public key, and then check using public key, license and email address that the license indeed was encoded using private key (Obviously this wouldn't all be in one class usually). This all works but the hex version of the license key is 96 characters (i.e representing 48 bytes/384

Can someone tell me what's wrong with my openssl_sign example

白昼怎懂夜的黑 提交于 2019-12-10 10:38:01
问题 Here's php demo code to sign data with private 2048 bit dsa key: $priv_key = '-----BEGIN DSA PRIVATE KEY----- MIIDVQIBAAKCAQEA/uhSKJA6k5sSnYo+uBgi+mzJ72hqZrWgc+dNLpiiKoHsqDZ6 7kGW0J3wnhU0FxpV2SVL57SfG6dC7GvwsJYBidSEJqe3bARP8WI4yL9wm1PVTqFD 4zNkj1+zUZDWQWpJxaA8I10sJR08/WbwgD63bD6jg4JiPaowFMOrufYAW92hjANQ D7eZ+t0GXAoDB5L6q8btVRfJrGOvkdDN6eyzc7kpJEVC9g1J9Q6glnHQRIGdW4Ot ys/bpv2mGMfEykyTWhcMSLaAZ0YLTyKRfjYm8g7dCFWo3i8Fu0Jr+N3IWZI9Jgw5 lGyUSX8x89gjMsqtcOzcrjOtC51oAh