Skip to content

Project import generated by Copybara.#1511

Open
juergw wants to merge 1 commit into
masterfrom
google3-export
Open

Project import generated by Copybara.#1511
juergw wants to merge 1 commit into
masterfrom
google3-export

Conversation

@juergw

@juergw juergw commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

PiperOrigin-RevId: 930364116

AndroidHpkeSpi was introduced to be able to use HPKE both in android and in Conscrypt. But since it implements an android interface, it can only be used if that interface is available.

But it turns out that this is not really needed. HpkeImpl (which only implements org.conscrypt.HpkeSpi) does work with the android android.crypto.hpke API, because that API accepts not only services that implement the android.crypto.hpke.HpkeSpi, but also (with the help of a Duck-typed adapter) any object that implements the same methods as org.conscrypt.HpkeSpi.

So we can simply always use HpkeImpl.

This resolves #1508.

PiperOrigin-RevId: 930364116
@juergw juergw requested a review from tholenst June 11, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2.6-alpha3] NoClassDefFoundError on Android 15.0 (SDK 34) and earlier

2 participants