summaryrefslogtreecommitdiff
path: root/crypto/ecc.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2018-06-28 14:07:57 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2018-06-28 14:07:57 +0200
commit4ac44d603f290242cbba2e0d0383460412d55c04 (patch)
treea573d3a85920efb639707e6e528e0cac59666199 /crypto/ecc.h
parentaeb235fbdded8149156360a2b2f9ca2c6d99448e (diff)
parentc5c0586a6771a33a5da7985495c1beab72d292b1 (diff)
downloadlinux-crypto-4ac44d603f290242cbba2e0d0383460412d55c04.tar.gz
linux-crypto-4ac44d603f290242cbba2e0d0383460412d55c04.zip
Merge tag 'v4.18-rc2' of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into fbdev-for-next
Linux 4.18-rc2
Diffstat (limited to 'crypto/ecc.h')
-rw-r--r--crypto/ecc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/ecc.h b/crypto/ecc.h
index e4fd4492..f75a86ba 100644
--- a/crypto/ecc.h
+++ b/crypto/ecc.h
@@ -26,7 +26,9 @@
#ifndef _CRYPTO_ECC_H
#define _CRYPTO_ECC_H
-#define ECC_MAX_DIGITS 4 /* 256 */
+#define ECC_CURVE_NIST_P192_DIGITS 3
+#define ECC_CURVE_NIST_P256_DIGITS 4
+#define ECC_MAX_DIGITS ECC_CURVE_NIST_P256_DIGITS
#define ECC_DIGITS_TO_BYTES_SHIFT 3