mirror of https://github.com/ARMmbed/mbed-os.git
Revert "STM32F7 HAL CRYPT patch to add missing UNLOCK"
This reverts commit 7847ad79fb
.
pull/11894/head
parent
b0fea7894b
commit
424ade30a8
|
@ -1021,10 +1021,6 @@ HAL_StatusTypeDef HAL_CRYP_Encrypt(CRYP_HandleTypeDef *hcryp, uint32_t *Input, u
|
|||
|
||||
default:
|
||||
hcryp->ErrorCode |= HAL_CRYP_ERROR_NOT_SUPPORTED;
|
||||
|
||||
/* Process unlocked */
|
||||
__HAL_UNLOCK(hcryp); // MBED patch
|
||||
|
||||
return HAL_ERROR;
|
||||
}
|
||||
|
||||
|
@ -1061,10 +1057,6 @@ HAL_StatusTypeDef HAL_CRYP_Encrypt(CRYP_HandleTypeDef *hcryp, uint32_t *Input, u
|
|||
|
||||
default:
|
||||
hcryp->ErrorCode |= HAL_CRYP_ERROR_NOT_SUPPORTED;
|
||||
|
||||
/* Process unlocked */
|
||||
__HAL_UNLOCK(hcryp); // MBED patch
|
||||
|
||||
return HAL_ERROR;
|
||||
}
|
||||
#endif /*end AES or CRYP */
|
||||
|
@ -1073,10 +1065,10 @@ HAL_StatusTypeDef HAL_CRYP_Encrypt(CRYP_HandleTypeDef *hcryp, uint32_t *Input, u
|
|||
{
|
||||
/* Change the CRYP peripheral state */
|
||||
hcryp->State = HAL_CRYP_STATE_READY;
|
||||
}
|
||||
|
||||
/* Process unlocked */
|
||||
__HAL_UNLOCK(hcryp); // MBED patch
|
||||
__HAL_UNLOCK(hcryp);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1194,10 +1186,6 @@ HAL_StatusTypeDef HAL_CRYP_Decrypt(CRYP_HandleTypeDef *hcryp, uint32_t *Input, u
|
|||
|
||||
default:
|
||||
hcryp->ErrorCode |= HAL_CRYP_ERROR_NOT_SUPPORTED;
|
||||
|
||||
/* Process unlocked */
|
||||
__HAL_UNLOCK(hcryp); // MBED patch
|
||||
|
||||
return HAL_ERROR;
|
||||
}
|
||||
|
||||
|
@ -1242,10 +1230,10 @@ HAL_StatusTypeDef HAL_CRYP_Decrypt(CRYP_HandleTypeDef *hcryp, uint32_t *Input, u
|
|||
{
|
||||
/* Change the CRYP peripheral state */
|
||||
hcryp->State = HAL_CRYP_STATE_READY;
|
||||
}
|
||||
|
||||
/* Process unlocked */
|
||||
__HAL_UNLOCK(hcryp); // MBED patch
|
||||
__HAL_UNLOCK(hcryp);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue