Skip to content

rgw: Add AES-256-GCM support for RGW server-side encryption - #67246

Merged
cbodley merged 11 commits into
ceph:mainfrom
mheler:wip-rgw-sse-gcm
May 27, 2026
Merged

cbodley merged 11 commits into
ceph:mainfrom
mheler:wip-rgw-sse-gcm

Conversation

@mheler

@mheler mheler commented Feb 6, 2026 •

Copy link
Copy Markdown
Contributor

Add GCM as an alternative to the existing CBC cipher for SSE-C, SSE-KMS, SSE-S3, and RGW-AUTO. GCM provides authenticated encryption, meaning it detects tampering during decryption rather than silently returning corrupted data.

The new rgw_crypt_sse_algorithm config option controls which cipher is used for new uploads. The default remains aes-256-cbc for backward compatibility with older RGW versions in mixed clusters. Once all nodes are upgraded, administrators can enable aes-256-gcm for new objects. Existing CBC-encrypted objects continue to decrypt correctly regardless of this setting.

GCM encrypts in 4KB chunks, each producing 4112 bytes of ciphertext (4096 plaintext + 16-byte authentication tag). This means encrypted objects are larger than their plaintext. To preserve correct behavior:

  • RGW_ATTR_CRYPT_ORIGINAL_SIZE stores the plaintext size
  • Content-Length and bucket listings report the plaintext size
  • Range requests translate plaintext offsets to storage offsets

Each object gets a random 12-byte nonce stored in RGW_ATTR_CRYPT_NONCE. This nonce serves two purposes: it's combined with chunk indices to derive unique IVs for each encrypted block, and for SSE-C it's included in the key derivation to bind ciphertext to object identity. Moving encrypted data at the RADOS level causes decryption to fail rather than silently producing garbage.

Multipart uploads derive per-part keys using HMAC(ObjectKey, part_number) and include the S3 part number in IV derivation to guarantee unique IVs across parts. S3 allows non-contiguous part numbers (uploading parts 1, 3, 5 and skipping 2, 4), but the manifest only tracks a starting part number and assumes sequential numbering. To handle this, CompleteMultipartUpload stores the actual part numbers in RGW_ATTR_CRYPT_PART_NUMS. At decryption time, part numbers are read from this attribute rather than calculated from the manifest, ensuring correct key and IV derivation regardless of which parts were uploaded. For single-part reads (GET ?partNumber=N), the attribute is excluded and the requested part number is used directly.

The implementation uses generic AEAD abstractions (is_aead_mode(), aead_plaintext_to_encrypted_size(), etc.) so that adding other authenticated ciphers like ChaCha20-Poly1305 in the future requires only implementing the cipher itself — the size handling, range request translation, and multipart machinery will work unchanged.

The CryptoAccel plugin system has been extended to support GCM, following the same pattern established for CBC. ISA-L provides hardware-accelerated encryption with thread-local key caching, falling back to OpenSSL's EVP API when unavailable. QAT stubs return false since GCM requires different session setup than CBC; a note has been added to the QAT documentation clarifying this limitation.

Two new teuthology suites and unit tests exercise the GCM support: crypt-gcm runs all standard s3tests encryption tests with GCM instead of CBC, and multisite-crypt-gcm verifies that GCM-encrypted objects replicate correctly between zones with ETag verification enabled.

LLM-assisted development: Claude was used to help design and implement this feature. All generated code was thoroughly reviewed by the author and validated through manual, unit tests and teuthology integration suites.

Co-Authored-By: Claude Opus 4.5 [email protected]

Fixes: https://tracker.ceph.com/issues/73221

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions

github-actions Bot commented Feb 6, 2026 •

Copy link
Copy Markdown

Config Diff Tool Output

