Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encryption functionality #103

Closed
VictorKabata opened this issue Jul 29, 2024 · 5 comments
Closed

Encryption functionality #103

VictorKabata opened this issue Jul 29, 2024 · 5 comments

Comments

@VictorKabata
Copy link

First of all, awesome lib you have here.

Does the library provide encryption functionality after getting the Rsa public key from a X509 certificate?

Something like:

val cipher: Cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding")
cipher.init(Cipher.ENCRYPT_MODE, rsaPublicKey)
val encryptedPayload: ByteArray = cipher.doFinal(initiatorPasswordByteArray)
@JesusMcCloud
Copy link
Collaborator

We're working on it (see draft pull request). but it is going to take a little, since we want to support attestation / deviceCheck and the possibility for remote crypto providers out of the box. You can still use the platform functionality in the meantime

@JesusMcCloud
Copy link
Collaborator

To be more precise: Once signing is there, asymmetric encryption comes easy-peasy. Symmetric encryption is planned for later. Since you are asking about asymmetric encryption, some time in September might work out for a release with that feature set. That depends on how fast we get signing going, though

@JesusMcCloud
Copy link
Collaborator

Signing is progressing nicely. ECDH key agreement and symmetric encryption is planned next. Asymmetric encryption might be possible in parallel. Out of curiosity: why do you want to RSA encrypt?

@JesusMcCloud
Copy link
Collaborator

RSA encryption has no ETA. Symmetric encryption will soon be released, though

@JesusMcCloud
Copy link
Collaborator

closing in favour of #112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants