Searched refs:CONST_SALT_LEN (Results 1 – 6 of 6) sorted by relevance
/drivers/peripheral/pin_auth/test/uinttest/pin_auth/database/src/ |
D | pin_db_test.cpp | 61 (void)memset_s(pinEnrollParam->salt, CONST_SALT_LEN, 1, CONST_SALT_LEN); 117 std::vector<uint8_t> salt(CONST_SALT_LEN, 1); 119 (void)memcpy_s(&(pinEnrollParam->salt[0]), CONST_SALT_LEN, &salt[0], CONST_SALT_LEN); 130 uint32_t satLen = CONST_SALT_LEN; 131 std::vector<uint8_t> saltRes(CONST_SALT_LEN, 0); 164 std::vector<uint8_t> salt(CONST_SALT_LEN, 1); 166 (void)memcpy_s(&(pinEnrollParam->salt[0]), CONST_SALT_LEN, &salt[0], CONST_SALT_LEN); 207 std::vector<uint8_t> salt(CONST_SALT_LEN, 1); 209 (void)memcpy_s(&(pinEnrollParam->salt[0]), CONST_SALT_LEN, &salt[0], CONST_SALT_LEN); 247 std::vector<uint8_t> salt(CONST_SALT_LEN, 1); [all …]
|
/drivers/peripheral/pin_auth/hdi_service/main/src/ |
D | pin_auth.cpp | 88 if (salt.size() != CONST_SALT_LEN || pinData.size() != CONST_PIN_DATA_LEN) { in EnrollPin() 95 if (memcpy_s(&(pinEnrollParam.salt[0]), CONST_SALT_LEN, salt.data(), CONST_SALT_LEN) != EOK) { in EnrollPin() 131 salt.resize(CONST_SALT_LEN); in GetSalt() 132 uint32_t satLen = CONST_SALT_LEN; in GetSalt()
|
/drivers/peripheral/pin_auth/test/uinttest/pin_auth/main/src/ |
D | pin_func_test.cpp | 58 std::vector<uint8_t> salt(CONST_SALT_LEN, 1); 60 (void)memcpy_s(&(pinEnrollParam->salt[0]), CONST_SALT_LEN, &salt[0], CONST_SALT_LEN);
|
D | pin_auth_test.cpp | 30 constexpr uint32_t CONST_SALT_LEN = 32U; variable 68 std::vector<uint8_t> salt1(CONST_SALT_LEN, 1); 195 std::vector<uint8_t> salt(CONST_SALT_LEN, 1); 245 std::vector<uint8_t> salt(CONST_SALT_LEN, 1);
|
/drivers/peripheral/pin_auth/hdi_service/database/inc/ |
D | pin_db.h | 63 #define CONST_SALT_LEN 32U macro 94 uint8_t salt[CONST_SALT_LEN];
|
/drivers/peripheral/pin_auth/hdi_service/database/src/ |
D | pin_db.c | 805 …ret = WriteAddPinInfo(secret, pinCredCiphertext, pinEnrollParam->salt, CONST_SALT_LEN, templateId); in ProcessAddPin()
|