+ added: rgw_crypt_sse_algorithm (rgw.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

@mheler
mheler force-pushed the wip-rgw-sse-gcm branch 7 times, most recently from 9011b5a to 9727391 Compare February 10, 2026 19:36
@mheler
mheler requested a review from anthonyeleven February 16, 2026 12:28
@mheler

mheler commented Feb 20, 2026

Copy link
Copy Markdown
Contributor Author

Rebase with main

@mheler

mheler commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor Author

I have a test which is not part of this pr that benchmarks the cbc & gcm encrypt/decrypt calls.

On a Xeon E5-1650 these are the results I observed (in MB/s).

DataSize CBC-Encrypt CBC-Decrypt GCM-Encrypt GCM-Decrypt
4.00 KB 461 1627 2767 2647
64.00 KB 561 3372 3080 3005
256.00 KB 570 3624 3108 2989
1.00 MB 572 3760 3128 3022
4.00 MB 573 3776 3129 3017
16.00 MB 573 3613 3015 2975

Accelerator: crypto_isal

On a newer cpu (i7-14700KF), the results are below

DataSize CBC-Encrypt CBC-Decrypt GCM-Encrypt GCM-Decrypt
4.00 KB 1158 3638 5534 5341
64.00 KB 1524 7410 6108 5846
256.00 KB 1560 8303 5949 5747
1.00 MB 1561 8298 5947 5325
4.00 MB 1569 8000 5754 5614
16.00 MB 1558 7917 5860 5521

Accelerator: crypto_isal

@mheler
mheler requested a review from markhpc March 4, 2026 13:36
@mheler

mheler commented Mar 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Development of this work was inspired by #67052 and Kyle Bader's draft commit mmgaggle@68cf740. Input was also provided by Clyso (David Mohen).

mheler added 8 commits May 20, 2026 13:31
Reduce per-chunk overhead by hoisting accelerator resolution and
EVP context creation out of the chunk loop, replacing ct_memeq with
memcmp, linearizing input before the chunk loop, and eliminating
unnecessary tag copies in the ISA-L path. Also rewrites IV derivation
to use cached native arithmetic instead of a per-chunk byte-at-a-time
loop, and aligns the output buffer to 64 bytes for optimal SIMD stores.

Signed-off-by: Matthew N. Heler <[email protected]>
The bucket name isn't globally unique ie different tenants can
have the same bucket name. Using bucket_id (which is globally
unique and includes tenant context) prevent cross-tenant key
collisions in the HMAC-SHA256 derivation.

Signed-off-by: Matthew N. Heler <[email protected]>
Move randomness from the GCM IV into key derivation. Each object
now gets a 32-byte random salt stored in RGW_ATTR_CRYPT_SALT, fed
into HMAC-SHA256 alongside bucket_id and object name to produce a
unique per-object key. The GCM IV is a deterministic counter from
the chunk position, which is safe because the key never repeats.

All GCM modes (SSE-C, SSE-KMS, SSE-S3, RGW-AUTO) now go through
derive_object_key() before any encrypt or decrypt operation.

Rename AES_GCM_NONCE_SIZE to AES_GCM_IV_SIZE across CryptoAccel
backends (isa-l, openssl, qat) to reflect what it actually is.

Signed-off-by: Matthew N. Heler <[email protected]>
Benchmark for measuring AES-256-CBC and AES-256-GCM throughput with
hardware acceleration. Supports multi-threaded runs across various
chunk sizes.

Signed-off-by: Matthew N. Heler <[email protected]>
The SLO/DLO size check was converting encrypted size to plaintext
via rgw_get_aead_decrypted_size(), which overestimates for multipart
objects without CRYPT_PARTS. Use the stored CRYPT_ORIGINAL_SIZE
attr instead, it's exact and already in the attrs.

Signed-off-by: Matthew N. Heler <[email protected]>
Add stateless helpers that project plaintext byte ranges to on-disk
byte ranges for compressed and encrypted objects. fixup_range()
delegates to these for range computation.

Signed-off-by: Matthew N. Heler <[email protected]>
Store the plaintext and encrypted block sizes at upload time so
future cls prefetch ops can compute on-disk read ranges from
xattrs without instantiating a cipher.

Only written for size-expanding ciphers (GCM). CBC objects have
no attr — plaintext and ciphertext sizes are identical.

Signed-off-by: Matthew N. Heler <[email protected]>
Move the ISA-L GCM key cache to the heap with only a pointer in TLS.

Simplify the IV cursor to use hi=part_number, lo=chunk_index instead
of bit-packing both into a single field.

Replace manual byte-shifting in AAD encoding with boost::endian.

Signed-off-by: Matthew N. Heler <[email protected]>
@mheler
mheler force-pushed the wip-rgw-sse-gcm branch from 10e33fd to 4ecaf8a Compare May 20, 2026 18:31
@mheler

mheler commented May 21, 2026

Copy link
Copy Markdown
Contributor Author

@mattbenjamin teuthology passed for the rgw:crypt suite

https://pulpito-ng.ceph.com/runs/soumyakoduri-2026-05-21_09:57:50-rgw:crypt-wip-rgw-sse-gcm-distro-default-trial

I additionally ran a local teuthology with the rgw:verify, rgw:lifecycle and rgw:dedup with an override to set to enable gcm rgw crypt sse algorithm = aes-256-gcm. Those additionally passed.

(recommended, provides authenticated encryption). Existing encrypted objects
are always decrypted using the algorithm specified in their metadata,
regardless of this setting.
default: aes-256-cbc

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the V release we should consider changing this default to gcm, assuming we've ironed out any bugs uncovered by testing in U

@batrick batrick added this to the umbrella milestone May 26, 2026
@batrick

batrick commented May 26, 2026

Copy link
Copy Markdown
Member

Please share regular updates on this umbrella branch blocker in #ceph-upstream-releases-umbrella on Slack.

@cbodley

cbodley commented May 27, 2026

Copy link
Copy Markdown
Contributor

@cbodley

cbodley commented May 27, 2026

Copy link
Copy Markdown
Contributor

rgw suite pending in https://pulpito.ceph.com/cbodley-2026-05-27_15:32:59-rgw-wip-73221-distro-default-trial/

that showed a ton of dns failures, i guess because of networking issues in the lab at the time, so a scheduled a rerun in https://pulpito.ceph.com/cbodley-2026-05-27_17:48:36-rgw-wip-73221-distro-default-trial/ that looks much better 👍

of the 4 failures, none are regressions from this pr:

@cbodley
cbodley merged commit 54a5839 into ceph:main May 27, 2026
5 of 6 checks passed
@mctaggatart

Copy link
Copy Markdown
Contributor

Overall review: PASS/FAIL:

Package audit for Ceph Crypto Review

Package: RGW
Product: Ceph
Request Bug: Slack Message by Adam Emerson
Project Homepage:
#67246
https://api.github.com/repos/ceph/ceph/zipball/pull/67246/head
Package Reviewer:Sage McTaggart
Review Date: 05-14-2026
Code Auditor:Sage McTaggart
Audit Date: 05-14-2026

Checklist
Legend:
[x] = Pass
[!] = Fail
[-] = Not applicable
[?] = Not evaluated
[ ] = Manual review needed

git fetch --depth=1
Product Security requirements:
PST:

[x]: The package does not use /tmp in an unsafe way
tmp is used for keyring storage.
[x]: Upstream has not been compromised in any way in the last 3-6mos
[x]: This package is not currently shipping in any other Red Hat
product (layered or non-RHEL products only)
[x]: The source code does not contain suspicious function calls
(bind/connect/exec etc) or hardcoded sensitive data (paths, passwords,
usernames etc)
Uses bind, connect, exec in a non suspicious way.

[x]: Upstream code has been examined for obvious keywords in commit
messages.
[x]: There are no CVEs for this package in NVD's vulnerability
database
[-]: Package lists all bundled libraries in specfile.
has specfile but may not list all due to process of building.
[-]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: We will be shipping an up-to-date/current version
[x]: This package does not ship any GPG keys
[!]: This package does not ship third-party repositories (e.g. yum
repo files)
is used as part of container install, standard to Ceph.

[x]: Upstream project is not abandoned.
[x]: Sources used to build the package match the upstream source, as
provided in the spec URL.
[x]: There are no open security issues in upstream bugtracker
[x]: There are no open security issues in Debian' Bug Tracker
[x]: There are no open security issues in Red Hat Bugzilla

Automated Coverage/Scans
[x]Sonarqube
No issues found in the PR directly.
[!]Mend

[x] Trufflehog
No Private keys found in code directly related to PR.

Additional Checks
<<<
Note any additional checks or effort (manual code analysis, etc.)

AI Tooling: Errors found
Security Review: Ceph PR #67246 - AES-256-GCM Support for RGW SSE

PR: #67246
Title: rgw: Add AES-256-GCM support for RGW server-side encryption
Reviewer: Bob (Security Analysis)
Date: 2026-05-14

Executive Summary

This PR adds AES-256-GCM authenticated encryption support to Ceph's RADOS Gateway (RGW) for server-side encryption (SSE-C, SSE-KMS, SSE-S3, RGW-AUTO). The implementation is generally well-designed with strong cryptographic foundations, but contains several critical security issues that must be addressed before merging.

Overall Risk Level: HIGH (due to critical issues identified)


Critical Security Issues

1. CRITICAL: Potential IV Reuse in Multipart Uploads

Location: src/rgw/rgw_crypt.cc - iv_cursor structure and IV derivation

Issue:
The IV derivation uses a 96-bit IV composed of:

  • Upper 32 bits: part_number
  • Lower 64 bits: chunk_index (derived from stream_offset / CHUNK_SIZE)

Vulnerability:
If a multipart upload is aborted and restarted with the same part numbers, or if parts are re-uploaded, the same IVs could be reused with the same key. IV reuse in GCM is catastrophic - it completely breaks the security of the cipher and can leak the authentication key.

Attack Scenario:

  1. Attacker uploads part 1 of a multipart object
  2. Attacker aborts and re-uploads part 1 with different content
  3. Same key + same IV leads to IV reuse and potential authentication key recovery

Recommendation:

  • Include a per-upload unique identifier (upload ID) in the IV derivation
  • OR: Include the object creation timestamp in the salt/key derivation
  • OR: Generate a fresh random nonce per upload and store it in object attributes

Severity: CRITICAL - Can lead to complete cryptographic break


2. CRITICAL: Missing Constant-Time Comparison for Authentication Tags

Location: src/rgw/rgw_crypt.cc - gcm_transform() decrypt path

Issue:
The code relies on OpenSSL's EVP_DecryptFinal_ex() for tag verification. The error handling path may leak timing information.

Vulnerability:
If the timing of the failure path varies based on where in the tag comparison the mismatch occurs, an attacker could potentially use timing side-channels to forge authentication tags.

Recommendation:

  • Verify OpenSSL version uses constant-time tag comparison
  • Add explicit constant-time comparison wrapper if needed
  • Ensure error logging doesn't leak timing information
  • Consider using CRYPTO_memcmp() for additional safety

Severity: CRITICAL - Timing attacks can compromise authentication


3. HIGH: Insufficient Entropy in Salt Generation

Location: src/rgw/rgw_crypt.cc - generate_salt()

Issue:
The code uses cct->random() without verifying it's a cryptographically secure PRNG (CSPRNG). If this is not properly seeded or uses a weak RNG, salts could be predictable.

Recommendation:

  • Verify cct->random() is backed by /dev/urandom or equivalent CSPRNG
  • Add explicit documentation about CSPRNG requirements
  • Consider using OpenSSL's RAND_bytes() directly for defense-in-depth

Severity: HIGH - Weak salts can enable key recovery attacks


4. HIGH: Key Material Not Zeroized in All Error Paths

Location: Multiple locations in src/rgw/rgw_crypt.cc

Issue:
While the destructor properly zeroizes keys, some error paths in derive_object_key() and derive_part_key() may leave sensitive data in stack variables before returning false.

Recommendation:

  • Audit all error paths to ensure key material is zeroized
  • Use RAII wrappers for automatic cleanup
  • Consider using SecureBuffer or similar secure memory containers

Severity: HIGH - Memory disclosure can leak encryption keys


High-Risk Issues

5. HIGH: Potential Integer Overflow in Size Calculations

Location: src/rgw/rgw_crypt.h - Size conversion functions

Issue:
For very large objects (near UINT64_MAX), arithmetic operations could overflow, leading to incorrect size calculations and potential buffer overflows.

Recommendation:

  • Add overflow checks before arithmetic operations
  • Use safe integer arithmetic libraries
  • Add maximum object size validation

Severity: HIGH - Can lead to buffer overflows and memory corruption


6. HIGH: Missing Validation of Part Numbers

Location: src/rgw/rgw_crypt.cc - set_part_number() and multipart handling

Issue:
The code accepts arbitrary part_number values without validation. S3 allows part numbers 1-10,000, but the code uses 32-bit values. Invalid part numbers could lead to unexpected IV collisions.

Recommendation:

  • Validate part numbers are in valid S3 range (1-10,000)
  • Reject part_number = 0 for multipart uploads
  • Add assertions or runtime checks

Severity: HIGH - Invalid part numbers can cause IV collisions


Medium-Risk Issues

7. MEDIUM: Backward Compatibility Risk with Default CBC

Location: Configuration and mode selection

Issue:
The PR maintains CBC as the default for backward compatibility. Users may not realize they need to explicitly enable GCM. CBC mode lacks authentication and is vulnerable to padding oracle attacks.

Recommendation:

  • Provide clear migration guide for enabling GCM
  • Consider deprecation timeline for CBC
  • Add warnings when CBC is used
  • Document security implications of each mode

Severity: MEDIUM - Organizational security posture issue


8. MEDIUM: Insufficient AAD (Additional Authenticated Data)

Location: src/rgw/rgw_crypt.cc - encode_chunk_aad()

Issue:
The AAD only includes the chunk index. It doesn't include object identity (bucket, object name, part number). While the key derivation binds to object identity, including it in AAD provides defense-in-depth.

Recommendation:

  • Include bucket_id, object name, and part_number in AAD
  • This prevents chunk swapping attacks even if key derivation is bypassed
  • Provides additional cryptographic binding

Severity: MEDIUM - Defense-in-depth issue


9. MEDIUM: Potential Timing Leak in Key Derivation

Location: src/rgw/rgw_crypt.cc - derive_object_key() and derive_part_key()

Issue:
HMAC operations may have timing variations based on input length. While HMAC-SHA256 is generally constant-time for the hash operation, the overall function timing could leak information about bucket/object name lengths.

Recommendation:

  • Profile key derivation timing with various input lengths
  • Consider padding inputs to fixed lengths
  • Use constant-time string comparison for validation

Severity: MEDIUM - Side-channel information disclosure


Low-Risk Issues

10. LOW: Missing Rate Limiting for Decryption Failures

Location: Decryption error handling

Issue:
There's no apparent rate limiting or monitoring for repeated decryption failures, which could indicate brute force attacks, data corruption, or key compromise attempts.

Recommendation:

  • Add metrics/logging for decryption failure rates
  • Implement rate limiting for repeated failures
  • Alert on anomalous failure patterns

Severity: LOW - Operational security issue


11. LOW: Hardcoded Chunk Size

Location: AES_256_GCM::CHUNK_SIZE = 4096

Issue:
The 4KB chunk size is hardcoded. While reasonable, it may not be optimal for all workloads and cannot be tuned.

Recommendation:

  • Consider making chunk size configurable (with security constraints)
  • Document rationale for 4KB choice
  • Ensure chunk size is power of 2 for alignment

Severity: LOW - Performance/flexibility issue


Positive Security Aspects

The implementation demonstrates several strong security practices:

  1. Proper use of AEAD: GCM provides authenticated encryption, detecting tampering
  2. Key derivation binding: HMAC-based key derivation binds ciphertext to object identity
  3. Per-part key derivation: Prevents part reordering/swapping in multipart uploads
  4. Random salt generation: 256-bit salts provide strong key derivation
  5. Memory zeroization: Destructor properly cleans up sensitive data
  6. Hardware acceleration support: ISA-L integration for performance
  7. Comprehensive testing: Unit tests and integration test suites included
  8. Length-prefixed HMAC inputs: Prevents concatenation ambiguity attacks
  9. Static assertions: Compile-time validation of constant sizes
  10. Clear separation of concerns: Modular design with AEAD abstractions

Recommendations Summary

Must Fix Before Merge (Critical)

  1. Fix IV reuse vulnerability - Include upload ID or timestamp in IV derivation
  2. Verify constant-time tag comparison - Audit OpenSSL usage and error paths
  3. Validate CSPRNG usage - Ensure cryptographically secure random number generation
  4. Audit key zeroization - Ensure all error paths clean up sensitive data

Should Fix Before Merge (High)

  1. Add integer overflow protection - Safe arithmetic for size calculations
  2. Validate part numbers - Enforce S3 part number constraints
  3. Enhance AAD - Include object identity in authenticated data
  4. Review timing characteristics - Profile key derivation for timing leaks

Consider for Future (Medium/Low)

  1. Add decryption failure monitoring - Rate limiting and alerting
  2. Document CBC deprecation plan - Clear migration path to GCM
  3. Make chunk size configurable - With appropriate security constraints

Testing Recommendations

  1. Fuzzing: Fuzz the encryption/decryption paths with malformed inputs
  2. Timing Analysis: Profile operations for timing side-channels
  3. IV Collision Testing: Verify no IV reuse across multipart scenarios
  4. Boundary Testing: Test with maximum object sizes, part numbers
  5. Failure Injection: Test error handling paths for key cleanup
  6. Interoperability: Test mixed CBC/GCM deployments
  7. Performance: Benchmark hardware acceleration paths

Conclusion

This PR implements a cryptographically sound design for AES-256-GCM support in Ceph RGW, but contains critical security vulnerabilities that must be addressed:

  • IV reuse risk is the most serious issue and could lead to complete cryptographic break
  • Timing attacks on authentication could compromise data integrity
  • Key material handling needs careful audit of all code paths

The implementation shows strong security engineering practices overall, but the identified issues require immediate attention before this code can be safely deployed in production environments.

Recommendation: DO NOT MERGE until critical issues 1-4 are resolved and verified through security testing.


References

  • NIST SP 800-38D: GCM Specification
  • RFC 5116: AEAD Interface
  • NIST SP 800-108: Key Derivation
  • OpenSSL EVP_CIPHER documentation
  • S3 Server-Side Encryption specification

Summary
Any final comments or concerns. The Rating should be either PASS,
FAIL** or NEEDINFO. If there are concerns, there should be
subsequent followup (bugs/CVEs filed, engagement with upstream, etc). This
must all be documented here.
Rating
PASS** or FAIL or NEEDINFO
Conditional PASS--Upgrade dependencies as impacted by Mend, and confirm why yum.repos are shipped.

@mheler
mheler deleted the wip-rgw-sse-gcm branch May 29, 2026 11:09
Comment thread src/rgw/rgw_crypt.cc
* - If object is moved/renamed at RADOS level → wrong key → decrypt fails
*
* Key derivation formula:
* ObjectKey = HMAC-SHA256(key, salt || domain || bucket_id || object)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mheler Out of curiosity, is there a specific reason why the key derivation uses a custom HMAC-SHA256 mix instead of OpenSSL's native HKDF-Expand mode (EVP_KDF_HKDF_MODE_EXPAND_ONLY)(RFC5869)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ggruner Mostly pragmatic, ceph::crypto (common/ceph_crypto.h) only exposes digest + HMACSHA256/512 classes as such there is no HKDF or EVP_KDF wrapper. If I went with OpenSSL's native approach it would bypass the crypto abstraction, and additionally change the derived keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants