8170762: Document that ISO10126Padding pads with random bytes

Reviewed-by: weijun
This commit is contained in:
Kevin Driver 2022-07-01 21:28:44 +00:00 committed by Weijun Wang
parent e291a67e96
commit 2dd00f580c

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2017, 2022, 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
@ -29,10 +29,11 @@ import javax.crypto.ShortBufferException;
/**
* This class implements padding as specified in the W3 XML ENC standard.
* Though the standard does not specify or require the padding bytes to be
* random, this implementation pads with random bytes (until the last byte,
* which provides the length of padding, as specified).
*
* @author Valerie Peng
*
*
* @see Padding
*/
final class ISO10126Padding implements Padding {