📄 setkey.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>setkey</title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_008_426"> </a>NAME</h4><blockquote>setkey - set encoding key(<b>CRYPT</b>)</blockquote><h4><a name = "tag_000_008_427"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="stdlib.h.html">stdlib.h</a>>void setkey(const char *<i>key</i>);</code></pre></blockquote><h4><a name = "tag_000_008_428"> </a>DESCRIPTION</h4><blockquote>The<i>setkey()</i>function provides (rather primitive)access to an implementation-dependent encoding algorithm.The argument of<i>setkey()</i>is an arrayof length 64 bytes containing only the byteswith numerical value of 0 and 1.If this string is divided into groups of 8, thelow-order bit in each group is ignored;this gives a 56-bit key which is used by the algorithm.This is the key that will be used with thealgorithm to encode a string<i>block</i>passed to<i><a href="encrypt.html">encrypt()</a></i>.<p>The<i>setkey()</i>function will not change the setting of <b>errno</b>if successful.<p>This interface need not be reentrant.</blockquote><h4><a name = "tag_000_008_429"> </a>RETURN VALUE</h4><blockquote>No values are returned.</blockquote><h4><a name = "tag_000_008_430"> </a>ERRORS</h4><blockquote>The<i>setkey()</i>function will fail if:<dl compact><dt>[ENOSYS]<dd>The functionality is not supported on this implementation.</dl></blockquote><h4><a name = "tag_000_008_431"> </a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_000_008_432"> </a>APPLICATION USAGE</h4><blockquote>Decoding need not be implemented in all environments. This is related toU.S. Government restrictions on encryption and decryption routines:the DES decryption algorithm cannot be exported outside the U.S.A.Historical practice has been to ship a different version of the encryptionlibrary without the decryption feature in the routines supplied.Thus the exported version of<i><a href="encrypt.html">encrypt()</a></i>does encoding but not decoding.</blockquote><h4><a name = "tag_000_008_433"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_008_434"> </a>SEE ALSO</h4><blockquote><i><a href="crypt.html">crypt()</a></i>,<i><a href="encrypt.html">encrypt()</a></i>,<i><a href="stdlib.h.html"><stdlib.h></a></i>.</blockquote><h4>DERIVATION</h4><blockquote>Derived from Issue 1 of the SVID.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -