linux/include/crypto/sha.h
<<
val.32/spa v .32/form v .32a val.3 href="../linux+v3.7.3/include/crypto/sha.h"> val.32img src="../.static/gfx/right.png" alt=">>"> v2/spa v v2spa class="lxr_search"> val ="+search" method="post" onsubmit="return do_search(this);"> val.32input typ> hidden" nam> navtarget" tion> "> val.32input typ> text" nam> search" id search"> val.32butt/optyp> submit">Search val.3Prefsv .32/a> v2/spa val.3 32/div val.3 32form ac > ="ajax+*" method="post" onsubmit="return false;"> v2input typ> hidden" nam> ajax_lookup" id ajax_lookup" tion> "> al.3 32/form v al.3 32div class="headingbott/m">
v 2div id file_contents"
 L1">3 312/a>2spa  class="comment">/*2/spa  v
 L2">3 322/a>2spa  class="comment"> * Comm/option>s for SHA algorithms2/spa  v
 L3">3 332/a>2spa  class="comment"> */2/spa  v
 L4">3 342/a> 
 L5">3 352/a>#ifndef32a href="+code=_CRYPTO_SHA_H" class="sref">_CRYPTO_SHA_H2/a> 
 L6">3 362/a>#define32a href="+code=_CRYPTO_SHA_H" class="sref">_CRYPTO_SHA_H2/a> 
 L7">3 372/a> 
 L8">3 382/a>#include <linux/typ>s.h2/a>> 
 L9">3 392/a> 
 L10">3 10"
a>#define32a href="+code=SHA1_DIGEST_SIZE" class="sref">SHA1_DIGEST_SIZE"
a>        20 
 L11">3 11"
a>#define32a href="+code=SHA1_BLOCK_SIZE" class="sref">SHA1_BLOCK_SIZE"
a>         64 
 L12">3 122/a> 
 L13">3 13"
a>#define32a href="+code=SHA224_DIGEST_SIZE" class="sref">SHA224_DIGEST_SIZE"
a>      28 
 L14">3 14"
a>#define32a href="+code=SHA224_BLOCK_SIZE" class="sref">SHA224_BLOCK_SIZE"
a>       64 
 L15">3 152/a> 
 L16">3 162/a>#define32a href="+code=SHA256_DIGEST_SIZE" class="sref">SHA256_DIGEST_SIZE"
a>      32 
 L17">3 172/a>#define32a href="+code=SHA256_BLOCK_SIZE" class="sref">SHA256_BLOCK_SIZE"
a>       64 
 L18">3 182/a> 
 L19">3 192/a>#define32a href="+code=SHA384_DIGEST_SIZE" class="sref">SHA384_DIGEST_SIZE"
a>      48 
 L20">3 20"
a>#define32a href="+code=SHA384_BLOCK_SIZE" class="sref">SHA384_BLOCK_SIZE"
a>       128 
 L21">3 212/a> 
 L22">3 22"
a>#define32a href="+code=SHA512_DIGEST_SIZE" class="sref">SHA512_DIGEST_SIZE"
a>      64 
 L23">3 23"
a>#define32a href="+code=SHA512_BLOCK_SIZE" class="sref">SHA512_BLOCK_SIZE"
a>       128 
 L24">3 242/a> 
 L25">3 25"
a>#define32a href="+code=SHA1_H0" class="sref">SHA1_H0"
a>         0x67452301UL 
 L26">3 262/a>#define32a href="+code=SHA1_H1" class="sref">SHA1_H1"
a>         0xefcdab89UL 
 L27">3 272/a>#define32a href="+code=SHA1_H2" class="sref">SHA1_H2"
a>         0x98badcfeUL 
 L28">3 282/a>#define32a href="+code=SHA1_H3" class="sref">SHA1_H3"
a>         0x10325476UL 
 L29">3 292/a>#define32a href="+code=SHA1_H4" class="sref">SHA1_H4"
a>         0xc3d2e1f0UL 
 L30">3 302/a> 
 L31">3 31"
a>#define32a href="+code=SHA224_H0" class="sref">SHA224_H0"
a>       0xc1059ed8UL 
 L32">3 32"
