~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/crypto/internal/rsa.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/crypto/internal/rsa.h (Version linux-6.12-rc7) and /include/crypto/internal/rsa.h (Version linux-2.4.37.11)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 
  2 /*                                                
  3  * RSA internal helpers                           
  4  *                                                
  5  * Copyright (c) 2015, Intel Corporation          
  6  * Authors: Tadeusz Struk <tadeusz.struk@intel    
  7  */                                               
  8 #ifndef _RSA_HELPER_                              
  9 #define _RSA_HELPER_                              
 10 #include <linux/types.h>                          
 11                                                   
 12 /**                                               
 13  * rsa_key - RSA key structure                    
 14  * @n           : RSA modulus raw byte stream     
 15  * @e           : RSA public exponent raw byte    
 16  * @d           : RSA private exponent raw byt    
 17  * @p           : RSA prime factor p of n raw     
 18  * @q           : RSA prime factor q of n raw     
 19  * @dp          : RSA exponent d mod (p - 1) r    
 20  * @dq          : RSA exponent d mod (q - 1) r    
 21  * @qinv        : RSA CRT coefficient q^(-1) m    
 22  * @n_sz        : length in bytes of RSA modul    
 23  * @e_sz        : length in bytes of RSA publi    
 24  * @d_sz        : length in bytes of RSA priva    
 25  * @p_sz        : length in bytes of p field      
 26  * @q_sz        : length in bytes of q field      
 27  * @dp_sz       : length in bytes of dp field     
 28  * @dq_sz       : length in bytes of dq field     
 29  * @qinv_sz     : length in bytes of qinv fiel    
 30  */                                               
 31 struct rsa_key {                                  
 32         const u8 *n;                              
 33         const u8 *e;                              
 34         const u8 *d;                              
 35         const u8 *p;                              
 36         const u8 *q;                              
 37         const u8 *dp;                             
 38         const u8 *dq;                             
 39         const u8 *qinv;                           
 40         size_t n_sz;                              
 41         size_t e_sz;                              
 42         size_t d_sz;                              
 43         size_t p_sz;                              
 44         size_t q_sz;                              
 45         size_t dp_sz;                             
 46         size_t dq_sz;                             
 47         size_t qinv_sz;                           
 48 };                                                
 49                                                   
 50 int rsa_parse_pub_key(struct rsa_key *rsa_key,    
 51                       unsigned int key_len);      
 52                                                   
 53 int rsa_parse_priv_key(struct rsa_key *rsa_key    
 54                        unsigned int key_len);     
 55                                                   
 56 extern struct crypto_template rsa_pkcs1pad_tmp    
 57 #endif                                            
 58                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php