equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved. |
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. |
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 |
34 import javax.crypto.Mac; |
34 import javax.crypto.Mac; |
35 import javax.crypto.SecretKey; |
35 import javax.crypto.SecretKey; |
36 |
36 |
37 import sun.security.ssl.CipherSuite.MacAlg; |
37 import sun.security.ssl.CipherSuite.MacAlg; |
38 import static sun.security.ssl.CipherSuite.*; |
38 import static sun.security.ssl.CipherSuite.*; |
|
39 import static sun.security.ssl.CipherSuite.MacAlg.*; |
39 |
40 |
40 /** |
41 /** |
41 * This class computes the "Message Authentication Code" (MAC) for each |
42 * This class computes the "Message Authentication Code" (MAC) for each |
42 * SSL stream and block cipher message. This is essentially a shared-secret |
43 * SSL stream and block cipher message. This is essentially a shared-secret |
43 * signature, used to provide integrity protection for SSL messages. The |
44 * signature, used to provide integrity protection for SSL messages. The |