1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.crypto.internal.digest.factory

File AbstractDigestFactoryTestConstants.java

 

Code metrics

0
0
0
1
55
32
0
-
-
0
-

Classes

Class Line # Actions
AbstractDigestFactoryTestConstants 28 0 - 0 0
-1.0 -
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.crypto.internal.digest.factory;
21   
22    import org.bouncycastle.asn1.DERNull;
23    import org.bouncycastle.asn1.nist.NISTObjectIdentifiers;
24    import org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers;
25    import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
26    import org.bouncycastle.asn1.x509.X509ObjectIdentifiers;
27   
 
28    public abstract class AbstractDigestFactoryTestConstants
29    {
30    protected static final String TEXT = "Congress shall make no law respecting an establishment of religion, or "
31    + "prohibiting the free exercise thereof; or abridging the freedom of speech, "
32    + "or of the press; or the right of the people peaceably to assemble, and to "
33    + "petition the Government for a redress of grievances.";
34   
35    protected static final String MD5_DIGEST = "dghMwlJG7pbUs8yZLiaLqg==";
36    protected static final String SHA1_DIGEST = "R7eMZ8T04jGMYn+4t+JiU8QIf3w=";
37    protected static final String SHA224_DIGEST = "F1RrAqOG50VKJNCXSb6I6COYZxgQ62qoJNqdcA==";
38    protected static final String SHA256_DIGEST = "ab6bGZxULFYYPECKI9f9QfyHjsJjS+ZYPbFln7DpEGM=";
39    protected static final String SHA384_DIGEST = "0LId4etoiEZSztZ4HswL1LrizsHBud962Zwk3qSJg3/4CXRfqeEiTL/rkA5G3YZh";
40    protected static final String SHA512_DIGEST = "l1Kiq5RRUU7ftTEIcBDc0VOQhkBuowzB1Cf+ThbExxqmSv8zG4LWs4RvVf9uB3rk"
41    + "8iCUvxKTmJR1wYJgcJD0GA==";
42   
43    protected static final AlgorithmIdentifier MD5_DIGEST_ALGO =
44    new AlgorithmIdentifier(PKCSObjectIdentifiers.md5, DERNull.INSTANCE);
45    protected static final AlgorithmIdentifier SHA1_DIGEST_ALGO
46    = new AlgorithmIdentifier(X509ObjectIdentifiers.id_SHA1, DERNull.INSTANCE);
47    protected static final AlgorithmIdentifier SHA224_DIGEST_ALGO
48    = new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha224, DERNull.INSTANCE);
49    protected static final AlgorithmIdentifier SHA256_DIGEST_ALGO
50    = new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha256, DERNull.INSTANCE);
51    protected static final AlgorithmIdentifier SHA384_DIGEST_ALGO
52    = new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha384, DERNull.INSTANCE);
53    protected static final AlgorithmIdentifier SHA512_DIGEST_ALGO
54    = new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha512, DERNull.INSTANCE);
55    }