Home
last modified time | relevance | path

Searched refs:CheckBufferWithSize (Results 1 - 12 of 12) sorted by relevance

/drivers/peripheral/user_auth/hdi_service/common/src/
H A Duser_sign_centre.c59 if (!CheckBufferWithSize(sign, SHA256_DIGEST_SIZE)) { in UserAuthTokenHmac()
60 LOG_ERROR("CheckBufferWithSize failed"); in UserAuthTokenHmac()
106 if (!CheckBufferWithSize(plaintext, sizeof(tokenPlain->tokenDataToEncrypt))) { in DecryptTokenCipher()
107 LOG_ERROR("CheckBufferWithSize failed"); in DecryptTokenCipher()
202 if (!CheckBufferWithSize(ciphertext, sizeof(authToken->tokenDataCipher))) { in CopyTokenCipherParam()
211 if (!CheckBufferWithSize(tag, sizeof(authToken->tag))) { in CopyTokenCipherParam()
219 if (!CheckBufferWithSize(iv, sizeof(authToken->iv))) { in CopyTokenCipherParam()
/drivers/peripheral/user_auth/hdi_service/adaptor/src/
H A Dadaptor_algorithm.c87 if (!CheckBufferWithSize(keyPair->pubKey, ED25519_FIX_PUBKEY_BUFFER_SIZE)) { in IsEd25519KeyPairValid()
91 if (!CheckBufferWithSize(keyPair->priKey, ED25519_FIX_PRIKEY_BUFFER_SIZE)) { in IsEd25519KeyPairValid()
192 if (!CheckBufferWithSize(pubKey, ED25519_FIX_PUBKEY_BUFFER_SIZE) || !IsBufferValid(data) || in Ed25519Verify()
193 !CheckBufferWithSize(sign, ED25519_FIX_SIGN_BUFFER_SIZE)) { in Ed25519Verify()
287 if (!CheckBufferWithSize(aesGcmParam->key, AES_GCM_256_KEY_SIZE)) { in CheckAesGcmParam()
291 if (!CheckBufferWithSize(aesGcmParam->iv, AES_GCM_IV_SIZE)) { in CheckAesGcmParam()
425 !CheckAesGcmParam(aesGcmParam) || !CheckBufferWithSize(tag, AES_GCM_TAG_SIZE) || plaintext == NULL) { in AesGcmDecrypt()
H A Dbuffer.c46 bool CheckBufferWithSize(const Buffer *buffer, const uint32_t size) in CheckBufferWithSize() function
/drivers/peripheral/user_auth/hdi_service/key_mgr/src/
H A Dhmac_key.c30 if (!CheckBufferWithSize(peerUdid, UDID_LEN)) { in GenerateHmacKey()
90 if (!CheckBufferWithSize(signature, SHA256_DIGEST_SIZE)) { in HmacSign()
91 LOG_ERROR("CheckBufferWithSize failed"); in HmacSign()
/drivers/peripheral/user_auth/hdi_service/adaptor/inc/
H A Dbuffer.h41 bool CheckBufferWithSize(const Buffer *buffer, const uint32_t size);
/drivers/peripheral/pin_auth/hdi_service/adaptor/inc/
H A Dbuffer.h44 bool CheckBufferWithSize(const Buffer *buffer, const uint32_t size);
/drivers/peripheral/pin_auth/hdi_service/adaptor/src/
H A Dadaptor_algorithm.c78 if (!CheckBufferWithSize(keyPair->pubKey, ED25519_FIX_PUBKEY_BUFFER_SIZE)) { in IsEd25519KeyPairValid()
82 if (!CheckBufferWithSize(keyPair->priKey, ED25519_FIX_PRIKEY_BUFFER_SIZE)) { in IsEd25519KeyPairValid()
183 if (!CheckBufferWithSize(pubKey, ED25519_FIX_PUBKEY_BUFFER_SIZE) || !IsBufferValid(data) || in Ed25519Verify()
184 !CheckBufferWithSize(sign, ED25519_FIX_SIGN_BUFFER_SIZE)) { in Ed25519Verify()
399 if (!CheckBufferWithSize(param->key, AES_GCM_256_KEY_SIZE)) { in CheckAes256GcmParams()
403 if (!CheckBufferWithSize(param->iv, AES_GCM_256_IV_SIZE)) { in CheckAes256GcmParams()
594 !CheckAes256GcmParams(param) || !CheckBufferWithSize(tag, AES_GCM_256_TAG_SIZE) || (plaintext == NULL)) { in AesGcm256Decrypt()
H A Dbuffer.c44 bool CheckBufferWithSize(const Buffer *buffer, const uint32_t size) in CheckBufferWithSize() function
/drivers/peripheral/pin_auth/test/unittest/pin_auth/adaptor/src/
H A Dbuffer_test.cpp116 * @tc.name: CheckBufferWithSize test
117 * @tc.desc: verify CheckBufferWithSize
125 bool result = CheckBufferWithSize(buffer1, 5); in HWTEST_F()
133 result = CheckBufferWithSize(data, 4); in HWTEST_F()
136 result = CheckBufferWithSize(data, 5); in HWTEST_F()
/drivers/peripheral/user_auth/test/unittest/base_test/src/
H A Dbuffer_test.cpp130 * @tc.name: CheckBufferWithSize test
131 * @tc.desc: verify CheckBufferWithSize
140 bool result = CheckBufferWithSize(buffer1, BUFFER_LEN_5); in HWTEST_F()
148 result = CheckBufferWithSize(data, BUFFER_LEN_4); in HWTEST_F()
151 result = CheckBufferWithSize(data, BUFFER_LEN_5); in HWTEST_F()
/drivers/peripheral/user_auth/hdi_service/idm/src/
H A Didm_session.c278 if (!CheckBufferWithSize(rootSecret, ROOT_SECRET_LEN)) { in CacheRootSecret()
/drivers/peripheral/pin_auth/hdi_service/database/src/
H A Dpin_db.c970 if (!CheckBufferWithSize(pinDecodeCredential, inputData->contentSize)) { in ProcessAuthPin()
991 if (!CheckBufferWithSize(inputPinData, CONST_PIN_DATA_LEN) || in AuthPinById()

Completed in 7 milliseconds