Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

feat: add KMS key type for X25519 key #2486

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

baha-ai
Copy link
Contributor

@baha-ai baha-ai commented Jan 25, 2021

This is the last change about X25519 keys for ECDH KW.
It updates the old ECDH key types into the new type names
and add the X25519 key type as well.

It includes JWE encryption/decryption updates to support
XC20P content encryption along with recipients kw using both
NIST P curved keys and X25519 keys.

Also part of this change is the removal of remnant code
from legacyKMS which was removed from the framework last
year.

closes #2447
closes #1684
closes #815
closes #475
closes #596
also part of #857

Signed-off-by: Baha Shaaban [email protected]

@baha-ai baha-ai self-assigned this Jan 25, 2021
@baha-ai baha-ai added the enhancement New feature or request label Jan 25, 2021
@baha-ai baha-ai added this to the v0.1.6 milestone Jan 25, 2021
@codecov
Copy link

codecov bot commented Jan 25, 2021

Codecov Report

Merging #2486 (c5c0f56) into main (34e1819) will decrease coverage by 0.00%.
The diff coverage is 88.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2486      +/-   ##
==========================================
- Coverage   89.29%   89.29%   -0.01%     
==========================================
  Files         250      250              
  Lines       18851    18941      +90     
==========================================
+ Hits        16833    16913      +80     
- Misses       1187     1195       +8     
- Partials      831      833       +2     
Impacted Files Coverage Δ
pkg/doc/jose/common.go 90.00% <ø> (ø)
pkg/doc/jose/jwe.go 100.00% <ø> (ø)
pkg/doc/util/jwkkid/kid_creator.go 80.68% <68.75%> (+5.27%) ⬆️
pkg/doc/jose/decrypter.go 81.69% <86.66%> (+0.13%) ⬆️
pkg/doc/jose/jwk.go 95.19% <89.28%> (-2.18%) ⬇️
pkg/doc/jose/encrypter.go 86.12% <100.00%> (+1.54%) ⬆️
pkg/internal/cryptoutil/utils.go 95.34% <100.00%> (-1.84%) ⬇️
pkg/kms/localkms/localkms.go 87.79% <100.00%> (+0.14%) ⬆️
pkg/kms/localkms/pubkey_writer.go 69.86% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34e1819...c5c0f56. Read the comment docs.

@DRK3
Copy link
Contributor

DRK3 commented Jan 25, 2021

Left minor comments only

@baha-ai baha-ai changed the title feat: add KMS key type for X25519 key WIP - Do Not Merge - feat: add KMS key type for X25519 key Jan 25, 2021
@baha-ai
Copy link
Contributor Author

baha-ai commented Jan 25, 2021

This PR requires additional updates in doc Jose encrypter/decrypter to account for X25519 support for packing (recipient key derivation using X25519 keys, not only NIST P curved keys). I will be pushing an update soon.

@baha-ai baha-ai changed the title WIP - Do Not Merge - feat: add KMS key type for X25519 key feat: add KMS key type for X25519 key Jan 26, 2021
@baha-ai baha-ai force-pushed the chachajwe branch 2 times, most recently from f4516fe to 244d9b8 Compare January 26, 2021 19:38
This is the last change about X25519 keys for ECDH KW.
It updates the old ECDH key types into the new type names
and add the X25519 key type as well.

It includes JWE encryption/decryption updates to support
XC20P content encryption along with recipients kw using both
NIST P curved keys and X25519 keys.

Also part of this change is the removal of remnant code
from legacyKMS which was removed from the framework last
year.

closes hyperledger-archives#2447
closes hyperledger-archives#1684
closes hyperledger-archives#815
closes hyperledger-archives#475
closes hyperledger-archives#596
also part of hyperledger-archives#857

Signed-off-by: Baha Shaaban <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
4 participants