Intel® Integrated Performance Primitives

Example of Using TDES Functions

TDES Encryption and Decryption 

// Use of the ECB mode
void TDES_sample(void){
      // size of the TDES algorithm block is equal to 8
      const int tdesBlkSize = 8;
      
      // get size of the context needed for the encryption/decryption operation
      int ctxSize;
      ippsDESGetSize(&ctxSize);
      // and allocate one
      IppsDESSpec* pCtx1 = (IppsDESSpec*)( new Ipp8u [ctxSize] );

MGF

Generates a pseudorandom mask of the specified length using a selected hash algorithm.

Subscribe to Intel® Integrated Performance Primitives