Java 类org.bouncycastle.crypto.params.ISO18033KDFParameters 实例源码

项目:gwt-crypto    文件:KDF1GeneratorTest.java   
private void checkMask(
    int                count,
    DerivationFunction kdf,
    byte[]             seed,
    byte[]             result)
{
    byte[]             data = new byte[result.length];

    kdf.init(new ISO18033KDFParameters(seed));

    kdf.generateBytes(data, 0, data.length);

    if (!areEqual(result, data))
    {
        fail("KDF1 failed generator test " + count);
    }
}
项目:irma_future_id    文件:KDF1GeneratorTest.java   
private void checkMask(
    int                count,
    DerivationFunction kdf,
    byte[]             seed,
    byte[]             result)
{
    byte[]             data = new byte[result.length];

    kdf.init(new ISO18033KDFParameters(seed));

    kdf.generateBytes(data, 0, data.length);

    if (!areEqual(result, data))
    {
        fail("KDF1 failed generator test " + count);
    }
}
项目:bc-java    文件:KDF1GeneratorTest.java   
private void checkMask(
    int                count,
    DerivationFunction kdf,
    byte[]             seed,
    byte[]             result)
{
    byte[]             data = new byte[result.length];

    kdf.init(new ISO18033KDFParameters(seed));

    kdf.generateBytes(data, 0, data.length);

    if (!areEqual(result, data))
    {
        fail("KDF1 failed generator test " + count);
    }
}