Searched refs:CheckBufferWithSize (Results 1 - 12 of 12) sorted by relevance
/drivers/peripheral/user_auth/hdi_service/common/src/ |
H A D | user_sign_centre.c | 59 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 D | adaptor_algorithm.c | 87 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 D | buffer.c | 46 bool CheckBufferWithSize(const Buffer *buffer, const uint32_t size) in CheckBufferWithSize() function
|
/drivers/peripheral/user_auth/hdi_service/key_mgr/src/ |
H A D | hmac_key.c | 30 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 D | buffer.h | 41 bool CheckBufferWithSize(const Buffer *buffer, const uint32_t size);
|
/drivers/peripheral/pin_auth/hdi_service/adaptor/inc/ |
H A D | buffer.h | 44 bool CheckBufferWithSize(const Buffer *buffer, const uint32_t size);
|
/drivers/peripheral/pin_auth/hdi_service/adaptor/src/ |
H A D | adaptor_algorithm.c | 78 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 D | buffer.c | 44 bool CheckBufferWithSize(const Buffer *buffer, const uint32_t size) in CheckBufferWithSize() function
|
/drivers/peripheral/pin_auth/test/unittest/pin_auth/adaptor/src/ |
H A D | buffer_test.cpp | 116 * @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 D | buffer_test.cpp | 130 * @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 D | idm_session.c | 278 if (!CheckBufferWithSize(rootSecret, ROOT_SECRET_LEN)) { in CacheRootSecret()
|
/drivers/peripheral/pin_auth/hdi_service/database/src/ |
H A D | pin_db.c | 970 if (!CheckBufferWithSize(pinDecodeCredential, inputData->contentSize)) { in ProcessAuthPin() 991 if (!CheckBufferWithSize(inputPinData, CONST_PIN_DATA_LEN) || in AuthPinById()
|
Completed in 7 milliseconds