blob: 4ff87efc5bc74bb9ed0bbee0fb5cd19ae8dbeded [file] [log] [blame]
Ruchika Gupta34276472015-01-23 16:01:55 +05301/*
2 * Copyright 2014 Freescale Semiconductor, Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __RSA_CAAM_H
8#define __RSA_CAAM_H
9
10#include <common.h>
11
12/**
13 * struct pk_in_params - holder for input to PKHA block in CAAM
14 * These parameters are required to perform Modular Exponentiation
15 * using PKHA Block in CAAM
16 */
17struct pk_in_params {
18 const uint8_t *e; /* public exponent as byte array */
19 uint32_t e_siz; /* size of e[] in number of bytes */
20 const uint8_t *n; /* modulus as byte array */
21 uint32_t n_siz; /* size of n[] in number of bytes */
22 const uint8_t *a; /* Signature as byte array */
23 uint32_t a_siz; /* size of a[] in number of bytes */
24 uint8_t *b; /* Result exp. modulus in number of bytes */
25 uint32_t b_siz; /* size of b[] in number of bytes */
26};
27
28#endif