mbed TLS v2.2.0
Macros
rsa.h File Reference

Detailed Description

The RSA public-key cryptosystem.

Copyright (C) 2006-2015, ARM Limited, All Rights Reserved SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

This file is part of mbed TLS (https://tls.mbed.org)

Definition in file rsa.h.

#include <config-sl-crypto-all-acceleration.h>
#include "bignum.h"
#include "md.h"
Include dependency graph for rsa.h:

Go to the source code of this file.

Macros

#define MBEDTLS_ERR_RSA_BAD_INPUT_DATA   -0x4080
 Bad input parameters to function. More...
 
#define MBEDTLS_ERR_RSA_INVALID_PADDING   -0x4100
 Input data contains invalid padding and is rejected. More...
 
#define MBEDTLS_ERR_RSA_KEY_GEN_FAILED   -0x4180
 Something failed during generation of a key. More...
 
#define MBEDTLS_ERR_RSA_KEY_CHECK_FAILED   -0x4200
 Key failed to pass the library's validity check. More...
 
#define MBEDTLS_ERR_RSA_PUBLIC_FAILED   -0x4280
 The public key operation failed. More...
 
#define MBEDTLS_ERR_RSA_PRIVATE_FAILED   -0x4300
 The private key operation failed. More...
 
#define MBEDTLS_ERR_RSA_VERIFY_FAILED   -0x4380
 The PKCS#1 verification failed. More...
 
#define MBEDTLS_ERR_RSA_OUTPUT_TOO_LARGE   -0x4400
 The output buffer for decryption is not large enough. More...
 
#define MBEDTLS_ERR_RSA_RNG_FAILED   -0x4480
 The random generator failed to generate non-zeros. More...
 
#define MBEDTLS_RSA_PUBLIC   0
 
#define MBEDTLS_RSA_PRIVATE   1
 
#define MBEDTLS_RSA_PKCS_V15   0
 
#define MBEDTLS_RSA_PKCS_V21   1
 
#define MBEDTLS_RSA_SIGN   1
 
#define MBEDTLS_RSA_CRYPT   2
 
#define MBEDTLS_RSA_SALT_LEN_ANY   -1
 

Macro Definition Documentation

#define MBEDTLS_ERR_RSA_BAD_INPUT_DATA   -0x4080

Bad input parameters to function.

Definition at line 42 of file rsa.h.

#define MBEDTLS_ERR_RSA_INVALID_PADDING   -0x4100

Input data contains invalid padding and is rejected.

Definition at line 43 of file rsa.h.

#define MBEDTLS_ERR_RSA_KEY_CHECK_FAILED   -0x4200

Key failed to pass the library's validity check.

Definition at line 45 of file rsa.h.

#define MBEDTLS_ERR_RSA_KEY_GEN_FAILED   -0x4180

Something failed during generation of a key.

Definition at line 44 of file rsa.h.

#define MBEDTLS_ERR_RSA_OUTPUT_TOO_LARGE   -0x4400

The output buffer for decryption is not large enough.

Definition at line 49 of file rsa.h.

#define MBEDTLS_ERR_RSA_PRIVATE_FAILED   -0x4300

The private key operation failed.

Definition at line 47 of file rsa.h.

#define MBEDTLS_ERR_RSA_PUBLIC_FAILED   -0x4280

The public key operation failed.

Definition at line 46 of file rsa.h.

#define MBEDTLS_ERR_RSA_RNG_FAILED   -0x4480

The random generator failed to generate non-zeros.

Definition at line 50 of file rsa.h.

#define MBEDTLS_ERR_RSA_VERIFY_FAILED   -0x4380

The PKCS#1 verification failed.

Definition at line 48 of file rsa.h.

#define MBEDTLS_RSA_CRYPT   2

Definition at line 62 of file rsa.h.

#define MBEDTLS_RSA_PKCS_V15   0

Definition at line 58 of file rsa.h.

#define MBEDTLS_RSA_PKCS_V21   1

Definition at line 59 of file rsa.h.

#define MBEDTLS_RSA_PRIVATE   1

Definition at line 56 of file rsa.h.

#define MBEDTLS_RSA_PUBLIC   0

Definition at line 55 of file rsa.h.

#define MBEDTLS_RSA_SALT_LEN_ANY   -1

Definition at line 64 of file rsa.h.

#define MBEDTLS_RSA_SIGN   1

Definition at line 61 of file rsa.h.