a>#define32a href="+code=SHA224_H1" class="sref">SHA224_H1"
a>       0x367cd507UL 
 L33">3 33"
a>#define32a href="+code=SHA224_H2" class="sref">SHA224_H2"
a>       0x3070dd17UL 
 L34">3 34"
a>#define32a href="+code=SHA224_H3" class="sref">SHA224_H3"
a>       0xf70e5939UL 
 L35">3 35"
a>#define32a href="+code=SHA224_H4" class="sref">SHA224_H4"
a>       0xffc00b31UL 
 L36">3 362/a>#define32a href="+code=SHA224_H5" class="sref">SHA224_H5"
a>       0x68581511UL 
 L37">3 372/a>#define32a href="+code=SHA224_H6" class="sref">SHA224_H6"
a>       0x64f98fa7UL 
 L38">3 382/a>#define32a href="+code=SHA224_H7" class="sref">SHA224_H7"
a>       0xbefa4fa4UL 
 L39">3 392/a> 
 L40">3 40"
a>#define32a href="+code=SHA256_H0" class="sref">SHA256_H0"
a>       0x6a09e667UL 
 L41">3 41"
a>#define32a href="+code=SHA256_H1" class="sref">SHA256_H1"
a>       0xbb67ae85UL 
 L42">3 42"
a>#define32a href="+code=SHA256_H2" class="sref">SHA256_H2"
a>       0x3c6ef372UL 
 L43">3 43"
a>#define32a href="+code=SHA256_H3" class="sref">SHA256_H3"
a>       0xa54ff53aUL 
 L44">3 44"
a>#define32a href="+code=SHA256_H4" class="sref">SHA256_H4"
a>       0x510e527fUL 
 L45">3 45"
a>#define32a href="+code=SHA256_H5" class="sref">SHA256_H5"
a>       0x9b05688cUL 
 L46">3 462/a>#define32a href="+code=SHA256_H6" class="sref">SHA256_H6"
a>       0x1f83d9abUL 
 L47">3 472/a>#define32a href="+code=SHA256_H7" class="sref">SHA256_H7"
a>       0x5be0cd19UL 
 L48">3 482/a> 
 L49">3 492/a>#define32a href="+code=SHA384_H0" class="sref">SHA384_H0"
a>       0xcbbb9d5dc1059ed8ULL 
 L50">3 50"
a>#define32a href="+code=SHA384_H1" class="sref">SHA384_H1"
a>       0x629a292a367cd507ULL 
 L51">3 51"
a>#define32a href="+code=SHA384_H2" class="sref">SHA384_H2"
a>       0x9159015a3070dd17ULL 
 L52">3 52"
a>#define32a href="+code=SHA384_H3" class="sref">SHA384_H3"
a>       0x152fecd8f70e5939ULL 
 L53">3 53"
a>#define32a href="+code=SHA384_H4" class="sref">SHA384_H4"
a>       0x67332667ffc00b31ULL 
 L54">3 54"
a>#define32a href="+code=SHA384_H5" class="sref">SHA384_H5"
a>       0x8eb44a8768581511ULL 
 L55">3 55"
a>#define32a href="+code=SHA384_H6" class="sref">SHA384_H6"
a>       0xdb0c2e0d64f98fa7ULL 
 L56">3 562/a>#define32a href="+code=SHA384_H7" class="sref">SHA384_H7"
a>       0x47b5481dbefa4fa4ULL 
 L57">3 572/a> 
 L58">3 582/a>#define32a href="+code=SHA512_H0" class="sref">SHA512_H0"
a>       0x6a09e667f3bcc908ULL 
 L59">3 592/a>#define32a href="+code=SHA512_H1" class="sref">SHA512_H1"
a>       0xbb67ae8584caa73bULL 
 L60">3 60"
a>#define32a href="+code=SHA512_H2" class="sref">SHA512_H2"
a>       0x3c6ef372fe94f82bULL 
 L61">3 61"
a>#define32a href="+code=SHA512_H3" class="sref">SHA512_H3"
a>       0xa54ff53a5f1d36f1ULL 
 L62">3 62"
a>#define32a href="+code=SHA512_H4" class="sref">SHA512_H4"
a>       0x510e527fade682d1ULL 
 L63">3 63"
