Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

zk-token-sdk: constant time equality check for elgamal and aes key derivation #27364

Merged
merged 1 commit into from
Aug 24, 2022
Merged

zk-token-sdk: constant time equality check for elgamal and aes key derivation #27364

merged 1 commit into from
Aug 24, 2022

Conversation

samkim-crypto
Copy link
Contributor

Problem

Authenticated encryption and ElGamal secret key can be derived from the signing key for easier key management. Currently, the key derivation function runs in non-constant-time since it uses the vanilla bit-wise equality check.

Summary of Changes

Use the constant time equality provided by the subtle crate for key derivation.

@samkim-crypto samkim-crypto merged commit 5e8b8ab into solana-labs:master Aug 24, 2022
mergify bot pushed a commit that referenced this pull request Aug 31, 2022
…rivation (#27364)

zk-token-sdk: use constant time equality check for elgamal and aes key derivation
(cherry picked from commit 5e8b8ab)
mergify bot added a commit that referenced this pull request Aug 31, 2022
…rivation (backport #27364) (#27491)

zk-token-sdk: constant time equality check for elgamal and aes key derivation (#27364)

zk-token-sdk: use constant time equality check for elgamal and aes key derivation
(cherry picked from commit 5e8b8ab)

Co-authored-by: samkim-crypto <[email protected]>
@samkim-crypto samkim-crypto deleted the zk-token-sdk/auth-encryption-constant-time branch December 1, 2022 00:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant