pingora icon indicating copy to clipboard operation
pingora copied to clipboard

Add export_keying_material support to pingora-rustls

Open nbarbier-265 opened this issue 1 year ago • 5 comments

Adds RFC 5705 keying material export support to pingora-rustls, matching the existing functionality in pingora-openssl and pingora-boringssl from #729.

nbarbier-265 avatar Nov 09 '25 20:11 nbarbier-265

@fabian4 @nojima — this PR adds RFC 5705 keying material export to the rustls backend. Clean, focused change with tests. Would you be able to review? (Per #835)

johnhurt avatar Mar 27 '26 17:03 johnhurt

@johnhurt Sure, I'll take a look!

nojima avatar Mar 28 '26 15:03 nojima

@johnhurt @nbarbier-265 Looks good to me!

As a minor optimization, replacing out.to_vec() with vec![0; out.len()] would avoid an unnecessary read. That said, this isn't a performance-critical path, so either way is fine.

nojima avatar Mar 30 '26 09:03 nojima

Looking.

nbarbier-265 avatar Mar 30 '26 15:03 nbarbier-265

Thanks, @fabian4 & @nojima - I agree with the suggestions to avoid allocation. @nbarbier-265 Thanks for your patience. I'll wait to ingest this change until you have had a look and decide how to proceed.

johnhurt avatar Apr 10 '26 17:04 johnhurt