mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-11-03 20:33:16 +03:00 
			
		
		
		
	Create a header file for PSA crypto random generator abstraction
Subsequent commits will move declarations and definitions there. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
		@@ -40,6 +40,8 @@
 | 
				
			|||||||
 * stored keys. */
 | 
					 * stored keys. */
 | 
				
			||||||
#include "psa_crypto_storage.h"
 | 
					#include "psa_crypto_storage.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "psa_crypto_random.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <assert.h>
 | 
					#include <assert.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										26
									
								
								library/psa_crypto_random.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								library/psa_crypto_random.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					/** \file psa_crypto_random.h
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * \brief PSA crypto random generator abstraction.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 *  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_RANDOM_H
 | 
				
			||||||
 | 
					#define PSA_CRYPTO_RANDOM_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif /* PSA_CRYPTO_RANDOM_H */
 | 
				
			||||||
@@ -251,6 +251,7 @@
 | 
				
			|||||||
    <ClInclude Include="..\..\library\psa_crypto_driver_wrappers.h" />
 | 
					    <ClInclude Include="..\..\library\psa_crypto_driver_wrappers.h" />
 | 
				
			||||||
    <ClInclude Include="..\..\library\psa_crypto_invasive.h" />
 | 
					    <ClInclude Include="..\..\library\psa_crypto_invasive.h" />
 | 
				
			||||||
    <ClInclude Include="..\..\library\psa_crypto_its.h" />
 | 
					    <ClInclude Include="..\..\library\psa_crypto_its.h" />
 | 
				
			||||||
 | 
					    <ClInclude Include="..\..\library\psa_crypto_random.h" />
 | 
				
			||||||
    <ClInclude Include="..\..\library\psa_crypto_se.h" />
 | 
					    <ClInclude Include="..\..\library\psa_crypto_se.h" />
 | 
				
			||||||
    <ClInclude Include="..\..\library\psa_crypto_service_integration.h" />
 | 
					    <ClInclude Include="..\..\library\psa_crypto_service_integration.h" />
 | 
				
			||||||
    <ClInclude Include="..\..\library\psa_crypto_slot_management.h" />
 | 
					    <ClInclude Include="..\..\library\psa_crypto_slot_management.h" />
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user