}
}
+ // everything below if from BouncyCastle
+
/**
* an implementation of the AES (Rijndael), from FIPS-197.
* <p>
+/*
+ * org.ibex.crypto.Base64 - By Brian Alliet
+ * Copyright (C) 2004 Brian Alliet
+ */
package org.ibex.crypto;
import java.io.UnsupportedEncodingException;
/*
- * org.ibex.der.* - By Brian Alliet
+ * org.ibex.crypto.DER - By Brian Alliet
* Copyright (C) 2004 Brian Alliet
*
* Based on Bouncy Castle by The Legion Of The Bouncy Castle
import java.math.BigInteger;
public class DER {
+ private DER() { }
+
public static class Null {
final static Null instance = new Null();
private Null() { /* noop */ }
-// Copyright 2000-2005 the Contributors, as shown in the revision logs.
-// Licensed under the Apache Public Source License 2.0 ("the License").
-// You may not use this file except in compliance with the License.
-
package org.ibex.crypto;
public class HMAC extends Digest {
-// Copyright 2000-2005 the Contributors, as shown in the revision logs.
-// Licensed under the Apache Public Source License 2.0 ("the License").
-// You may not use this file except in compliance with the License.
-
package org.ibex.crypto;
import java.security.SecureRandom;
-// Copyright 2000-2005 the Contributors, as shown in the revision logs.
-// Licensed under the Apache Public Source License 2.0 ("the License").
-// You may not use this file except in compliance with the License.
-
package org.ibex.crypto;
+package org.ibex.crypto;
public class RC4 implements Cipher {
private final byte[] s = new byte[256];
-// Copyright 2000-2005 the Contributors, as shown in the revision logs.
-// Licensed under the Apache Public Source License 2.0 ("the License").
-// You may not use this file except in compliance with the License.
-
package org.ibex.crypto;
import java.math.BigInteger;
import java.util.*;
import java.util.*;
public class X509 {
+ private X509() { }
+
public static class Certificate {
public static final String RSA_ENCRYPTION = "1.2.840.113549.1.1.1";
public static final String MD2_WITH_RSA_ENCRYPTION = "1.2.840.113549.1.1.2";
}
public static boolean debugOn = false;
- private static void debug(Object o) { if(debugOn) System.err.println("[BriSSL-Debug] " + o.toString()); }
- private static void log(Object o) { System.err.println("[BriSSL] " + o.toString()); }
+ private static void debug(Object o) { if(debugOn) System.err.println("[IbexSSLL-Debug] " + o.toString()); }
+ private static void log(Object o) { System.err.println("[IbexSSL] " + o.toString()); }
private static void verifyCerts(X509.Certificate[] certs) throws DER.Exception, Exn {
try {