Searched refs:iv (Results 1 – 6 of 6) sorted by relevance
/drivers/peripheral/user_auth/hdi_service/user_auth/src/ |
D | user_sign_centre.c | 79 DestoryBuffer(aesGcmParam->iv); in DeinitAesGcmParam() 89 .iv = CreateBufferByData(userAuthToken->iv, sizeof(userAuthToken->iv)), in DecryptTokenCipher() 94 …if (!IsBufferValid(aesGcmParam.key) || !IsBufferValid(aesGcmParam.iv) || !IsBufferValid(aesGcmPara… in DecryptTokenCipher() 196 aesGcmParam->iv = CreateBufferBySize(AES_GCM_IV_SIZE); in InitAesGcmParam() 198 …if (!IsBufferValid(aesGcmParam->key) || !IsBufferValid(aesGcmParam->iv) || !IsBufferValid(aesGcmPa… in InitAesGcmParam() 202 ret = SecureRandom(aesGcmParam->iv->buf, aesGcmParam->iv->maxSize); in InitAesGcmParam() 207 aesGcmParam->iv->contentSize = aesGcmParam->iv->maxSize; in InitAesGcmParam() 214 …ATIC ResultCode CopyTokenCipherParam(const Buffer *ciphertext, const Buffer *tag, const Buffer *iv, in CopyTokenCipherParam() argument 234 if (!CheckBufferWithSize(iv, sizeof(authToken->iv))) { in CopyTokenCipherParam() 238 if (memcpy_s(authToken->iv, sizeof(authToken->iv), iv->buf, iv->contentSize) != EOK) { in CopyTokenCipherParam() [all …]
|
/drivers/peripheral/user_auth/test/unittest/base_test/src/ |
D | adaptor_algorithm_test.cpp | 187 aesGcmParam.iv = CreateBufferBySize(12); 188 aesGcmParam.iv->contentSize = 12; 193 DestoryBuffer(aesGcmParam.iv); 213 aesGcmParam.iv = CreateBufferBySize(12); 214 aesGcmParam.iv->contentSize = 12; 226 DestoryBuffer(aesGcmParam.iv); 237 aesGcmParam.iv = CreateBufferBySize(12); 238 aesGcmParam.iv->contentSize = 12; 261 DestoryBuffer(aesGcmParam.iv);
|
/drivers/peripheral/user_auth/hdi_service/adaptor/src/ |
D | adaptor_algorithm.c | 290 if (!CheckBufferWithSize(aesGcmParam->iv, AES_GCM_IV_SIZE)) { in CheckAesGcmParam() 315 …if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_IVLEN, aesGcmParam->iv->contentSize, NULL) != OPENSS… in SetAesEncryptParam() 319 if (EVP_EncryptInit_ex(ctx, NULL, NULL, NULL, aesGcmParam->iv->buf) != OPENSSL_SUCCESS) { in SetAesEncryptParam() 397 …if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_IVLEN, aesGcmParam->iv->contentSize, NULL) != OPENSS… in SetAesDecryptParam() 401 if (EVP_DecryptInit_ex(ctx, NULL, NULL, NULL, aesGcmParam->iv->buf) != OPENSSL_SUCCESS) { in SetAesDecryptParam()
|
/drivers/peripheral/user_auth/hdi_service/adaptor/inc/ |
D | adaptor_algorithm.h | 39 Buffer *iv; member
|
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/ |
D | user_sign_centre.h | 56 uint8_t iv[AES_GCM_IV_SIZE]; member
|
/drivers/peripheral/user_auth/test/unittest/user_auth_test/ |
D | user_sign_centre_test.cpp | 102 .iv = DEFAULT_IV,
|