CryptoPkg/BaseCryptLib: Retire Aes Ecb mode algorithm
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1898 Aes Ecb mode is not secure any longer. Remove the Aes Ecb mode support from edk2. Change the Aes Ecb mode field name in EDKII_CRYPTO_PROTOCOL to indicate the function is unsupported any longer. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Xiaoyu Lu <xiaoyux.lu@intel.com> Cc: Siyuan Fu <siyuan.fu@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com> Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
This commit is contained in:
		
				
					committed by
					
						![mergify[bot]](/avatar/e3df20cd7a67969c41a65f03bea54961?size=40) mergify[bot]
						mergify[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							394d589652
						
					
				
				
					commit
					80e28dcec8
				
			| @@ -50,58 +50,6 @@ AesInit ( | ||||
|   return FALSE; | ||||
| } | ||||
|  | ||||
| /** | ||||
|   Performs AES encryption on a data buffer of the specified size in ECB mode. | ||||
|  | ||||
|   Return FALSE to indicate this interface is not supported. | ||||
|  | ||||
|   @param[in]   AesContext  Pointer to the AES context. | ||||
|   @param[in]   Input       Pointer to the buffer containing the data to be encrypted. | ||||
|   @param[in]   InputSize   Size of the Input buffer in bytes. | ||||
|   @param[out]  Output      Pointer to a buffer that receives the AES encryption output. | ||||
|  | ||||
|   @retval FALSE  This interface is not supported. | ||||
|  | ||||
| **/ | ||||
| BOOLEAN | ||||
| EFIAPI | ||||
| AesEcbEncrypt ( | ||||
|   IN   VOID         *AesContext, | ||||
|   IN   CONST UINT8  *Input, | ||||
|   IN   UINTN        InputSize, | ||||
|   OUT  UINT8        *Output | ||||
|   ) | ||||
| { | ||||
|   ASSERT (FALSE); | ||||
|   return FALSE; | ||||
| } | ||||
|  | ||||
| /** | ||||
|   Performs AES decryption on a data buffer of the specified size in ECB mode. | ||||
|  | ||||
|   Return FALSE to indicate this interface is not supported. | ||||
|  | ||||
|   @param[in]   AesContext  Pointer to the AES context. | ||||
|   @param[in]   Input       Pointer to the buffer containing the data to be decrypted. | ||||
|   @param[in]   InputSize   Size of the Input buffer in bytes. | ||||
|   @param[out]  Output      Pointer to a buffer that receives the AES decryption output. | ||||
|  | ||||
|   @retval FALSE  This interface is not supported. | ||||
|  | ||||
| **/ | ||||
| BOOLEAN | ||||
| EFIAPI | ||||
| AesEcbDecrypt ( | ||||
|   IN   VOID         *AesContext, | ||||
|   IN   CONST UINT8  *Input, | ||||
|   IN   UINTN        InputSize, | ||||
|   OUT  UINT8        *Output | ||||
|   ) | ||||
| { | ||||
|   ASSERT (FALSE); | ||||
|   return FALSE; | ||||
| } | ||||
|  | ||||
| /** | ||||
|   Performs AES encryption on a data buffer of the specified size in CBC mode. | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user