Questions tagged [secp256r1]
8 questions
4
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 -…

prashant sindhu
- 1,769
- 2
- 15
- 25
4
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 +…

Sam
- 338
- 1
- 4
- 17
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 : " +…

ipStack
- 381
- 1
- 12
2
votes
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…

Nitish Bhardwaj
- 1,113
- 12
- 29
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,…

Silvering
- 756
- 1
- 6
- 33
0
votes
0 answers
How to get EC 256r1 public key generated from Android keystore in byteArray on length 65 (uncompressed)
I use android keystore to generate EC public key. But the size of public key byteArray is 91.
When I use bouncyCastle to generate EC public key, the size is 65.
I want to get EC public key with 65 size byteArray using Android keystore. Any…

Coder Nitro
- 1
- 1
0
votes
1 answer
(ECDSA-BouncyCastle)Cryptographic Algorithm Validation Program(CAVP) Testing: Digital Signatures
We use ECDSA with secp256r1 in our project.Also we are using Bouncy Castle libraries. How can I CAVP using NIST test vectors?
I am newbie.Probably the answer is simple.
The link with the test vector is…

Naim OZBAG
- 1
- 1
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 :=…

Nikolai Ehrhardt
- 570
- 4
- 14