Repository navigation
Use OS-provided RSA OAEP implementation for Android - #71670
Conversation
Instead of using the managed OAEP implementatation, allow the OS to handle OAEP with SHA2 algorithms. Android also supports algorithm identifiers like "RSA/ECB/OAEPwithSHA-256andMGF1Padding" which would make the code simpler, but it makes the hash algorithm used in MGF1 ambiguous. Since the MGF1 algorithm is always the same as the OAEP algorithm, we explicitly use the `OEAPParameterSpec` so that we can control both the MGF1 digest algorithm and the OAEP digest algorithm.
|
Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones Issue DetailsInstead of using the managed OAEP implementatation, allow the OS to handle OAEP with SHA2 algorithms.
Android also supports algorithm identifiers like "RSA/ECB/OAEPwithSHA-256andMGF1Padding" which would make the code simpler, but it makes the hash algorithm used in MGF1 ambiguous. Since the MGF1 algorithm is always the same as the OAEP algorithm, we explicitly use the
|
|
Tagging subscribers to 'arch-android': @steveisok, @akoeplinger Issue DetailsInstead of using the managed OAEP implementatation, allow the OS to handle OAEP with SHA2 algorithms.
Android also supports algorithm identifiers like "RSA/ECB/OAEPwithSHA-256andMGF1Padding" which would make the code simpler, but it makes the hash algorithm used in MGF1 ambiguous. Since the MGF1 algorithm is always the same as the OAEP algorithm, we explicitly use the
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
|
Azure Pipelines successfully started running 1 pipeline(s). |
jkoritzinsky
left a comment
There was a problem hiding this comment.
JNI interop looks good to me barring @bartonjs's comment
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
I don't believe any of the test failures are related. @bartonjs do we want any additional sign off for this, or is this okay to merge? |
|
Merged since Jeremy K acted as the JNI Genie and the relevant tests are good. |
|
thanks @vcsjones! |
|
@bartonjs whats the reason for the needs further triage label on this PR? |
|
It was the label I chose for "I've incorporated it into the ECCN doc" rather than removing the label, since it means whatever the area owners want 😄. When the doc is done I'll double check, and then remove both labels. |
|
Ah, okay. Thought I might have broke something. |
Instead of using the managed OAEP implementatation, allow the OS to handle OAEP with SHA2 algorithms.
OAEPParameterSpecis in API Level 1.Android also supports algorithm identifiers like "RSA/ECB/OAEPwithSHA-256andMGF1Padding" which would make the code simpler, but it makes the hash algorithm used in MGF1 ambiguous. Since the MGF1 algorithm is always the same as the OAEP algorithm, we explicitly use the
OEAPParameterSpecso that we can control both the MGF1 digest algorithm and the OAEP digest algorithm.