Lines Matching +full:- +full:algorithm
8 * http://www.apache.org/licenses/LICENSE-2.0
22 #include <android-base/logging.h>
34 using ::android::hardware::keymaster::V4_0::Algorithm;
47 Operation(Algorithm algorithm) : _algorithm(algorithm), _buffer{} { in Operation() argument
49 case Algorithm::AES:
52 case Algorithm::TRIPLE_DES:
55 case Algorithm::RSA:
56 case Algorithm::EC:
57 case Algorithm::HMAC:
71 kMaxChunkSize - _buffer.size(), input.size()); in append()
91 const size_t count = _buffer.size() - retain; in peek()
112 Algorithm algorithm(void) { in algorithm() function in android::hardware::keymaster::Operation
117 Algorithm _algorithm;
125 ErrorCode buffer_begin(uint64_t handle, Algorithm algorithm) in buffer_begin() argument
136 pair<uint64_t, Operation>(handle, Operation(algorithm))); in buffer_begin()
146 const Operation &op = buffer_map.find(handle)->second; in buffer_remaining()
159 Operation *op = &buffer_map.find(handle)->second; in buffer_append()
160 op->append(input, consumed); in buffer_append()
172 Operation *op = &buffer_map.find(handle)->second; in buffer_peek()
173 op->peek(data); in buffer_peek()
184 Operation *op = &buffer_map.find(handle)->second; in buffer_advance()
185 return op->advance(count); in buffer_advance()
195 Operation *op = &buffer_map.find(handle)->second; in buffer_final()
196 op->final(data); in buffer_final()
201 ErrorCode buffer_algorithm(uint64_t handle, Algorithm *algorithm) in buffer_algorithm() argument
204 LOG(ERROR) << "Algorithm requested on absent operation: " << handle; in buffer_algorithm()
207 Operation *op = &buffer_map.find(handle)->second; in buffer_algorithm()
208 *algorithm = op->algorithm(); in buffer_algorithm()