RFR: 8357466: Create test for Ciphers that are using ByteBuffers backed by MemorySegments [v2]
Weijun Wang
weijun at openjdk.org
Thu Sep 4 14:08:46 UTC 2025
On Tue, 2 Sep 2025 12:38:57 GMT, Matthew Donovan <mdonovan at openjdk.org> wrote:
>> This PR extends security tests to use ByteBuffers backed by MemorySegments. Tests in the areas of Signature, Cipher, MessageDigest, and Mac are updated.
>
> Matthew Donovan has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains three commits:
>
> - addressed PR comments and refactored to use try-with-resources
> - Merge branch 'master' into cipher-ffm
> - 8357466: Create test for Ciphers that are using ByteBuffers backed by MemorySegments
Can we also add some negative tests? (This could be done in a different PR). For example, trying to use a read-only ByteBuffer for output, or trying to use a ByteBuffer after the arena has been closed.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26967#issuecomment-3253905969
More information about the security-dev
mailing list