📄 ripemd160_rsa_pkcs1signature.java
字号:
// $Id: RIPEMD160_RSA_PKCS1Signature.java,v 1.1.1.1 2002/08/27 12:32:13 grosbois Exp $//// $Log: RIPEMD160_RSA_PKCS1Signature.java,v $// Revision 1.1.1.1 2002/08/27 12:32:13 grosbois// Add cryptix 3.2//// Revision 1.2 1997/12/08 10:02:07 raif// *** empty log message ***//// 1997.12.08 --RSN// + modified the semantics of the AlgId bytes.// + documentation changes.//// Revision 1.1 1997/11/23 02:24:59 hopwood// + Changed the naming convention for signature classes.// "PKCS1" is used instead of "PEM", because PKCS#1 is a signature// (and encryption) formatting standard, whereas PEM is a complete secure// mail standard.//// Revision 1.1.1.1 1997/11/03 22:36:56 hopwood// + Imported to CVS (tagged as 'start').//// Revision 0.1.0.1 1997/07/30 David Hopwood// + Renamed this class to RIPEMD160_RSA_PEMSignature (from// RSA_RIPEMD160Signature).// + Renamed getAlgorithmId to getAlgorithmEncoding.//// Revision 0.1.0.0 1997/07/28 R. Naffah// + Original version.//// $Endlog$/* * Copyright (c) 1995-97 Systemics Ltd * on behalf of the Cryptix Development Team. All rights reserved. */package cryptix.provider.rsa;/** * A class to digest a message with RIPEMD160, and sign/verify the * resulting hash using the RSA 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 RIPEMD160_RSA_PKCS1Signatureextends Any_RSA_PKCS1Signature{// Constants and variables//........................................................................... private static final byte[] RIPEMD160_ASN_DATA = { 0x30, 0x21, // SEQUENCE 33 0x30, 0x09, // SEQUENCE 9 0x06, 0x05, 0x2B, 0x24, 0x03, 0x02, 0x01, // OID {1.3.36.3.2.1} 0x05, 0x00, // NULL 0x04, 0x14 // OCTET STRING 20 };// Constructor//........................................................................... public RIPEMD160_RSA_PKCS1Signature() { super("RIPEMD160"); }// Any_RSA_PKCS1Signature abstract method implementation//........................................................................... protected byte[] getAlgorithmEncoding() { return RIPEMD160_ASN_DATA; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -