Skip to content

Commit 9e25ed9

Browse files
gefeilidghgit
authored andcommitted
Add javadoc for BcHssLmsContentSignerBuilder and BcHssLmsContentVerifierProviderBuilder.
1 parent 1f1e6d8 commit 9e25ed9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

pkix/src/main/java/org/bouncycastle/operator/bc/BcHssLmsContentSignerBuilder.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
import org.bouncycastle.pqc.crypto.lms.LMSPublicKeyParameters;
1818
import org.bouncycastle.pqc.crypto.lms.LMSSigner;
1919

20+
/**
21+
* Builder for creating content signers that use the HSS/LMS Hash-Based Signature Algorithm.
22+
*
23+
* <b>Reference:</b> Use of the HSS/LMS Hash-Based Signature Algorithm in the Cryptographic Message Syntax (CMS)
24+
* <a href="https://datatracker.ietf.org/doc/rfc9708/">RFC 9708</a>.
25+
*/
2026
public class BcHssLmsContentSignerBuilder
2127
extends BcContentSignerBuilder
2228
{
@@ -58,6 +64,7 @@ else if (param instanceof LMSPublicKeyParameters || param instanceof LMSPrivateK
5864
{
5965
throw new IllegalArgumentException("Incorrect Key Parameters");
6066
}
67+
6168
signer.init(forSigning, param);
6269
}
6370

pkix/src/main/java/org/bouncycastle/operator/bc/BcHssLmsContentVerifierProviderBuilder.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
import org.bouncycastle.crypto.util.PublicKeyFactory;
1010
import org.bouncycastle.operator.OperatorCreationException;
1111

12+
/**
13+
* Builder for creating content verifier providers that support the HSS/LMS Hash-Based Signature Algorithm.
14+
*
15+
* <b>Reference:</b> Use of the HSS/LMS Hash-Based Signature Algorithm in the Cryptographic Message Syntax (CMS)
16+
* <a href="https://datatracker.ietf.org/doc/rfc9708/">RFC 9708</a>.
17+
* </p>
18+
*/
1219
public class BcHssLmsContentVerifierProviderBuilder
1320
extends BcContentVerifierProviderBuilder
1421
{

0 commit comments

Comments
 (0)