Example usage for org.bouncycastle.util Arrays hashCode

List of usage examples for org.bouncycastle.util Arrays hashCode

Introduction

In this page you can find the example usage for org.bouncycastle.util Arrays hashCode.

Prototype

public static int hashCode(Object[] data) 

Source Link

Usage

From source file:com.bitsofproof.supernode.api.Address.java

License:Apache License

@Override
public int hashCode() {
    return Arrays.hashCode(bytes) + type.ordinal();
}

From source file:com.bitsofproof.supernode.common.ByteVector.java

License:Apache License

@Override
public int hashCode() {
    return Arrays.hashCode(bytes);
}

From source file:edu.vt.middleware.crypt.x509.types.BitString.java

License:Open Source License

/** {@inheritDoc} */
@Override
public int hashCode() {
    return HASH_FACTOR * getClass().hashCode() + Arrays.hashCode(octets);
}

From source file:net.java.otr4j.messages.SignatureX.java

License:LGPL

@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + dhKeyID;//ww w  .  j  a  v  a  2  s  .com
    result = prime * result + longTermPublicKey.hashCode();
    result = prime * result + Arrays.hashCode(signature);
    return result;
}

From source file:org.ccnx.ccn.protocol.Component.java

License:Open Source License

@Override
public int hashCode() {
    return Arrays.hashCode(this.getComponent());
}

From source file:org.hyperledger.common.PublicKey.java

License:Apache License

@Override
public int hashCode() {
    return Arrays.hashCode(pub);
}

From source file:org.hyperledger.core.BloomFilter.java

License:Apache License

/**
 * addTransaction some data to the filter.
 *
 * @param data//www  .  j ava  2 s  .  c o  m
 * @return
 */
public int add(byte[] data) {
    for (int i = 0; i < hashFunctions; ++i) {
        setBit((int) ((murmurhash3bit(i, data, tweak) & 0xFFFFFFFFL) % (filter.length * 8)));
    }
    return Arrays.hashCode(data);
}