mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8170762: Document that ISO10126Padding pads with random bytes
Reviewed-by: weijun
This commit is contained in:
parent
e291a67e96
commit
2dd00f580c
1 changed files with 4 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue