Print this page
6799218 RSA using Solaris Kernel Crypto framework lagging behind OpenSSL
5016936 bignumimpl:big_mul: potential memory leak
6810280 panic from bignum module: vmem_xalloc(): size == 0


   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 #ident  "%Z%%M% %I%     %E% SMI"
  26 #
  27 #       Configuration and targets for bignum module
  28 #       specific to AMD 64-bit architecture, amd64.
  29 #
  30 # Bignum configuration (BIGNUM_CFG):
  31 #   PSR_MUL:
  32 #       There is a processor-specific implementation bignum multiply functions
  33 #   HWCAP:
  34 #       There are multiple implementations of bignum functions, and the
  35 #       appropriate one must be chosen at run time, based on testing
  36 #       hardware capabilites.
  37 #
  38 # -DPSR_MUL:
  39 # For AMD64, there is a processor-specific implementation of
  40 # the bignum multiply functions, which takes advantage of the
  41 # 64x64->128 bit multiply instruction.
  42 #
  43 # -UHWCAP:
  44 # There is only one implementation, because the 128 bit multiply using
  45 # general-purpose registers is faster than any MMX or SSE2 implementation.
  46 
  47 BIGNUM_CFG = -DPSR_MUL
  48 
  49 $(OBJS_DIR)/bignumimpl.o $(LINTS_DIR)/bignumimpl.ln := \
  50         CPPFLAGS += $(BIGNUM_CFG)
  51 $(OBJS_DIR)/bignum_amd64.o $(LINTS_DIR)/bignum_amd64.ln := \
  52         CPPFLAGS += $(BIGNUM_CFG)
  53 
  54 $(OBJS_DIR)/bignum_amd64.o: $(BIGNUMDIR)/amd64/bignum_amd64.c
  55         $(COMPILE.c) -o $@ $(BIGNUMDIR)/amd64/bignum_amd64.c
  56         $(CTFCONVERT_O)
  57         $(POST_PROCESS_O)
  58 
  59 $(OBJS_DIR)/bignum_amd64_asm.o: $(BIGNUMDIR)/amd64/bignum_amd64_asm.s
  60         $(COMPILE.s) -P -o $@ $(BIGNUM_CFG) $(BIGNUMDIR)/amd64/bignum_amd64_asm.s

  61         $(POST_PROCESS_O)
  62 
  63 $(LINTS_DIR)/bignum_amd64.ln: $(BIGNUMDIR)/amd64/bignum_amd64.c
  64         @($(LHEAD) $(LINT.c) $(BIGNUMDIR)/amd64/bignum_amd64.c $(LTAIL))
  65 
  66 $(LINTS_DIR)/bignum_amd64_asm.ln: $(BIGNUMDIR)/amd64/bignum_amd64_asm.s
  67         @($(LHEAD) $(LINT.s) $(BIGNUMDIR)/amd64/bignum_amd64_asm.s $(LTAIL))


   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #


  25 #       Configuration and targets for bignum module
  26 #       specific to AMD 64-bit architecture, amd64.
  27 #
  28 # Bignum configuration (BIGNUM_CFG):
  29 #   PSR_MUL:
  30 #       There is a processor-specific implementation bignum multiply functions
  31 #   HWCAP:
  32 #       There are multiple implementations of bignum functions, and the
  33 #       appropriate one must be chosen at run time, based on testing
  34 #       hardware capabilites.
  35 #
  36 # -DPSR_MUL:
  37 # For AMD64, there is a processor-specific implementation of
  38 # the bignum multiply functions, which takes advantage of the
  39 # 64x64->128 bit multiply instruction.
  40 #
  41 # -UHWCAP:
  42 # There is only one implementation, because the 128 bit multiply using
  43 # general-purpose registers is faster than any MMX or SSE2 implementation.
  44 
  45 BIGNUM_CFG = -DPSR_MUL
  46 CFLAGS  += -xO4 -xcrossfile
  47 $(OBJS_DIR)/bignumimpl.o $(LINTS_DIR)/bignumimpl.ln := \
  48         CPPFLAGS += $(BIGNUM_CFG)
  49 $(OBJS_DIR)/bignum_amd64.o $(LINTS_DIR)/bignum_amd64.ln := \
  50         CPPFLAGS += $(BIGNUM_CFG)
  51 
  52 $(OBJS_DIR)/bignum_amd64.o: $(BIGNUMDIR)/amd64/bignum_amd64.c
  53         $(COMPILE.c) -o $@ $(BIGNUM_CFG) $(BIGNUMDIR)/amd64/bignum_amd64.c
  54         $(CTFCONVERT_O)
  55         $(POST_PROCESS_O)
  56 
  57 $(OBJS_DIR)/bignum_amd64_asm.o: $(BIGNUMDIR)/amd64/bignum_amd64_asm.s
  58         $(COMPILE.s) -P -o $@ $(BIGNUM_CFG) \
  59                 $(BIGNUMDIR)/amd64/bignum_amd64_asm.s
  60         $(POST_PROCESS_O)
  61 
  62 $(LINTS_DIR)/bignum_amd64.ln: $(BIGNUMDIR)/amd64/bignum_amd64.c
  63         @($(LHEAD) $(LINT.c) $(BIGNUMDIR)/amd64/bignum_amd64.c $(LTAIL))
  64 
  65 $(LINTS_DIR)/bignum_amd64_asm.ln: $(BIGNUMDIR)/amd64/bignum_amd64_asm.s
  66         @($(LHEAD) $(LINT.s) $(BIGNUMDIR)/amd64/bignum_amd64_asm.s $(LTAIL))