Lines Matching refs:input
32 * Helper for streaming a crypto operation's input and output via {@link KeyStore} service's
59 OperationResult update(byte[] input);
91 public byte[] update(byte[] input, int inputOffset, int inputLength) throws KeyStoreException {
93 // No input provided
103 // Too much input for one chunk -- extract one max-sized chunk and feed it into the
107 input, inputOffset, inputBytesInChunk);
109 // All of available input fits into one chunk.
111 && (inputLength == input.length)) {
112 // Nothing buffered and all of input array needs to be fed into the update
114 chunk = input;
115 inputBytesInChunk = input.length;
117 // Need to combine buffered data with input data into one array.
120 input, inputOffset, inputBytesInChunk);
123 // Update input array references to reflect that some of its bytes are now in mBuffered.
141 // Nothing was consumed. More input needed.
143 // More input is available, but it wasn't included into the previous chunk
160 "Keystore consumed more input than provided. Provided: " + chunk.length
208 public byte[] doFinal(byte[] input, int inputOffset, int inputLength,
211 // No input provided -- simplify the rest of the code
212 input = EmptyArray.BYTE;
216 // Flush all buffered input and provided input into keystore/keymaster.
217 byte[] output = update(input, inputOffset, inputLength);
254 // All of the input was consumed
259 // Some of the input was not consumed
267 "Keystore consumed more input than provided. Provided: "
297 + " of input");
332 public OperationResult update(byte[] input) {
333 return mKeyStore.update(mOperationToken, null, input);