Lines Matching refs:in
135 * @param in
140 public byte[] wrap(byte[] in, int inOff, int inLen)
149 System.arraycopy(in, inOff, keyToBeWrapped, 0, inLen);
160 // Encrypt WKCKS in CBC mode using KEK as the key and IV as the
185 // Reverse the order of the octets in TEMP2 and call the result TEMP3.
188 // Encrypt TEMP3 in CBC mode using the KEK and an initialization vector
206 * @param in
212 public byte[] unwrap(byte[] in, int inOff, int inLen)
220 if (in == null)
247 // Decrypt the cipher text with TRIPLedeS in CBC mode using the KEK
257 engine.processBlock(in, inOff + currentBytePos, TEMP3, currentBytePos);
260 // Reverse the order of the octets in TEMP3 and call the result TEMP2.
271 // Decrypt TEMP1 using TRIPLedeS in CBC mode using the KEK and the IV
272 // found in the previous step. Call the result WKCKS.
293 // with the CKS extracted in the above step. If they are not equal, return error.
300 // WK is the wrapped key, now extracted for use in data decryption.
306 * in CMS [CMS-Algorithms]. This is used to provide an integrity