Home | History | Annotate | Download | only in spec

Lines Matching defs:algorithm

62      * The name of the algorithm associated with this key.
66 private String algorithm;
72 * secret key of the specified algorithm. For example, if the algorithm is
75 * In order for those checks to be performed, an algorithm-specific
82 * @param algorithm the name of the secret-key algorithm to be associated
87 * for information about standard algorithm names.
88 * @exception IllegalArgumentException if <code>algorithm</code>
91 public SecretKeySpec(byte[] key, String algorithm) {
92 if (key == null || algorithm == null) {
99 this.algorithm = algorithm;
112 * secret key of the specified algorithm. For example, if the algorithm is
115 * In order for those checks to be performed, an algorithm-specific key
127 * @param algorithm the name of the secret-key algorithm to be associated
132 * for information about standard algorithm names.
133 * @exception IllegalArgumentException if <code>algorithm</code>
140 public SecretKeySpec(byte[] key, int offset, int len, String algorithm) {
141 if (key == null || algorithm == null) {
156 this.algorithm = algorithm;
160 * Returns the name of the algorithm associated with this secret key.
162 * @return the secret key algorithm.
165 return this.algorithm;
196 if (this.algorithm.equalsIgnoreCase("TripleDES"))
200 this.algorithm.toLowerCase(Locale.ENGLISH).hashCode());
207 * same case-insensitive algorithm name and key encoding.
222 if (!(thatAlg.equalsIgnoreCase(this.algorithm))) {
224 || !(this.algorithm.equalsIgnoreCase("TripleDES")))
226 || !(this.algorithm.equalsIgnoreCase("DESede"))))