⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 文档.txt

📁 des加密解密的实现,能够加密任意文件,任意长度
💻 TXT
📖 第 1 页 / 共 5 页
字号:
                                


  功能:     Deletion of a CLINT variable with double length                
  格式:     void purged_l (CLINTD reg_l);                                  
  输入:     reg_l (CLINT variable with double length)                      
  输出:     All digits of reg_l are overwritten with 0, thus leaving reg_l 
             with value 0                                                   
  返回值:   -                



  功能:     Deletion and freeing a CLINT register created by create_l()    
  格式:     void free_l (CLINT reg_l);                                     
  输入:     reg_l (Register)                                               
  输出:     -                                                              
  返回值:   -



  功能:     Adjusting the number of registers in a set                     
  格式:     void set_noofregs_l (unsigned int nregs);                      
  输入:     nregs (Number of registers in the set)                         
  输出:     -                                                              
  返回值:   -                              



  功能:      Creation of a set of CLINT registers, increment of a semaphore 
  格式:      int create_reg_l (void);                                       
  输入:      -                                                              
  输出:      -                                                              
  返回值:    E_CLINT_OK : Everything O.K.                                   
             E_CLINT_MAL: Error in malloc()  



  功能:    Get a pointer to a register of the set of registers            
  格式:    clint * get_reg_l (unsigned int reg);                          
  输入:     reg (Number of the requested register)                         
  输出:    -                                                              
  返回值:   Pointer to the requested register if it exists, else NULL         



  功能:    Deletion of a single register in a set of registers            
  格式:    int purge_reg_l (unsigned int reg);                            
  输入:     reg (Number of the register to be deleted)                     
  输出:    All digits of the requested register are overwritten with 0,   
             thus leaving the register with value 0                         
  返回值:   E_CLINT_OK : Everything O.K.                                   
             E_CLINT_NOR: Registers not allocated      



  功能:    Deletion of a set of CLINT registers                           
  格式:    int purgeall_reg_l (void);                                     
  输入:     -                                                              
  输出:    All digits of all registers of the set are overwritten         
             with 0, thus leaving the registers with value 0                
  返回值:   E_CLINT_OK : Everything O.K.                                   
             E_CLINT_NOR: Registers not allocated                                                                                                                                  



  功能:      Deletion and freeing a set of CLINT registers,                 
             if semaphore == 1                                              
  格式:      void free_reg_l (void);                                        
  输入:      -                                                              
  输出:      -                                                              
  返回值:    -  



  功能:    Check of validity of a variable as CLINT type                  
  格式:    int vcheck_l (CLINT n_l);                                      
  输入:     n_l (CLINT variable to be checked)                             
  输出:    -                                                              
  返回值:   E_VCHECK_OK  : Everything O.K.                                 
             E_VCHECK_MEM: n_l is NULL-Pointer                              
             E_VCHECK_OFL: Value out of range                               
             E_VCHECK_LDZ: n_l has leading zeros                                                                                                                                      



  功能:    Generation of a 64-bit pseudorandom number of CLINT type       
  格式:    clint * rand64_l (void);                                       
  输入:     -                                                              
  输出:    -                                                              
  返回值:   Pointer to 64-bit pseudorandom number of CLINT type       




  功能:    Generation of a pseudorandom number of type UCHAR              
  格式:    UCHAR ucrand64_l (void);                                       
  输入:     -                                                              
  输出:    -                                                              
  返回值:   Pseudorandom number of type unsigned char     




  功能:    Generation of a pseudorandom number of type USHORT             
  格式:    USHORT usrand64_l (void);                                      
  输入:     -                                                              
  输出:    -                                                              
  返回值:   Pseudorandom number of type unsigned short    




  功能:    Generation of a pseudorandom number of type ULONG              
  格式:    ULONG ulrand64_l (void);                                       
  输入:     -                                                              
  输出:    -                                                              
  返回值:   Pseudorandom number of type unsigned long    



  功能:     Initialization of the 64-bit pseudorandon number generator     
  格式:     clint * seed64_l (CLINT seed_l);                               
  输入:     seed_l (Seed)                                                  
  输出:     -                                                              
  返回值:   Pointer to the internal buffer BUFF64, where the previously    
             generated value is stored                                                                                                          



  功能:      Initialization of the 64-bit pseudorandon number generator     
             with a value of type ULONG                                     
  格式:      clint * seed64_l (ULONG seed_l);                               
  输入:      seed_l (Seed)                                                  
  输出:      -                                                              
  返回值:    Pointer to the internal buffer BUFF64, where the previously    
             generated value is stored        




  功能:      Generation of a pseudorandom number of type CLINT              
             (Prior initialization by calling seed64_l() required)          
  格式:      void rand_l (CLINT a_l, int l);                                
  输入:      l (Number of binary digits to be generated)                    
  输出:      a_l (Generated pseudorandom number)                            
  返回值:    -                                                                                                                               



  功能:     Generation of a random bit acc. to Blum-Blum-Shub (BBS)        
  格式:     int randbit_l (void);                                          
  输入:     -                                                              
  输出:     -                                                              
  返回值:   Random bit 0 or 1            



  功能:     Generation of a BBS pseudorandom number of type UCHAR          
  格式:     UCHAR ucrandBBS_l (void);                                      
  输入:     -                                                              
  输出:     -                                                              
  返回值:   Pseudorandom number of UCHAR type       




  功能:     Generation of a BBS pseudorandom number of type USHORT         
  格式:     USHORT usrandBBS_l (void);                                     
  输入:     -                                                              
  输出:     -                                                              
  返回值:   Pseudorandom number of USHORT type   



  
  功能:     Generation of a BBS pseudorandom number of type ULONG          
  格式:     ULONG ulrandBBS_l (void);                                      
  输入:     -                                                              
  输出:     -                                                              
  返回值:   Pseudorandom number of ULONG type     




  功能:      Initialization of the BLUM-BLUM-SHUB pseudorandom number    
             generator                                                  
  格式:      int seedBBS_l (CLINT seed_l);                               
  输入:      seed_l (Seed, coprime to BBS-Modulus)                        
  输出:      -                                                              
  返回值:    E_CLINT_OK : Everything O.K.                                 
             -1: Seed and modulus not coprime    




  功能:      Initialization of the BLUM-BLUM-SHUB pseudorandom number      
             generator with number of type ULONG                           
  格式:      int ulseedBBS_l (ULONG seed);                                  
  输入:      seed (Seed)                                                    
  输出:      -                                                              
  返回值:    -                           



  功能:      Generation of a BBS pseudorandom number of type CLINT        
             (Prior initialization by calling seedBBS_l() required)        
  格式:      void randBBS_l (CLINT a_l, int l);                            
  输入:      l (Number of binary digits to be generated)                   
  输出:      a_l (Generated pseudorandom number)                          
  返回值:    -                                                                                                                                                                                                                                        

  
  功能:      Addition kernel function                                        
             w/o overflow detection, w/o checking for leading zeros         
  格式:      void add (CLINT a_l, CLINT b_l, CLINT s_l);                    
  输入:      a_l, b_l (Operands)                                            
  输出:      s_l (Sum)                                                      
  返回值:    -                 




  功能:     Subtraction kernel function                                     
            w/o overflow detection, w/o checking for leading zeros         
  格式:     void sub (CLINT a_l, CLINT b_l, CLINT d_l);                    
  输入:     a_l, b_l (Operands)                                            
  输出:     d_l (Difference)                                               
  返回值:   -                   



  
  功能:      Multiplication kernel function                                  
             w/o overflow detection, w/o checking for leading zeros         
             accumulator mode not supported                                 
  格式:      void mult (CLINT aa_l, CLINT bb_l, CLINT p_l);                 
  输入:      aa_l, bb_l (Factors)                                           
  输出:      p_l (Product)                                                  
  返回值:    -                                                                                                                                                      



  功能:      Multiplication kernel function (CLINT type) * (USHORT type)    
             w/o overflow detection, w/o checking for leading zeros         
             accumulator mode not supported                                 
  格式:      void umul (CLINT a_l, USHORT b, CLINT p_l);                    
  输入:      a_l, b (Factors)                                               
  输出:      p_l (Product)                                                  
  返回值:    -                        



  功能:      Squaring kernel function                                        
             w/o overflow detection, w/o checking for leading zeros         
             accumulator mode not supported                                 
  格式:      void sqr (CLINT a_l, CLINT r_l);                               
  输入:      a_l (Factor)                                                   
  输出:      p_l (Square)                                                   
  返回值:    -                  




  功能:     Addition with sign                                             
  格式:     int sadd (CLINT a_l, int sign_a, CLINT b_l, int sign_b,        
                                                            CLINT c_l);     

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -