<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/openssl.constants.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'openssl.constants.other.php',
    1 => '其它常量',
    2 => '其它常量',
  ),
  'up' => 
  array (
    0 => 'openssl.constants.php',
    1 => '预定义常量',
  ),
  'prev' => 
  array (
    0 => 'openssl.constsni.php',
    1 => 'Server Name Indication constants',
  ),
  'next' => 
  array (
    0 => 'openssl.certparams.php',
    1 => '密钥/证书参数',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/openssl/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="openssl.constants.other" class="section">
  <h2 class="title">其它常量</h2>
  <dl>
    
      <dt id="constant.openssl-raw-data">
        <strong><code><a href="openssl.constants.other.php#constant.openssl-raw-data">OPENSSL_RAW_DATA</a></code></strong>
        (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </dt>
      <dd>
        <span class="simpara">
         如果在 <span class="function"><a href="function.openssl-encrypt.php" class="function">openssl_encrypt()</a></span> 或 <span class="function"><a href="function.openssl-decrypt.php" class="function">openssl_decrypt()</a></span> 中设置了
         <strong><code><a href="openssl.constants.other.php#constant.openssl-raw-data">OPENSSL_RAW_DATA</a></code></strong>，将直接返回原始数据。若未指定该选项，则默认返回经过 Base64 编码的数据。
        </span>
      </dd>
    
    
      <dt id="constant.openssl-dont-zero-pad-key">
       <strong><code><a href="openssl.constants.other.php#constant.openssl-dont-zero-pad-key">OPENSSL_DONT_ZERO_PAD_KEY</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </dt>
      <dd>
        <span class="simpara">
         阻止 <span class="function"><a href="function.openssl-encrypt.php" class="function">openssl_encrypt()</a></span> 对短于默认长度的密钥进行填充。
        </span>
      </dd>
    
    
      <dt id="constant.openssl-zero-padding">
       <strong><code><a href="openssl.constants.other.php#constant.openssl-zero-padding">OPENSSL_ZERO_PADDING</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </dt>
      <dd>
        <span class="simpara">
         默认情况下，加密操作会使用标准块填充，解密时会自动检查并移除填充。如果在 <span class="function"><a href="function.openssl-encrypt.php" class="function">openssl_encrypt()</a></span>
         或 <span class="function"><a href="function.openssl-decrypt.php" class="function">openssl_decrypt()</a></span> 的选项中设置了
         <strong><code><a href="openssl.constants.other.php#constant.openssl-zero-padding">OPENSSL_ZERO_PADDING</a></code></strong>，则禁用填充机制，此时要求加/解密的数据总长度必须是块大小的整数倍，否则会引发错误。
        </span>
      </dd>
    
    
      <dt id="constant.openssl-encoding-smime">
       <strong><code><a href="openssl.constants.other.php#constant.openssl-encoding-smime">OPENSSL_ENCODING_SMIME</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </dt>
      <dd>
        <span class="simpara">
         表明编码是 S/MIME。
        </span>
      </dd>
    
    
      <dt id="constant.openssl-encoding-der">
       <strong><code><a href="openssl.constants.other.php#constant.openssl-encoding-der">OPENSSL_ENCODING_DER</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </dt>
      <dd>
        <span class="simpara">
         表明编码是 <abbr title="Distinguished Encoding Rules">DER</abbr>。
        </span>
      </dd>
    
    
      <dt id="constant.openssl-encoding-pem">
       <strong><code><a href="openssl.constants.other.php#constant.openssl-encoding-pem">OPENSSL_ENCODING_PEM</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </dt>
      <dd>
        <span class="simpara">
         表明编码是 <abbr title="Privacy-Enhanced Mail">PEM</abbr>。
        </span>
      </dd>
    
  </dl>
 </div><?php manual_footer($setup); ?>