md2_elgamal_pkcs1signature.java
来自「jpeg2000编解码」· Java 代码 · 共 70 行
JAVA
70 行
// $Id: MD2_ElGamal_PKCS1Signature.java,v 1.1.1.1 2002/08/27 12:32:10 grosbois Exp $//// $Log: MD2_ElGamal_PKCS1Signature.java,v $// Revision 1.1.1.1 2002/08/27 12:32:10 grosbois// Add cryptix 3.2//// Revision 1.2 1997/12/10 01:17:46 raif// *** empty log message ***//// 1997.12.10 --RSN// + modified the semantics of the AlgId bytes.//// Revision 1.1 1997/12/07 06:37:27 hopwood// + Major overhaul of ElGamal to match RSA.//// Revision 0.1.0 1997/12/04 David Hopwood// + Original version (based on MD2_RSA_PKCS1Signature).//// $Endlog$/* * Copyright (c) 1995-97 Systemics Ltd * on behalf of the Cryptix Development Team. All rights reserved. */package cryptix.provider.elgamal;/** * A class to digest a message with MD2, and sign/verify the * resulting hash using the ElGamal digital signature scheme, with PKCS#1 * block padding. * <p> * <b>Copyright</b> © 1997 * <a href="http://www.systemics.com/">Systemics Ltd</a> on behalf of the * <a href="http://www.systemics.com/docs/cryptix/">Cryptix Development Team</a>. * <br>All rights reserved. * <p> * <b>$Revision: 1.1.1.1 $</b> * @author Raif S. Naffah * @author David Hopwood * @since Cryptix 2.2.2 */public class MD2_ElGamal_PKCS1Signatureextends Any_ElGamal_PKCS1Signature{// Constants and variables//............................................................................ private static final byte[] MD2_ASN_DATA = { 0x30, 0x20, // SEQUENCE 32 0x30, 0x0C, // SEQUENCE 12 0x06, 0x08, 0x2A, (byte)0x86, 0x48, // OID md2 {1.2.840.113549.2.2} (byte)0x86, (byte)0xF7, 0x0D, 0x02, 0x02, 0x05, 0x00, // NULL 0x04, 0x10 // OCTET STRING 16 };// Constructor//............................................................................ public MD2_ElGamal_PKCS1Signature () { super("MD2"); }// Any_ElGamal_PKCS1Signature abstract method implementation//............................................................................ protected byte[] getAlgorithmEncoding () { return MD2_ASN_DATA; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?