Questions tagged [secp256r1]
7 questions
3
votes
1 answer
How to perform encryption and decryption in java using secp256r1 Elliptical Curve key pair?
We need to perform encryption/decryption of some string message in java using EC key pair.
key pair has been generated using secp256r1 Elliptical Curve. We just want to use java core utilities.
Encrypting code - in java server side
Decryption code -…
![](../../users/profiles/4021836.webp)
prashant sindhu
- 1,231
- 1
- 13
- 21
2
votes
0 answers
How to convert x509.get_pubkey().type() to human readable string?
I want to print SSL public key type:
certificate = ssl.get_server_certificate(serverAddress)
x509 = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, certificate)
pk = x509.get_pubkey()
print("Certificate public key type : " +…
![](../../users/profiles/4457093.webp)
ipStack
- 61
- 5
2
votes
1 answer
Invalid JWT signature with ES256
I'm trying to manually create an ES256 JWT token. I've a small script written in python which signs a sha256 hash which uses ecdsa-python. But the signature is invalid on jwt.io.
Steps to reproduce:
Create base64 header +…
![](../../users/profiles/11546773.webp)
Sam
- 75
- 1
- 1
- 10
1
vote
0 answers
ECDSA signature verification in Golang using secp256r1/scep384r1/secp521r1 performance difference
I am using Golang to verify digital signatures, signed by ECDSA keys with secp256r1/scep384r1/secp521r1.
The difference in signature verification performance for secp256r1/scep384r1/secp521r1 is shocking.
For Digital signatures which are signed by…
![](../../users/profiles/4247860.webp)
Nitish Bhardwaj
- 843
- 7
- 22
1
vote
1 answer
Convert ByteArray to PrivateKey in Kotlin
I have a private key in raw format, a byte array :
val privKeyIControlUInt8 = byteArrayOfInts(
0x00, 0x00, 0x00, 0x00, 0xB2, 0xC6, 0xFE, 0x9D,
0x1F, 0x87, 0x85, 0x8C, 0x00, 0x00, 0x00, 0x0A,
0x7D,…
![](../../users/profiles/3756317.webp)
Silvering
- 585
- 1
- 4
- 25
0
votes
0 answers
ECDSA on secp256r1, and asn1 encoding
I got following go-program:
package main
import (
"fmt"
"crypto/elliptic"
"crypto/ecdsa"
"crypto/sha512"
"crypto/rand"
"encoding/asn1"
)
func main() {
message := []byte("TollJuhuWurstPizzaSchnellEssen")
hash :=…
![](../../users/profiles/8112003.webp)
Nikolai Ehrhardt
- 91
- 1
- 7
0
votes
0 answers
secp256r1 signature generation and verification in java by using core java packages only
How to generate and verify signature of secp256r1 curve in java? is there a way possible to do this just by using core java packages without any external dependency?
Java version - 1.8
![](../../users/profiles/4021836.webp)
prashant sindhu
- 1,231
- 1
- 13
- 21