Re: X-Wing KEM

2025-05-30 Thread Sebastian Stenzel
, Sebastian [1] https://github.com/openjdk/jdk/pulls?q=is%3Apr+author%3Aoverheadhunter > On 29. May 2025, at 18:44, Wei-Jun Wang wrote: > > Hi Sebastian. > >> On May 24, 2025, at 05:40, Sebastian Stenzel >> wrote: >> >> Hi all, >> >> For the past f

X-Wing KEM

2025-05-24 Thread Sebastian Stenzel
Hi all, For the past few months I have been in contact with one of the authors of two spec drafts for future JOSE encryption standards [1] [2] with the latter of them relying on X-Wing. As the X-Wing spec doesn’t face significant changes any more (there have been some larger shifts in regards

Re: JEP 510: HKDFParameterSpec.expandOnly(byte[] prk)

2025-05-20 Thread Sebastian Stenzel
riveKey. Is there any case where you need the prk as >> a byte array? >> >> Note that certain providers (PKCS11) may or may not support >> externally-supplied byte arrays as PRK, and should always be used with >> a SecretKey. >> Regards, >> Daniel >

Re: Implementing Destroyable

2025-05-20 Thread Sebastian Stenzel
I would appreciate if > we could delay discussion of this topic for a couple of weeks as we are quite > busy meeting the RDP1 deadline for JDK 25. Stay tuned for more details. > > Thanks, > Sean > > On 5/19/25 6:10 AM, Sebastian Stenzel wrote: >> Hi all, >> I noti

JEP 510: HKDFParameterSpec.expandOnly(byte[] prk)

2025-05-19 Thread Sebastian Stenzel
Hi, I’m using the HKDF extract and expand steps separately for this step [1] in HPKE. In this case I need to pass a byte[] prk to expandOnly(…), however the API only accepts a SecretKey, forcing me to wrap the bytes just for them to be unwrapped by the expand operation again. Probably this has

Implementing Destroyable

2025-05-19 Thread Sebastian Stenzel
Hi all, I noticed that most classes implementing javax.security.auth.Destroyable do not actually overwrite it. After discussing this topic with Christian Stein last week, I decided to add some implementations. First, I’d like to start with trivial cases with keys encapsulating byte[], as done