Move SHA1-based PRF function into a separate C file

This makes it easier to conditionally build in SHA1 functions based
on which TLS/crypto library is used.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2012-08-16 20:23:12 +03:00
parent e40c86ad27
commit d6150094e0
11 changed files with 87 additions and 53 deletions

View file

@ -1055,6 +1055,7 @@ endif
SHA1OBJS =
ifdef NEED_SHA1
SHA1OBJS += src/crypto/sha1.c
SHA1OBJS += src/crypto/sha1-prf.c
ifdef CONFIG_INTERNAL_SHA1
SHA1OBJS += src/crypto/sha1-internal.c
ifdef NEED_FIPS186_2_PRF

View file

@ -1082,6 +1082,7 @@ endif
ifdef NEED_SHA1
SHA1OBJS += ../src/crypto/sha1.o
SHA1OBJS += ../src/crypto/sha1-prf.o
ifdef CONFIG_INTERNAL_SHA1
SHA1OBJS += ../src/crypto/sha1-internal.o
ifdef NEED_FIPS186_2_PRF

View file

@ -410,6 +410,10 @@
RelativePath="..\..\..\src\crypto\sha1-pbkdf2.c"
>
</File>
<File
RelativePath="..\..\..\src\crypto\sha1-prf.c"
>
</File>
<File
RelativePath="..\..\..\src\crypto\sha1-tlsprf.c"
>

View file

@ -205,6 +205,10 @@
RelativePath="..\..\..\src\crypto\sha1-internal.c"
>
</File>
<File
RelativePath="..\..\..\src\crypto\sha1-prf.c"
>
</File>
<File
RelativePath="..\..\..\src\crypto\sha1-pbkdf2.c"
>

View file

@ -398,6 +398,10 @@
RelativePath="..\..\..\src\crypto\sha1-pbkdf2.c"
>
</File>
<File
RelativePath="..\..\..\src\crypto\sha1-prf.c"
>
</File>
<File
RelativePath="..\..\..\src\crypto\sha1-tlsprf.c"
>

View file

@ -398,6 +398,10 @@
RelativePath="..\..\..\src\crypto\sha1-pbkdf2.c"
>
</File>
<File
RelativePath="..\..\..\src\crypto\sha1-prf.c"
>
</File>
<File
RelativePath="..\..\..\src\crypto\sha1-tlsprf.c"
>