Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Elliptic curves. More...
Go to the source code of this file.
Functions | |
| error_t | secp128r1Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp128r1 curve) | |
| error_t | secp128r2Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp128r2 curve) | |
| error_t | secp160k1Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp160k1 curve) | |
| error_t | secp160r1Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp160r1 curve) | |
| error_t | secp160r2Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp160r2 curve) | |
| error_t | secp192k1Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp192k1 curve) | |
| error_t | secp192r1Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp192r1 curve) | |
| error_t | secp224k1Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp224k1 curve) | |
| error_t | secp224r1Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp224r1 curve) | |
| error_t | secp256k1Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp256k1 curve) | |
| error_t | secp256r1Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp256r1 curve) | |
| error_t | secp384r1Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp384r1 curve) | |
| error_t | secp521r1Mod (Mpi *a, const Mpi *p) |
| Fast modular reduction (secp521r1 curve) | |
| const EcCurveInfo * | ecGetCurveInfo (const uint8_t *oid, size_t length) |
| Get the elliptic curve that matches the specified OID. | |
Variables | |
| const EcCurveInfo | secp112r1Curve |
| secp112r1 elliptic curve | |
| const EcCurveInfo | secp112r2Curve |
| secp112r2 elliptic curve | |
| const EcCurveInfo | secp128r1Curve |
| secp128r1 elliptic curve | |
| const EcCurveInfo | secp128r2Curve |
| secp128r2 elliptic curve | |
| const EcCurveInfo | secp160k1Curve |
| secp160k1 elliptic curve | |
| const EcCurveInfo | secp160r1Curve |
| secp160r1 elliptic curve | |
| const EcCurveInfo | secp160r2Curve |
| secp160r2 elliptic curve | |
| const EcCurveInfo | secp192k1Curve |
| secp192k1 elliptic curve | |
| const EcCurveInfo | secp192r1Curve |
| secp192r1 elliptic curve | |
| const EcCurveInfo | secp224k1Curve |
| secp224k1 elliptic curve | |
| const EcCurveInfo | secp224r1Curve |
| secp224r1 elliptic curve | |
| const EcCurveInfo | secp256k1Curve |
| secp256k1 elliptic curve | |
| const EcCurveInfo | secp256r1Curve |
| secp256r1 elliptic curve | |
| const EcCurveInfo | secp384r1Curve |
| secp384r1 elliptic curve | |
| const EcCurveInfo | secp521r1Curve |
| secp521r1 elliptic curve | |
| const EcCurveInfo | brainpoolP160r1Curve |
| brainpoolP160r1 elliptic curve | |
| const EcCurveInfo | brainpoolP192r1Curve |
| brainpoolP192r1 elliptic curve | |
| const EcCurveInfo | brainpoolP224r1Curve |
| brainpoolP224r1 elliptic curve | |
| const EcCurveInfo | brainpoolP256r1Curve |
| brainpoolP256r1 elliptic curve | |
| const EcCurveInfo | brainpoolP320r1Curve |
| brainpoolP320r1 elliptic curve | |
| const EcCurveInfo | brainpoolP384r1Curve |
| brainpoolP384r1 elliptic curve | |
| const EcCurveInfo | brainpoolP512r1Curve |
| brainpoolP512r1 elliptic curve | |
Detailed Description
Elliptic curves.
License
Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneCrypto Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version:
- 1.7.6
Definition in file ec_curves.c.
Function Documentation
| const EcCurveInfo* ecGetCurveInfo | ( | const uint8_t * | oid, |
| size_t | length | ||
| ) |
Get the elliptic curve that matches the specified OID.
- Parameters:
-
[in] oid Object identifier [in] length OID length
- Returns:
- Elliptic curve domain parameters
Definition at line 1884 of file ec_curves.c.
Fast modular reduction (secp128r1 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1092 of file ec_curves.c.
Fast modular reduction (secp128r2 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1138 of file ec_curves.c.
Fast modular reduction (secp160k1 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1184 of file ec_curves.c.
Fast modular reduction (secp160r1 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1233 of file ec_curves.c.
Fast modular reduction (secp160r2 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1279 of file ec_curves.c.
Fast modular reduction (secp192k1 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1328 of file ec_curves.c.
Fast modular reduction (secp192r1 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1377 of file ec_curves.c.
Fast modular reduction (secp224k1 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1442 of file ec_curves.c.
Fast modular reduction (secp224r1 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1491 of file ec_curves.c.
Fast modular reduction (secp256k1 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1564 of file ec_curves.c.
Fast modular reduction (secp256r1 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1613 of file ec_curves.c.
Fast modular reduction (secp384r1 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1727 of file ec_curves.c.
Fast modular reduction (secp521r1 curve)
- Parameters:
-
[in,out] a This function accept an integer less than p^2 as input and return (a mod p) as output [in] p Prime modulus
Definition at line 1840 of file ec_curves.c.
Variable Documentation
brainpoolP160r1 elliptic curve
Definition at line 757 of file ec_curves.c.
brainpoolP192r1 elliptic curve
Definition at line 801 of file ec_curves.c.
brainpoolP224r1 elliptic curve
Definition at line 845 of file ec_curves.c.
brainpoolP256r1 elliptic curve
Definition at line 889 of file ec_curves.c.
brainpoolP320r1 elliptic curve
Definition at line 933 of file ec_curves.c.
brainpoolP384r1 elliptic curve
Definition at line 983 of file ec_curves.c.
brainpoolP512r1 elliptic curve
Definition at line 1033 of file ec_curves.c.
| const EcCurveInfo secp112r1Curve |
secp112r1 elliptic curve
Definition at line 97 of file ec_curves.c.
| const EcCurveInfo secp112r2Curve |
secp112r2 elliptic curve
Definition at line 135 of file ec_curves.c.
| const EcCurveInfo secp128r1Curve |
secp128r1 elliptic curve
Definition at line 173 of file ec_curves.c.
| const EcCurveInfo secp128r2Curve |
secp128r2 elliptic curve
Definition at line 211 of file ec_curves.c.
| const EcCurveInfo secp160k1Curve |
secp160k1 elliptic curve
Definition at line 249 of file ec_curves.c.
| const EcCurveInfo secp160r1Curve |
secp160r1 elliptic curve
Definition at line 293 of file ec_curves.c.
| const EcCurveInfo secp160r2Curve |
secp160r2 elliptic curve
Definition at line 337 of file ec_curves.c.
| const EcCurveInfo secp192k1Curve |
secp192k1 elliptic curve
Definition at line 381 of file ec_curves.c.
| const EcCurveInfo secp192r1Curve |
secp192r1 elliptic curve
Definition at line 425 of file ec_curves.c.
| const EcCurveInfo secp224k1Curve |
secp224k1 elliptic curve
Definition at line 469 of file ec_curves.c.
| const EcCurveInfo secp224r1Curve |
secp224r1 elliptic curve
Definition at line 513 of file ec_curves.c.
| const EcCurveInfo secp256k1Curve |
secp256k1 elliptic curve
Definition at line 557 of file ec_curves.c.
| const EcCurveInfo secp256r1Curve |
secp256r1 elliptic curve
Definition at line 601 of file ec_curves.c.
| const EcCurveInfo secp384r1Curve |
secp384r1 elliptic curve
Definition at line 645 of file ec_curves.c.
| const EcCurveInfo secp521r1Curve |
secp521r1 elliptic curve
Definition at line 695 of file ec_curves.c.
Generated on Tue Jul 12 2022 17:10:19 by
1.7.2