With S32 DS development,I need encrypt some .c /.h files .But I don't how to complete.
S32DS itself cannot encrypt any files. You must use some third party tools for this purpose.
But what can the S32DS Library Project do?I think it can encrypt the .c or .h.
I found useful discussion for you. Please see the link below:
static libraries - DLL and LIB files - what and why? - Stack Overflow
the library project create static library archive - typicaly libmy_lib.a. You can link functions stored in library by other projects.
Anyway - what you mean by "encrypt"?