a>#define32a href="+code=SHA512_H5" class="sref">SHA512_H5"
a>       0x9b05688c2b3e6c1fULL 
 L64">3 64"
a>#define32a href="+code=SHA512_H6" class="sref">SHA512_H6"
a>       0x1f83d9abfb41bd6bULL 
 L65">3 65"
a>#define32a href="+code=SHA512_H7" class="sref">SHA512_H7"
a>       0x5be0cd19137e2179ULL 
 L66">3 662/a> 
 L67">3 67"
a>struct32a href="+code=sha1_state" class="sref">sha1_state"
a> { 
 L68">3 68"
a>        2a href="+code=u64" class="sref">u64"
a> 2a href="+code=count" class="sref">count"
a>; 
 L69">3 69"
a>        2a href="+code=u32" class="sref">u32"
a>32a href="+code=state" class="sref">state"
a>[2a href="+code=SHA1_DIGEST_SIZE" class="sref">SHA1_DIGEST_SIZE"
a> / 4]; 
 L70">3 70"
a>        2a href="+code=u8" class="sref">u8"
a>32a href="+code=buffer" class="sref">buffer"
a>[2a href="+code=SHA1_BLOCK_SIZE" class="sref">SHA1_BLOCK_SIZE"
a>]; 
 L71">3 71"
a>}; 
 L72">3 722/a> 
 L73">3 73"
a>struct32a href="+code=sha256_state" class="sref">sha256_state"
a> { 
 L74">3 74"
a>        2a href="+code=u64" class="sref">u64"
a> 2a href="+code=count" class="sref">count"
a>; 
 L75">3 75"
a>        2a href="+code=u32" class="sref">u32"
a>32a href="+code=state" class="sref">state"
a>[2a href="+code=SHA256_DIGEST_SIZE" class="sref">SHA256_DIGEST_SIZE"
a> / 4]; 
 L76">3 76"
a>        2a href="+code=u8" class="sref">u8"
a>32a href="+code=buf" class="sref">buf"
a>[2a href="+code=SHA256_BLOCK_SIZE" class="sref">SHA256_BLOCK_SIZE"
a>]; 
 L77">3 77"
a>}; 
 L78">3 782/a> 
 L79">3 79"
a>struct32a href="+code=sha512_state" class="sref">sha512_state"
a> { 
 L80">3 80"
a>        2a href="+code=u64" class="sref">u64"
a> 2a href="+code=count" class="sref">count"
a>[2]; 
 L81">3 81"
a>        2a href="+code=u64" class="sref">u64"
a> 2a href="+code=state" class="sref">state"
a>[2a href="+code=SHA512_DIGEST_SIZE" class="sref">SHA512_DIGEST_SIZE"
a> / 8]; 
 L82">3 82"
a>        2a href="+code=u8" class="sref">u8"
a>32a href="+code=buf" class="sref">buf"
a>[2a href="+code=SHA512_BLOCK_SIZE" class="sref">SHA512_BLOCK_SIZE"
a>]; 
 L83">3 83"
a>}; 
 L84">3 842/a> 
 L85">3 85"
a>struct32a href="+code=shash_desc" class="sref">shash_desc"
a>; 
 L86">3 862/a> 
 L87">3 87"
a>extern int32a href="+code=crypto_sha1_update" class="sref">crypto_sha1_update"
a>(struct32a href="+code=shash_desc" class="sref">shash_desc"
a> *2a href="+code=desc" class="sref">desc"
a>, const32a href="+code=u8" class="sref">u8"
a>3*2a href="+code=data" class="sref">data"
a>, 
 L88">3 88"
a>                              unsigned int32a href="+code=len" class="sref">len"
a>); 
 L89">3 892/a> 
 L90">3 90"
a>#endif 
 L91">3 912/a>2/pre>
The original LXR software by the32a href="http://sourceforge.net/projects/lxr">LXR community" a>, this experimental verslxr@linux.no" a>. 2/div v2div class="subfooter"> lxr.linux.no kindly hosted by 2a href="http://www.redpill-linpro.no">Redpill Linpro AS" a>, provider of Linux consulting and opera > s services since 1995. 2/div v 2/body v2/html v