ecc.c (8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17) | ecc.c (a745d3ace3fd65ada44d61dafa64a2a69679ac35) |
---|---|
1/* 2 * Copyright (c) 2013, 2014 Kenneth MacKay. All rights reserved. 3 * Copyright (c) 2019 Vitaly Chikunov <vt@altlinux.org> 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: 8 * * Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27#include <crypto/ecc_curve.h> 28#include <linux/module.h> 29#include <linux/random.h> 30#include <linux/slab.h> 31#include <linux/swab.h> 32#include <linux/fips.h> 33#include <crypto/ecdh.h> 34#include <crypto/rng.h> | 1/* 2 * Copyright (c) 2013, 2014 Kenneth MacKay. All rights reserved. 3 * Copyright (c) 2019 Vitaly Chikunov <vt@altlinux.org> 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: 8 * * Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27#include <crypto/ecc_curve.h> 28#include <linux/module.h> 29#include <linux/random.h> 30#include <linux/slab.h> 31#include <linux/swab.h> 32#include <linux/fips.h> 33#include <crypto/ecdh.h> 34#include <crypto/rng.h> |
35#include <crypto/internal/ecc.h> |
|
35#include <asm/unaligned.h> 36#include <linux/ratelimit.h> 37 | 36#include <asm/unaligned.h> 37#include <linux/ratelimit.h> 38 |
38#include "ecc.h" | |
39#include "ecc_curve_defs.h" 40 41typedef struct { 42 u64 m_low; 43 u64 m_high; 44} uint128_t; 45 46/* Returns curv25519 curve param */ --- 1618 unchanged lines hidden --- | 39#include "ecc_curve_defs.h" 40 41typedef struct { 42 u64 m_low; 43 u64 m_high; 44} uint128_t; 45 46/* Returns curv25519 curve param */ --- 1618 unchanged lines hidden --- |