equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2017, 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 |
148 * <li>{@code RSA/ECB/PKCS1Padding} (1024, 2048)</li> |
148 * <li>{@code RSA/ECB/PKCS1Padding} (1024, 2048)</li> |
149 * <li>{@code RSA/ECB/OAEPWithSHA-1AndMGF1Padding} (1024, 2048)</li> |
149 * <li>{@code RSA/ECB/OAEPWithSHA-1AndMGF1Padding} (1024, 2048)</li> |
150 * <li>{@code RSA/ECB/OAEPWithSHA-256AndMGF1Padding} (1024, 2048)</li> |
150 * <li>{@code RSA/ECB/OAEPWithSHA-256AndMGF1Padding} (1024, 2048)</li> |
151 * </ul> |
151 * </ul> |
152 * These transformations are described in the |
152 * These transformations are described in the |
153 * <a href="{@docRoot}/../technotes/guides/security/StandardNames.html#Cipher"> |
153 * <a href="{@docRoot}/../specs/security/standard-names.html#cipher-algorithm-names"> |
154 * Cipher section</a> of the |
154 * Cipher section</a> of the |
155 * Java Cryptography Architecture Standard Algorithm Name Documentation. |
155 * Java Security Standard Algorithm Names Specification. |
156 * Consult the release documentation for your implementation to see if any |
156 * Consult the release documentation for your implementation to see if any |
157 * other transformations are supported. |
157 * other transformations are supported. |
158 * |
158 * |
159 * @author Jan Luehe |
159 * @author Jan Luehe |
160 * @see KeyGenerator |
160 * @see KeyGenerator |
487 * {@link Security#getProviders() Security.getProviders()}. |
487 * {@link Security#getProviders() Security.getProviders()}. |
488 * |
488 * |
489 * @param transformation the name of the transformation, e.g., |
489 * @param transformation the name of the transformation, e.g., |
490 * <i>DES/CBC/PKCS5Padding</i>. |
490 * <i>DES/CBC/PKCS5Padding</i>. |
491 * See the Cipher section in the <a href= |
491 * See the Cipher section in the <a href= |
492 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Cipher"> |
492 * "{@docRoot}/../specs/security/standard-names.html#cipher-algorithm-names"> |
493 * Java Cryptography Architecture Standard Algorithm Name Documentation</a> |
493 * Java Security Standard Algorithm Names Specification</a> |
494 * for information about standard transformation names. |
494 * for information about standard transformation names. |
495 * |
495 * |
496 * @return a cipher that implements the requested transformation |
496 * @return a cipher that implements the requested transformation |
497 * |
497 * |
498 * @throws NoSuchAlgorithmException if {@code transformation} |
498 * @throws NoSuchAlgorithmException if {@code transformation} |
565 * the {@link Security#getProviders() Security.getProviders()} method. |
565 * the {@link Security#getProviders() Security.getProviders()} method. |
566 * |
566 * |
567 * @param transformation the name of the transformation, |
567 * @param transformation the name of the transformation, |
568 * e.g., <i>DES/CBC/PKCS5Padding</i>. |
568 * e.g., <i>DES/CBC/PKCS5Padding</i>. |
569 * See the Cipher section in the <a href= |
569 * See the Cipher section in the <a href= |
570 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Cipher"> |
570 * "{@docRoot}/../specs/security/standard-names.html#cipher-algorithm-names"> |
571 * Java Cryptography Architecture Standard Algorithm Name Documentation</a> |
571 * Java Security Standard Algorithm Names Specification</a> |
572 * for information about standard transformation names. |
572 * for information about standard transformation names. |
573 * |
573 * |
574 * @param provider the name of the provider. |
574 * @param provider the name of the provider. |
575 * |
575 * |
576 * @return a cipher that implements the requested transformation |
576 * @return a cipher that implements the requested transformation |
625 * does not have to be registered in the provider list. |
625 * does not have to be registered in the provider list. |
626 * |
626 * |
627 * @param transformation the name of the transformation, |
627 * @param transformation the name of the transformation, |
628 * e.g., <i>DES/CBC/PKCS5Padding</i>. |
628 * e.g., <i>DES/CBC/PKCS5Padding</i>. |
629 * See the Cipher section in the <a href= |
629 * See the Cipher section in the <a href= |
630 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Cipher"> |
630 * "{@docRoot}/../specs/security/standard-names.html#cipher-algorithm-names"> |
631 * Java Cryptography Architecture Standard Algorithm Name Documentation</a> |
631 * Java Security Standard Algorithm Names Specification</a> |
632 * for information about standard transformation names. |
632 * for information about standard transformation names. |
633 * |
633 * |
634 * @param provider the provider. |
634 * @param provider the provider. |
635 * |
635 * |
636 * @return a cipher that implements the requested transformation |
636 * @return a cipher that implements the requested transformation |