crypto_legacy.h File Reference

Legacy definitions. More...

Go to the source code of this file.


#define mpiReadRaw(r, data, length)   mpiImport(r, data, length, MPI_FORMAT_BIG_ENDIAN)
#define mpiWriteRaw(a, data, length)   mpiExport(a, data, length, MPI_FORMAT_BIG_ENDIAN)
#define ecdsaGenerateKeyPair   ecGenerateKeyPair
#define ecdsaGeneratePrivateKey   ecGeneratePrivateKey
#define ecdsaGeneratePublicKey   ecGeneratePublicKey
#define MAX_HASH_CONTEXT_SIZE   sizeof(HashContext)
#define MAX_CIPHER_CONTEXT_SIZE   sizeof(CipherContext)

Detailed Description

Legacy definitions.


SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2021 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.

Oryx Embedded SARL (

Definition in file crypto_legacy.h.

Macro Definition Documentation

◆ ecdsaGenerateKeyPair

#define ecdsaGenerateKeyPair   ecGenerateKeyPair

Definition at line 46 of file crypto_legacy.h.

◆ ecdsaGeneratePrivateKey

#define ecdsaGeneratePrivateKey   ecGeneratePrivateKey

Definition at line 47 of file crypto_legacy.h.

◆ ecdsaGeneratePublicKey

#define ecdsaGeneratePublicKey   ecGeneratePublicKey

Definition at line 48 of file crypto_legacy.h.


#define MAX_CIPHER_CONTEXT_SIZE   sizeof(CipherContext)

Definition at line 51 of file crypto_legacy.h.


#define MAX_HASH_CONTEXT_SIZE   sizeof(HashContext)

Definition at line 50 of file crypto_legacy.h.

◆ mpiReadRaw

#define mpiReadRaw (   r,
)    mpiImport(r, data, length, MPI_FORMAT_BIG_ENDIAN)

Definition at line 35 of file crypto_legacy.h.

◆ mpiWriteRaw

#define mpiWriteRaw (   a,
)    mpiExport(a, data, length, MPI_FORMAT_BIG_ENDIAN)

Definition at line 36 of file crypto_legacy.h.