X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fec%2Fecp_nistz256_table.c;h=3f5625c6c5eb695be18fb032322a5a9dd9c1d35a;hb=b98530d6e09f4cb34c791b8840e936c1fc1467cf;hp=c5bd8399e11b260281801ca1c716017f342e7479;hpb=4d3fa06fce52682bfbc503c7ded2d0289e3f8cde;p=oweals%2Fopenssl.git diff --git a/crypto/ec/ecp_nistz256_table.c b/crypto/ec/ecp_nistz256_table.c index c5bd8399e1..3f5625c6c5 100644 --- a/crypto/ec/ecp_nistz256_table.c +++ b/crypto/ec/ecp_nistz256_table.c @@ -1,17 +1,25 @@ -/* This is the precomputed constant time access table for the code in - * ecp_montp256.c, for the default generator. +/* + * Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. * - * The table consists of 37 subtables, each subtable contains 64 affine points. - * The affine points are encoded as eight uint64's, four for the x coordinate - * and four for the y. Both values are in little-endian order. - * - * There are 37 tables because a signed, 6-bit wNAF form of the scalar is used - * and ceil(256/(6 + 1)) = 37. Within each table there are 64 values because - * the 6-bit wNAF value can take 64 values, ignoring the sign bit, which is - * implemented by performing a negation of the affine point when required. - * - * We would like to align it to 2MB in order to increase the chances of using a - * large page but that appears to lead to invalid ELF files being produced. */ + * Licensed under the OpenSSL license (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + +/* + * This is the precomputed constant time access table for the code in + * ecp_montp256.c, for the default generator. The table consists of 37 + * subtables, each subtable contains 64 affine points. The affine points are + * encoded as eight uint64's, four for the x coordinate and four for the y. + * Both values are in little-endian order. There are 37 tables because a + * signed, 6-bit wNAF form of the scalar is used and ceil(256/(6 + 1)) = 37. + * Within each table there are 64 values because the 6-bit wNAF value can + * take 64 values, ignoring the sign bit, which is implemented by performing + * a negation of the affine point when required. We would like to align it + * to 2MB in order to increase the chances of using a large page but that + * appears to lead to invalid ELF files being produced. + */ #if defined(__GNUC__) __attribute((aligned(4096)))