/system/core/adb/pairing_auth/ |
D | aes_128_gcm.cpp | 49 size_t out_len) { in Encrypt() argument 53 if (!EVP_AEAD_CTX_seal(context_.get(), out, &written_sz, out_len, nonce.data(), nonce.size(), in Encrypt() 55 LOG(ERROR) << "Failed to encrypt (in_len=" << in_len << ", out_len=" << out_len in Encrypt() 65 size_t out_len) { in Decrypt() argument 69 if (!EVP_AEAD_CTX_open(context_.get(), out, &written_sz, out_len, nonce.data(), nonce.size(), in Decrypt() 71 LOG(ERROR) << "Failed to decrypt (in_len=" << in_len << ", out_len=" << out_len in Decrypt()
|
/system/bt/common/ |
D | address_obfuscator.cc | 50 unsigned int out_len = 0; in Obfuscate() local 53 &out_len) != nullptr); in Obfuscate() 54 CHECK_EQ(out_len, static_cast<unsigned int>(kOctet32Length)); in Obfuscate() 55 return std::string(reinterpret_cast<const char*>(result.data()), out_len); in Obfuscate()
|
/system/keymaster/km_openssl/ |
D | ckdf.cpp | 105 size_t out_len; in DEFINE_OPENSSL_OBJECT_POINTER() local 107 if (!CMAC_Final(ctx.get(), output_pos, &out_len)) return TranslateLastOpenSslError(); in DEFINE_OPENSSL_OBJECT_POINTER() 108 output_pos += out_len; in DEFINE_OPENSSL_OBJECT_POINTER() 111 if (!CMAC_Final(ctx.get(), cmac, &out_len)) return TranslateLastOpenSslError(); in DEFINE_OPENSSL_OBJECT_POINTER()
|
/system/libufdt/ |
D | ufdt_node.c | 115 char *ufdt_node_get_fdt_prop_data(const struct ufdt_node *node, int *out_len) { in ufdt_node_get_fdt_prop_data() argument 120 if (out_len != NULL) { in ufdt_node_get_fdt_prop_data() 121 *out_len = fdt32_to_cpu(prop->len); in ufdt_node_get_fdt_prop_data() 128 int *out_len) { in ufdt_node_get_fdt_prop_data_by_name_len() argument 130 ufdt_node_get_property_by_name_len(node, name, len), out_len); in ufdt_node_get_fdt_prop_data_by_name_len() 134 const char *name, int *out_len) { in ufdt_node_get_fdt_prop_data_by_name() argument 136 out_len); in ufdt_node_get_fdt_prop_data_by_name()
|
/system/libufdt/include/ |
D | libufdt.h | 78 char *ufdt_node_get_fdt_prop_data(const struct ufdt_node *node, int *out_len); 93 int *out_len); 95 const char *name, int *out_len);
|
/system/core/adb/pairing_auth/include/adb/pairing/ |
D | aes_128_gcm.h | 40 std::optional<size_t> Encrypt(const uint8_t* in, size_t in_len, uint8_t* out, size_t out_len); 48 std::optional<size_t> Decrypt(const uint8_t* in, size_t in_len, uint8_t* out, size_t out_len);
|
/system/keymaster/legacy_support/ |
D | keymaster1_engine.cpp | 284 int Keymaster1Engine::rsa_sign_raw(RSA* rsa, size_t* out_len, uint8_t* out, size_t max_out, in rsa_sign_raw() argument 303 *out_len = std::min(output.data_length, max_out); in rsa_sign_raw() 304 memcpy(out, output.data, *out_len); in rsa_sign_raw() 309 int Keymaster1Engine::rsa_decrypt(RSA* rsa, size_t* out_len, uint8_t* out, size_t max_out, in rsa_decrypt() argument 328 *out_len = std::min(output.data_length, max_out); in rsa_decrypt() 329 memcpy(out, output.data, *out_len); in rsa_decrypt()
|
/system/keymaster/include/keymaster/legacy_support/ |
D | keymaster1_engine.h | 103 static int rsa_sign_raw(RSA* rsa, size_t* out_len, uint8_t* out, size_t max_out, 105 static int rsa_decrypt(RSA* rsa, size_t* out_len, uint8_t* out, size_t max_out,
|
/system/security/keystore/ |
D | blob.cpp | 92 int out_len; in AES_gcm_encrypt() local 94 EVP_EncryptUpdate(ctx.get(), out_pos, &out_len, in, len); in AES_gcm_encrypt() 95 out_pos += out_len; in AES_gcm_encrypt() 96 EVP_EncryptFinal_ex(ctx.get(), out_pos, &out_len); in AES_gcm_encrypt() 97 out_pos += out_len; in AES_gcm_encrypt() 131 int out_len; in AES_gcm_decrypt() local 133 EVP_DecryptUpdate(ctx.get(), out_pos, &out_len, in, len); in AES_gcm_decrypt() 134 out_pos += out_len; in AES_gcm_decrypt() 135 if (!EVP_DecryptFinal_ex(ctx.get(), out_pos, &out_len)) { in AES_gcm_decrypt() 139 out_pos += out_len; in AES_gcm_decrypt()
|
/system/nfc/src/nfc/ndef/ |
D | ndef_utils.cc | 1325 uint32_t out_len, max_out_len; in NDEF_MsgCopyAndDechunk() local 1341 NDEF_MsgInit(p_dest, max_out_len, &out_len); in NDEF_MsgCopyAndDechunk() 1355 status = NDEF_MsgAppendPayload(p_dest, max_out_len, &out_len, in NDEF_MsgCopyAndDechunk() 1359 p_prev_rec = p_dest + out_len; in NDEF_MsgCopyAndDechunk() 1361 status = NDEF_MsgAddRec(p_dest, max_out_len, &out_len, tnf, p_type, in NDEF_MsgCopyAndDechunk() 1368 *p_out_len = out_len; in NDEF_MsgCopyAndDechunk()
|