mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 12:11:27 -05:00 
			
		
		
		
	psa: Add psa_crypto_cipher.[ch]
Add psa_crypto_cipher.[ch] files to contain the Mbed TLS implementation of PSA driver cipher driver entry points. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
		
							parent
							
								
									c45b4afc63
								
							
						
					
					
						commit
						0ff579590d
					
				@ -61,6 +61,7 @@ set(src_crypto
 | 
				
			|||||||
    platform_util.c
 | 
					    platform_util.c
 | 
				
			||||||
    poly1305.c
 | 
					    poly1305.c
 | 
				
			||||||
    psa_crypto.c
 | 
					    psa_crypto.c
 | 
				
			||||||
 | 
					    psa_crypto_cipher.c
 | 
				
			||||||
    psa_crypto_client.c
 | 
					    psa_crypto_client.c
 | 
				
			||||||
    psa_crypto_driver_wrappers.c
 | 
					    psa_crypto_driver_wrappers.c
 | 
				
			||||||
    psa_crypto_ecp.c
 | 
					    psa_crypto_ecp.c
 | 
				
			||||||
 | 
				
			|||||||
@ -118,6 +118,7 @@ OBJS_CRYPTO= \
 | 
				
			|||||||
	     platform_util.o \
 | 
						     platform_util.o \
 | 
				
			||||||
	     poly1305.o \
 | 
						     poly1305.o \
 | 
				
			||||||
	     psa_crypto.o \
 | 
						     psa_crypto.o \
 | 
				
			||||||
 | 
						     psa_crypto_cipher.o \
 | 
				
			||||||
	     psa_crypto_client.o \
 | 
						     psa_crypto_client.o \
 | 
				
			||||||
	     psa_crypto_driver_wrappers.o \
 | 
						     psa_crypto_driver_wrappers.o \
 | 
				
			||||||
	     psa_crypto_ecp.o \
 | 
						     psa_crypto_ecp.o \
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										27
									
								
								library/psa_crypto_cipher.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								library/psa_crypto_cipher.c
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,27 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					 *  PSA cipher driver entry points
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 *  Copyright The Mbed TLS Contributors
 | 
				
			||||||
 | 
					 *  SPDX-License-Identifier: Apache-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *  Licensed under the Apache License, Version 2.0 (the "License"); you may
 | 
				
			||||||
 | 
					 *  not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 *  You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *  http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *  Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 | 
				
			||||||
 | 
					 *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 *  See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 *  limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "common.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(MBEDTLS_PSA_CRYPTO_C)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <psa_crypto_cipher.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif /* MBEDTLS_PSA_CRYPTO_C */
 | 
				
			||||||
							
								
								
									
										26
									
								
								library/psa_crypto_cipher.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								library/psa_crypto_cipher.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					 *  PSA cipher driver entry points
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 *  Copyright The Mbed TLS Contributors
 | 
				
			||||||
 | 
					 *  SPDX-License-Identifier: Apache-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *  Licensed under the Apache License, Version 2.0 (the "License"); you may
 | 
				
			||||||
 | 
					 *  not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 *  You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *  http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *  Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 | 
				
			||||||
 | 
					 *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 *  See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 *  limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef PSA_CRYPTO_CIPHER_H
 | 
				
			||||||
 | 
					#define PSA_CRYPTO_CIPHER_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <psa/crypto.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif /* PSA_CRYPTO_CIPHER_H */
 | 
				
			||||||
@ -250,6 +250,7 @@
 | 
				
			|||||||
    <ClInclude Include="..\..\tests\include\test\drivers\test_driver.h" />
 | 
					    <ClInclude Include="..\..\tests\include\test\drivers\test_driver.h" />
 | 
				
			||||||
    <ClInclude Include="..\..\library\check_crypto_config.h" />
 | 
					    <ClInclude Include="..\..\library\check_crypto_config.h" />
 | 
				
			||||||
    <ClInclude Include="..\..\library\common.h" />
 | 
					    <ClInclude Include="..\..\library\common.h" />
 | 
				
			||||||
 | 
					    <ClInclude Include="..\..\library\psa_crypto_cipher.h" />
 | 
				
			||||||
    <ClInclude Include="..\..\library\psa_crypto_core.h" />
 | 
					    <ClInclude Include="..\..\library\psa_crypto_core.h" />
 | 
				
			||||||
    <ClInclude Include="..\..\library\psa_crypto_driver_wrappers.h" />
 | 
					    <ClInclude Include="..\..\library\psa_crypto_driver_wrappers.h" />
 | 
				
			||||||
    <ClInclude Include="..\..\library\psa_crypto_ecp.h" />
 | 
					    <ClInclude Include="..\..\library\psa_crypto_ecp.h" />
 | 
				
			||||||
@ -324,6 +325,7 @@
 | 
				
			|||||||
    <ClCompile Include="..\..\library\platform_util.c" />
 | 
					    <ClCompile Include="..\..\library\platform_util.c" />
 | 
				
			||||||
    <ClCompile Include="..\..\library\poly1305.c" />
 | 
					    <ClCompile Include="..\..\library\poly1305.c" />
 | 
				
			||||||
    <ClCompile Include="..\..\library\psa_crypto.c" />
 | 
					    <ClCompile Include="..\..\library\psa_crypto.c" />
 | 
				
			||||||
 | 
					    <ClCompile Include="..\..\library\psa_crypto_cipher.c" />
 | 
				
			||||||
    <ClCompile Include="..\..\library\psa_crypto_client.c" />
 | 
					    <ClCompile Include="..\..\library\psa_crypto_client.c" />
 | 
				
			||||||
    <ClCompile Include="..\..\library\psa_crypto_driver_wrappers.c" />
 | 
					    <ClCompile Include="..\..\library\psa_crypto_driver_wrappers.c" />
 | 
				
			||||||
    <ClCompile Include="..\..\library\psa_crypto_ecp.c" />
 | 
					    <ClCompile Include="..\..\library\psa_crypto_ecp.c" />
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user