1 /*
2 * Copyright (c) 1996, 2015, 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 import java.util.*;
30 import java.lang.*;
31 import java.io.InputStream;
32 import java.nio.ByteBuffer;
33
34 @SuppressWarnings({"unchecked", "deprecation", "all"})
35 public abstract class MessageDigest extends java.security.MessageDigestSpi {
36
MessageDigest(@ibcore.util.NonNull java.lang.String algorithm)37 protected MessageDigest(@libcore.util.NonNull java.lang.String algorithm) { throw new RuntimeException("Stub!"); }
38
getInstance(@ibcore.util.NonNull java.lang.String algorithm)39 @libcore.util.NonNull public static java.security.MessageDigest getInstance(@libcore.util.NonNull java.lang.String algorithm) throws java.security.NoSuchAlgorithmException { throw new RuntimeException("Stub!"); }
40
getInstance(@ibcore.util.NonNull java.lang.String algorithm, @libcore.util.NonNull java.lang.String provider)41 @libcore.util.NonNull public static java.security.MessageDigest getInstance(@libcore.util.NonNull java.lang.String algorithm, @libcore.util.NonNull java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException { throw new RuntimeException("Stub!"); }
42
getInstance(@ibcore.util.NonNull java.lang.String algorithm, @libcore.util.NonNull java.security.Provider provider)43 @libcore.util.NonNull public static java.security.MessageDigest getInstance(@libcore.util.NonNull java.lang.String algorithm, @libcore.util.NonNull java.security.Provider provider) throws java.security.NoSuchAlgorithmException { throw new RuntimeException("Stub!"); }
44
getProvider()45 @libcore.util.NonNull public final java.security.Provider getProvider() { throw new RuntimeException("Stub!"); }
46
update(byte input)47 public void update(byte input) { throw new RuntimeException("Stub!"); }
48
update(byte @libcore.util.NonNull [] input, int offset, int len)49 public void update(byte @libcore.util.NonNull [] input, int offset, int len) { throw new RuntimeException("Stub!"); }
50
update(byte @libcore.util.NonNull [] input)51 public void update(byte @libcore.util.NonNull [] input) { throw new RuntimeException("Stub!"); }
52
update(@ibcore.util.NonNull java.nio.ByteBuffer input)53 public final void update(@libcore.util.NonNull java.nio.ByteBuffer input) { throw new RuntimeException("Stub!"); }
54
digest()55 public byte @libcore.util.NonNull [] digest() { throw new RuntimeException("Stub!"); }
56
digest(byte @libcore.util.NonNull [] buf, int offset, int len)57 public int digest(byte @libcore.util.NonNull [] buf, int offset, int len) throws java.security.DigestException { throw new RuntimeException("Stub!"); }
58
digest(byte @libcore.util.NonNull [] input)59 public byte @libcore.util.NonNull [] digest(byte @libcore.util.NonNull [] input) { throw new RuntimeException("Stub!"); }
60
toString()61 @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
62
isEqual(byte @libcore.util.Nullable [] digesta, byte @libcore.util.Nullable [] digestb)63 public static boolean isEqual(byte @libcore.util.Nullable [] digesta, byte @libcore.util.Nullable [] digestb) { throw new RuntimeException("Stub!"); }
64
reset()65 public void reset() { throw new RuntimeException("Stub!"); }
66
getAlgorithm()67 @libcore.util.NonNull public final java.lang.String getAlgorithm() { throw new RuntimeException("Stub!"); }
68
getDigestLength()69 public final int getDigestLength() { throw new RuntimeException("Stub!"); }
70
clone()71 @libcore.util.NonNull public java.lang.Object clone() throws java.lang.CloneNotSupportedException { throw new RuntimeException("Stub!"); }
72 }
73