• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/generic/files/crypto/ocf/kirkwood/cesa/

Lines Matching defs:pSession

567 *       MV_CESA_OPEN_SESSION *pSession - pointer to new session input parameters
580 MV_STATUS mvCesaSessionOpen(MV_CESA_OPEN_SESSION *pSession, short* pSid)
603 if (pSession->operation >= MV_CESA_MAX_OPERATION)
606 pSession->operation);
609 config |= (pSession->operation << MV_CESA_OPERATION_OFFSET);
611 if( (pSession->direction != MV_CESA_DIR_ENCODE) &&
612 (pSession->direction != MV_CESA_DIR_DECODE) )
615 pSession->direction);
618 config |= (pSession->direction << MV_CESA_DIRECTION_BIT);
623 if(pSession->operation != MV_CESA_CRYPTO_ONLY)
626 if( (pSession->macMode == MV_CESA_MAC_HMAC_MD5) ||
627 (pSession->macMode == MV_CESA_MAC_HMAC_SHA1) )
629 if(pSession->macKeyLength > MV_CESA_MAX_MAC_KEY_LENGTH)
632 pSession->macKeyLength);
635 mvCesaHmacIvGet(pSession->macMode, pSession->macKey, pSession->macKeyLength,
638 pCesaSAD[sid].macKeyLength = pSession->macKeyLength;
640 switch(pSession->macMode)
654 pSession->macMode);
657 config |= (pSession->macMode << MV_CESA_MAC_MODE_OFFSET);
661 if( (pSession->digestSize != digestSize) && (pSession->digestSize != 12))
664 pSession->digestSize);
668 pCesaSAD[sid].digestSize = pSession->digestSize;
678 if(pSession->operation != MV_CESA_MAC_ONLY)
680 switch(pSession->cryptoAlgorithm)
696 switch(pSession->cryptoKeyLength)
722 pSession->cryptoAlgorithm);
725 config |= (pSession->cryptoAlgorithm << MV_CESA_CRYPTO_ALG_OFFSET);
727 if(pSession->cryptoKeyLength != pCesaSAD[sid].cryptoKeyLength)
730 pSession->cryptoKeyLength, pCesaSAD[sid].cryptoKeyLength);
735 if( (pSession->cryptoAlgorithm == MV_CESA_CRYPTO_AES) &&
736 (pSession->direction == MV_CESA_DIR_DECODE))
740 aesMakeKey(pCesaSAD[sid].pSramSA->cryptoKey, pSession->cryptoKey,
741 pSession->cryptoKeyLength*8, MV_CESA_AES_BLOCK_SIZE*8);
746 memcpy(pCesaSAD[sid].pSramSA->cryptoKey, pSession->cryptoKey,
751 switch(pSession->cryptoMode)
763 if(pSession->cryptoAlgorithm != MV_CESA_CRYPTO_AES)
771 pSession->cryptoMode = MV_CESA_CRYPTO_ECB;
776 pSession->cryptoMode);
780 config |= (pSession->cryptoMode << MV_CESA_CRYPTO_MODE_BIT);