Home
last modified time | relevance | path

Searched refs:output_len (Results 1 – 12 of 12) sorted by relevance

/system/keymaster/tests/
Dandroid_keymaster_test_utils.h100 int output_len = 0; in log_msg() local
103 output_len = printf("DEBUG: "); in log_msg()
106 output_len = printf("INFO: "); in log_msg()
109 output_len = printf("WARNING: "); in log_msg()
112 output_len = printf("ERROR: "); in log_msg()
115 output_len = printf("SEVERE: "); in log_msg()
119 output_len += vprintf(fmt, args); in log_msg()
120 output_len += printf("\n"); in log_msg()
121 return output_len; in log_msg()
Dkdf1_test.cpp47 size_t output_len = expected_output.size(); in TEST() local
48 uint8_t output[output_len]; in TEST()
53 ASSERT_TRUE(kdf1.GenerateKey(nullptr, 0, output, output_len)); in TEST()
54 EXPECT_EQ(0, memcmp(output, expected_output.data(), output_len)); in TEST()
Dkdf2_test.cpp72 size_t output_len = expected_output.size(); in TEST() local
73 uint8_t output[output_len]; in TEST()
79 output, output_len)); in TEST()
80 EXPECT_EQ(0, memcmp(output, expected_output.data(), output_len)); in TEST()
Dhkdf_test.cpp69 size_t output_len = expected.size(); in TEST() local
70 uint8_t output[output_len]; in TEST()
75 output, output_len)); in TEST()
76 EXPECT_EQ(0, memcmp(output, expected.data(), output_len)); in TEST()
/system/keymaster/km_openssl/
Diso18033kdf.cpp30 size_t output_len) { in GenerateKey() argument
34 if ((0xFFFFFFFFULL + start_counter_) * digest_size_ < (uint64_t)output_len) return false; in GenerateKey()
40 size_t num_blocks = (output_len + digest_size_ - 1) / digest_size_; in GenerateKey()
72 size_t block_length = min(digest_size_, output_len - block_start); in GenerateKey()
Dhkdf.cpp25 size_t output_len) { in GenerateKey() argument
54 const size_t num_blocks = (output_len + digest_size_ - 1) / digest_size_; in GenerateKey()
75 size_t block_output_len = digest_size_ < output_len - i * digest_size_ in GenerateKey()
77 : output_len - i * digest_size_; in GenerateKey()
/system/keymint/boringssl/src/
Daes_cmac.rs101 let mut output_len: usize = crypto::aes::BLOCK_SIZE; in finish() localVariable
106 ffi::CMAC_Final(self.ctx.0, output.as_mut_ptr(), &mut output_len as *mut usize) in finish()
111 if output_len != crypto::aes::BLOCK_SIZE { in finish()
112 return Err(km_err!(BoringSslError, "Unexpected CMAC output size of {}", output_len)); in finish()
Dhmac.rs101 let mut output_len = ffi::EVP_MAX_MD_SIZE as u32; in finish() localVariable
108 ffi::HMAC_Final(self.ctx.0, output.as_mut_ptr(), &mut output_len as *mut u32) in finish()
113 output.truncate(output_len as usize); in finish()
/system/keymaster/include/keymaster/km_openssl/
Diso18033kdf.h55 size_t output_len) override;
Dhkdf.h45 size_t output_len) override;
Dkdf.h38 size_t output_len) = 0;
/system/keymint/ta/src/
Ddevice.rs194 output_len: usize, in derive_bytes_from_hbk()