1 Commits
Author SHA1 Message Date
Michele Balistreri 118dfca457 backport 4.5 fixes 2024-01-10 10:29:39 +01:00
320 changed files with 80624 additions and 71177 deletions
+20 -15
View File
@@ -9,10 +9,11 @@
</macros>
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
@@ -20,11 +21,7 @@
<folderInfo id="com.nxp.toolchain.llvm.chip.configuration.195444460.1973200889.907582090.693462100." name="/" resourcePath="">
<toolChain errorParsers="" id="com.nxp.toolchain.llvm.chip.toolChain.1675640132" name="LLVM Toolchain of Chip Project" superClass="com.nxp.toolchain.llvm.chip.toolChain">
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.GNU_ELF" id="com.nxp.toolchain.llvm.platform.chip.base.1236918645" isAbstract="false" name="NXP MRK3 LLVM Platform Chip" osList="win32" superClass="com.nxp.toolchain.llvm.platform.chip.base"/>
<builder arguments="-f ${workspace_loc}\SystemSDK/example/makefile" buildPath="${workspace_loc:/SystemSDK}/example" command="${BuildToolsPath}/make" id="cdt.managedbuild.builder.gnu.cross.1702722573" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="cdt.managedbuild.builder.gnu.cross">
<outputEntries>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="example"/>
</outputEntries>
</builder>
<builder arguments="-f ${workspace_loc}\SystemSDK/example/makefile" buildPath="${workspace_loc:/SystemSDK}/example" command="${BuildToolsPath}/make" id="cdt.managedbuild.builder.gnu.cross.1702722573" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="cdt.managedbuild.builder.gnu.cross"/>
<tool command="mrk3-cc -Wl,-no-relax " commandLinePattern="${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" errorParsers="org.eclipse.cdt.core.GLDErrorParser" id="com.nxp.toolchain.llvm.chip.linker.871746373" name="NXP MRK3 Chip Linker" superClass="com.nxp.toolchain.llvm.chip.linker">
<option id="com.nxp.toolchain.llvm.smartpoststeps.2038734181" name="Post Tool Invocation Steps" superClass="com.nxp.toolchain.llvm.smartpoststeps" valueType="stringList">
<listOptionValue builtIn="false" value="@echo 'Post build steps'"/>
@@ -43,13 +40,21 @@
</option>
<option id="llvm.c.link.option.ldflags.1330823867" name="Linker flags" superClass="llvm.c.link.option.ldflags" value="$(VARIANT_LD_INCLUDES) $(VARIANT_CPU_VERSION) -Wl,-T&quot;../ChipConfigurations/Default/SystemSettings.ld&quot; $(VARIANT_NXP_APPEXE_DIR)" valueType="string"/>
<option id="com.nxp.toolchain.llvm.option.chipexe.p71flags.1479640586" name="CPU (-mcpu)" superClass="com.nxp.toolchain.llvm.option.chipexe.p71flags" value="" valueType="string"/>
<option id="llvm.c.link.option.paths.1285625946" name="Library search path (-L)" superClass="llvm.c.link.option.paths"/>
<option id="llvm.c.link.option.paths.1285625946" name="Library search path (-L)" superClass="llvm.c.link.option.paths" valueType="libPaths">
<listOptionValue builtIn="false" value="&quot;t:/JCOP_EMV/sde/launch/SCC_Projects/SystemSDK/..\Shared\Product\N7021\P71D320P_SM_NFL_M0_D0\ISS\bin&quot;"/>
</option>
<option id="llvm.linker.option.preprocessor.def.470125519" name="Defined symbols (-D)" superClass="llvm.linker.option.preprocessor.def" valueType="definedSymbols"/>
<inputType id="com.nxp.toolchain.llvm.chip.linker.inputType.614957198" superClass="com.nxp.toolchain.llvm.chip.linker.inputType"/>
</tool>
<tool id="com.nxp.toolchain.llvm.assembler.base.2046914068" name="NXP MRK3 Assembler" superClass="com.nxp.toolchain.llvm.assembler.base"/>
<tool id="com.nxp.toolchain.llvm.c.compiler.base.242725503" name="NXP MRK3 Compiler" superClass="com.nxp.toolchain.llvm.c.compiler.base"/>
</toolChain>
</folderInfo>
<fileInfo id="com.nxp.toolchain.llvm.chip.configuration.195444460.1973200889.907582090.693462100.656920554" name="main.c" rcbsApplicability="disable" resourcePath="example/main.c" toolsToInvoke="com.nxp.toolchain.llvm.c.compiler.base.1563519969">
<tool id="com.nxp.toolchain.llvm.c.compiler.base.1563519969" name="NXP MRK3 Compiler" superClass="com.nxp.toolchain.llvm.c.compiler.base">
<inputType id="com.nxp.toolchain.llvm.c.compiler.input.1384611626" superClass="com.nxp.toolchain.llvm.c.compiler.input"/>
</tool>
</fileInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings">
@@ -57,7 +62,7 @@
</storageModule>
<storageModule moduleId="com.nxp.toolchain.chipSettings" version="0.3.0">
<chipType>P71D320</chipType>
<tools compilerRevision="MRK3_LLVM_1.6.16" isRevisionWsScope="false" pmModel="Release_LARGE_PM"/>
<tools compilerRevision="MRK3_LLVM_1.5.7" isRevisionWsScope="false" pmModel="Release_LARGE_PM"/>
</storageModule>
</cconfiguration>
</storageModule>
@@ -66,10 +71,10 @@
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
<storageModule moduleId="refreshScope" versionNumber="2">
<configuration configurationName="ISS_P71D321P_SM_FL_M0_D0">
<configuration configurationName="SMD_P71D240P_SM_FL_M0_D0">
<resource resourceType="PROJECT" workspacePath="/SystemSDK"/>
</configuration>
<configuration configurationName="SMD_P71D240P_SM_FL_M0_D0">
<configuration configurationName="ISS_P71D321P_SM_FL_M0_D0">
<resource resourceType="PROJECT" workspacePath="/SystemSDK"/>
</configuration>
<configuration configurationName="Default">
@@ -81,17 +86,17 @@
<configuration configurationName="ISS_P71D320P_SM_FL_M0_D0">
<resource resourceType="PROJECT" workspacePath="/SystemSDK"/>
</configuration>
<configuration configurationName="ISS_P71D321M_SM_FL_M4_D0">
<resource resourceType="PROJECT" workspacePath="/SystemSDK"/>
</configuration>
<configuration configurationName="SMD_P71D320P_SM_FL_M0_D0">
<resource resourceType="PROJECT" workspacePath="/SystemSDK"/>
</configuration>
<configuration configurationName="ISS_P71D321M_SM_FL_M4_D0">
<resource resourceType="PROJECT" workspacePath="/SystemSDK"/>
</configuration>
<configuration configurationName="ISS_P71D321M_SM_NFL_M4_D0"/>
<configuration configurationName="ProductIC_P71D320P_SM_FL_M0_D0"/>
<configuration configurationName="ISS_P71D321P_SM_NFL_M0_D0"/>
<configuration configurationName="ISS_P71D320M_SM_NFL_M4_D0"/>
<configuration configurationName="ProductIC_P71D320P_SM_FL_M0_D0"/>
<configuration configurationName="ISS_P71D320P_SM_NFL_M0_D0"/>
<configuration configurationName="ISS_P71D320M_SM_NFL_M4_D0"/>
<configuration configurationName="ProductIC_P71D240P_SM_FL_M0_D0">
<resource resourceType="PROJECT" workspacePath="/SystemSDK"/>
</configuration>
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project>
<configuration id="com.nxp.toolchain.llvm.chip.configuration.195444460.1973200889.907582090.693462100" name="Default">
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider class="org.eclipse.cdt.core.language.settings.providers.LanguageSettingsGenericProvider" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider" name="CDT User Setting Entries" prefer-non-shared="true"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="com.nxp.toolchain.llvm.MRK3BuiltinSpecsDetector" ref="shared-provider"/>
</extension>
</configuration>
</project>
@@ -0,0 +1,67 @@
eclipse.preferences.version=1
org.eclipse.cdt.codan.checkers.errnoreturn=Warning
org.eclipse.cdt.codan.checkers.errnoreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
org.eclipse.cdt.codan.checkers.errreturnvalue=Error
org.eclipse.cdt.codan.checkers.errreturnvalue.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.checkers.noreturn=Error
org.eclipse.cdt.codan.checkers.noreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation=Error
org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem=Error
org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem=Warning
org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem=Error
org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem=Warning
org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},no_break_comment\=>"no break",last_case_param\=>false,empty_case_param\=>false}
org.eclipse.cdt.codan.internal.checkers.CatchByReference=Warning
org.eclipse.cdt.codan.internal.checkers.CatchByReference.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},unknown\=>false,exceptions\=>()}
org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem=Error
org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization=Warning
org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},skip\=>true}
org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem=Error
org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem=Error
org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.InvalidArguments=Error
org.eclipse.cdt.codan.internal.checkers.InvalidArguments.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem=Error
org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem=Error
org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem=Error
org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem=Error
org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker=-Info
org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},pattern\=>"^[a-z]",macro\=>true,exceptions\=>()}
org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem=Warning
org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.OverloadProblem=Error
org.eclipse.cdt.codan.internal.checkers.OverloadProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem=Error
org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem=Error
org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem=-Warning
org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem=-Warning
org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem=Warning
org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>()}
org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem=Warning
org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},paramNot\=>false}
org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem=Warning
org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},else\=>false,afterelse\=>false}
org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem=Error
org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem=Warning
org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem=Warning
org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem=Warning
org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>("@(\#)","$Id")}
org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem=Error
org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+163
View File
@@ -0,0 +1,163 @@
eclipse.preferences.version=1
org.eclipse.cdt.core.formatter.alignment_for_arguments_in_method_invocation=16
org.eclipse.cdt.core.formatter.alignment_for_assignment=16
org.eclipse.cdt.core.formatter.alignment_for_base_clause_in_type_declaration=80
org.eclipse.cdt.core.formatter.alignment_for_binary_expression=16
org.eclipse.cdt.core.formatter.alignment_for_compact_if=16
org.eclipse.cdt.core.formatter.alignment_for_conditional_expression=34
org.eclipse.cdt.core.formatter.alignment_for_conditional_expression_chain=18
org.eclipse.cdt.core.formatter.alignment_for_constructor_initializer_list=0
org.eclipse.cdt.core.formatter.alignment_for_declarator_list=16
org.eclipse.cdt.core.formatter.alignment_for_enumerator_list=48
org.eclipse.cdt.core.formatter.alignment_for_expression_list=0
org.eclipse.cdt.core.formatter.alignment_for_expressions_in_array_initializer=16
org.eclipse.cdt.core.formatter.alignment_for_member_access=0
org.eclipse.cdt.core.formatter.alignment_for_overloaded_left_shift_chain=16
org.eclipse.cdt.core.formatter.alignment_for_parameters_in_method_declaration=16
org.eclipse.cdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
org.eclipse.cdt.core.formatter.brace_position_for_array_initializer=end_of_line
org.eclipse.cdt.core.formatter.brace_position_for_block=end_of_line
org.eclipse.cdt.core.formatter.brace_position_for_block_in_case=end_of_line
org.eclipse.cdt.core.formatter.brace_position_for_method_declaration=end_of_line
org.eclipse.cdt.core.formatter.brace_position_for_namespace_declaration=end_of_line
org.eclipse.cdt.core.formatter.brace_position_for_switch=end_of_line
org.eclipse.cdt.core.formatter.brace_position_for_type_declaration=end_of_line
org.eclipse.cdt.core.formatter.comment.min_distance_between_code_and_line_comment=1
org.eclipse.cdt.core.formatter.comment.never_indent_line_comments_on_first_column=true
org.eclipse.cdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=true
org.eclipse.cdt.core.formatter.compact_else_if=true
org.eclipse.cdt.core.formatter.continuation_indentation=2
org.eclipse.cdt.core.formatter.continuation_indentation_for_array_initializer=2
org.eclipse.cdt.core.formatter.format_guardian_clause_on_one_line=false
org.eclipse.cdt.core.formatter.indent_access_specifier_compare_to_type_header=false
org.eclipse.cdt.core.formatter.indent_access_specifier_extra_spaces=0
org.eclipse.cdt.core.formatter.indent_body_declarations_compare_to_access_specifier=true
org.eclipse.cdt.core.formatter.indent_body_declarations_compare_to_namespace_header=false
org.eclipse.cdt.core.formatter.indent_breaks_compare_to_cases=true
org.eclipse.cdt.core.formatter.indent_declaration_compare_to_template_header=false
org.eclipse.cdt.core.formatter.indent_empty_lines=false
org.eclipse.cdt.core.formatter.indent_statements_compare_to_block=true
org.eclipse.cdt.core.formatter.indent_statements_compare_to_body=true
org.eclipse.cdt.core.formatter.indent_switchstatements_compare_to_cases=true
org.eclipse.cdt.core.formatter.indent_switchstatements_compare_to_switch=true
org.eclipse.cdt.core.formatter.indentation.size=2
org.eclipse.cdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
org.eclipse.cdt.core.formatter.insert_new_line_after_template_declaration=do not insert
org.eclipse.cdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
org.eclipse.cdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
org.eclipse.cdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
org.eclipse.cdt.core.formatter.insert_new_line_before_colon_in_constructor_initializer_list=do not insert
org.eclipse.cdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
org.eclipse.cdt.core.formatter.insert_new_line_before_identifier_in_function_declaration=do not insert
org.eclipse.cdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
org.eclipse.cdt.core.formatter.insert_new_line_in_empty_block=insert
org.eclipse.cdt.core.formatter.insert_space_after_assignment_operator=insert
org.eclipse.cdt.core.formatter.insert_space_after_binary_operator=insert
org.eclipse.cdt.core.formatter.insert_space_after_closing_angle_bracket_in_template_arguments=insert
org.eclipse.cdt.core.formatter.insert_space_after_closing_angle_bracket_in_template_parameters=insert
org.eclipse.cdt.core.formatter.insert_space_after_closing_brace_in_block=insert
org.eclipse.cdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
org.eclipse.cdt.core.formatter.insert_space_after_colon_in_base_clause=insert
org.eclipse.cdt.core.formatter.insert_space_after_colon_in_case=insert
org.eclipse.cdt.core.formatter.insert_space_after_colon_in_conditional=insert
org.eclipse.cdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
org.eclipse.cdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
org.eclipse.cdt.core.formatter.insert_space_after_comma_in_base_types=insert
org.eclipse.cdt.core.formatter.insert_space_after_comma_in_declarator_list=insert
org.eclipse.cdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
org.eclipse.cdt.core.formatter.insert_space_after_comma_in_expression_list=insert
org.eclipse.cdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
org.eclipse.cdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
org.eclipse.cdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
org.eclipse.cdt.core.formatter.insert_space_after_comma_in_template_arguments=insert
org.eclipse.cdt.core.formatter.insert_space_after_comma_in_template_parameters=insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_angle_bracket_in_template_arguments=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_angle_bracket_in_template_parameters=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_bracket=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_exception_specification=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_postfix_operator=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.cdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.cdt.core.formatter.insert_space_after_semicolon_in_for=insert
org.eclipse.cdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_assignment_operator=insert
org.eclipse.cdt.core.formatter.insert_space_before_binary_operator=insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_angle_bracket_in_template_arguments=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_angle_bracket_in_template_parameters=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_bracket=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_exception_specification=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_colon_in_base_clause=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_colon_in_case=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_colon_in_conditional=insert
org.eclipse.cdt.core.formatter.insert_space_before_colon_in_default=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_comma_in_base_types=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_comma_in_declarator_list=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_comma_in_expression_list=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_comma_in_template_arguments=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_comma_in_template_parameters=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_angle_bracket_in_template_arguments=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_angle_bracket_in_template_parameters=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_brace_in_block=insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_brace_in_namespace_declaration=insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_bracket=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_exception_specification=insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_for=insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_if=insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_while=insert
org.eclipse.cdt.core.formatter.insert_space_before_postfix_operator=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_prefix_operator=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_question_in_conditional=insert
org.eclipse.cdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
org.eclipse.cdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.cdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
org.eclipse.cdt.core.formatter.insert_space_between_empty_brackets=do not insert
org.eclipse.cdt.core.formatter.insert_space_between_empty_parens_in_exception_specification=do not insert
org.eclipse.cdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
org.eclipse.cdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
org.eclipse.cdt.core.formatter.join_wrapped_lines=true
org.eclipse.cdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.cdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.cdt.core.formatter.keep_imple_if_on_one_line=false
org.eclipse.cdt.core.formatter.keep_then_statement_on_same_line=false
org.eclipse.cdt.core.formatter.lineSplit=80
org.eclipse.cdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.cdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.cdt.core.formatter.tabulation.char=space
org.eclipse.cdt.core.formatter.tabulation.size=2
org.eclipse.cdt.core.formatter.use_tabs_only_for_leading_indentations=false
+3
View File
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
formatter_profile=_K&R spaces
formatter_settings_version=1
+1 -1
View File
@@ -13,7 +13,7 @@
<SettingGroup>
<Name>Product</Name>
<Setting Name="GdbServerDevice">
<Value>D600</Value>
<Value>N7121</Value>
</Setting>
</SettingGroup>
</cfg>
@@ -15,11 +15,11 @@
<stringAttribute key="com.nxp.toolchain.dsf.nxpload.gdbservermode" value="${OEF_HWVariant}"/>
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.AUTO_SOLIB" value="true"/>
<listAttribute key="org.eclipse.cdt.dsf.gdb.AUTO_SOLIB_LIST"/>
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="${eclipse_home:}\.llvm\${compiler_revision}\LLVM_Build\install-master\bin\mrk3-gdb.exe"/>
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="${eclipse_home:}\.llvm\${compiler_revision}\LLVM_BUILD\install-master\bin\mrk3-gdb.exe"/>
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_ON_FORK" value="false"/>
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEV" value="/dev/ttyS0"/>
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEV_SPEED" value="115200"/>
<stringAttribute key="org.eclipse.cdt.dsf.gdb.GDB_INIT" value="${workspace_loc:}\SystemSDK\Default\conf\DBG_2023-12-19-142946_Default.chipexe\monitorcommands"/>
<stringAttribute key="org.eclipse.cdt.dsf.gdb.GDB_INIT" value="${workspace_loc:}\SystemSDK\Default\conf\DBG_2022-02-07-151725_Default.chipexe\monitorcommands"/>
<stringAttribute key="org.eclipse.cdt.dsf.gdb.HOST" value="localhost"/>
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.NON_STOP" value="false"/>
<stringAttribute key="org.eclipse.cdt.dsf.gdb.PORT" value="51000"/>
@@ -42,15 +42,20 @@
<booleanAttribute key="org.eclipse.cdt.launch.use_terminal" value="true"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_GDBSERVER_COMMAND" value="${workspace_loc:}\SystemSDK\tools\GdbServer.exe"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_GDBSERVER_PORT" value="51000"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_PRERUN_CMDS" value=""/>
<booleanAttribute key="org.eclipse.debug.core.ATTR_SKIP_DOWNLOAD_TO_TARGET" value="false"/>
<stringAttribute key="org.eclipse.debug.core.ATTR_TARGET_PATH" value=""/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/SystemSDK"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<stringAttribute key="org.eclipse.debug.core.REMOTE_TCP" value="Local"/>
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
<mapEntry key="[debug]" value="com.nxp.toolchain.debug.dsf.launch.P71DSFRemoteLaunchDelegate"/>
<mapEntry key="[run]" value="com.nxp.toolchain.debug.dsf.launch.P71DSFRemoteLaunchDelegate"/>
</mapAttribute>
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList context=&quot;reserved-for-future-use&quot;/&gt;&#13;&#10;"/>
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList context=&quot;reserved-for-future-use&quot;&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191380698&quot; label=&quot;&amp;amp;(*(res))&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191380560&quot; label=&quot;mpi&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191380592&quot; label=&quot;mpi&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191380608&quot; label=&quot;mpi&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191380528&quot; label=&quot;mpi&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191364351&quot; label=&quot;u&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191364128&quot; label=&quot;x&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191380528&quot; label=&quot;x&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191380816&quot; label=&quot;n&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191380528&quot; label=&quot;&amp;amp;(*(d))&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191380528&quot; label=&quot;d&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191382000&quot; label=&quot;w&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191382000&quot; label=&quot;w&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191382192&quot; label=&quot;b&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191380656&quot; label=&quot;r&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191382000&quot; label=&quot;w&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191382096&quot; label=&quot;s&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191380752&quot; label=&quot;&amp;amp;((p)-&amp;gt;z)&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191382096&quot; label=&quot;s&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191382096&quot; label=&quot;s&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191382192&quot; label=&quot;b&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191382096&quot; label=&quot;s&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191380752&quot; label=&quot;&amp;amp;((p)-&amp;gt;z)&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191364351&quot; label=&quot;h&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191381472&quot; label=&quot;factor&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191381472&quot; label=&quot;&amp;amp;(*(factor))&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191381472&quot; label=&quot;factor&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191381472&quot; label=&quot;factor&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191381040&quot; label=&quot;r&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191381472&quot; label=&quot;factor&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191381472&quot; label=&quot;factor&quot;/&gt;&#13;&#10;&lt;gdbmemoryBlockExpression address=&quot;3602879706191381472&quot; label=&quot;factor&quot;/&gt;&#13;&#10;&lt;/memoryBlockExpressionList&gt;&#13;&#10;"/>
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
</launchConfiguration>
@@ -83,31 +83,17 @@ monitor enable_commserver
# <reader>: uart | jtag | ciu
monitor enable_reader uart 0001
monitor enable_reader ciu 0002
monitor enable_reader i2c 0003
monitor enable_reader spi 0004
# increase timeout for SMD usecases in [sec]
set remotetimeout 1000
# Init NV from dat file (only for simulator)
monitor mem_init C:\\Users\\tanuki\\eclipse-jcop45\\SystemSDK\\tools\\Default.dat NV
# Disable hardware watchpoints
set remote hardware-watchpoint-limit 0
set remote hardware-watchpoint-length-limit 0
# Init NV from dat file (onyl for simulator)
monitor mem_init "C:/Users/tanuki/eclipse-securebox/SystemSDK/tools/Default.dat" NV
# Disable gdb based software breakpoints
set remote memory-breakpoints off
# Make hw breakpoints the default
set breakpoint default-type hardware
# Always insert breakpoints
set breakpoint always-inserted on
# Set breakpoint limit
set remote hardware-breakpoint-limit 9
### Load metadata and all sections ###
nxpload
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP B.V. 2016 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP B.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP B.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP B.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP B.V. 2016 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP B.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP B.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP B.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP B.V. 2016 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP B.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP B.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP B.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -0,0 +1,49 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP B.V. 2016 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP B.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP B.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP B.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClSymCfg_TypeDefs.h
* @brief: Type definitions of the crypto library SymCfg component
*
*/
#ifndef __PHCLSYMCFG_TYPEDEFS_H_
#define __PHCLSYMCFG_TYPEDEFS_H_
#include <phCl_TypeDefs.h>
/**
* Forward declarations
*/
/** \brief Context definition */
typedef struct phClSymCfg_Ctx_t phClSymCfg_Ctx_t;
#define __PHCLSYMCFG_TYPES_DEFINED_
#include <phClSymCfg_CommonTypeDefs.h>
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PHCLSYMCFG_TYPEDEFS_H_ */
@@ -0,0 +1,28 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClUtils_Abort.h
* @brief: Interface of the Crypto Library Abort mechanism
*
*/
#ifndef __PHCLUTILS_ABORT_H_
#define __PHCLUTILS_ABORT_H_
#define PH_CLUTILS_ABORT 0
#endif /* __PHCLUTILS_ABORT_H_ */
@@ -0,0 +1,26 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClUtils_Abort_FunctionDefs.h
* @brief: Function definitions for the Crypto Library Abort mechanism
*
*/
#ifndef __PHCLUTILS_ABORT_FUNCTIONDEFS_H_
#define __PHCLUTILS_ABORT_FUNCTIONDEFS_H_
#endif /* __PHCLUTILS_ABORT_FUNCTIONDEFS_H_ */
@@ -0,0 +1,27 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClUtils_Abort_TypeDefs.h
* @brief: Type Definitions for the Crypto Library Abort mechanism
*
*/
#ifndef __PHCLUTILS_ABORT_TYPEDEFS_H_
#define __PHCLUTILS_ABORT_TYPEDEFS_H_
#endif /* __PHCLUTILS_ABORT_TYPEDEFS_H_ */
@@ -0,0 +1,29 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP B.V. 2016 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP B.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP B.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP B.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phCl_CompilerTypeDefs.h
* @brief: Compiler type definitions
*
*/
#ifndef __PHCL_COMPILERTYPEDEFS_H_
#define __PHCL_COMPILERTYPEDEFS_H_
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#endif /* __PHCL_COMPILERTYPEDEFS_H_ */
@@ -0,0 +1,51 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP B.V. 2016 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP B.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP B.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP B.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phCl_Memory.h
* @brief: Macros for alignment memory
*
*/
#ifndef __PHCL_MEMORY_H_
#define __PHCL_MEMORY_H_
#include <phCl_TypeDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
#define phCl_alignAddress(address) \
((void*)( (((size_t)(address)) + (sizeof(size_t) - 1)) \
& ((size_t)(~(sizeof(size_t) - 1))) ))
#define phCl_alignSize(size) \
((size_t)(((size_t)(size)) + (sizeof(size_t) - 1)) \
& ((size_t)(~(sizeof(size_t) - 1))) )
#define phCl_alignAddressWithOffset(address, offset) \
((void*)( (((size_t)(address) + (size_t)(offset)) + (sizeof(size_t) - 1)) \
& ((size_t)(~(sizeof(size_t) - 1))) ))
#define phCl_alignAddressToBoundary(address, boundary) \
((void*)( (((size_t)(address)) + (boundary - 1)) \
& ((size_t)(~(boundary - 1))) ))
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PHCL_MEMORY_H_ */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP B.V. 2016 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP B.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP B.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP B.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -35,7 +34,6 @@
#define PH_CL_SHORTCALL_ATTRIBUTE _PM16
typedef uint16_t phCl_Size_t;
typedef uint16_t phCl_uint_t;
/**
* P71 global scratch pad structure definition
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP B.V. 2016 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP B.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP B.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP B.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -0,0 +1,28 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClHash.h
* @brief: Interface of the Crypto Library Hash component
*
*/
#ifndef __PH_CLHASH_H_
#define __PH_CLHASH_H_
#include <phClHash_TypeDefs.h>
#include <phClHash_FunctionDefs.h>
#endif /* __PH_CLHASH_H_ */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017,2020 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -39,6 +38,9 @@ extern "C"
* Definitions
*******************************************************************************************************************************/
/** \brief API version definition */
#define PH_CLHASH_API_VERSION ( 7 ) /**< \brief API version */
/** \brief Security Counter values */
#define PH_CLHASH_SECURITYCOUNTER_VAL_HASH ( 0x5476U ) /**< \brief Security Counter value for the function phClHash_Hash() */
@@ -46,11 +48,11 @@ extern "C"
#define PH_CLHASH_HASH_SIZE_SHA1 ( 20 ) /**< \brief hash value size for SHA-1 */
#define PH_CLHASH_HASH_SIZE_SHA2_224 ( 28 ) /**< \brief hash value size for SHA2-224 */
#define PH_CLHASH_HASH_SIZE_SHA2_256 ( 32 ) /**< \brief hash value size for SHA2-256 */
#define PH_CLHASH_HASH_SIZE_SHA2_384 ( 48 ) /**< \brief hash value size for SHA2-384 */
#define PH_CLHASH_HASH_SIZE_SHA2_384 ( 48 ) /**< \brief hash value size for SHA2-284 */
#define PH_CLHASH_HASH_SIZE_SHA2_512 ( 64 ) /**< \brief hash value size for SHA2-512 */
#define PH_CLHASH_HASH_SIZE_SHA3_224 ( 28 ) /**< \brief hash value size for SHA3-224 */
#define PH_CLHASH_HASH_SIZE_SHA3_256 ( 32 ) /**< \brief hash value size for SHA3-256 */
#define PH_CLHASH_HASH_SIZE_SHA3_384 ( 48 ) /**< \brief hash value size for SHA3-384 */
#define PH_CLHASH_HASH_SIZE_SHA3_384 ( 48 ) /**< \brief hash value size for SHA3-284 */
#define PH_CLHASH_HASH_SIZE_SHA3_512 ( 64 ) /**< \brief hash value size for SHA3-512 */
#define PH_CLHASH_HASH_SIZE_SM3 ( 32 ) /**< \brief hash value size for OSCCA SM3 */
#define PH_CLHASH_HASH_SIZE_MAX ( 64 ) /**< \brief Maximum size of the hash value */
@@ -59,11 +61,11 @@ extern "C"
#define PH_CLHASH_COUNTER_SIZE_SHA1 ( 8 ) /**< \brief Size of the internal counter of the hash algortihm for SHA-1 */
#define PH_CLHASH_COUNTER_SIZE_SHA2_224 ( 8 ) /**< \brief Size of the internal counter of the hash algortihm for SHA2-224 */
#define PH_CLHASH_COUNTER_SIZE_SHA2_256 ( 8 ) /**< \brief Size of the internal counter of the hash algortihm for SHA2-256 */
#define PH_CLHASH_COUNTER_SIZE_SHA2_384 ( 16 ) /**< \brief Size of the internal counter of the hash algortihm for SHA2-384 */
#define PH_CLHASH_COUNTER_SIZE_SHA2_384 ( 16 ) /**< \brief Size of the internal counter of the hash algortihm for SHA2-284 */
#define PH_CLHASH_COUNTER_SIZE_SHA2_512 ( 16 ) /**< \brief Size of the internal counter of the hash algortihm for SHA2-512 */
#define PH_CLHASH_COUNTER_SIZE_SHA3_224 ( 4 ) /**< \brief Size of the internal counter of the hash algortihm for SHA3-224 */
#define PH_CLHASH_COUNTER_SIZE_SHA3_256 ( 4 ) /**< \brief Size of the internal counter of the hash algortihm for SHA3-256 */
#define PH_CLHASH_COUNTER_SIZE_SHA3_384 ( 4 ) /**< \brief Size of the internal counter of the hash algortihm for SHA3-384 */
#define PH_CLHASH_COUNTER_SIZE_SHA3_384 ( 4 ) /**< \brief Size of the internal counter of the hash algortihm for SHA3-284 */
#define PH_CLHASH_COUNTER_SIZE_SHA3_512 ( 4 ) /**< \brief Size of the internal counter of the hash algortihm for SHA3-512 */
#define PH_CLHASH_COUNTER_SIZE_SM3 ( 8 ) /**< \brief Size of the internal counter of the hash algortihm for OSCCA SM3 */
#define PH_CLHASH_COUNTER_SIZE_MAX ( 16 ) /**< \brief Maximum size of the internal counter of the hash algortihm */
@@ -104,7 +106,7 @@ typedef enum phClHash_Err_t
PH_ERR_CLHASH_IMPORTEXPORT_OK = ( 0x66C6U ), /**< \brief State import/export successful */
PH_ERR_CLHASH_HASH_UPDATE_FAILURE = ( 0x991EU ), /**< \brief XOF: cannot update in extraction phase */
PH_ERR_CLHASH_HASH_FULL = ( 0x992DU ), /**< \brief Reached maximum message length that can be processed by underlying hash algorithm */
PH_ERR_CLHASH_HASH_FULL = ( 0x992DU ), /**< \brief Hash: Maximum message length reached */
PH_ERR_CLHASH_EXTRACT_DIGEST_FAILURE = ( 0x994BU ), /**< \brief Extraction of partial digest failed due to incomplete partial hash */
PH_ERR_CLHASH_CONVERT_FAILURE = ( 0x9978U ), /**< \brief Conversion of context failed - different algorithm */
PH_ERR_CLHASH_IMPORTEXPORT_FAILURE = ( 0x9987U ), /**< \brief Export failed due to incomplete partial hash */
@@ -124,6 +126,7 @@ typedef union
{
phClUtils_call_ImportBigEndianParamSecureToCL_t pCallImportBigEndianParamSecureToCL; /**< \brief Pointer to pCallImportBigEndianParamSecureToCL function, if null pointer is passed, standard import/export functions will be used */
phClUtils_call_ImportParamSecureToCL_t pCallImportParamSecureToCL; /**< \brief Pointer to pCallImportParamSecureToCL function, if null pointer is passed, standard import/export functions will be used */
phClUtils_call_ImportParamSecureToCL_t pCallImportDMA; /**< \brief Pointer to pCallImportDMA function. Pointer is just supported by Kinetis and Helios */
} phClHash_call_ImportParamSecureToCL_t;
typedef union
@@ -135,10 +138,10 @@ typedef union
/**
* \brief Structure of parameters for hash function
*
* Not all fields in the parameters structure need to be filled for all operations as explained
* Not all fields in the parameters structure need to be filled for all operation as explained
* by the table below. All unused fields are ignored.
*
* Note: The fields are logically grouped together, but the structure uses a different ordering
* Note: The fields are logically grouped together, but in the structure uses a different ordering
* for alignment
*
* + --------------------+-----------+-----------+-----------+-----------+-----------+
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017,2020 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -35,7 +34,7 @@
* \returns Status of operation.
* \retval ::PH_ERR_CLHASH_HASH_CALC_OK Hash operation finished successfully
* \retval ::PH_ERR_CLHASH_HASH_UPDATE_FAILURE Cannot update XOF in extraction phase
* \retval ::PH_ERR_CLHASH_HASH_FULL Reached maximum message length that can be processed by underlying hash algorithm
* \retval ::PH_ERR_CLHASH_HASH_FULL Hash: Maximum message length reached
* \retval ::PH_ERR_CLHASH_FAULT_ATTACK Possible attack detected
*
*/
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -0,0 +1,29 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClHash_Version.h
* @brief: Version information of the Crypto Library Hash component
*
*/
#ifndef __PH_CLHASH_VERSION_H_
#define __PH_CLHASH_VERSION_H_
#define PH_CLHASH_VERSION_MAJOR 0x02
#define PH_CLHASH_VERSION_MINOR 0x02
#define PH_CLHASH_VERSION_PATCH 0x00
#endif /* __PH_CLHASH_VERSION_H_ */
@@ -1,21 +1,20 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClKeyStoreMgr.h
* @file: phClKeyStoreMgr_JumpTable.h
* @brief: Interface of the crypto library KeyStoreMgr component
*
*/
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/*
* phClKeyStoreMgr_CommonTypeDefs.h
@@ -32,10 +31,10 @@
#include <phClKeyStoreMgr_PlatformTypeDefs.h>
/** \brief Definition of workarea sizes (in bytes) for the KeyStoreMgr */
#define PH_CLKEYSTOREMGR_CPU_WA ( 68 ) /**< \brief Maximum size of CPU workarea */
#define PH_CLKEYSTOREMGR_CPU_WA ( 32 ) /**< \brief Maximum size of CPU workarea */
/** \brief Definition of context sizes (in bytes) for the KeyStoreMgr */
#define PH_CLKEYSTOREMGR_CTX_SIZE (48)
#define PH_CLKEYSTOREMGR_CTX_SIZE (32)
/** \brief Definition of context for the KeyStoreMgr */
typedef struct phClKeyStoreMgr_Ctx_t phClKeyStoreMgr_Ctx_t;
@@ -217,7 +216,7 @@ typedef struct phClKeyStoreMgr_GetKeyBufferSize_Param_t
*
* \retval error code of type phClKeyStoreMgr_Err_t
*/
#define PH_CLKEYSTOREMGR_GET_ERROR_CODE(phClKeyStoreMgrGetKeyBufferSizeResult) ((phClKeyStoreMgr_Err_t)((phClKeyStoreMgrGetKeyBufferSizeResult) & 0xFFFF))
#define PH_CLKEYSTOREMGR_GET_ERROR_CODE(phClKeyStoreMgrGetKeyBufferSizeResult) ((phClKeyStoreMgr_Err_t)(phClKeyStoreMgrGetKeyBufferSizeResult & 0xFFFF))
/**
* \brief This macro gets number of bytes returned by phClKeyStoreMgr_GetKeyBufferSize function.
@@ -227,7 +226,7 @@ typedef struct phClKeyStoreMgr_GetKeyBufferSize_Param_t
*
* \retval 16-bit number of bytes
*/
#define PH_CLKEYSTOREMGR_GET_BUFFER_SIZE(phClKeyStoreMgrGetKeyBufferSizeResult) ((uint16_t)((phClKeyStoreMgrGetKeyBufferSizeResult) >> 16))
#define PH_CLKEYSTOREMGR_GET_BUFFER_SIZE(phClKeyStoreMgrGetKeyBufferSizeResult) ((uint16_t)(phClKeyStoreMgrGetKeyBufferSizeResult >> 16))
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/*
* phClKeyStoreMgr_PlatformTypeDefs.h
@@ -44,7 +43,7 @@
/** bit 26-16: SECCTRL settings, range additional dummy cycles from [0:1023] */
#define PH_CLKEYSTOREMGR_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES(cycles) ( (( uint32_t ) ((cycles) & 0x3FF) << PH_CLKEYSTOREMGR_SEC_OPT_SECCTRL_POS ) | PH_CLKEYSTOREMGR_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES_ENABLE)
#define PH_CLKEYSTOREMGR_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES(cycles) ( (( uint32_t ) (cycles & 0x3FF) << PH_CLKEYSTOREMGR_SEC_OPT_SECCTRL_POS ) | PH_CLKEYSTOREMGR_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES_ENABLE)
/** bit 26: SECCTRL enable additional dummy cycles */
#define PH_CLKEYSTOREMGR_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES_ENABLE ( ( uint32_t ) 0x01 << PH_CLKEYSTOREMGR_SEC_OPT_HW_ADDITIONAL_DUMMY_CYCLES_ENABLE_POS )
@@ -0,0 +1,33 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClKeyStoreMgr_StackUsage.h
* @brief: Stack usage information of the Crypto Library KeyStoreMgr component
*
*/
#ifndef __PH_CLKEYSTOREMGR_STACKUSAGE_H_
#define __PH_CLKEYSTOREMGR_STACKUSAGE_H_
#define PH_CLKEYSTOREMGR_LOADMASTERKEY_SIZE_STACK (68U)
#define PH_CLKEYSTOREMGR_UNLOADMASTERKEY_SIZE_STACK (36U)
#define PH_CLKEYSTOREMGR_SETPROTECTEDKEY_SIZE_STACK (104U)
#define PH_CLKEYSTOREMGR_GETPLAINKEY_SIZE_STACK (144U)
#define PH_CLKEYSTOREMGR_MAX_SIZE_STACK (144) // get max from the above
#endif /* __PH_CLKEYSTOREMGR_STACKUSAGE_H_*/
@@ -0,0 +1,31 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClKeyStoreMgr_TypeDefs.h
* @brief: Type definitions of the crypto library KeyStoreMgr component
*
*/
#ifndef __PHCLKEYSTOREMGR_TYPEDEFS_H_
#define __PHCLKEYSTOREMGR_TYPEDEFS_H_
#include <phCl_TypeDefs.h>
#define __PHCLKEYSTOREMGR_TYPES_DEFINED_
#include <phClKeyStoreMgr_CommonTypeDefs.h>
#endif /* __PHCLKEYSTOREMGR_TYPEDEFS_H_ */
@@ -0,0 +1,29 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClKeyStoreMgr_Version.h
* @brief: Version information of the Crypto Library KeyStoreMgr component
*
*/
#ifndef __PHCLKEYSTOREMGR_VERSION_H_
#define __PHCLKEYSTOREMGR_VERSION_H_
#define PH_CLKEYSTOREMGR_VERSION_MAJOR 0x02
#define PH_CLKEYSTOREMGR_VERSION_MINOR 0x01
#define PH_CLKEYSTOREMGR_VERSION_PATCH 0x00
#endif /* __PHCLKEYSTOREMGR_VERSION_H_ */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -0,0 +1,119 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClRng_CommonTypeDefs.h
* @brief: Common type definitions of the crypto library RNG component
*
*/
#ifndef __PHCLRNG_COMMONTYPEDEFS_H_
#define __PHCLRNG_COMMONTYPEDEFS_H_
#include <phCl_TypeDefs.h>
#define PH_CLRNG_API_VERSION 10
/** \brief Error codes */
typedef enum phClRng_Err_t
{
PH_ERR_CLRNG_INIT_OK = 0x783C, /**< \brief Initialization successful */
PH_ERR_CLRNG_GETRANDOM_OK = 0x7869, /**< \brief Random number generation successful */
PH_ERR_CLRNG_RESEED_OK = 0x7896, /**< \brief Re-seeding successful */
PH_ERR_CLRNG_UNINIT_OK = 0x78A5, /**< \brief Un-init successful */
PH_ERR_CLRNG_TOO_LONG = 0x872E, /**< \brief The requested amount of random data is too long. The limit is 1024 bytes for DES */
PH_ERR_CLRNG_NOT_INITIALIZED = 0x87E8, /**< \brief RNG instance not initialized before usage */
PH_ERR_CLRNG_FAULT_ATTACK = 0x87F0, /**< \brief Possible attack detected */
PH_ERR_CLRNG_ABORTED = 0x870F /**< \brief Random number generation aborted */
} phClRng_Err_t;
/**
* \brief Defines for context sizes
*/
#define PH_CLRNG_3DES_CTX_SIZE ((size_t) 152) /**< \brief context size for DES Mode */
#define PH_CLRNG_AES128_CTX_SIZE ((size_t) 152) /**< \brief context size for AES-128 Mode */
#define PH_CLRNG_AES192_CTX_SIZE ((size_t) 184) /**< \brief context size for AES-192 Mode */
#define PH_CLRNG_AES256_CTX_SIZE ((size_t) 204) /**< \brief context size for AES-256 Mode */
/* Settings */
/* brief defines for the cipher_mode. Always one *_MODE (cipher mode) options needs to be used in combination (logical or) with one *_PR_MODE_* (prediction resistance option).*/
#define PH_CLRNG_3DES_MODE (uint16_t)0x0001
#define PH_CLRNG_AES_MODE (uint16_t)0x0002 /* The constant were kept for backward compatibility */
#define PH_CLRNG_AES128_MODE (uint16_t)0x0002
#define PH_CLRNG_AES192_MODE (uint16_t)0x0004
#define PH_CLRNG_AES256_MODE (uint16_t)0x0008
/* Prediction resistance modes */
#define PH_CLRNG_PR_MODE_DEACTIVATED (uint16_t)0x0010
#define PH_CLRNG_PR_MODE_ACTIVATED (uint16_t)0x0020
/** \brief Security counter invariant values */
//WARNING: the values are subject of change, always use the following definitions to access valid constants
#define PH_CLRNG_SECURITYCOUNTER_VAL_INIT (0x3666U) /**< \brief Security Counter value for the function phClRng_Init() */
#define PH_CLRNG_SECURITYCOUNTER_VAL_GETRANDOM (0x5af0U) /**< \brief Security Counter value for the function phClRng_GetRandom() */
#define PH_CLRNG_SECURITYCOUNTER_VAL_RESEED (0x6798U) /**< \brief Security Counter value for the function phClRng_Reseed() */
#define PH_CLRNG_SECURITYCOUNTER_VAL_UNINIT (0x7352U) /**< \brief Security Counter value for the function phClRng_Uninit() */
/* \brief Defines masks*/
#define PH_CLRNG_WORKINGTESTMODE_MASK (0x0000FF00U)
#define PH_CLRNG_CIPHERPR_MASK (0x000000FFU)
#define PH_CLRNG_PREDICTIONRESISTANCE_MASK (0x000000F0U)
#define PH_CLRNG_CIPHERMODE_MASK (0x0000000FU)
/* Helper macros */
/**
* \brief This macro gets error code returned by phClRng_Init function.
* The error code is retrieved from 32-bit input parameter phClRngInitResult.
*
* \param [in] phClRngInitResult 32-bit value as returned by phClRng_Init function
*
* \retval error code of type phClRng_Err_t
*/
#define PH_CLRNG_INIT_GET_ERROR_CODE(phClRngInitResult) ((phClRng_Err_t)(phClRngInitResult & 0xFFFF))
/**
* \brief This macro gets cipher code returned by phClRng_Init function.
* The cipher mode is retrieved from 32-bit input parameter phClRngInitResult.
*
* \param [in] phClRngInitResult 32-bit value as returned by phClRng_Init function
*
* \retval 16-bit cipher mode
*/
#define PH_CLRNG_INIT_GET_CIPHER_MODE(phClRngInitResult) ((uint16_t)(phClRngInitResult >> 16))
/**
* \brief This macro gets error code returned by phClRng_GetRandom function.
* The error code is retrieved from 32-bit input parameter phClRngGetrandomResult.
*
* \param [in] phClRngGetrandomResult 32-bit value as returned by phClRng_GetRandom function
*
* \retval error code of type phClRng_Err_t
*/
#define PH_CLRNG_GETRANDOM_GET_ERROR_CODE(phClRngGetrandomResult) ((phClRng_Err_t)(phClRngGetrandomResult & 0xFFFF))
/**
* \brief This macro gets number of bytes returned by phClRng_GetRandom function.
* The number of bytes is retrieved from 32-bit input parameter phClRngGetrandomResult.
*
* \param [in] phClRngGetrandomResult 32-bit value as returned by phClRng_GetRandom function
*
* \retval 16-bit number of random bytes
*/
#define PH_CLRNG_GETRANDOM_GET_NUMBER_OF_BYTES(phClRngGetrandomResult) ((uint16_t)(phClRngGetrandomResult >> 16))
/* \brief this macro defines the maximum number of bytes that can be generated without re-seeding using the 3DES */
#define PH_CLRNG_3DESBYTENUMBERLIMIT (1024)
#endif /* __PHCLRNG_COMMONTYPEDEFS_H_ */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017,2020 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -24,10 +23,10 @@
#define COMPS_PHCLRNG_INC_MRK3_PHCLRNG_STACKUSAGE_H_
//Stack sizes of top level functions, needed for cleanup
#define PH_CLRNG_CORE_INIT_STACK_SIZE (108)
#define PH_CLRNG_CORE_GETRANDOM_STACK_SIZE (176)
#define PH_CLRNG_CORE_INIT_STACK_SIZE (88)
#define PH_CLRNG_CORE_GETRANDOM_STACK_SIZE (128)
#define PH_CLRNG_CORE_GETRANDOMBYTE_STACK_SIZE (122)
#define PH_CLRNG_CORE_RESEED_STACK_SIZE (104)
#define PH_CLRNG_CORE_RESEED_STACK_SIZE (86)
#define PH_CLRNG_CORE_UNINIT_STACK_SIZE (30)
#define PH_CLRNG_CORE_UNINIT_FAULT_ATTACK_STACK_SIZE (30)
@@ -0,0 +1,29 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClRng_Version.h
* @brief: Version information of the Crypto Library RNG component
*
*/
#ifndef __PH_CLRNG_VERSION_H_
#define __PH_CLRNG_VERSION_H_
#define PH_CLRNG_VERSION_MAJOR 0x05
#define PH_CLRNG_VERSION_MINOR 0x04
#define PH_CLRNG_VERSION_PATCH 0x00
#endif /* __PH_CLRNG_VERSION_H_ */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -0,0 +1,29 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClRngHealthTest_StackUsage.h
* @brief: Stack usage information of the Crypto Library RNG Health Test component
*
*/
#ifndef COMPS_PHCLRNGHEALTHTEST_INC_MRK3_PHCLRNGHEALTHTEST_STACKUSAGE_H_
#define COMPS_PHCLRNGHEALTHTEST_INC_MRK3_PHCLRNGHEALTHTEST_STACKUSAGE_H_
//Stack size definitions for cleanup
#define PH_CLRNGHEALTHTEST_PR_MODE_DEACTIVATED_STACK_SIZE (178)
#define PH_CLRNGHEALTHTEST_PR_MODE_ACTIVATED_STACK_SIZE (178)
#endif /* COMPS_PHCLRNGHEALTHTEST_INC_MRK3_PHCLRNGHEALTHTEST_STACKUSAGE_H_ */
@@ -0,0 +1,29 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClRngHealthTest_Version.h
* @brief: Version information for the Crypto Library RNG HealthTest component
*
*/
#ifndef __PH_CLRNGHEALTHTEST_VERSION_H_
#define __PH_CLRNGHEALTHTEST_VERSION_H_
#define PH_CLRNGHEALTHTEST_VERSION_MAJOR 0x03
#define PH_CLRNGHEALTHTEST_VERSION_MINOR 0x02
#define PH_CLRNGHEALTHTEST_VERSION_PATCH 0x00
#endif /* __PH_CLRNGHEALTHTEST_VERSION_H_ */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017,2020 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -98,21 +97,17 @@ extern "C"
/**
* \brief macros for phClRsa_OaepDecode workspace sizes
*/
#define PH_CLRSA_OAEPDECODE_SIZEOF_WS_CPU_FORMULA_MINMAX(keyBitLen, hashAlgoCpuWaSize, hashAlgoCtxSize, hashSizeMax, hashSizeMin) \
(phCl_alignSize(PH_CLRSA_OAEP_DB_LEN(PH_CLUTILS_BYTELEN(keyBitLen), hashSizeMin)) \
+(6) + phCl_alignSize(hashSizeMax) \
+ PH_CLUTILS_MAX(phCl_alignSize(hashSizeMax) + PH_CLRSA_MGF_WA_LEN(hashAlgoCpuWaSize, hashAlgoCtxSize, hashSizeMax), \
phCl_alignSize(PH_CLRSA_OAEP_DB_LEN(PH_CLUTILS_BYTELEN(keyBitLen), hashSizeMin)) \
+ PH_CLUTILS_MAX(phCl_alignSize(PH_CLRSA_OAEP_DB_LEN(PH_CLUTILS_BYTELEN(keyBitLen), hashSizeMin)) \
+ PH_CLRSA_MGF_WA_LEN(hashAlgoCpuWaSize, hashAlgoCtxSize, hashSizeMax), \
phCl_alignSize(2*2* sizeof(uint16_t)) + phCl_alignSize(hashSizeMax) + phCl_alignSize(hashAlgoCtxSize) + hashAlgoCpuWaSize)))
#define PH_CLRSA_OAEPDECODE_SIZEOF_WS_CPU_FORMULA(keyBitLen, hashAlgoCpuWaSize, hashAlgoCtxSize, hashSize) \
PH_CLRSA_OAEPDECODE_SIZEOF_WS_CPU_FORMULA_MINMAX(keyBitLen, hashAlgoCpuWaSize, hashAlgoCtxSize, hashSize, hashSize)
((6) + phCl_alignSize(hashSize) \
+ PH_CLUTILS_MAX(phCl_alignSize(hashSize) + PH_CLRSA_MGF_WA_LEN(hashAlgoCpuWaSize, hashAlgoCtxSize, hashSize), \
phCl_alignSize(PH_CLRSA_OAEP_DB_LEN(PH_CLUTILS_BYTELEN(keyBitLen), hashSize)) \
+ PH_CLUTILS_MAX(phCl_alignSize(PH_CLRSA_OAEP_DB_LEN(PH_CLUTILS_BYTELEN(keyBitLen), hashSize)) \
+ PH_CLRSA_MGF_WA_LEN(hashAlgoCpuWaSize, hashAlgoCtxSize, hashSize), \
phCl_alignSize(2*2* sizeof(uint16_t)) + phCl_alignSize(hashSize) + phCl_alignSize(hashAlgoCtxSize) + hashAlgoCpuWaSize)))
#define PH_CLRSA_OAEPDECODE_SIZEOF_WS_FX_FORMULA(hashAlgoFxWaSize) (hashAlgoFxWaSize)
#define PH_CLRSA_OAEPDECODE_SIZEOF_WS_CPU_KEY_BIT_LEN(keyBitLen) \
PH_CLRSA_OAEPDECODE_SIZEOF_WS_CPU_FORMULA_MINMAX(keyBitLen, PH_CLSHA_HASH_CPU_MAX, PH_CLSHA_CTX_MAX, PH_CLHASH_HASH_SIZE_MAX, PH_CLHASH_HASH_SIZE_SHA1)
PH_CLRSA_OAEPDECODE_SIZEOF_WS_CPU_FORMULA(keyBitLen, PH_CLSHA_HASH_CPU_MAX, PH_CLSHA_CTX_MAX, PH_CLHASH_HASH_SIZE_MAX)
/**
* \brief macros for phClRsa_PssPad workspace sizes
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -0,0 +1,53 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClRsa_OaepDecode_CommonMacrosDefs.h
* @brief: Macros to define the CPU and FX workspaces of the crypto library RSA component
*
*/
#ifndef __PHCLRSA_OAEPDECODE_COMMONMACROSDEFS_H_
#define __PHCLRSA_OAEPDECODE_COMMONMACROSDEFS_H_
#ifndef __PHCLRSA_TYPES_DEFINED_
#error Do not include this header file
#endif
#include <phClRsa_CommonMacrosDefs.h>
#ifdef __cplusplus
extern "C"
{
#endif
/**
* \brief Macros for phClRsa_OaepDecode workspace sizes
*/
#define PH_CLRSA_OAEPDECODE_SIZEOF_WS_CPU_FORMULA_EXTENDED(keyBitLen, hashAlgoCpuWaSize, hashAlgoCtxSize, hashSize) \
(phCl_alignSize(PH_CLRSA_OAEP_DB_LEN(PH_CLUTILS_BYTELEN(keyBitLen), hashSize)) \
+(6) + phCl_alignSize(hashSize) \
+ PH_CLUTILS_MAX(phCl_alignSize(hashSize) + PH_CLRSA_MGF_WA_LEN(hashAlgoCpuWaSize, hashAlgoCtxSize, hashSize), \
phCl_alignSize(PH_CLRSA_OAEP_DB_LEN(PH_CLUTILS_BYTELEN(keyBitLen), hashSize)) \
+ PH_CLUTILS_MAX(phCl_alignSize(PH_CLRSA_OAEP_DB_LEN(PH_CLUTILS_BYTELEN(keyBitLen), hashSize)) \
+ PH_CLRSA_MGF_WA_LEN(hashAlgoCpuWaSize, hashAlgoCtxSize, hashSize), \
phCl_alignSize(2*2* sizeof(uint16_t)) + phCl_alignSize(hashSize) + phCl_alignSize(hashAlgoCtxSize) + hashAlgoCpuWaSize)))
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PHCLRSA_OAEPDECODE_COMMONMACROSDEFS_H_ */
@@ -0,0 +1,42 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClRsa_PlatformFunctionDefs.h
* @brief: Function definitions for the crypto library RSA component
*
*/
#ifndef __PHCLRSA_PLATFORMFUNCTIONDEFS_H_
#define __PHCLRSA_PLATFORMFUNCTIONDEFS_H_
#include <phCl_TypeDefs.h>
#ifndef __PHCLRSA_TYPES_DEFINED_
#error Do not include this header file
#endif
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PHCLRSA_PLATFORMFUNCTIONDEFS_H_ */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -0,0 +1,44 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClRsa_TypeDefs.h
* @brief: Common type definitions for the crypto library RSA component
*
*/
#ifndef __PHCLRSA_TYPEDEFS_H_
#define __PHCLRSA_TYPEDEFS_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include <phCl_TypeDefs.h>
#include <phClHash_TypeDefs.h>
#include <phCl_Memory.h>
#include <phClSha_TypeDefs.h>
#define __PHCLRSA_TYPES_DEFINED_
#include <phClRsa_CommonTypeDefs.h>
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PHCLRSA_TYPEDEFS_H_ */
@@ -0,0 +1,29 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClRsa_Version.h
* @brief: Version information for the Crypto Library RSA component
*
*/
#ifndef __PH_CLRSA_VERSION_H_
#define __PH_CLRSA_VERSION_H_
#define PH_CLRSA_VERSION_MAJOR 0x06
#define PH_CLRSA_VERSION_MINOR 0x00
#define PH_CLRSA_VERSION_PATCH 0x01
#endif /* __PH_CLRSA_VERSION_H_ */
@@ -1,21 +1,20 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClRsaKg.h
* @file: phClRsaKg_JumpTable.h
* @brief: Interface of the crypto library RSA Key Generation component
*
*/
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -32,20 +31,20 @@ extern "C"
/** \brief Definition of work area sizes in bytes */
#define PH_CLRSAKG_CRT_SIZEOF_WS_CPU_1024 (78) /**< \brief phClRsaKg_Crt workspaceCPU size for bit length up to 1024 */
#define PH_CLRSAKG_CRT_SIZEOF_WS_CPU_2048 (78) /**< \brief phClRsaKg_Crt workspaceCPU size for bit length up to 2048 */
#define PH_CLRSAKG_CRT_SIZEOF_WS_CPU_3072 (78) /**< \brief phClRsaKg_Crt workspaceCPU size for bit length up to 3072 */
#define PH_CLRSAKG_CRT_SIZEOF_WS_CPU_4096 (78) /**< \brief phClRsaKg_Crt workspaceCPU size for bit length up to 4096 */
#define PH_CLRSAKG_CRT_SIZEOF_WS_CPU_1024 (84) /**< \brief phClRsaKg_Crt workspaceCPU size for bit length up to 1024 */
#define PH_CLRSAKG_CRT_SIZEOF_WS_CPU_2048 (84) /**< \brief phClRsaKg_Crt workspaceCPU size for bit length up to 2048 */
#define PH_CLRSAKG_CRT_SIZEOF_WS_CPU_3072 (84) /**< \brief phClRsaKg_Crt workspaceCPU size for bit length up to 3072 */
#define PH_CLRSAKG_CRT_SIZEOF_WS_CPU_4096 (84) /**< \brief phClRsaKg_Crt workspaceCPU size for bit length up to 4096 */
#define PH_CLRSAKG_CRT_SIZEOF_WS_FX_1024 (1184) /**< \brief phClRsaKg_Crt workspaceFX size for bit length up to 1024 and a public key of size <= 16 byte */
#define PH_CLRSAKG_CRT_SIZEOF_WS_FX_2048 (1824) /**< \brief phClRsaKg_Crt workspaceFX size for bit length up to 2048 and a public key of size <= 16 byte */
#define PH_CLRSAKG_CRT_SIZEOF_WS_FX_3072 (2464) /**< \brief phClRsaKg_Crt workspaceFX size for bit length up to 3072 and a public key of size <= 16 byte */
#define PH_CLRSAKG_CRT_SIZEOF_WS_FX_4096 (3104) /**< \brief phClRsaKg_Crt workspaceFX size for bit length up to 4096 and a public key of size <= 16 byte */
#define PH_CLRSAKG_COMPUTEPLAINKEY_SIZEOF_WS_CPU_1024 (38) /**< \brief phClRsaKg_ComputePlainKey workspaceCPU size for bit length up to 1024 */
#define PH_CLRSAKG_COMPUTEPLAINKEY_SIZEOF_WS_CPU_2048 (38) /**< \brief phClRsaKg_ComputePlainKey workspaceCPU size for bit length up to 2048 */
#define PH_CLRSAKG_COMPUTEPLAINKEY_SIZEOF_WS_CPU_3072 (38) /**< \brief phClRsaKg_ComputePlainKey workspaceCPU size for bit length up to 3072 */
#define PH_CLRSAKG_COMPUTEPLAINKEY_SIZEOF_WS_CPU_4096 (38) /**< \brief phClRsaKg_ComputePlainKey workspaceCPU size for bit length up to 4096 */
#define PH_CLRSAKG_COMPUTEPLAINKEY_SIZEOF_WS_CPU_1024 (44) /**< \brief phClRsaKg_ComputePlainKey workspaceCPU size for bit length up to 1024 */
#define PH_CLRSAKG_COMPUTEPLAINKEY_SIZEOF_WS_CPU_2048 (44) /**< \brief phClRsaKg_ComputePlainKey workspaceCPU size for bit length up to 2048 */
#define PH_CLRSAKG_COMPUTEPLAINKEY_SIZEOF_WS_CPU_3072 (44) /**< \brief phClRsaKg_ComputePlainKey workspaceCPU size for bit length up to 3072 */
#define PH_CLRSAKG_COMPUTEPLAINKEY_SIZEOF_WS_CPU_4096 (44) /**< \brief phClRsaKg_ComputePlainKey workspaceCPU size for bit length up to 4096 */
#define PH_CLRSAKG_COMPUTEPLAINKEY_SIZEOF_WS_FX_1024 (944) /**< \brief phClRsaKg_ComputePlainKey workspaceFX size for bit length up to 1024 */
#define PH_CLRSAKG_COMPUTEPLAINKEY_SIZEOF_WS_FX_2048 (1520) /**< \brief phClRsaKg_ComputePlainKey workspaceFX size for bit length up to 2048 */
@@ -0,0 +1,29 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClRsaKg_StackUsage.h
* @brief: Stack usage information of the Crypto Library RSA component
*
*/
#ifndef COMPS_PHCLRSAKG_INC_MRK3_PHCLRSAKG_STACKUSAGE_H_
#define COMPS_PHCLRSAKG_INC_MRK3_PHCLRSAKG_STACKUSAGE_H_
/** \brief Stack usage values */
#define PH_CLRSAKG_COMPUTEPLAINKEY_STACK_USAGE ( 246 )
#define PH_CLRSAKG_CRT_STACK_USAGE ( 316 )
#endif /* COMPS_PHCLRSAKG_INC_MRK3_PHCLRSAKG_STACKUSAGE_H_ */
@@ -0,0 +1,45 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClRsaKg_TypeDefs.h
* @brief: Type definitions of the crypto library RsaKg component
*
*/
#ifndef __PHCLRSAKG_TYPEDEFS_H_
#define __PHCLRSAKG_TYPEDEFS_H_
#define __PHCLRSAKG_TYPES_DEFINED_
#include <phCl_TypeDefs.h>
#include <phClRsaKg_CommonTypeDefs.h>
#ifdef __cplusplus
extern "C"
{
#endif
//This part is intentionally empty
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PHCLRSAKG_TYPEDEFS_H_ */
@@ -0,0 +1,29 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClRsaKg_Version.h
* @brief: Version information for the Crypto Library RSAkg component
*
*/
#ifndef __PH_CLRSAKG_VERSION_H_
#define __PH_CLRSAKG_VERSION_H_
#define PH_CLRSAKG_VERSION_MAJOR 0x03
#define PH_CLRSAKG_VERSION_MINOR 0x07
#define PH_CLRSAKG_VERSION_PATCH 0x00
#endif /* __PH_CLRSAKG_VERSION_H_ */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017,2020 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -29,6 +28,8 @@
#include <phCl_TypeDefs.h>
#include <phClSha_PlatformTypeDefs.h>
#ifdef __cplusplus
extern "C"
{
@@ -38,6 +39,9 @@ extern "C"
* Definitions
*******************************************************************************************************************************/
/** \brief API version definition */
#define PH_CLSHA_API_VERSION ( 5 ) /**< \brief API version */
/** \brief Security Counter values */
#define PH_CLSHA_SECURITYCOUNTER_VAL_EXTRACTPARTIALDIGEST ( 0x35ACU ) /**< \brief Security Counter value for the function phClSha_ExtractPartialDigest() */
#define PH_CLSHA_SECURITYCOUNTER_VAL_GETSHA1FUNCTIONINFOPOINTER ( 0x09EBU ) /**< \brief Security Counter value for the function phClSha_GetSha1FunctionInfoPointer() */
@@ -47,12 +51,12 @@ extern "C"
#define PH_CLSHA_SECURITYCOUNTER_VAL_GETSHA2_512FUNCTIONINFOPOINTER ( 0x7B09U ) /**< \brief Security Counter value for the function phClSha_GetSha2_512FunctionInfoPointer() */
/** \brief Definition of context sizes (in bytes) (per algorithm) */
#define PH_CLSHA_CTX_SHA1 ( 100 ) /**< \brief Size of SHA1 context */
#define PH_CLSHA_CTX_SHA2_224 ( 112 ) /**< \brief Size of SHA2_224 context */
#define PH_CLSHA_CTX_SHA2_256 ( 112 ) /**< \brief Size of SHA2_256 context */
#define PH_CLSHA_CTX_SHA2_384 ( 216 ) /**< \brief Size of SHA2_384 context */
#define PH_CLSHA_CTX_SHA2_512 ( 216 ) /**< \brief Size of SHA2_512 context */
#define PH_CLSHA_CTX_MAX ( 216 ) /**< \brief Maximum size of context */
#define PH_CLSHA_CTX_SHA1 ( 102 ) /**< \brief Size of SHA1 context */
#define PH_CLSHA_CTX_SHA2_224 ( 114 ) /**< \brief Size of SHA2_224 context */
#define PH_CLSHA_CTX_SHA2_256 ( 114 ) /**< \brief Size of SHA2_256 context */
#define PH_CLSHA_CTX_SHA2_384 ( 218 ) /**< \brief Size of SHA2_384 context */
#define PH_CLSHA_CTX_SHA2_512 ( 218 ) /**< \brief Size of SHA2_512 context */
#define PH_CLSHA_CTX_MAX ( 218 ) /**< \brief Maximum size of context */
/** \brief Definition of CPU workarea sizes (in bytes) for the phClHash_Hash function (per algorithm) */
#define PH_CLSHA_HASH_CPU_SHA2_224 ( 0 ) /**< \brief Size of SHA2_224 CPU workarea */
@@ -75,7 +79,7 @@ extern "C"
#define PH_CLSHA_STATE_MAX ( 64 ) /**< \brief Maximum size of the state */
/** \brief Definition of the length (in bytes) of the counter containing the number of blocks already hashed */
/* -- The size of the buffer containing the number of already hashed blocks is given by PH_CLHASH_COUNTER_SIZE_<alg>, defined in file phClHash_CommonTypeDefs.h */
/* -- The size of the buffer containing the number of already hashed blocks is given by PH_CLHASH_COUNTER_SIZE_<alg> */
/*******************************************************************************************************************************
@@ -91,7 +95,7 @@ typedef struct phClSha_ExtractPartialDigest_Param_t
phCl_WorkareaCPU_t *pWaCpu; /**< \brief Pointer to the extract CPU workarea. The CPU workarea has to be allocated by the caller. */
phClRng_Ctx_t *pRngCtx; /**< \brief Pointer to an RNG context. The context has to be allocated and initialized by the caller. */
uint8_t *pDigest; /**< \brief Pointer to digest buffer. The buffer has to be allocated by the caller. */
uint8_t *pNoOfBlocks; /**< \brief Pointer to a byte array containing the number of blocks already hashed, in big-endian order */
uint8_t *pNoOfBlocks; /**< \brief Pointer to a byte array containing the number of blocks already hashed, in MSB order */
uint16_t options; /**< \brief Options for the extract function
bit 0-1: CRC
PH_CLSHA_EXTRACT_OPTION_CRC CRC used,
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017,2020 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -39,7 +38,7 @@ extern "C"
/**
* \brief This function implements extraction of a partial digest from a SHA context
*
* The extraction is only possible when the processed data size is an exact multiple of the underlying hash algorithm's block size.
* The extraction is only possible when the processed data size is an exact multiple of the block size.
*
* \param [in] pParams Pointer to parameters structure
*
@@ -0,0 +1,49 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClSha_PlatformTypeDefs.h
* @brief: Platform specific type definitions for the SHA component
*
*/
#ifndef __PHCLSHA_PLATFORMTYPEDEFS_H_
#define __PHCLSHA_PLATFORMTYPEDEFS_H_
#ifdef __cplusplus
extern "C"
{
#endif
/*******************************************************************************************************************************
* Definitions
*******************************************************************************************************************************/
/** Note: Instantitate the Backup structure. */
#define PHCLSHA_INST_COPROCTRLBACKUP()
/** \brief Structure to backup sym. copro control registers */
typedef struct phClSha_coproCtrlBackup_t
{
uint32_t ctrlBackup;
uint32_t ctrl2Backup;
uint32_t sha2CtrlBackup;
} phClSha_coproCtrlBackup_t;
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PHCLSHA_PLATFORMTYPEDEFS_H_ */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2020 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP B.V. 2016 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP B.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP B.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP B.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -28,7 +27,7 @@ extern "C"
{
#endif
/** \brief Definition of SHA algorithms stack usage */
/** \brief Definition of SHA algorithms stack usage */ /* values based on P73 MAP file, with added margin for entry function */
#define PH_CLSHA_HASH_STACK_SHA1 ( 134 ) /**< \brief SHA1 algorithm stack usage */
#define PH_CLSHA_HASH_STACK_SHA2_224 ( 134 ) /**< \brief SHA2_224 algorithm stack usage */
#define PH_CLSHA_HASH_STACK_SHA2_256 ( 134 ) /**< \brief SHA2_256 algorithm stack usage */
@@ -0,0 +1,32 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClSha_TypeDefs.h
* @brief: Type definitions of the crypto library SHA component
*
*/
#ifndef __PHCLSHA_TYPEDEFS_H_
#define __PHCLSHA_TYPEDEFS_H_
#include <phCl_TypeDefs.h>
#include <phClHash_TypeDefs.h>
#define __PHCLSHA_TYPES_DEFINED_
#include <phClSha_CommonTypeDefs.h>
#endif /* __PHCLSHA_TYPEDEFS_H_ */
@@ -0,0 +1,29 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClSha_Version.h
* @brief: Version information for the Crypto Library SHA component
*
*/
#ifndef __PH_CLSHA_VERSION_H_
#define __PH_CLSHA_VERSION_H_
#define PH_CLSHA_VERSION_MAJOR 0x03
#define PH_CLSHA_VERSION_MINOR 0x01
#define PH_CLSHA_VERSION_PATCH 0x00
#endif /* __PH_CLSHA_VERSION_H_ */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -47,7 +46,7 @@ extern "C"
#define PH_CLAES_BLOCK_SIZE ( 16 )
/** \brief Definition of work area sizes in bytes for phClAes_LoadKey() */
#define PH_CLAES_LOADKEY_SIZEOF_WS_CPU (60)
#define PH_CLAES_LOADKEY_SIZEOF_WS_CPU (58)
/** \brief Definition of work area sizes in bytes for phClAes_Crypt() and phClAes_GenerateSubKeys() */
#define PH_CLAES_CRYPT_SIZEOF_WS_CPU(blocksAtOnce) (80 + PH_CLSYMCFG_CRYPT_SIZEOF_WS_CPU((blocksAtOnce), PH_CLAES_BLOCK_SIZE))
/** \brief Definition of work area sizes in bytes for phClAes_GenerateKeyChecksum() */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -38,7 +37,7 @@ extern "C"
*/
/** bit 26-16: SECCTRL settings, range additional dummy cycles from [0:1023] */
#define PH_CLAES_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES(cycles) ( (( uint32_t ) ((cycles) & 0x3FF) << PH_CLSYMCFG_SEC_OPT_SECCTRL_POS ) | PH_CLSYMCFG_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES_ENABLE)
#define PH_CLAES_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES(cycles) ( (( uint32_t ) (cycles & 0x3FF) << PH_CLSYMCFG_SEC_OPT_SECCTRL_POS ) | PH_CLSYMCFG_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES_ENABLE)
#define PH_CLAES_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES_MASK ( PH_CLSYMCFG_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES_MASK )
/** bit 27: Reserved */
#define PH_CLAES_SEC_OPT_RESERVED2_MASK ( PH_CLSYMCFG_SEC_OPT_RESERVED2_MASK )
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -0,0 +1,44 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClAes_TypeDef.h
* @brief: Type definitions of the crypto library AES component
*
*/
#ifndef __PHCLAES_TYPEDEFS_H_
#define __PHCLAES_TYPEDEFS_H_
#define __PHCLAES_TYPES_DEFINED_
#include <phClSymCfg_TypeDefs.h>
#include <phClAes_CommonTypeDefs.h>
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PHCLAES_TYPEDEFS_H_ */
@@ -0,0 +1,31 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClAes_Version.h
* @brief: Version information of the Crypto Library AES component
*
*/
#ifndef __PH_CLAES_VERSION_H_
#define __PH_CLAES_VERSION_H_
#include <phClSymCfg_Version.h>
#define PH_CLAES_VERSION_MAJOR PH_CLSYMCFG_VERSION_MAJOR
#define PH_CLAES_VERSION_MINOR PH_CLSYMCFG_VERSION_MINOR
#define PH_CLAES_VERSION_PATCH PH_CLSYMCFG_VERSION_PATCH
#endif /* __PH_CLAES_VERSION_H_ */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -47,7 +46,7 @@ extern "C"
/** \brief Definition of DES block size*/
#define PH_CLDES_BLOCK_SIZE ( 8 )
/** \brief Definition of work area sizes in bytes for phClDes_LoadKey() */
#define PH_CLDES_LOADKEY_SIZEOF_WS_CPU (60)
#define PH_CLDES_LOADKEY_SIZEOF_WS_CPU (58)
/** \brief Definition of work area sizes in bytes for phClDes_Crypt() and phClDes_GenerateSubKeys() */
#define PH_CLDES_CRYPT_SIZEOF_WS_CPU(blocksAtOnce) (80 + PH_CLSYMCFG_CRYPT_SIZEOF_WS_CPU((blocksAtOnce), PH_CLDES_BLOCK_SIZE))
/** \brief Definition of work area sizes in bytes for phClDes_GenerateKeyChecksum() */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -38,7 +37,7 @@ extern "C"
*/
/** bit 26-16: SECCTRL settings, range additional dummy cycles from [0:1023] */
#define PH_CLDES_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES(cycles) ( (( uint32_t ) ((cycles) & 0x3FF) << PH_CLSYMCFG_SEC_OPT_SECCTRL_POS ) | PH_CLSYMCFG_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES_ENABLE)
#define PH_CLDES_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES(cycles) ( (( uint32_t ) (cycles & 0x3FF) << PH_CLSYMCFG_SEC_OPT_SECCTRL_POS ) | PH_CLSYMCFG_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES_ENABLE)
#define PH_CLDES_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES_MASK ( PH_CLSYMCFG_SEC_OPT_SECCTRL_HW_ADDITIONAL_DUMMY_CYCLES_MASK )
/** bit 27: Reserved */
#define PH_CLDES_SEC_OPT_RESERVED2_MASK ( PH_CLSYMCFG_SEC_OPT_RESERVED2_MASK )
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -0,0 +1,42 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClDes_TypeDefs.h
* @brief: Type definitions of the crypto library DES component
*
*/
#ifndef __PHCLDES_TYPEDEFS_H_
#define __PHCLDES_TYPEDEFS_H_
#define __PHCLDES_TYPES_DEFINED_
#include <phClSymCfg_TypeDefs.h>
#include <phClDes_CommonTypeDefs.h>
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PHCLDES_TYPEDEFS_H_ */
@@ -0,0 +1,31 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClDes_Version.h
* @brief: Version information of the Crypto Library DES component
*
*/
#ifndef __PH_CLDES_VERSION_H_
#define __PH_CLDES_VERSION_H_
#include <phClSymCfg_Version.h>
#define PH_CLDES_VERSION_MAJOR PH_CLSYMCFG_VERSION_MAJOR
#define PH_CLDES_VERSION_MINOR PH_CLSYMCFG_VERSION_MINOR
#define PH_CLDES_VERSION_PATCH PH_CLSYMCFG_VERSION_PATCH
#endif /* __PH_CLDES_VERSION_H_ */
@@ -0,0 +1,33 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClSymCfg_StackUsage.h
* @brief: Stack usage information of the Crypto Library SymCfg component
*
*/
#ifndef COMPS_PHCLSYMCFG_INC_MRK3_PHCLSYMCFG_STACKUSAGE_H_
#define COMPS_PHCLSYMCFG_INC_MRK3_PHCLSYMCFG_STACKUSAGE_H_
#define PH_CLXES_SIZE_STACK_LOADKEY ( 96)
#define PH_CLXES_SIZE_STACK_UNLOADKEY ( 34)
#define PH_CLXES_SIZE_STACK_CRYPT ( 190)
#define PH_CLXES_SIZE_STACK_ONESHOT ( 252)
#define PH_CLXES_SIZE_STACK_CMAC ( 188)
#define PH_CLXES_SIZE_STACK_SUBKEY ( 200)
#define PH_CLXES_SIZE_STACK_GENKEYCHK ( 80)
#define PH_CLXES_SIZE_STACK_SETIMPEXP ( 36)
#endif /* COMPS_PHCLSYMCFG_INC_MRK3_PHCLSYMCFG_STACKUSAGE_H_ */
@@ -0,0 +1,29 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClSymCfg_Version.h
* @brief: Version information of the Crypto Library SymCfg component
*
*/
#ifndef __PH_CLSYMCFG_VERSION_H_
#define __PH_CLSYMCFG_VERSION_H_
#define PH_CLSYMCFG_VERSION_MAJOR 0x06
#define PH_CLSYMCFG_VERSION_MINOR 0x01
#define PH_CLSYMCFG_VERSION_PATCH 0x00
#endif /* __PH_CLSYMCFG_VERSION_H_ */
@@ -1,21 +1,20 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClUtils.h
* @file: phClUtils_JumpTable.h
* @brief: Interface of the crypto library Utils component
*
*/
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -0,0 +1,46 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClUtils_StackUsage.h
* @brief: Stack usage values for the Utils component
*
*/
#ifndef __PH_CLUTILS_STACKUSAGE_H_
#define __PH_CLUTILS_STACKUSAGE_H_
#include <phCl_TypeDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
// Defines used in the ExitGate concept to clear the stack
#define PH_CLUTILS_CORE_LQRNGINIT_STACK_SIZE ( 0 )
#define PH_CLUTILS_CORE_LQRNGGETRANDOM_STACK_SIZE ( 162 )
#define PH_CLUTILS_CORE_SECUREMEMCMP_STACK_SIZE ( 52 )
#define PH_CLUTILS_CORE_SECUREMEMCPY_STACK_SIZE ( 84 )
#define PH_CLUTILS_CORE_SECUREMEMMOVE_STACK_SIZE ( 94 )
#define PH_CLUTILS_CORE_COMPUTECRC32_STACK_SIZE ( 102 )
#define PH_CLUTILS_CORE_COMPUTECRC16_STACK_SIZE ( 76 )
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PH_CLUTILS_STACKUSAGE_H_ */
@@ -0,0 +1,43 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClUtils_TypeDefs.h
* @brief: Type definitions of the crypto library Utils component
*
*/
#ifndef __PH_CLUTILS_TYPEDEFS_H_
#define __PH_CLUTILS_TYPEDEFS_H_
#include <phCl_TypeDefs.h>
#define __PH_CLUTILS_TYPES_DEFINED_
#include <phClUtils_CommonTypeDefs.h>
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PH_CLUTILS_TYPEDEFS_H_ */
@@ -0,0 +1,29 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClUtils_Version.h
* @brief: Version information of the Crypto Library Utils components
*
*/
#ifndef __PH_CLUTILS_VERSION_H_
#define __PH_CLUTILS_VERSION_H_
#define PH_CLUTILS_VERSION_MAJOR 0x04
#define PH_CLUTILS_VERSION_MINOR 0x00
#define PH_CLUTILS_VERSION_PATCH 0x03
#endif /* __PH_CLUTILS_VERSION_H_ */
@@ -1,21 +1,20 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017,2020 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClUtilsAsym.h
* @file: phClUtilsAsym_JumpTable.h
* @brief: UtilsAsym jump table entries
*
*/
@@ -36,7 +35,7 @@ phClUtilsAsym_Err_t phClUtilsAsym_Math_Long(phClUtilsAsym_Math_Param_t *pParams)
static inline void phClUtils_FamePush(void)
{
phClUtils_FamePush_Long();
return phClUtils_FamePush_Long();
}
static inline void phCl_Composite_GetVersion( uint32_t* pVersion )
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -0,0 +1,37 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP B.V. 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP B.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP B.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP B.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClUtilsAsym_FameWordSize.h
* @brief: Fame wordsize definition
*
*/
#ifndef __PHCLUTILSASYM_FAMEWORDSIZE_H_
#define __PHCLUTILSASYM_FAMEWORDSIZE_H_
/** \brief FAME wordsize configuration definition */
#define PH_CLUTILS_FAME_WORD_SIZE (16U)
#endif /* __PHCLUTILSASYM_FAMEWORDSIZE_H_ */
@@ -0,0 +1,40 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClUtilsAsym_FunctionDefs.h
* @brief: Function definitions of the crypto library UtilsAsym component
*
*/
#ifndef __PHCLUTILSASYM_FUNCTIONDEFS_H_
#define __PHCLUTILSASYM_FUNCTIONDEFS_H_
#include <phClUtilsAsym_PlatformFunctionDefs.h>
#ifndef __PHCLUTILSASYM_TYPES_DEFINED_
#error Do not include this header directly
#endif
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PHCLUTILSASYM_FUNCTIONDEFS_H_ */
@@ -0,0 +1,38 @@
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
* @file: phClUtilsAsym_Macros.h
* @brief: Public macros definitions of the crypto library UtilsAsym component
*
*/
#ifndef __PHCLUTILSASYM_MACROS_H_
#define __PHCLUTILSASYM_MACROS_H_
#include <phClUtilsAsym_FameWordSize.h>
#ifdef __cplusplus
extern "C"
{
#endif
#define PH_CLUTILS_FAME_GET_MAX_WORD_SIZE() PH_CLUTILS_FAME_WORD_MAX_SIZE
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __PHCLUTILSASYM_MACROS_H_ */
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*
@@ -1,17 +1,16 @@
/*--------------------------------------------------------------------------*/
/* Copyright 2016,2017 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may */
/* only be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that */
/* you have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*--------------------------------------------------------------------------*/
/* Security Classification: COMPANY CONFIDENTIAL */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* Copyright(C) NXP N.V. 2016, 2017 */
/* */
/* All rights are reserved. Reproduction in whole or in part is prohibited */
/* without the prior written consent of the copy-right owner. */
/* This source code and any compilation or derivative thereof is the sole */
/* property of NXP N.V. and is provided pursuant to a Software License */
/* Agreement. This code is the proprietary information of NXP N.V. and */
/* is confidential in nature. Its use and dissemination by any party other */
/* than NXP N.V. is strictly limited by the confidential information */
/* provisions of the agreement referenced above. */
/* */
/*----------------------------------------------------------------------------*/
/**
*

Some files were not shown because too many files have changed in this diff Show More