Developer Reference

Contents

User's Implementation of a Mask Generation Function

In case you prefer or have to use a different implementation of an MGF you can still use IPPCP. To do this, use the definition of MGF introduced in the IPPCP library and described in this section. The declaration provided below also defines an MGF when it is used as a parameter in some Public Key Cryptography operations.

Syntax

typedef IppStatus(_STDCALL *IppMGF)(const Ipp8u*
pSeed
, int
seedLen
, Ipp8u*
pMask
, int
maskLen
);

Parameters

pSeed
Pointer to the input octet string.
seedLen
Length of the input string.
pMask
Pointer to the output pseodorandom mask.
maskLen
Desired length of the output.

Description

This declaration is included in the
ippcp.h
file. The function generates an octet string of length
maskLen
according to the implemented algorithm, providing pseudorandom output.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.