Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
27 views

ECDsa fails in Azure succeeds elsewhere

I have the following two methods that work both on Mac and on PC. When I deploy it to Azure Web App then it throws a Cryptographic Exception. I validated that the key is correct and accurate. I am a ...
Mitaku's user avatar
  • 43
0 votes
0 answers
24 views

creating signature for ankr wallet/broadcasttransaction

We are currently developing an application which use ankr services in order to communicate with tron network now we want to create transaction. in ankr webservice two steps are required for creating a ...
sajad's user avatar
  • 107
3 votes
1 answer
73 views

Is it possible to update an existing (ECDSA) account on Hedera to use Multisig & Threshold Keys for Signing?

I have an existing ECDSA Hedera account I've created. I would now like to be able to update this account to be a Multisig account (using three other keys) with a threshold of 3/3 (so all keys have to ...
Matt Woodward's user avatar
0 votes
1 answer
45 views

What is the issue with my JWT authorization algorithm in my ASP.NET application for implementing push notifications?

For the past couple of days, I've been following this article on making my own JWT signatures required for web push notifications to be validated by the push service. Example code is written in ...
Sour Lemon's user avatar
0 votes
0 answers
111 views

c++ libsecp256k1 multiplying a point by a scalar

need help writing code. Actually, the code below adds two points on an elliptic curve and multiplies the point by a scalar. I use the library secp256k1bitcoin-core/secp256k1 It adds correctly, but the ...
manu's user avatar
  • 29
0 votes
0 answers
119 views

Local verification of a git commit signature

I'm trying to verify locally the signature of a commit. Following the answer in https://stackoverflow.com/a/68825309, I was able to split into two files the data being signed (commit) from its ...
Coco's user avatar
  • 3
0 votes
0 answers
36 views

Sign MPC Transaction for a ECDSA Key using DFNS - web3py

I want an unsigned payload to sign a transaction later with a ECDSA Private key. This is a MPC wallet so I don't have the private key directly. The process is: I send the unsigned transaction payload ...
Pavneet Singh's user avatar
0 votes
1 answer
55 views

Web Crypto API ECDSA and OpenSSL

I created ECDSA key pair using openssl openssl ecparam -name prime256v1 -genkey -noout -out ecdsa_private_key.pem openssl ec -in ecdsa_private_key.pem -pubout -out ecdsa_public_key.pem and using ...
vanilla's user avatar
  • 85
1 vote
1 answer
77 views

ECDSA signature getting truncated

I am trying to create an ECDSA signature and it's getting created perfectly most of the time but sometimes it's getting truncated randomly like the r and s value are both supposed to be 48 but ...
Ajith Nair's user avatar
0 votes
1 answer
58 views

ECDsa Signature Validation With SHA512

Here is a C# method that validates a webhook signature. The signature is generated by the Ubble API. private bool SignatureValid(string rawBody, string signatureHeader, string pubKey) { string[] ...
Andrey Belenkiy's user avatar
0 votes
1 answer
54 views

Tomcat - Java11 - Unable to present ECDSA certificate during SSL handshake as client

Recently, our organisation migrated one of our Java application codes from Java 8 to Java 11. Now, we are facing one unique issue with our application. Our tomcat server is running into a strange ...
Brinal's user avatar
  • 182
0 votes
1 answer
119 views

ECDSA hash signing with Java

I have a Java function that can sign a given hash and a Python script that can perform XAdES signature, embedding the signature into a container and returning an adoc file. There's something wrong ...
Terlan Ismayilsoy's user avatar
1 vote
1 answer
152 views

EVP_DigestVerifyFinal fails - ECDSA P-256/SHA-256 with OpenSSL (Libcrypto)

While learning Libcrypto I reached a point where I need some external input. I've the following working python example: #!/usr/bin/env python3 import hashlib from ecdsa import curves, VerifyingKey ...
Andre Buschermöhle's user avatar
1 vote
1 answer
94 views

