Skip to content
Snippets Groups Projects
Select Git revision
  • c771e8eb45f6d0c734d31ae0375802845192d963
  • master default protected
  • siv-mode
  • delete-des-compat
  • delete-rsa_blind
  • aes-struct-layout
  • master-updates
  • release-3.4-fixes
  • struct-layout
  • attribute-deprecated
  • rename-data-symbols
  • x86_64-sha_ni-sha256
  • ecc-params-tweak
  • delete-old-aes
  • cmac-support
  • x86_64-sha_ni-sha1
  • gcm-ctr-opt
  • ctr-opt
  • skein
  • api-opaque-fix
  • curve448
  • nettle_3.4.1_release_20181204
  • nettle_3.4.1rc1
  • nettle_3.4_release_20171119
  • nettle_3.4rc2
  • nettle_3.4rc1
  • nettle_3.3_release_20161001
  • nettle_3.2_release_20160128
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
  • nettle_2.7.1_release_20130528
  • nettle_2.7_release_20130424
  • nettle_2.6_release_20130116
  • nettle_2.5_release_20120707
  • converted-master-branch-to-git
  • nettle_2.4_release_20110903
  • nettle_2.3_release_20110902
41 results

aes-encrypt-internal.asm

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    apply_low.h 9.01 KiB
    /*
    || This file is part of Pike. For copyright information see COPYRIGHT.
    || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
    || for more information.
    */
    
        {
          struct program *p;
          struct reference *ref;
          struct pike_frame *new_frame;
          struct identifier *function;
    
    #if 0
          /* This kind of fault tolerance is braindamaged. /mast */
          if(fun<0)
          {
    	pop_n_elems(Pike_sp-save_sp);
    	push_undefined();
    	return 0;
          }
    #else
    #ifdef PIKE_DEBUG
          if (fun < 0)
    	Pike_fatal ("Invalid function offset: %d.\n", fun);
    #endif
    #endif
    
          check_stack(256);
          check_mark_stack(256);
    
    #ifdef PIKE_DEBUG
          {
    	static int counter;
    	switch(d_flag)
    	{
    	  case 0:
    	  case 1:
    	  case 2:
    	    break;
    	  case 3:
    	    if(!((counter++ & 7)))
    	      do_debug();
    	    break;
    	  case 4:
    	  default:
    	    do_debug();
    	}
          }
    #endif
    
          p=o->prog;
          if(!p)
    	PIKE_ERROR("destructed object->function",
    	      "Cannot call functions in destructed objects.\n", Pike_sp, args);
    
          if(!(p->flags & PROGRAM_PASS_1_DONE) || (p->flags & PROGRAM_AVOID_CHECK))
    	PIKE_ERROR("__empty_program() -> function",
    	      "Cannot call functions in unfinished objects.\n", Pike_sp, args);
    	
    
    #ifdef PIKE_SECURITY
          CHECK_DATA_SECURITY_OR_ERROR(o, SECURITY_BIT_CALL,
    				   ("Function call permission denied.\n"));
    
          if(!CHECK_DATA_SECURITY(o, SECURITY_BIT_NOT_SETUID))
    	SET_CURRENT_CREDS(o->prot);
    #endif
    
    
    #ifdef PIKE_DEBUG