forked from OP-TEE/optee_os
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: crypto: generic resources for crypto device driver - RSA
TEE Crypto generic APIs to HW driver interface Signed-off-by: Cedric Neveux <[email protected]> Acked-by: Jens Wiklander <[email protected]>
- Loading branch information
1 parent
8d02ec6
commit f5a70e3
Showing
16 changed files
with
1,971 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* SPDX-License-Identifier: BSD-2-Clause */ | ||
/* | ||
* Copyright 2018-2020 NXP | ||
* | ||
* Definition of the functions shared locally. | ||
*/ | ||
#ifndef __LOCAL_H__ | ||
#define __LOCAL_H__ | ||
|
||
#include <drvcrypt_acipher.h> | ||
|
||
/* | ||
* Mask Generation function. Use a Hash operation | ||
* to generate an output @mask from a input @seed | ||
* | ||
* @mgf_data [in/out] MGF data | ||
*/ | ||
TEE_Result drvcrypt_rsa_mgf1(struct drvcrypt_rsa_mgf *mgf_data); | ||
|
||
/* | ||
* PKCS#1 - Signature of RSA message and encodes the signature. | ||
* | ||
* @ssa_data [in/out] RSA data to sign / Signature | ||
*/ | ||
TEE_Result drvcrypt_rsassa_sign(struct drvcrypt_rsa_ssa *ssa_data); | ||
|
||
/* | ||
* PKCS#1 - Verification the encoded signature of RSA message. | ||
* | ||
* @ssa_data RSA Encoded signature data | ||
*/ | ||
TEE_Result drvcrypt_rsassa_verify(struct drvcrypt_rsa_ssa *ssa_data); | ||
|
||
#endif /* __LOCAL_H__ */ |
Oops, something went wrong.