712 questions
0
votes
1
answer
70
views
PKCS11 error at KeyStore.getEntry(alias, null) at Java 22 statement
I'm developing SOAP envelope signing code in a Java environment. My code running properly when I use the RSA_SHA256 signature algorithm with proper smart card based pkcs11. I have another smart card ...
1
vote
1
answer
90
views
Why does the round trip from creation of self-signed EC X509Certificate to PEM file to load fails in .NET 9?
Here is the .NET 9 code that creates a self-signed EC cert, persists to a .PEM file and attempts re-create the certificate from the .PEM file.
// Generate ECC key pair
using var ecdsa = ECDsa....
1
vote
1
answer
205
views
Validating an Ed25519 public key (isOnCurve check) in Java
Is there a standard way to validate an Ed25519 public key (check that it's really a point on the curve and not some random bytes) using the standard Java Crypto APIs and/or BouncyCastle?
I found a ...
0
votes
0
answers
39
views
BlockCypher - error: 'Error validating generated transaction' - Node.js
I tried so many different variations with and without canonical, adding SIGHASH_ALL etc nothing works same response:
"error: 'Error validating generated transaction: Error running script
for ...
2
votes
1
answer
203
views
Lattice attack against single signature : how to modify the b1 and c1 constants in order to get the script working against smaller leaks?
The following script I found here. The idea explained here is that if for a single signature both the high order bits of the private key and nonce are set to 0, then it’s possible to combine those 2 ...
0
votes
1
answer
134
views
EC Diffie Hellman on Android
I have a problem verifying key exchange with the server using Elliptic Curve Diffie Hellman. The key I sent doesn't work for some reason, the server can not use it or recognize it, and I don't know ...
0
votes
0
answers
46
views
Point halving in elliptic curve cryptography [duplicate]
In elliptic curve cryptography there is scalar multiplication using point addition and point doubling.
Is there anyway of point halving. To make it simple, if a point is P, then is there any way of ...
0
votes
2
answers
414
views
How to change the format that Java+BouncyCastle writes my private key?
I have a pkcs12 file that contains a public and private key pair that I created using openssl. My Java program reads in the pcks12 file and saves the public and private keys separately for use by the ...
0
votes
0
answers
379
views
How can I do an ECDH key exchange with OpenSSL 3.0
Most of the API that EC_KEY* functions like EC_KEY_get0_public_key have been deprecated in OpenSSL 3.0, so as far as I know there's no way but to use the EVP interface. I want to export the public key ...
1
vote
1
answer
493
views
go parse in ecdsa public key in uncompressed hex format to ecdsa.PublicKey
From a third party I'm receiving an ecdsa public key in uncompressed format
I wrote a basic parser (without any checks) that works for the specific key I am getting:
func HexToPublicKey(data []byte) *...
1
vote
0
answers
204
views
Signing ECDSA P256 Sha256 using the ecdsa crate computes faulty signature
So I'm attempting to reproduce the steps in RFC 7515 Section A.3.1 in rust.
I have been struggling to produce the correct R and S values even with a very minimal example that just takes the raw ...
-1
votes
1
answer
108
views
Trying to find debug in the reverse function
Code
<?php
$old_point['x'] = gmp_init('55066263022277343669578718895168534326250603453777594175500187360389116729240');
$old_point['y'] = gmp_init('...
0
votes
0
answers
63
views
Is XML Encryption 1.1 Key Agreement test cases decryption possible in .NET?
I'm working on implementing an XML encrypting / decrypting application in .NET with support for ECDH-ES because clients will use EC key pairs to encrypt / decrypt messages, and there's no official ...
0
votes
1
answer
208
views
ECPrivateKey to ECPublicKey without BouncyCastle
I'm trying to get the public key of EC from a private key.
I already do it using Python, Go which works fine, but I have not been able to do it in Java/Kotlin.
here is the python version:
import ...
0
votes
0
answers
138
views
How to vectorize Jacobi elliptic function calls in python with negative arguments
I've got a differential equation which I have solved exactly in terms of Jacobi elliptic functions. Now I'd like to efficiently evaluate the (exact) solution numerically for the sake of plotting and ...