Questions tagged [ecdsa]

In cryptography, the Elliptic Curve Digital Signature Algorithm offers a variant of the Digital Signature Algorithm which uses elliptic curve cryptography.

Elliptic Curve Digital Signature is a variant of algorithms. It allows in some cases a smaller public key (for instance, 160 bit in ecdsa compared to 1024 bit in dsa for 80 but security level), and requires the two sides to agree on a curve's field and equation, as well as a prime order on the curve and a multiplicative of the order.

Wikipedia description of Elliptic Curve Digital Signature

700 questions
0
votes
1 answer

OpenSSH ecdsa to BCECPublicKey

I would like to convert an OpenSSH ecdsa public key string(.pub file) to a BCECPublicKey instance. What I want to achieve it the reverse of this code: BCECPublicKey publicKey = ...; byte[] point =…
Jan Wytze
  • 3,307
  • 5
  • 31
  • 51
0
votes
2 answers

How to reconstruct 33-byte compressed NIST P-256 public key from 33 bytes?

Supposed that the 33 bytes encoded Public Key can be created like this: Security.addProvider(provider) val generator = KeyPairGenerator.getInstance("ECDSA") val ecSpec =…
K.Os
  • 5,123
  • 8
  • 40
  • 95
0
votes
1 answer

Python Script for Extracting R & S Values from Scriptsig

I have read a few posts and I am familiar with how scriptsig is formatted and how to extract relevant information from it. The problem I am having is putting it into code. I have read these…
GK89
  • 646
  • 5
  • 29
0
votes
1 answer

How to separate marshalled ecdsa public and private keys in GoLang

So far, I have: key, err := ecdsa.GenerateKey(elliptic.P521(), rand.Reader) if err != nil { os.Exit(-1) } marshalled, err := x509.MarshalECPrivateKey(key) // marshalls data to byte stream if err != nil { os.Exit(-1) } Basically, what I am…
Matt
  • 29
  • 4
0
votes
0 answers

iCloud Web Service Server-to-Server Authentication in PHP

Was it just me, or is there a wider need for a PHP implementation of Apple's iCloud JS library? Specifically the parts needed for server-to-server integration with iCloud not relying on Javascript on the server. As my recent research and experiences…
0
votes
1 answer

Get ethereum address from secpk256 public key not generated using geth crypto package

I have a public key that gets generated using the secpk256 curve, I am trying to determine the ethereum address of this public key. Basically I obtain the key as a simple string and then try to use geths crypto functions to get the public address of…
Khalil Claybon
  • 143
  • 1
  • 8
0
votes
1 answer

ECDSA verification with BouncyCastle: SignatureException: error decoding signature bytes

While trying to verify a signature persisted on a database as a String i get this exception: java.security.SignatureException: error decoding signature bytes. at org.bouncycastle.jcajce.provider.asymmetric.util.DSABase.engineVerify(Unknown…
Andrea T
  • 3,035
  • 4
  • 23
  • 39
0
votes
1 answer

Python code to recover private key from public key

Helllo, I would like to use this code to generate/recover my private key, I'm using Python 3.6 and installed ecdsa package but how should I edit the code with my public key? I'm quite new to python, tried some things but I get the following…
Coinopath
  • 1
  • 1
0
votes
1 answer

Nodejs Crypto ECDH PublicKey Hex as X.509

I am using the prime256v1 curves for generating key pairs and sign using nodejs with the default crypto module. Using crypto let crypto = require('crypto'); let e = crypto.createECDH('prime256v1'); e.generateKeys(); privateKey =…
Sudheesh Singanamalla
  • 2,283
  • 3
  • 19
  • 36
0
votes
1 answer

ECDSA byte array into Private Key Error

I want to save my private key in json file ( hex format ) then read it as PrivateKey. Here Keys generate function public void generateKeyPair() { try { Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); …
Umbator
  • 7
  • 3
0
votes
2 answers

Android Java Spongycastle ECDSA Signature to subtle.crypto Javascript

I'm importing a set of values from my website which is writen in Javascript using subtle.crypto for signing messages. In the QR Code I put the X, Y and D values of the key from Javascript, this is my code to replicate the key: public static KeyPair…
0
votes
0 answers

BouncyCastle implematetion on iOS

I have implemented ECDSA on android using bouncyCastle with the help of this link: https://snipplr.com/view/18368/ Now I am stuck in iOS implementation as bouncyCastle doesn't support on iOS and I want to develop similar input and output…
prajK
  • 31
  • 4
0
votes
1 answer

Generating the 256bit ECDSA private key

I want to make an 256 bit ECDSA private key with secp256k1 curve by php. I used this snippet: $pk_Generate = openssl_pkey_new(array( 'private_key_bits' => 256, 'private_key_type' => OPENSSL_KEYTYPE_EC, 'curve_name' =>…
saeid ezzati
  • 855
  • 11
  • 29
0
votes
0 answers

SSH Server sending different Keys for authentication (RSA & ECDSA) & in RSA mode unable to login

Came across an SSH key based issue : SSH Client : HALP-GRDB SSH Server (has 2 IPs for management & service) : 10.100.113.55 and 10.100.114.55 SSH to the Server IP 10.100.113.55 [root@HALP-GRDB…
John
  • 11
  • 3
0
votes
0 answers

Converting a hex String to x509 encoding

I'm working with some Android Java code that uses ECDSA keys. The code compiles and runs fine, but has some logic errors during the verification process. I want to try using a constant key pair (that's known to be valid) to troubleshoot the…