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:
|
default:
|
||||||
hcryp->ErrorCode |= HAL_CRYP_ERROR_NOT_SUPPORTED;
|
hcryp->ErrorCode |= HAL_CRYP_ERROR_NOT_SUPPORTED;
|
||||||
|
|
||||||
/* Process unlocked */
|
|
||||||
__HAL_UNLOCK(hcryp); // MBED patch
|
|
||||||
|
|
||||||
return HAL_ERROR;
|
return HAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1061,10 +1057,6 @@ HAL_StatusTypeDef HAL_CRYP_Encrypt(CRYP_HandleTypeDef *hcryp, uint32_t *Input, u
|
||||||
|
|
||||||
default:
|
default:
|
||||||
hcryp->ErrorCode |= HAL_CRYP_ERROR_NOT_SUPPORTED;
|
hcryp->ErrorCode |= HAL_CRYP_ERROR_NOT_SUPPORTED;
|
||||||
|
|
||||||
/* Process unlocked */
|
|
||||||
__HAL_UNLOCK(hcryp); // MBED patch
|
|
||||||
|
|
||||||
return HAL_ERROR;
|
return HAL_ERROR;
|
||||||
}
|
}
|
||||||
#endif /*end AES or CRYP */
|
#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 */
|
/* Change the CRYP peripheral state */
|
||||||
hcryp->State = HAL_CRYP_STATE_READY;
|
hcryp->State = HAL_CRYP_STATE_READY;
|
||||||
}
|
|
||||||
|
|
||||||
/* Process unlocked */
|
/* Process unlocked */
|
||||||
__HAL_UNLOCK(hcryp); // MBED patch
|
__HAL_UNLOCK(hcryp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1194,10 +1186,6 @@ HAL_StatusTypeDef HAL_CRYP_Decrypt(CRYP_HandleTypeDef *hcryp, uint32_t *Input, u
|
||||||
|
|
||||||
default:
|
default:
|
||||||
hcryp->ErrorCode |= HAL_CRYP_ERROR_NOT_SUPPORTED;
|
hcryp->ErrorCode |= HAL_CRYP_ERROR_NOT_SUPPORTED;
|
||||||
|
|
||||||
/* Process unlocked */
|
|
||||||
__HAL_UNLOCK(hcryp); // MBED patch
|
|
||||||
|
|
||||||
return HAL_ERROR;
|
return HAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1242,10 +1230,10 @@ HAL_StatusTypeDef HAL_CRYP_Decrypt(CRYP_HandleTypeDef *hcryp, uint32_t *Input, u
|
||||||
{
|
{
|
||||||
/* Change the CRYP peripheral state */
|
/* Change the CRYP peripheral state */
|
||||||
hcryp->State = HAL_CRYP_STATE_READY;
|
hcryp->State = HAL_CRYP_STATE_READY;
|
||||||
}
|
|
||||||
|
|
||||||
/* Process unlocked */
|
/* Process unlocked */
|
||||||
__HAL_UNLOCK(hcryp); // MBED patch
|
__HAL_UNLOCK(hcryp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue