Searched refs:secret (Results 1 – 4 of 4) sorted by relevance
/drivers/peripheral/pin_auth/test/uinttest/pin_auth/adaptor/src/ |
D | adaptor_algorithm_test.cpp | 220 Buffer *secret = CreateBufferBySize(SECRET_SIZE); variable 221 ASSERT_NE(secret, nullptr); 222 (void)SecureRandom(secret->buf, secret->maxSize); 223 secret->contentSize = secret->maxSize; 229 Buffer *key = DeriveDeviceKey(pinData, secret); 234 DestoryBuffer(secret);
|
/drivers/peripheral/pin_auth/hdi_service/database/src/ |
D | pin_db.c | 663 static ResultCode WriteAddPinInfo(const Buffer *secret, const Buffer *pinCredentialData, uint8_t *s… in WriteAddPinInfo() argument 678 ret = WritePinFile(secret->buf, secret->contentSize, templateId, SECRET_SUFFIX); in WriteAddPinInfo() 783 static ResultCode ProcessAddPin(const Buffer *deviceKey, const Buffer *secret, PinEnrollParam *pinE… in ProcessAddPin() argument 805 …ResultCode ret = WriteAddPinInfo(secret, pinCredCiphertext, pinEnrollParam->salt, CONST_SALT_LEN, … in ProcessAddPin() 829 Buffer *secret = CreateBufferBySize(SECRET_SIZE); in AddPin() local 831 if (!IsBufferValid(pinCredData) || !IsBufferValid(secret)) { in AddPin() 836 if (SecureRandom(secret->buf, secret->maxSize) != RESULT_SUCCESS) { in AddPin() 841 secret->contentSize = secret->maxSize; in AddPin() 842 deviceKey = DeriveDeviceKey(pinCredData, secret); in AddPin() 853 ret = ProcessAddPin(deviceKey, secret, pinEnrollParam, *templateId); in AddPin() [all …]
|
/drivers/peripheral/pin_auth/hdi_service/adaptor/inc/ |
D | adaptor_algorithm.h | 51 Buffer *DeriveDeviceKey(const Buffer *pinData, const Buffer *secret);
|
/drivers/peripheral/pin_auth/hdi_service/adaptor/src/ |
D | adaptor_algorithm.c | 567 Buffer *DeriveDeviceKey(const Buffer *pinData, const Buffer *secret) in DeriveDeviceKey() argument 569 if (!IsBufferValid(secret) || secret->contentSize != SECRET_SIZE || !IsBufferValid(pinData)) { in DeriveDeviceKey() 573 return CopyBuffer(secret); in DeriveDeviceKey()
|