Home
last modified time | relevance | path

Searched refs:wordSize (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DRC5ParameterSpecTest.java46 int wordSize = 16; in testRC5ParameterSpec1() local
50 new RC5ParameterSpec(version, rounds, wordSize, null); in testRC5ParameterSpec1()
57 new RC5ParameterSpec(version, rounds, wordSize+8, iv); in testRC5ParameterSpec1()
64 new RC5ParameterSpec(version, rounds, wordSize, new byte[] {1, 2, 3}); in testRC5ParameterSpec1()
71 wordSize, iv); in testRC5ParameterSpec1()
87 int wordSize = 16; in testRC5ParameterSpec2() local
92 new RC5ParameterSpec(version, rounds, wordSize, null, offset); in testRC5ParameterSpec2()
99 new RC5ParameterSpec(version, rounds, wordSize+8, iv, offset); in testRC5ParameterSpec2()
106 new RC5ParameterSpec(version, rounds, wordSize, iv, offset+1); in testRC5ParameterSpec2()
113 new RC5ParameterSpec(version, rounds, wordSize, new byte[] { 1, 2, in testRC5ParameterSpec2()
[all …]
/libcore/ojluni/src/main/java/javax/crypto/spec/
DRC5ParameterSpec.java52 private int wordSize; // the word size in bits field in RC5ParameterSpec
62 public RC5ParameterSpec(int version, int rounds, int wordSize) { in RC5ParameterSpec() argument
65 this.wordSize = wordSize; in RC5ParameterSpec()
85 public RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv) { in RC5ParameterSpec() argument
86 this(version, rounds, wordSize, iv, 0); in RC5ParameterSpec()
112 public RC5ParameterSpec(int version, int rounds, int wordSize, in RC5ParameterSpec() argument
116 this.wordSize = wordSize; in RC5ParameterSpec()
118 int blockSize = (wordSize / 8) * 2; in RC5ParameterSpec()
150 return this.wordSize; in getWordSize()
185 (wordSize == other.wordSize) && in equals()
[all …]