initializedmessagedigest.html
来自「JAVA CARD 开发包规格说明,版本为2.2.2」· HTML 代码 · 共 338 行 · 第 1/2 页
HTML
338 行
<CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/security/InitializedMessageDigest.html#setInitialDigest(byte[], short, short, byte[], short, short)">setInitialDigest</A></B>(byte[] initialDigestBuf, short initialDigestOffset, short initialDigestLength, byte[] digestedMsgLenBuf, short digestedMsgLenOffset, short digestedMsgLenLength)</CODE><BR> This method initializes the starting hash value in place of the default value used by the <code>MessageDigest</code> superclass.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javacard.security.MessageDigest"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class javacard.security.<A HREF="../../javacard/security/MessageDigest.html" title="class in javacard.security">MessageDigest</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javacard/security/MessageDigest.html#doFinal(byte[], short, short, byte[], short)">doFinal</A>, <A HREF="../../javacard/security/MessageDigest.html#getAlgorithm()">getAlgorithm</A>, <A HREF="../../javacard/security/MessageDigest.html#getInitializedMessageDigestInstance(byte, boolean)">getInitializedMessageDigestInstance</A>, <A HREF="../../javacard/security/MessageDigest.html#getInstance(byte, boolean)">getInstance</A>, <A HREF="../../javacard/security/MessageDigest.html#getLength()">getLength</A>, <A HREF="../../javacard/security/MessageDigest.html#reset()">reset</A>, <A HREF="../../javacard/security/MessageDigest.html#update(byte[], short, short)">update</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="InitializedMessageDigest()"><!-- --></A><H3>InitializedMessageDigest</H3><PRE>protected <B>InitializedMessageDigest</B>()</PRE><DL><DD>protected constructor<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="setInitialDigest(byte[], short, short, byte[], short, short)"><!-- --></A><H3>setInitialDigest</H3><PRE>public abstract void <B>setInitialDigest</B>(byte[] initialDigestBuf, short initialDigestOffset, short initialDigestLength, byte[] digestedMsgLenBuf, short digestedMsgLenOffset, short digestedMsgLenLength) throws <A HREF="../../javacard/security/CryptoException.html" title="class in javacard.security">CryptoException</A></PRE><DL><DD>This method initializes the starting hash value in place of the default value used by the <code>MessageDigest</code> superclass. The starting hash value represents the previously computed hash (using the same algorithm) of the first part of the message. The remaining bytes of the message must be presented to this <code>InitializedMessageDigest</code> object via the <code>update</code> and <code>doFinal</code> methods to generate the final message digest. <p>Note:<ul> <li><em>The maximum allowed value of the byte length of the first part of the message is algorithm specific</em> </ul><P><DD><DL><DT><B>Parameters:</B><DD><CODE>initialDigestBuf</CODE> - input buffer containing the starting hash value representing the previously computed hash (using the same algorithm) of first part of the message<DD><CODE>initialDigestOffset</CODE> - offset into <code>initialDigestBuf</code> array where initial digest value data begins<DD><CODE>initialDigestLength</CODE> - the length of data in <code>initialDigestBuf</code> array.<DD><CODE>digestedMsgLenBuf</CODE> - the byte array containing the number of bytes in the first part of the message that has previously been hashed to obtain the specified initial digest value value<DD><CODE>digestedMsgLenOffset</CODE> - the offset within <CODE>digestedMsgLenBuf</CODE> where the digested length begins(the bytes starting at this offset for <CODE>digestedMsgLenLength</CODE> bytes are concatenated to form the actual digested message length value)<DD><CODE>digestedMsgLenLength</CODE> - byte length of the digested length<DT><B>Throws:</B><DD><CODE><A HREF="../../javacard/security/CryptoException.html" title="class in javacard.security">CryptoException</A></CODE> - with the following reason codes:<ul> <li><code>CryptoException.ILLEGAL_VALUE</code> if the parameter <code>initialDigestLength</code> is not equal to the length of message digest of the algorithm (see <CODE>LENGTH_*</CODE> constants <A HREF="../../javacard/security/MessageDigest.html#LENGTH_SHA"><CODE>LENGTH_SHA</CODE></A>) or if the number of bytes in the first part of the message that has previously been hashed is 0 or not a multiple of the algorithm's block size or greater than the maximum length supported by the algorithm (see <CODE>ALG_*</CODE> algorithm descriptions <A HREF="../../javacard/security/MessageDigest.html#ALG_SHA"><CODE>ALG_SHA</CODE></A>).</ul></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/InitializedMessageDigest.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java Card </b><br><font size="-1">v2.2.2</font></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../javacard/security/HMACKey.html" title="interface in javacard.security"><B>PREV CLASS</B></A> <A HREF="../../javacard/security/Key.html" title="interface in javacard.security"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?javacard/security/InitializedMessageDigest.html" target="_top"><B>FRAMES</B></A> <A HREF="InitializedMessageDigest.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_javacard.security.MessageDigest">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 1993-2005 Sun Microsystems, Inc. 4150 Network Circle,<br>Santa Clara, CA, 95054, U.S.A. All Rights Reserved.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?