]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - crypto/ecdh.c
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
[linux.git] / crypto / ecdh.c
index d2ec33f0e098fce60934811f5f7195d979488a08..bf6300175b9cd2416c81d7aab4c13b986e8bba60 100644 (file)
@@ -30,8 +30,8 @@ static inline struct ecdh_ctx *ecdh_get_ctx(struct crypto_kpp *tfm)
 static unsigned int ecdh_supported_curve(unsigned int curve_id)
 {
        switch (curve_id) {
-       case ECC_CURVE_NIST_P192: return 3;
-       case ECC_CURVE_NIST_P256: return 4;
+       case ECC_CURVE_NIST_P192: return ECC_CURVE_NIST_P192_DIGITS;
+       case ECC_CURVE_NIST_P256: return ECC_CURVE_NIST_P256_DIGITS;
        default: return 0;
        }
 }