Home
last modified time | relevance | path

Searched refs:out_cipher (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/test/unittest/unittest_mock/
H A Dhuks_adapter_mock.c503 struct aes_aad *aad, struct uint8_buff *out_cipher) in aes_gcm_encrypt() argument
508 check_ptr_return_val(out_cipher, HC_INPUT_ERROR); in aes_gcm_encrypt()
518 if (memcpy_s(out_cipher->val, out_cipher->size, nonce.random_value, nonce.length) != EOK) { in aes_gcm_encrypt()
523 struct HksBlob tag_cipher = { out_cipher->size - nonce.length, out_cipher->val + nonce.length }; in aes_gcm_encrypt()
538 out_cipher->length = tag_cipher.size + nonce.length; in aes_gcm_encrypt()
H A Dhuks_adapter_mock_for_pake.c503 struct aes_aad *aad, struct uint8_buff *out_cipher) in aes_gcm_encrypt() argument
508 check_ptr_return_val(out_cipher, HC_INPUT_ERROR); in aes_gcm_encrypt()
518 if (memcpy_s(out_cipher->val, out_cipher->size, nonce.random_value, nonce.length) != EOK) { in aes_gcm_encrypt()
523 struct HksBlob tag_cipher = { out_cipher->size - nonce.length, out_cipher->val + nonce.length }; in aes_gcm_encrypt()
538 out_cipher->length = tag_cipher.size + nonce.length; in aes_gcm_encrypt()
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/huks_adapter/
H A Dhuks_adapter.c549 struct aes_aad *aad, struct uint8_buff *out_cipher) in aes_gcm_encrypt() argument
554 check_ptr_return_val(out_cipher, HC_INPUT_ERROR); in aes_gcm_encrypt()
564 if (memcpy_s(out_cipher->val, out_cipher->size, nonce.random_value, nonce.length) != EOK) { in aes_gcm_encrypt()
569 struct HksBlob tag_cipher = { out_cipher->size - nonce.length, out_cipher->val + nonce.length }; in aes_gcm_encrypt()
584 out_cipher->length = tag_cipher.size + nonce.length; in aes_gcm_encrypt()
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/inc/huks_adapter/
H A Dhuks_adapter.h268 struct aes_aad *aad, struct uint8_buff *out_cipher);
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/test/unittest/
H A Dhuks_adapter_test.h272 struct aes_aad *aad, struct uint8_buff *out_cipher);