mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-28 08:39:56 +00:00
JDK-8379582: Add @implSpec to KEM::Decapsulator.decapsulate()
This commit is contained in:
parent
26bb357fa2
commit
f501ea492e
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2023, 2026, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -360,6 +360,17 @@ public final class KEM {
|
||||
* An implementation may choose to not support arbitrary combinations
|
||||
* of {@code from}, {@code to}, and {@code algorithm}.
|
||||
*
|
||||
* @implSpec
|
||||
* This method delegates validation of the input parameters and
|
||||
* the cryptographic decapsulation operation to the underlying
|
||||
* provider implementation.
|
||||
*
|
||||
* A {@code DecapsulateException} should only be thrown when the
|
||||
* encapsulation message is malformed or invalid, as specified in
|
||||
* this method’s {@code @throws} clause. Implementations should
|
||||
* avoid revealing a decapsulation operation failure or
|
||||
* cryptographic conditions.
|
||||
*
|
||||
* @param encapsulation the key encapsulation message from the sender.
|
||||
* The size must be equal to the value returned by
|
||||
* {@link #encapsulationSize()}, or a {@code DecapsulateException}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user