Print this page
6665607 Need a SHA256/SHA384/SHA512 implementation optimized for 64-bit x86
*** 20,55 ****
#
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! # ident "@(#)Makefile 1.3 08/03/02 SMI"
#
LIBRARY= libmd.a
MD5_PSR_OBJECTS = md5_amd64.o
SHA1_PSR_OBJECTS = sha1-x86_64.o
include ../Makefile.com
include $(SRC)/lib/Makefile.lib.64
! CLEANFILES += md5_amd64.s sha1-x86_64.s
# This prevents <sys/asm_linkage.h> from including C source:
AS_CPPFLAGS += -D_ASM
install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
! pics/md5_amd64.o: md5_amd64.s
$(COMPILE.s) -o $@ ${@F:.o=.s}
$(POST_PROCESS_O)
- pics/sha1-x86_64.o: sha1-x86_64.s
- $(COMPILE.s) -o $@ ${@F:.o=.s}
- $(POST_PROCESS_O)
-
md5_amd64.s: $(COMDIR)/md5/amd64/md5_amd64.pl
$(PERL) $? $@
sha1-x86_64.s: $(COMDIR)/sha1/amd64/sha1-x86_64.pl
$(PERL) $? $@
--- 20,58 ----
#
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! # ident "@(#)Makefile 1.4 08/03/20 SMI"
#
LIBRARY= libmd.a
MD5_PSR_OBJECTS = md5_amd64.o
SHA1_PSR_OBJECTS = sha1-x86_64.o
+ SHA2_PSR_OBJECTS = sha512-x86_64.o sha256-x86_64.o
include ../Makefile.com
include $(SRC)/lib/Makefile.lib.64
! CLEANFILES += md5_amd64.s sha1-x86_64.s sha512-x86_64.s sha256-x86_64.s
# This prevents <sys/asm_linkage.h> from including C source:
AS_CPPFLAGS += -D_ASM
install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
! pics/%.o: %.s
$(COMPILE.s) -o $@ ${@F:.o=.s}
$(POST_PROCESS_O)
md5_amd64.s: $(COMDIR)/md5/amd64/md5_amd64.pl
$(PERL) $? $@
sha1-x86_64.s: $(COMDIR)/sha1/amd64/sha1-x86_64.pl
+ $(PERL) $? $@
+
+ sha512-x86_64.s: $(COMDIR)/sha2/amd64/sha512-x86_64.pl
+ $(PERL) $? $@
+
+ sha256-x86_64.s: $(COMDIR)/sha2/amd64/sha512-x86_64.pl
$(PERL) $? $@