Lines Matching defs:in
5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
64 * Encrypt 'len' data at 'in' with AES-GCM, using 128-bit key at 'key', 96-bit IV at 'iv' and write
65 * output to 'out' (which may be the same location as 'in') and 128-bit tag to 'tag'.
67 ResponseCode AES_gcm_encrypt(const uint8_t* in, uint8_t* out, size_t len, const uint8_t* key,
79 EVP_EncryptUpdate(ctx.get(), out_pos, &out_len, in, len);
96 * Decrypt 'len' data at 'in' with AES-GCM, using 128-bit key at 'key', 96-bit IV at 'iv', checking
97 * 128-bit tag at 'tag' and writing plaintext to 'out' (which may be the same location as 'in').
99 ResponseCode AES_gcm_decrypt(const uint8_t* in, uint8_t* out, size_t len, const uint8_t* key,
113 EVP_DecryptUpdate(ctx.get(), out_pos, &out_len, in, len);
227 auto rc = AES_gcm_encrypt(mBlob.value /* in */, mBlob.value /* out */, dataLength, aes_key,
260 const int in = TEMP_FAILURE_RETRY(open(filename.c_str(), O_RDONLY));
261 if (in < 0) {
266 const size_t fileLength = readFully(in, (uint8_t*)&mBlob, sizeof(mBlob));
267 if (close(in) != 0) {
286 auto rc = AES_gcm_decrypt(mBlob.value /* in */, mBlob.value /* out */, encryptedLength,