@@ -3548,7 +3548,7 @@ ATCA_STATUS atcab_sha_hmac_init(atca_hmac_sha256_ctx_t* ctx, uint16_t key_slot)
35483548 ATCA_STATUS status = ATCA_UNIMPLEMENTED ;
35493549 ATCADeviceType dev_type = atcab_get_device_type ();
35503550
3551- if (atcab_is_ca_device (dev_type ))
3551+ if (atcab_is_ca_device (dev_type ) || atcab_is_ca2_device ( dev_type ) )
35523552 {
35533553#if CALIB_SHA_HMAC_EN
35543554 status = calib_sha_hmac_init (g_atcab_device_ptr , ctx , key_slot );
@@ -3579,7 +3579,7 @@ ATCA_STATUS atcab_sha_hmac_update(atca_hmac_sha256_ctx_t* ctx, const uint8_t* da
35793579 ATCA_STATUS status = ATCA_UNIMPLEMENTED ;
35803580 ATCADeviceType dev_type = atcab_get_device_type ();
35813581
3582- if (atcab_is_ca_device (dev_type ))
3582+ if (atcab_is_ca_device (dev_type ) || atcab_is_ca2_device ( dev_type ) )
35833583 {
35843584#if CALIB_SHA_HMAC_EN
35853585 status = calib_sha_hmac_update (g_atcab_device_ptr , ctx , data , data_size );
@@ -3613,7 +3613,7 @@ ATCA_STATUS atcab_sha_hmac_finish(atca_hmac_sha256_ctx_t* ctx, uint8_t* digest,
36133613 ATCA_STATUS status = ATCA_UNIMPLEMENTED ;
36143614 ATCADeviceType dev_type = atcab_get_device_type ();
36153615
3616- if (atcab_is_ca_device (dev_type ))
3616+ if (atcab_is_ca_device (dev_type ) || atcab_is_ca2_device ( dev_type ) )
36173617 {
36183618#if CALIB_SHA_HMAC_EN
36193619 status = calib_sha_hmac_finish (g_atcab_device_ptr , ctx , digest , target );
@@ -3650,7 +3650,7 @@ ATCA_STATUS atcab_sha_hmac_ext(ATCADevice device, const uint8_t* data, size_t da
36503650 ATCA_STATUS status = ATCA_UNIMPLEMENTED ;
36513651 ATCADeviceType dev_type = atcab_get_device_type_ext (device );
36523652
3653- if (atcab_is_ca_device (dev_type ))
3653+ if (atcab_is_ca_device (dev_type ) || atcab_is_ca2_device ( dev_type ) )
36543654 {
36553655#if CALIB_SHA_HMAC_EN
36563656 status = calib_sha_hmac (device , data , data_size , key_slot , digest , target );
0 commit comments