Home
last modified time | relevance | path

Searched refs:cipherBlockSize (Results 1 – 25 of 87) sorted by relevance

1234

/dports/lang/gcc6-aux/gcc-6-20180516/libjava/classpath/gnu/javax/crypto/prng/
H A DICMGenerator.java161 int cipherBlockSize = 0; in setup() local
164 cipherBlockSize = bs.intValue(); in setup()
190 cipherBlockSize = cipher.currentBlockSize(); in setup()
202 if (offset.length != cipherBlockSize) in setup()
232 int limit = cipherBlockSize / 2; in setup()
283 int cipherBlockSize = cipher.currentBlockSize(); in fillBlock() local
290 if (limit < cipherBlockSize) in fillBlock()
292 byte[] data = new byte[cipherBlockSize]; in fillBlock()
296 else if (limit > cipherBlockSize) in fillBlock()
298 byte[] data = new byte[cipherBlockSize]; in fillBlock()
[all …]
/dports/lang/gcc48/gcc-4.8.5/libjava/classpath/gnu/javax/crypto/prng/
H A DICMGenerator.java161 int cipherBlockSize = 0; in setup() local
164 cipherBlockSize = bs.intValue(); in setup()
190 cipherBlockSize = cipher.currentBlockSize(); in setup()
202 if (offset.length != cipherBlockSize) in setup()
232 int limit = cipherBlockSize / 2; in setup()
283 int cipherBlockSize = cipher.currentBlockSize(); in fillBlock() local
290 if (limit < cipherBlockSize) in fillBlock()
292 byte[] data = new byte[cipherBlockSize]; in fillBlock()
296 else if (limit > cipherBlockSize) in fillBlock()
298 byte[] data = new byte[cipherBlockSize]; in fillBlock()
[all …]
/dports/devel/arm-none-eabi-gcc492/gcc-4.9.2/libjava/classpath/gnu/javax/crypto/prng/
H A DICMGenerator.java161 int cipherBlockSize = 0; in setup() local
164 cipherBlockSize = bs.intValue(); in setup()
190 cipherBlockSize = cipher.currentBlockSize(); in setup()
202 if (offset.length != cipherBlockSize) in setup()
232 int limit = cipherBlockSize / 2; in setup()
283 int cipherBlockSize = cipher.currentBlockSize(); in fillBlock() local
290 if (limit < cipherBlockSize) in fillBlock()
292 byte[] data = new byte[cipherBlockSize]; in fillBlock()
296 else if (limit > cipherBlockSize) in fillBlock()
298 byte[] data = new byte[cipherBlockSize]; in fillBlock()
[all …]
/dports/lang/gnat_util/gcc-6-20180516/libjava/classpath/gnu/javax/crypto/prng/
H A DICMGenerator.java161 int cipherBlockSize = 0; in setup() local
164 cipherBlockSize = bs.intValue(); in setup()
190 cipherBlockSize = cipher.currentBlockSize(); in setup()
202 if (offset.length != cipherBlockSize) in setup()
232 int limit = cipherBlockSize / 2; in setup()
283 int cipherBlockSize = cipher.currentBlockSize(); in fillBlock() local
290 if (limit < cipherBlockSize) in fillBlock()
292 byte[] data = new byte[cipherBlockSize]; in fillBlock()
296 else if (limit > cipherBlockSize) in fillBlock()
298 byte[] data = new byte[cipherBlockSize]; in fillBlock()
[all …]
/dports/devel/mingw32-gcc/gcc-4.8.1/libjava/classpath/gnu/javax/crypto/prng/
H A DICMGenerator.java161 int cipherBlockSize = 0; in setup() local
164 cipherBlockSize = bs.intValue(); in setup()
190 cipherBlockSize = cipher.currentBlockSize(); in setup()
202 if (offset.length != cipherBlockSize) in setup()
232 int limit = cipherBlockSize / 2; in setup()
283 int cipherBlockSize = cipher.currentBlockSize(); in fillBlock() local
290 if (limit < cipherBlockSize) in fillBlock()
292 byte[] data = new byte[cipherBlockSize]; in fillBlock()
296 else if (limit > cipherBlockSize) in fillBlock()
298 byte[] data = new byte[cipherBlockSize]; in fillBlock()
[all …]
/dports/lang/gcc6-aux/gcc-6-20180516/libjava/classpath/gnu/javax/crypto/mode/
H A DCFB.java90 CFB(IBlockCipher underlyingCipher, int cipherBlockSize) in CFB() argument
92 super(Registry.CFB_MODE, underlyingCipher, cipherBlockSize); in CFB()
102 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CFB()
112 if (modeBlockSize > cipherBlockSize) in setup()
115 shiftRegister = new byte[cipherBlockSize]; in setup()
116 scratch = new byte[cipherBlockSize]; in setup()
119 Math.min(iv.length, cipherBlockSize)); in setup()
137 cipherBlockSize - modeBlockSize); in encryptBlock()
139 shiftRegister, cipherBlockSize - modeBlockSize, in encryptBlock()
150 cipherBlockSize - modeBlockSize); in decryptBlock()
[all …]
H A DCTR.java90 CTR(IBlockCipher underlyingCipher, int cipherBlockSize) in CTR() argument
92 super(Registry.CTR_MODE, underlyingCipher, cipherBlockSize); in CTR()
102 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CTR()
112 if (modeBlockSize > cipherBlockSize) in setup()
115 counter = new byte[cipherBlockSize]; in setup()
116 int i = cipherBlockSize - 1; in setup()
120 enc = new byte[cipherBlockSize]; in setup()
144 return new Sequence(1, cipherBlockSize).iterator(); in blockSizes()
152 if (off == cipherBlockSize) in ctr()
155 for (j = cipherBlockSize - 1; j >= 0; j--) in ctr()
[all …]
H A DCBC.java73 CBC(IBlockCipher underlyingCipher, int cipherBlockSize) in CBC() argument
75 super(Registry.CBC_MODE, underlyingCipher, cipherBlockSize); in CBC()
81 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CBC()
91 if (modeBlockSize != cipherBlockSize) in setup()
93 scratch = new byte[cipherBlockSize]; in setup()
94 lastBlock = new byte[cipherBlockSize]; in setup()
111 System.arraycopy(out, o, lastBlock, 0, cipherBlockSize); in encryptBlock()
116 byte[] buf = new byte[cipherBlockSize]; in decryptBlock()
117 System.arraycopy(in, i, buf, 0, cipherBlockSize); in decryptBlock()
121 System.arraycopy(buf, 0, lastBlock, 0, cipherBlockSize); in decryptBlock()
H A DICM.java110 ICM(IBlockCipher underlyingCipher, int cipherBlockSize) in ICM() argument
112 super(Registry.ICM_MODE, underlyingCipher, cipherBlockSize); in ICM()
122 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in ICM()
132 if (modeBlockSize != cipherBlockSize) in setup()
134 counterRange = TWO_FIFTY_SIX.pow(cipherBlockSize); in setup()
135 maxBlocksPerSegment = TWO_FIFTY_SIX.pow(cipherBlockSize / 2); in setup()
167 if (limit < cipherBlockSize) in icm()
169 byte[] data = new byte[cipherBlockSize]; in icm()
170 System.arraycopy(result, 0, data, cipherBlockSize - limit, limit); in icm()
173 else if (limit > cipherBlockSize) in icm()
[all …]
H A DModeFactory.java78 int cipherBlockSize) in getInstance() argument
89 return getInstance(mode, cipherImpl, cipherBlockSize); in getInstance()
93 int cipherBlockSize) in getInstance() argument
99 ok = (cipherBlockSize == ((Integer) it.next()).intValue()); in getInstance()
107 result = new ECB(cipher, cipherBlockSize); in getInstance()
109 result = new CTR(cipher, cipherBlockSize); in getInstance()
111 result = new ICM(cipher, cipherBlockSize); in getInstance()
113 result = new OFB(cipher, cipherBlockSize); in getInstance()
115 result = new CBC(cipher, cipherBlockSize); in getInstance()
117 result = new CFB(cipher, cipherBlockSize); in getInstance()
[all …]
/dports/lang/gcc48/gcc-4.8.5/libjava/classpath/gnu/javax/crypto/mode/
H A DCFB.java90 CFB(IBlockCipher underlyingCipher, int cipherBlockSize) in CFB() argument
92 super(Registry.CFB_MODE, underlyingCipher, cipherBlockSize); in CFB()
102 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CFB()
112 if (modeBlockSize > cipherBlockSize) in setup()
115 shiftRegister = new byte[cipherBlockSize]; in setup()
116 scratch = new byte[cipherBlockSize]; in setup()
119 Math.min(iv.length, cipherBlockSize)); in setup()
137 cipherBlockSize - modeBlockSize); in encryptBlock()
139 shiftRegister, cipherBlockSize - modeBlockSize, in encryptBlock()
150 cipherBlockSize - modeBlockSize); in decryptBlock()
[all …]
H A DCTR.java90 CTR(IBlockCipher underlyingCipher, int cipherBlockSize) in CTR() argument
92 super(Registry.CTR_MODE, underlyingCipher, cipherBlockSize); in CTR()
102 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CTR()
112 if (modeBlockSize > cipherBlockSize) in setup()
115 counter = new byte[cipherBlockSize]; in setup()
116 int i = cipherBlockSize - 1; in setup()
120 enc = new byte[cipherBlockSize]; in setup()
144 return new Sequence(1, cipherBlockSize).iterator(); in blockSizes()
152 if (off == cipherBlockSize) in ctr()
155 for (j = cipherBlockSize - 1; j >= 0; j--) in ctr()
[all …]
H A DCBC.java73 CBC(IBlockCipher underlyingCipher, int cipherBlockSize) in CBC() argument
75 super(Registry.CBC_MODE, underlyingCipher, cipherBlockSize); in CBC()
81 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CBC()
91 if (modeBlockSize != cipherBlockSize) in setup()
93 scratch = new byte[cipherBlockSize]; in setup()
94 lastBlock = new byte[cipherBlockSize]; in setup()
111 System.arraycopy(out, o, lastBlock, 0, cipherBlockSize); in encryptBlock()
116 byte[] buf = new byte[cipherBlockSize]; in decryptBlock()
117 System.arraycopy(in, i, buf, 0, cipherBlockSize); in decryptBlock()
121 System.arraycopy(buf, 0, lastBlock, 0, cipherBlockSize); in decryptBlock()
H A DICM.java110 ICM(IBlockCipher underlyingCipher, int cipherBlockSize) in ICM() argument
112 super(Registry.ICM_MODE, underlyingCipher, cipherBlockSize); in ICM()
122 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in ICM()
132 if (modeBlockSize != cipherBlockSize) in setup()
134 counterRange = TWO_FIFTY_SIX.pow(cipherBlockSize); in setup()
135 maxBlocksPerSegment = TWO_FIFTY_SIX.pow(cipherBlockSize / 2); in setup()
167 if (limit < cipherBlockSize) in icm()
169 byte[] data = new byte[cipherBlockSize]; in icm()
170 System.arraycopy(result, 0, data, cipherBlockSize - limit, limit); in icm()
173 else if (limit > cipherBlockSize) in icm()
[all …]
H A DModeFactory.java78 int cipherBlockSize) in getInstance() argument
89 return getInstance(mode, cipherImpl, cipherBlockSize); in getInstance()
93 int cipherBlockSize) in getInstance() argument
99 ok = (cipherBlockSize == ((Integer) it.next()).intValue()); in getInstance()
107 result = new ECB(cipher, cipherBlockSize); in getInstance()
109 result = new CTR(cipher, cipherBlockSize); in getInstance()
111 result = new ICM(cipher, cipherBlockSize); in getInstance()
113 result = new OFB(cipher, cipherBlockSize); in getInstance()
115 result = new CBC(cipher, cipherBlockSize); in getInstance()
117 result = new CFB(cipher, cipherBlockSize); in getInstance()
[all …]
/dports/devel/arm-none-eabi-gcc492/gcc-4.9.2/libjava/classpath/gnu/javax/crypto/mode/
H A DCFB.java90 CFB(IBlockCipher underlyingCipher, int cipherBlockSize) in CFB() argument
92 super(Registry.CFB_MODE, underlyingCipher, cipherBlockSize); in CFB()
102 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CFB()
112 if (modeBlockSize > cipherBlockSize) in setup()
115 shiftRegister = new byte[cipherBlockSize]; in setup()
116 scratch = new byte[cipherBlockSize]; in setup()
119 Math.min(iv.length, cipherBlockSize)); in setup()
137 cipherBlockSize - modeBlockSize); in encryptBlock()
139 shiftRegister, cipherBlockSize - modeBlockSize, in encryptBlock()
150 cipherBlockSize - modeBlockSize); in decryptBlock()
[all …]
H A DCTR.java90 CTR(IBlockCipher underlyingCipher, int cipherBlockSize) in CTR() argument
92 super(Registry.CTR_MODE, underlyingCipher, cipherBlockSize); in CTR()
102 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CTR()
112 if (modeBlockSize > cipherBlockSize) in setup()
115 counter = new byte[cipherBlockSize]; in setup()
116 int i = cipherBlockSize - 1; in setup()
120 enc = new byte[cipherBlockSize]; in setup()
144 return new Sequence(1, cipherBlockSize).iterator(); in blockSizes()
152 if (off == cipherBlockSize) in ctr()
155 for (j = cipherBlockSize - 1; j >= 0; j--) in ctr()
[all …]
H A DCBC.java73 CBC(IBlockCipher underlyingCipher, int cipherBlockSize) in CBC() argument
75 super(Registry.CBC_MODE, underlyingCipher, cipherBlockSize); in CBC()
81 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CBC()
91 if (modeBlockSize != cipherBlockSize) in setup()
93 scratch = new byte[cipherBlockSize]; in setup()
94 lastBlock = new byte[cipherBlockSize]; in setup()
111 System.arraycopy(out, o, lastBlock, 0, cipherBlockSize); in encryptBlock()
116 byte[] buf = new byte[cipherBlockSize]; in decryptBlock()
117 System.arraycopy(in, i, buf, 0, cipherBlockSize); in decryptBlock()
121 System.arraycopy(buf, 0, lastBlock, 0, cipherBlockSize); in decryptBlock()
H A DICM.java110 ICM(IBlockCipher underlyingCipher, int cipherBlockSize) in ICM() argument
112 super(Registry.ICM_MODE, underlyingCipher, cipherBlockSize); in ICM()
122 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in ICM()
132 if (modeBlockSize != cipherBlockSize) in setup()
134 counterRange = TWO_FIFTY_SIX.pow(cipherBlockSize); in setup()
135 maxBlocksPerSegment = TWO_FIFTY_SIX.pow(cipherBlockSize / 2); in setup()
167 if (limit < cipherBlockSize) in icm()
169 byte[] data = new byte[cipherBlockSize]; in icm()
170 System.arraycopy(result, 0, data, cipherBlockSize - limit, limit); in icm()
173 else if (limit > cipherBlockSize) in icm()
[all …]
/dports/lang/gnat_util/gcc-6-20180516/libjava/classpath/gnu/javax/crypto/mode/
H A DCFB.java90 CFB(IBlockCipher underlyingCipher, int cipherBlockSize) in CFB() argument
92 super(Registry.CFB_MODE, underlyingCipher, cipherBlockSize); in CFB()
102 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CFB()
112 if (modeBlockSize > cipherBlockSize) in setup()
115 shiftRegister = new byte[cipherBlockSize]; in setup()
116 scratch = new byte[cipherBlockSize]; in setup()
119 Math.min(iv.length, cipherBlockSize)); in setup()
137 cipherBlockSize - modeBlockSize); in encryptBlock()
139 shiftRegister, cipherBlockSize - modeBlockSize, in encryptBlock()
150 cipherBlockSize - modeBlockSize); in decryptBlock()
[all …]
H A DCTR.java90 CTR(IBlockCipher underlyingCipher, int cipherBlockSize) in CTR() argument
92 super(Registry.CTR_MODE, underlyingCipher, cipherBlockSize); in CTR()
102 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CTR()
112 if (modeBlockSize > cipherBlockSize) in setup()
115 counter = new byte[cipherBlockSize]; in setup()
116 int i = cipherBlockSize - 1; in setup()
120 enc = new byte[cipherBlockSize]; in setup()
144 return new Sequence(1, cipherBlockSize).iterator(); in blockSizes()
152 if (off == cipherBlockSize) in ctr()
155 for (j = cipherBlockSize - 1; j >= 0; j--) in ctr()
[all …]
H A DCBC.java73 CBC(IBlockCipher underlyingCipher, int cipherBlockSize) in CBC() argument
75 super(Registry.CBC_MODE, underlyingCipher, cipherBlockSize); in CBC()
81 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CBC()
91 if (modeBlockSize != cipherBlockSize) in setup()
93 scratch = new byte[cipherBlockSize]; in setup()
94 lastBlock = new byte[cipherBlockSize]; in setup()
111 System.arraycopy(out, o, lastBlock, 0, cipherBlockSize); in encryptBlock()
116 byte[] buf = new byte[cipherBlockSize]; in decryptBlock()
117 System.arraycopy(in, i, buf, 0, cipherBlockSize); in decryptBlock()
121 System.arraycopy(buf, 0, lastBlock, 0, cipherBlockSize); in decryptBlock()
/dports/devel/mingw32-gcc/gcc-4.8.1/libjava/classpath/gnu/javax/crypto/mode/
H A DCFB.java90 CFB(IBlockCipher underlyingCipher, int cipherBlockSize) in CFB() argument
92 super(Registry.CFB_MODE, underlyingCipher, cipherBlockSize); in CFB()
102 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CFB()
112 if (modeBlockSize > cipherBlockSize) in setup()
115 shiftRegister = new byte[cipherBlockSize]; in setup()
116 scratch = new byte[cipherBlockSize]; in setup()
119 Math.min(iv.length, cipherBlockSize)); in setup()
137 cipherBlockSize - modeBlockSize); in encryptBlock()
139 shiftRegister, cipherBlockSize - modeBlockSize, in encryptBlock()
150 cipherBlockSize - modeBlockSize); in decryptBlock()
[all …]
H A DCTR.java90 CTR(IBlockCipher underlyingCipher, int cipherBlockSize) in CTR() argument
92 super(Registry.CTR_MODE, underlyingCipher, cipherBlockSize); in CTR()
102 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CTR()
112 if (modeBlockSize > cipherBlockSize) in setup()
115 counter = new byte[cipherBlockSize]; in setup()
116 int i = cipherBlockSize - 1; in setup()
120 enc = new byte[cipherBlockSize]; in setup()
144 return new Sequence(1, cipherBlockSize).iterator(); in blockSizes()
152 if (off == cipherBlockSize) in ctr()
155 for (j = cipherBlockSize - 1; j >= 0; j--) in ctr()
[all …]
H A DCBC.java73 CBC(IBlockCipher underlyingCipher, int cipherBlockSize) in CBC() argument
75 super(Registry.CBC_MODE, underlyingCipher, cipherBlockSize); in CBC()
81 this((IBlockCipher) that.cipher.clone(), that.cipherBlockSize); in CBC()
91 if (modeBlockSize != cipherBlockSize) in setup()
93 scratch = new byte[cipherBlockSize]; in setup()
94 lastBlock = new byte[cipherBlockSize]; in setup()
111 System.arraycopy(out, o, lastBlock, 0, cipherBlockSize); in encryptBlock()
116 byte[] buf = new byte[cipherBlockSize]; in decryptBlock()
117 System.arraycopy(in, i, buf, 0, cipherBlockSize); in decryptBlock()
121 System.arraycopy(buf, 0, lastBlock, 0, cipherBlockSize); in decryptBlock()

1234