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.
ecdsa.h File Reference
ECDSA (Elliptic Curve Digital Signature Algorithm) More...
Go to the source code of this file.
Data Structures | |
| struct | EcdsaSignature |
| ECDSA signature. More... | |
Functions | |
| void | ecdsaInitSignature (EcdsaSignature *signature) |
| Initialize an ECDSA signature. | |
| void | ecdsaFreeSignature (EcdsaSignature *signature) |
| Release an ECDSA signature. | |
| error_t | ecdsaWriteSignature (const EcdsaSignature *signature, uint8_t *data, size_t *length) |
| Encode ECDSA signature using ASN.1. | |
| error_t | ecdsaReadSignature (const uint8_t *data, size_t length, EcdsaSignature *signature) |
| Read an ASN.1 encoded ECDSA signature. | |
| error_t | ecdsaGenerateSignature (const EcDomainParameters *params, const PrngAlgo *prngAlgo, void *prngContext, const Mpi *privateKey, const uint8_t *digest, size_t digestLength, EcdsaSignature *signature) |
| ECDSA signature generation. | |
| error_t | ecdsaVerifySignature (const EcDomainParameters *params, const EcPoint *publicKey, const uint8_t *digest, size_t digestLength, const EcdsaSignature *signature) |
| ECDSA signature verification. | |
Detailed Description
ECDSA (Elliptic Curve Digital Signature Algorithm)
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 ecdsa.h.
Function Documentation
| void ecdsaFreeSignature | ( | EcdsaSignature * | signature ) |
| error_t ecdsaGenerateSignature | ( | const EcDomainParameters * | params, |
| const PrngAlgo * | prngAlgo, | ||
| void * | prngContext, | ||
| const Mpi * | privateKey, | ||
| const uint8_t * | digest, | ||
| size_t | digestLength, | ||
| EcdsaSignature * | signature | ||
| ) |
ECDSA signature generation.
- Parameters:
-
[in] params EC domain parameters [in] prngAlgo PRNG algorithm [in] prngContext Pointer to the PRNG context [in] privateKey Signer's ECDSA private key [in] digest Digest of the message to be signed [in] digestLength Length in octets of the digest [out] signature (R, S) integer pair
- Returns:
- Error code
| void ecdsaInitSignature | ( | EcdsaSignature * | signature ) |
| error_t ecdsaReadSignature | ( | const uint8_t * | data, |
| size_t | length, | ||
| EcdsaSignature * | signature | ||
| ) |
| error_t ecdsaVerifySignature | ( | const EcDomainParameters * | params, |
| const EcPoint * | publicKey, | ||
| const uint8_t * | digest, | ||
| size_t | digestLength, | ||
| const EcdsaSignature * | signature | ||
| ) |
ECDSA signature verification.
- Parameters:
-
[in] params EC domain parameters [in] publicKey Signer's ECDSA public key [in] digest Digest of the message whose signature is to be verified [in] digestLength Length in octets of the digest [in] signature (R, S) integer pair
- Returns:
- Error code
| error_t ecdsaWriteSignature | ( | const EcdsaSignature * | signature, |
| uint8_t * | data, | ||
| size_t * | length | ||
| ) |
Generated on Tue Jul 12 2022 17:10:19 by
1.7.2