46 const int outDataMaxLen,
53 assert(
isWritePtr( outData, outDataMaxLen ) );
58 REQUIRES( inLen > 0 && inLen <= outDataMaxLen && \
66 if( keySize > outDataMaxLen )
74 if( length < MIN_PKCSIZE - 8 || length > keySize )
78 if( length == keySize )
80 memcpy( outData, inData, keySize );
88 memset( outData, 0, keySize );
89 memcpy( outData + ( keySize - length ), inData, length );
103 assert( ( pkcAlgo == NULL ) || \
105 assert(
isWritePtr( pkcKeySize,
sizeof(
int ) ) );
110 if( pkcAlgo != NULL )
115 if( pkcAlgo != NULL )
142 assert( ( hashSize == NULL ) || \
149 if( hashSize != NULL )
153 if( hashSize != NULL )