Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

Returns
None
Description
Closes an opened client, resets the data structure and removes the client from the driver.
Preconditions
None.
Parameters
Parameters Description
handle The handle of the opened client instance returned by
DRV_RSA_Open().
Function
void DRV_RSA_Close (DRV_HANDLE handle)
1.7.6.17 DRV_RSA_Configure Function
Configures the client instance
File
rsa.h
Syntax
int DRV_RSA_Configure(DRV_HANDLE h, uint8_t * xBuffer, uint8_t * yBuffer, uint16_t xLen,
uint16_t yLen, DRV_RSA_RandomGet randFunc, DRV_RSA_PAD_TYPE padType);
Module
RSA
Returns
0 if successful; 1 if not successful
Description
Configures the client instance data structure with information needed by the encrypt/decrypt routines
Remarks
In the dsPIC implementation the xBuffer should be twice as large as the key length, located in x-memory, and be 64-byte
aligned. The yBuffer should be three times as large as the key length, located in y-memory, and be 2-byte aligned. In the
other implementations, xBuffer and yBuffer should both be 4-byte aligned and should both be twice the size of the key length.
DRV_RSA_PAD_DEFAULT is currently the only supported type of padding
Preconditions
Driver must be opened by a client.
Parameters
Parameters Description
handle The handle of the opened client instance.
xBuffer A pointer to a working buffer needed by the encrypt/decrypt
routines.
yBuffer A pointer to a working buffer needed by the encrypt/decrypt
routines
xLen The size (in bytes) of xBuffer
yLen The size (in bytes) of yBuffer
1.7 Library Interface MLA - Crypto Library Help RSA
112

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh