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

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804