Skip to content

Commit f32259f

Browse files
committed
Update comments in tls-mldsa code
1 parent c7c676a commit f32259f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tls/src/main/java/org/bouncycastle/tls/SignatureScheme.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class SignatureScheme
4646
public static final int sm2sig_sm3 = 0x0708;
4747

4848
/*
49-
* draft-tls-westerbaan-mldsa-00
49+
* draft-ietf-tls-mldsa-00
5050
*/
5151
public static final int DRAFT_mldsa44 = 0x0904;
5252
public static final int DRAFT_mldsa65 = 0x0905;

tls/src/main/java/org/bouncycastle/tls/crypto/impl/bc/BcTlsMLDSASigner.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public TlsStreamSigner getStreamSigner(SignatureAndHashAlgorithm algorithm)
3737
throw new IllegalStateException("Invalid algorithm: " + algorithm);
3838
}
3939

40+
/*
41+
* draft-ietf-tls-mldsa-00 3. The context parameter [..] MUST be the empty string.
42+
*/
4043
MLDSASigner signer = new MLDSASigner();
4144
signer.init(true, new ParametersWithRandom(privateKey, crypto.getSecureRandom()));
4245

0 commit comments

Comments
 (0)