equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
33 /** |
33 /** |
34 * Exported and non-exported parameters that can be used by DRBGs. |
34 * Exported and non-exported parameters that can be used by DRBGs. |
35 */ |
35 */ |
36 public class MoreDrbgParameters implements SecureRandomParameters, Serializable { |
36 public class MoreDrbgParameters implements SecureRandomParameters, Serializable { |
37 |
37 |
|
38 @java.io.Serial |
38 private static final long serialVersionUID = 9L; |
39 private static final long serialVersionUID = 9L; |
39 |
40 |
40 final transient EntropySource es; |
41 final transient EntropySource es; |
41 |
42 |
42 final String mech; |
43 final String mech; |
83 public String toString() { |
84 public String toString() { |
84 return mech + "," + algorithm + "," + usedf + "," + strength |
85 return mech + "," + algorithm + "," + usedf + "," + strength |
85 + "," + capability + "," + personalizationString; |
86 + "," + capability + "," + personalizationString; |
86 } |
87 } |
87 |
88 |
|
89 @java.io.Serial |
88 private void readObject(java.io.ObjectInputStream s) |
90 private void readObject(java.io.ObjectInputStream s) |
89 throws IOException, ClassNotFoundException { |
91 throws IOException, ClassNotFoundException { |
90 s.defaultReadObject(); |
92 s.defaultReadObject(); |
91 if (nonce != null) { |
93 if (nonce != null) { |
92 nonce = nonce.clone(); |
94 nonce = nonce.clone(); |