jdk/src/windows/classes/sun/security/mscapi/SunMSCAPI.java
changeset 12685 8a448b5b9006
parent 10336 0bb1999251f8
child 12700 9c9ad46c7c40
equal deleted inserted replaced
12676:3b7fae360d04 12685:8a448b5b9006
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2012, 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
    79         /*
    79         /*
    80          * Signature engines
    80          * Signature engines
    81          */
    81          */
    82         // NONEwithRSA must be supplied with a pre-computed message digest.
    82         // NONEwithRSA must be supplied with a pre-computed message digest.
    83         // Only the following digest algorithms are supported: MD5, SHA-1,
    83         // Only the following digest algorithms are supported: MD5, SHA-1,
    84         // SHA-256, SHA-384, SHA-512 and a special-purpose digest algorithm
    84         // SHA-224, SHA-256, SHA-384, SHA-512 and a special-purpose digest
    85         // which is a concatenation of SHA-1 and MD5 digests.
    85         // algorithm which is a concatenation of SHA-1 and MD5 digests.
    86         map.put("Signature.NONEwithRSA",
    86         map.put("Signature.NONEwithRSA",
    87             "sun.security.mscapi.RSASignature$Raw");
    87             "sun.security.mscapi.RSASignature$Raw");
    88         map.put("Signature.SHA1withRSA",
    88         map.put("Signature.SHA1withRSA",
    89             "sun.security.mscapi.RSASignature$SHA1");
    89             "sun.security.mscapi.RSASignature$SHA1");
       
    90         map.put("Signature.SHA224withRSA",
       
    91             "sun.security.mscapi.RSASignature$SHA224");
       
    92         map.put("Alg.Alias.Signature.1.2.840.113549.1.1.14",     "SHA224withRSA");
       
    93         map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.14", "SHA224withRSA");
    90         map.put("Signature.SHA256withRSA",
    94         map.put("Signature.SHA256withRSA",
    91             "sun.security.mscapi.RSASignature$SHA256");
    95             "sun.security.mscapi.RSASignature$SHA256");
       
    96         map.put("Alg.Alias.Signature.1.2.840.113549.1.1.11",     "SHA256withRSA");
       
    97         map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.11", "SHA256withRSA");
    92         map.put("Signature.SHA384withRSA",
    98         map.put("Signature.SHA384withRSA",
    93             "sun.security.mscapi.RSASignature$SHA384");
    99             "sun.security.mscapi.RSASignature$SHA384");
       
   100         map.put("Alg.Alias.Signature.1.2.840.113549.1.1.12",     "SHA384withRSA");
       
   101         map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.12", "SHA384withRSA");
       
   102 
    94         map.put("Signature.SHA512withRSA",
   103         map.put("Signature.SHA512withRSA",
    95             "sun.security.mscapi.RSASignature$SHA512");
   104             "sun.security.mscapi.RSASignature$SHA512");
       
   105         map.put("Alg.Alias.Signature.1.2.840.113549.1.1.13",     "SHA512withRSA");
       
   106         map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.13", "SHA512withRSA");
       
   107 
    96         map.put("Signature.MD5withRSA",
   108         map.put("Signature.MD5withRSA",
    97             "sun.security.mscapi.RSASignature$MD5");
   109             "sun.security.mscapi.RSASignature$MD5");
    98         map.put("Signature.MD2withRSA",
   110         map.put("Signature.MD2withRSA",
    99             "sun.security.mscapi.RSASignature$MD2");
   111             "sun.security.mscapi.RSASignature$MD2");
   100 
   112 
   101         // supported key classes
   113         // supported key classes
   102         map.put("Signature.NONEwithRSA SupportedKeyClasses",
   114         map.put("Signature.NONEwithRSA SupportedKeyClasses",
   103             "sun.security.mscapi.Key");
   115             "sun.security.mscapi.Key");
   104         map.put("Signature.SHA1withRSA SupportedKeyClasses",
   116         map.put("Signature.SHA1withRSA SupportedKeyClasses",
       
   117             "sun.security.mscapi.Key");
       
   118         map.put("Signature.SHA224withRSA SupportedKeyClasses",
   105             "sun.security.mscapi.Key");
   119             "sun.security.mscapi.Key");
   106         map.put("Signature.SHA256withRSA SupportedKeyClasses",
   120         map.put("Signature.SHA256withRSA SupportedKeyClasses",
   107             "sun.security.mscapi.Key");
   121             "sun.security.mscapi.Key");
   108         map.put("Signature.SHA384withRSA SupportedKeyClasses",
   122         map.put("Signature.SHA384withRSA SupportedKeyClasses",
   109             "sun.security.mscapi.Key");
   123             "sun.security.mscapi.Key");