1 /*
2 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26
27 package java.security;
28
29 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
30 @SuppressWarnings({"unchecked", "deprecation", "all"})
31 public class DrbgParameters {
32
DrbgParameters()33 DrbgParameters() { throw new RuntimeException("Stub!"); }
34
instantiation(int strength, java.security.DrbgParameters.Capability capability, byte[] personalizationString)35 public static java.security.DrbgParameters.Instantiation instantiation(int strength, java.security.DrbgParameters.Capability capability, byte[] personalizationString) { throw new RuntimeException("Stub!"); }
36
nextBytes(int strength, boolean predictionResistance, byte[] additionalInput)37 public static java.security.DrbgParameters.NextBytes nextBytes(int strength, boolean predictionResistance, byte[] additionalInput) { throw new RuntimeException("Stub!"); }
38
reseed(boolean predictionResistance, byte[] additionalInput)39 public static java.security.DrbgParameters.Reseed reseed(boolean predictionResistance, byte[] additionalInput) { throw new RuntimeException("Stub!"); }
40
41 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
42 @SuppressWarnings({"unchecked", "deprecation", "all"})
43 public enum Capability {
44 PR_AND_RESEED,
45 RESEED_ONLY,
46 NONE;
47
toString()48 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
49
supportsReseeding()50 public boolean supportsReseeding() { throw new RuntimeException("Stub!"); }
51
supportsPredictionResistance()52 public boolean supportsPredictionResistance() { throw new RuntimeException("Stub!"); }
53 }
54
55 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
56 @SuppressWarnings({"unchecked", "deprecation", "all"})
57 public static final class Instantiation implements java.security.SecureRandomParameters {
58
Instantiation()59 Instantiation() { throw new RuntimeException("Stub!"); }
60
getStrength()61 public int getStrength() { throw new RuntimeException("Stub!"); }
62
getCapability()63 public java.security.DrbgParameters.Capability getCapability() { throw new RuntimeException("Stub!"); }
64
getPersonalizationString()65 public byte[] getPersonalizationString() { throw new RuntimeException("Stub!"); }
66
toString()67 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
68 }
69
70 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
71 @SuppressWarnings({"unchecked", "deprecation", "all"})
72 public static final class NextBytes implements java.security.SecureRandomParameters {
73
NextBytes()74 NextBytes() { throw new RuntimeException("Stub!"); }
75
getStrength()76 public int getStrength() { throw new RuntimeException("Stub!"); }
77
getPredictionResistance()78 public boolean getPredictionResistance() { throw new RuntimeException("Stub!"); }
79
getAdditionalInput()80 public byte[] getAdditionalInput() { throw new RuntimeException("Stub!"); }
81 }
82
83 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
84 @SuppressWarnings({"unchecked", "deprecation", "all"})
85 public static final class Reseed implements java.security.SecureRandomParameters {
86
Reseed()87 Reseed() { throw new RuntimeException("Stub!"); }
88
getPredictionResistance()89 public boolean getPredictionResistance() { throw new RuntimeException("Stub!"); }
90
getAdditionalInput()91 public byte[] getAdditionalInput() { throw new RuntimeException("Stub!"); }
92 }
93
94 }
95
96