Validate ECDsa with SHA256 Signature in .NET

For a project I'm working on, I need to verify signatures of data records. We have a legacy project that makes use of an imported DLL of which the source code is no longer available. We are now ...
wvdhouten's user avatar
  • 218
0 votes
0 answers
75 views

How to calculate public key of same private key on two different ECDSA Curves?

I want to calculate the public key of the same private key on two ECDSA Curves? I need to get a valid public key for two (2) curves by using the public key one (1) curve. I need to get a valid public ...
Dex's user avatar
  • 1
0 votes
0 answers
73 views

Cannot verify digital signature using go-ethereum

I am building a dapp with wallet authentication from scratch for that client will generate digital signature using its private key and a message from server. Then the server will verify the digital ...
Atharva Jadhav's user avatar
1 vote
1 answer
331 views

How to sign a data using ECDSA private key with the P-256 (secp256k1) curve in Android Kotlin?

I wanted to sign a hex data using ECDSA private key with the P-256 (secp256k1) curve. But most of the methods in Android use PKCS#8 encoded private key for signature generation. How to convert an ...
Nahan R N's user avatar
0 votes
1 answer
179 views

ECDSA signing using Rust P256 crate

I am writing a small blockchain simulation program in Rust and am struggling with the ECDSA signing key so I can sign transactions that are added to the blockchain. I have the following key pair ...
PumpkinBreath's user avatar
0 votes
1 answer
81 views

Unable to verify EDSCSA SHA-256 signature

