Skip to content

Commit 2dd00f5

Browse files
driverktwangweij
authored andcommitted
8170762: Document that ISO10126Padding pads with random bytes
Reviewed-by: weijun
1 parent e291a67 commit 2dd00f5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/java.base/share/classes/com/sun/crypto/provider/ISO10126Padding.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2017, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -29,10 +29,11 @@
2929

3030
/**
3131
* This class implements padding as specified in the W3 XML ENC standard.
32+
* Though the standard does not specify or require the padding bytes to be
33+
* random, this implementation pads with random bytes (until the last byte,
34+
* which provides the length of padding, as specified).
3235
*
3336
* @author Valerie Peng
34-
*
35-
*
3637
* @see Padding
3738
*/
3839
final class ISO10126Padding implements Padding {

0 commit comments

Comments
 (0)