1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
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 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
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 |
|
} |