I am trying to verify a ECDSA, SHA-256 key. But i am unable to do so with the web crypto API. My code looks like this- export async function verifySignature( requestData: string, ...
Suman Maharjan's user avatar
0 votes
1 answer
100 views

Verify with PHP ECDSA signature generated with Web Crypto API

I have the following task. I have to generate ECDSA key pair. Sign data with the private key and verify the signature in PHP. For some unknown for me reason i am unable to verify the data successfuly. ...
David Pankov's user avatar
0 votes
0 answers
83 views

TypeError: Cannot read properties of undefined (reading 'randomPrivateKey') in ethereum-cryptography/secp256k1 module

When attempting to call the randomPrivateKey function from the 'secp256k1' module, I have an issue that is preventing me from generating a private key. const secp = require("ethereum-cryptography/...
Amine Merad's user avatar
0 votes
1 answer
61 views

Why does verification of ecdsa signature fail - python?

I try to build and verify a ecdsa signature...and... I fail. I want do built a signature, that validates against a given validation method (like the one "def validate(signature, payload, certID):&...
Killrogg's user avatar
0 votes
0 answers
91 views

Comparing .NET RSA and ECDSA signature algorithms

In System.Security.Cryptography, the RSA and ECDsa classes both implement SignData and SignHash methods. Aligning with cryptographic standards, the SignData methods require a HashAlgorithmName, since ...
Matthew Layton's user avatar
-2 votes
1 answer
74 views

Consistent cryptography libraries to share keys between Python and Javascript

I am looking for cryptography libraries that can yield consistent results in both Python and Javascript with regards to generating public-key from private-key, and, deriving shared-key. Both ...
Zenin Easa Panthakkalakath's user avatar
0 votes
0 answers
89 views

How to create HD keys for ECDSA P256 in TypeScript?

I'm trying to build an algorithm, that generates HD keys based on bip32 mnemonic phrase for ECDSA_P256 (i'm building a wallet for Flow network). I googled some samples and tried to use it, but it ...
John's user avatar
  • 354
0 votes
0 answers
84 views

Microsoft Root Program - Signatures using elliptical curve cryptography (ECC) are not supported in Windows - What does it mean?

Can someone explain the note in Microsoft Root Program (https://learn.microsoft.com/en-us/security/trusted-root/program-requirements): B. Signature Requirements Expand table Algorithm All Uses ...
Vladimir Vuković's user avatar
0 votes
0 answers
58 views

PHP openssl lib / ECDSA / How set random number for openssl_sign function?

How set (or get after signing) random number for function openssl_sign? $pkEcPem = "-----BEGIN EC PRIVATE KEY-----302e0201010420...a00706052b8104000a-----END EC PRIVATE KEY-----" $pk = ...
Andriy's user avatar
  • 11
2 votes
0 answers
98 views

Ethereum: why are the addresses still generated from the uncompressed public keys?

Trying to generate an Ethereum address from the public key, I got this very accurate answer: ... (address) must be generated on the basis of the uncompressed key (0x04|x|y). The leading marker byte ...
lcnicolau's user avatar
  • 3,428
1 vote
0 answers
88 views

Wagmi's signTypedDataAsync does not match with solidity's ECDSA's recover

I am getting signature by using Wagmi's signTypedDataAsync function as below. takerOrder.signature = await signTypedDataAsync({ types: { Order: [ {name: 'salt', type: 'uint256'}...
jantektsan's user avatar
0 votes
1 answer
127 views

How to correctly CryptoConfig.AddAlgorithm for ECDsa in C# .NET?

I have a XMLDocument that was signed with edcsa-sha384, out of the box .NET SignedXml does not support that algorithm, so I followed this article (https://www.scottbrady91.com/c-sharp/ecdsa-xml-dotnet)...
codenamezero's user avatar
  • 2,949
1 vote
0 answers
172 views

Minerva timing attack on P-256 in python-ecdsa

I received these security warnings from Defendabot of Github Security. Severity : High (7.4 / 10) python-ecdsa has been found to be subject to a Minerva timing attack on the P-256 curve. Using the ...
Lee Giho's user avatar
0 votes
0 answers
68 views

ECDSA Public Keys can be tampered with? [duplicate]

I am new to ECDSA. I am verifying a hash's signature. I have a sample code. It is all ok to create a signature and verifying it: .... //Signing byte[] ecdsa_sig = ecdsa.SignHash(hash256); ...
toto''s user avatar
  • 1,536
0 votes
0 answers
75 views

Why are digital signature algorithms in .NET restricted to using only platform implemented hash algorithms?

The following C# code generates an ECDsa signature: using ECDsa algorithm = ECDsa.Create(); byte[] data = Encoding.Default.GetBytes("Hello, World!"); byte[] signature = algorithm.SignData(...
Matthew Layton's user avatar
2 votes
1 answer
405 views

How do I convert from an *ecdsa.PublicKey to crypto/ecdh *ecdh.PublicKey?

This is my old code. PKCS8GCSprvkey, _ := x509.ParsePKCS8PrivateKey([]byte(privateKeyFile))     GCSprvkey, _ := PKCS8GCSprvkey.(*ecdsa.PrivateKey)       GCSpubkey, _ := os.ReadFile("...
Julia Nguyen's user avatar
1 vote
1 answer
94 views

ECDsa signed PDF showing "Document has been altered or corrupted since it was signed" error in Adobe Reader

I've signed a PDF document with iText 8.0.2 using an ECDSA (SHA-256) certificate. Unfortunately the Adobe Reader says the signature is invalid, with the reason "Document has been altered or ...
Imre Tessényi's user avatar
0 votes
1 answer
140 views

Cross-Environment ECDSA Signature Verification Fails Between React and Python

I'm working on a project where I need to generate an ECDSA signature in a React application and then verify it in a Python backend. The signature generation and verification work within their ...
Muppet's user avatar
  • 5,979
0 votes
1 answer
580 views

How to properly extract public key from attestationObject?

I'm digging around passkeys and can't find a way to properly extract the Public Key from the attestationData sent from the client during the attestation (rigistration) step. Most tutorials I found ...
Leo Letto's user avatar
  • 1,796
0 votes
0 answers
324 views

Convert a hex ECDSA private key to PEM format (OpenSSL)

I'm trying to use this ECDSA private key provided by ietf.org in OpenSSL (https://datatracker.ietf.org/doc/html/rfc6979#appendix-A.2.8): x = 09A4D6792295A7F730FC3F2B49CBC0F62E862272F I'd like to ...
izzylp's user avatar
  • 1
0 votes
0 answers
135 views

p256 signature in iOS Swift is 70 or 71 bytes instead of 64 bytes in Rust

I have the following Swift code to generate a random key and then sign a message: let privateKeyAttributes = [ kSecAttrIsPermanent as String : true ] as [String : Any] let attributes: [String: ...
sudoExclamationExclamation's user avatar
0 votes
0 answers
274 views

Openssl command to generate NIST key pair for ECDSA P384 curve

Need to know is the command secp384r1 in openssl generates ECDSA key pair based on ECCNIST or ECCSEC standard? I am using the below command for generating the ECDSA p384 key pair. openssl ecparam -...
Venky's user avatar
  • 9
3 votes
1 answer
809 views

Signing JWT using ES256 on Android

I am trying to generate a JWT and to sign it with a private key, on Android and I am failing to do so because online decoders such as jwt.io or token.dev say that they could not verify the signature. ...
Mackovich's user avatar
  • 3,493
0 votes
1 answer
223 views

Reproducible Elliptic Curve Digital Signature algorithm parameters in C#

Using the following code, I can generate the Elliptic Curve Digital Signature Algorithm (ECDSA) parameters (i.e., public and private keys). using var ecdsa = ECDsa.Create(ECCurve.NamedCurves.nistP384);...
Dr. Strangelove's user avatar
4 votes
1 answer
309 views

Can't verify Go generated ECDSA signature with JS

I've got a small issue, (My assumption is that there is one small thing holding me back but I have no clue what), as mentioned in the title. I will start by giving an overview about what I'm doing and ...
Flajt's user avatar
  • 85
0 votes
0 answers
81 views

How to genernate a ECIES function in Java?

I am busy in a decryption of encrypted data work. Another business provider has provided me with a Private_key.pem file, and then I should use it to decrypt the encrypted data they provided. They have ...
chaos's user avatar
  • 1
0 votes
1 answer
604 views

Golang Extract ECDH Private Key

I know that ECDH private key is a superset of public key. The task is to extract private key ecdh. Here is the way how to generate PublicKey: import ( "crypto/ecdh" "...
27P's user avatar
  • 1,433
1 vote
0 answers
213 views

generate ECDSA P384 digest in Go fully compatible with openssl

I need to sign data using ECDSA P384 algorithm in Go. When I use native Go crypto/ecdsa to sign and verify, it works, but openssl cannot verify created signature. If I run openssl.exe as os.exec ...
M. Glushkin's user avatar
0 votes
1 answer
72 views

Artifactory and ECDSA Signing Keys

I am trying to upload an ECDSA signing key to Artifactory Cloud, and am having zero success in finding any documentation that would help me figure out what I'm doing wrong. Anyone have clues or ...
Trey Valenta's user avatar
0 votes
0 answers
63 views

Verify signature issue between jsrsasign ECDSA sample web and openssl tool

I followed the steps in "https://kjur.github.io/jsrsasign/sample/sample-ecdsa.html": openssl ecparam -genkey -name secp256r1 -out k.pem And I get: "using curve name prime256v1 instead ...
Xinwei Gong's user avatar
0 votes
1 answer
120 views

"Incorrect" Password Loading Encrypted OpenSSH Key

I am trying to set up an application to use a Chilkat.SshKey to read my ECDSA 521-bit OpenSSH key for authentication to a new SSH server. I've read documentation and examples from the developers but I ...
G_Hosa_Phat's user avatar
  • 1,070
0 votes
0 answers
115 views

To get feedback on the position of two secp256k1 public keys

Hey guys I'm trying to develop a feedback system on the position of two secp256k1 public keys. and based on what I have tried the best feedback is the ETA. for example if the time taken to reach from ...
Melwyn's user avatar
  • 1

1
2 3 4 5
15