Examples of NtruEncryptTestVector


Examples of com.securityinnovation.testvectors.NtruEncryptTestVector

    // Use samples from the NtruEncrypt test vector paper:
    //   m' - mask = M (mod p) centered on 0.
    @Test public void test_subtractAndRecenter()
        throws ParamSetNotSupportedException
    {
        NtruEncryptTestVector tests[] = NtruEncryptTestVector.getTestVectors();
        for (int t=0; t<tests.length; t++)
        {
            KeyParams keyParams = KeyParams.getKeyParams(tests[t].oid);

            // m' = mask + Mtrin (mod p)
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.