6,963 questions
0 votes
0 answers
75 views
Dart SecurityContext not accepting programmatically generated RSA private key for Android TV Remote Protocol
I'm building a Flutter app that uses Android TV Remote Protocol v2. The app requires client certificates for authentication. When I use a manually created certificate (placed in assets), everything ...
1 vote
0 answers
78 views
RSA based certs failing during TLS after removal of RSA-PSS ciphers from ClientSignatureAlgorithm
For FIPS mode, I added ClientSignatureAlgorithm in opensslcnf.txt. This change was done for FIPS mode using the crypto-policies package. The support ciphers for ClientSignatureAlgorithms are same as ...
0 votes
1 answer
133 views
rsa.ImportFromPem(privateKeyString) throws strange error in ASP.NET Core 6.0 Web API [closed]
using (RSA rsa = RSA.Create()) { rsa.ImportFromPem(privateKeyString); byte[] dataToSign = Encoding.UTF8.GetBytes(signData); byte[] signedData = rsa.SignData(dataToSign, HashAlgorithmName....
0 votes
0 answers
90 views
Get date from TimeStampToken equivalent in Typescript
I have a web service that returns a Timestamp Token as a base64 string, I have this code in Java using BouncyCastle to parse, open and extract the date: String timestamp = "..."; byte[] ...
0 votes
0 answers
61 views
How to securely connect Flutter to a Node.js server with TLS or RSA encryption?
I'm building a Flutter app that needs to send user data (like name and street) to a Node.js backend server. Currently, the data is sent via URL like this: http://192.168.1.126:8080/save?name=toto&...
1 vote
1 answer
82 views
inconsistency in RSA algorithm when using pycryptodome
I am using python3-pycryptodome version 3.9.0-150200.9.1 on openSUSE Leap version 15.6. While using Crypto.PublicKey.RSA class, I noticed that generated RSA keys have some algorithmic inconsistency. ...
0 votes
0 answers
99 views
How to extract private part of RSA key from Azure Key Vault?
I'm using Java & Spring Boot for an endpoint which sole purpose is to create, sign and issue JWT. The library used for creating JWTs is java-jwt. I have a problem creating a com.auth0.jwt....
0 votes
0 answers
74 views
TCP socket server hangs randomly and rsa Decryption error raised randomly
I'm trying to make a server for a password manager I'm building, but the server seems to hang randomly and it seems to randomly throw rsa.pkcs1.DecryptionErrors randomly too. I did recently switch ...
0 votes
0 answers
92 views
Cybersource microform upgrade from V0.4 to V2 -Validation of the Context key with the public key is getting failed
Here is the class that am using ,based on the flow that I have ,the validation always fails and return false in the line boolean isValid = signature.verify(signatureBytes); LOG.info("Signature ...
0 votes
0 answers
129 views
AES + RSA OTA updater
I am doing an OTA updater for an ESP32. I am using AWS Lambda to encrypt a presigned URL that is being generated for a certain element from an S3 bucket. I am first doing an AES encryption, and then ...
0 votes
0 answers
87 views
RSA with nodejs and flutter Error during decryption (probably incorrect key). Original error: Error: error:02000079:rsa routines::oaep decoding error
I am experimenting with developing rsa with flutter and nodejs. public.pem and private.pem are same for both. Both the code are working fine when run in same language. but when transmitting data over ...
0 votes
0 answers
117 views
TR34 Sample Enveloped Data
I have a TR34 sample enveloped data from X9 TR34–2012. I am trying to decrypt it, but I am not sure which part of the token contains encrypted ephemeral key and which exact rsa algorithm is used for ...
0 votes
0 answers
53 views
Input format for public key in EU command on payShield 10K
I'm working with a Thales payShield 10K and trying to use the EU command to translate a public key under new LMK. I currently have the key available in PEM, DER, and HEX formats. However, according to ...
-2 votes
1 answer
110 views
Key unwrapping fails
I want to protect a RSA private key stored in localStorage by wrapping it with a key derived from the user's password. However when unwrapping the key the error DOMException: An invalid or illegal ...
1 vote
1 answer
90 views
Can't align RSA encryption in Python and Kotlin
I would like to add RSA encryption in my server (Python FastAPI) and my Android app. But the encryption didn't work as the way I expected. I already have AES-GCM encryption/decryption working between ...