Examples of convPolyBinaryToTrinaryHelper2()


Examples of com.securityinnovation.jNeo.ntruencrypt.NtruEncryptKey.convPolyBinaryToTrinaryHelper2()

        NtruEncryptKey keys = new NtruEncryptKey(OID.ees401ep1);

        short out[] = new short[19];
        java.util.Arrays.fill(out, (short) 22);   // init to invalid data

        keys.convPolyBinaryToTrinaryHelper2(out.length, 3, out, 0x00e1e83a);
        short expectedOut[] = {
            22, 22, 22,
            -1, 1, 0, 0, 1, 0, -1, 0, 1, 1, 0, 0, -1, 1, 0, -1
        };
View Full Code Here

Examples of com.securityinnovation.jNeo.ntruencrypt.NtruEncryptKey.convPolyBinaryToTrinaryHelper2()

        throws NtruException
    {
        NtruEncryptKey keys = new NtruEncryptKey(OID.ees401ep1);
        short out[] = new short[16];
        java.util.Arrays.fill(out, (short) 22);   // init to invalid data
        keys.convPolyBinaryToTrinaryHelper2(out.length, 0, out, 0x00c8a669);

        short expectedOut[] = {
            -1, 0, 0, -1, 0, 1, 0, -1, 1, 0, 0, 1, 1, -1, 0, 1
        };
        assertArrayEquals(out, expectedOut);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.