Home
last modified time | relevance | path

Searched refs:algo (Results 1 – 16 of 16) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/components/css_pkc/src/comps/mcuxClHash/src/
DmcuxClHash_Algorithms.c66 const mcuxClHash_Algo_t *algo, in MCUX_CSSL_FP_FUNCTION_DEF()
106 if(MCUXCLHASH_STATUS_OK != selectHashMode(algo->hashSize, &hash_options)) in MCUX_CSSL_FP_FUNCTION_DEF()
114 size_t const sizeOfFullBlocks = (inSize / algo->blockSize) * algo->blockSize; in MCUX_CSSL_FP_FUNCTION_DEF()
117 MCUX_CSSL_FP_FUNCTION_CALL(result, algo->engine( in MCUX_CSSL_FP_FUNCTION_DEF()
134 size_t buflen = algo->blockSize; in MCUX_CSSL_FP_FUNCTION_DEF()
150 …if ( (algo->blockSize - algo->counterSize) < posdst ) // need room for 64 bit counter and one addi… in MCUX_CSSL_FP_FUNCTION_DEF()
161 buflen = algo->blockSize; in MCUX_CSSL_FP_FUNCTION_DEF()
164 MCUX_CSSL_FP_FUNCTION_CALL(result, algo->engine( in MCUX_CSSL_FP_FUNCTION_DEF()
166 shablock, algo->blockSize, in MCUX_CSSL_FP_FUNCTION_DEF()
184 posdst = algo->blockSize; in MCUX_CSSL_FP_FUNCTION_DEF()
[all …]
DmcuxClHash.c24 const mcuxClHash_Algo_t *algo, in MCUX_CSSL_FP_FUNCTION_DEF()
31 MCUX_CSSL_FP_FUNCTION_ENTRY(mcuxClHash_compute, algo->protection_token_skeleton); in MCUX_CSSL_FP_FUNCTION_DEF()
37 MCUX_CSSL_FP_FUNCTION_CALL(result, algo->skeleton ( in MCUX_CSSL_FP_FUNCTION_DEF()
39 algo, in MCUX_CSSL_FP_FUNCTION_DEF()
57 const mcuxClHash_Algo_t * algo in MCUX_CSSL_FP_FUNCTION_DEF()
66 context->algo = algo; in MCUX_CSSL_FP_FUNCTION_DEF()
79 …MCUX_CSSL_FP_FUNCTION_ENTRY(mcuxClHash_update, context->algo->protection_token_streaming_skeleton); in MCUX_CSSL_FP_FUNCTION_DEF()
82 MCUX_CSSL_FP_FUNCTION_CALL(result, context->algo->streamingSkeleton ( in MCUX_CSSL_FP_FUNCTION_DEF()
84 context->algo, in MCUX_CSSL_FP_FUNCTION_DEF()
105 …MCUX_CSSL_FP_FUNCTION_ENTRY(mcuxClHash_finish, context->algo->protection_token_streaming_skeleton); in MCUX_CSSL_FP_FUNCTION_DEF()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/dcp/
Dfsl_dcp.c47 dcp_hash_algo_t algo; /*!< selected algorithm from the set of supported algorithms */ member
898 static status_t dcp_hash_check_input_alg(dcp_hash_algo_t algo) in dcp_hash_check_input_alg() argument
900 if ((algo != kDCP_Sha256) && (algo != kDCP_Sha1) && (algo != kDCP_Crc32)) in dcp_hash_check_input_alg()
918 static status_t dcp_hash_check_input_args(DCP_Type *base, dcp_hash_ctx_t *ctx, dcp_hash_algo_t algo) in dcp_hash_check_input_args() argument
921 if (kStatus_Success != dcp_hash_check_input_alg(algo)) in dcp_hash_check_input_args()
945 …sage) || (NULL == ctxInternal) || (kStatus_Success != dcp_hash_check_input_alg(ctxInternal->algo))) in dcp_hash_check_context()
967 …if ((kDCP_Sha256 == ctxInternal->algo) || (kDCP_Sha1 == ctxInternal->algo) || (kDCP_Crc32 == ctxIn… in dcp_hash_engine_init()
981 if (ctxInternal->algo == kDCP_Sha256) in dcp_hash_update_non_blocking()
985 else if (ctxInternal->algo == kDCP_Sha1) in dcp_hash_update_non_blocking()
989 else if (ctxInternal->algo == kDCP_Crc32) in dcp_hash_update_non_blocking()
[all …]
Dfsl_dcp.h521 …s_t DCP_HASH_Init(DCP_Type *base, dcp_handle_t *handle, dcp_hash_ctx_t *ctx, dcp_hash_algo_t algo);
570 dcp_hash_algo_t algo,
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/sha/
Dfsl_sha.c48 sha_algo_t algo; /*!< selected algorithm from the set of supported algorithms */ member
136 static status_t sha_check_input_alg(sha_algo_t algo) in sha_check_input_alg() argument
138 if ((algo != kSHA_Sha1) && (algo != kSHA_Sha256)) in sha_check_input_alg()
195 static status_t sha_check_input_args(SHA_Type *base, sha_ctx_t *ctx, sha_algo_t algo) in sha_check_input_args() argument
198 if (kStatus_Success != sha_check_input_alg(algo)) in sha_check_input_args()
222 …= message) || (NULL == ctxInternal) || (kStatus_Success != sha_check_input_alg(ctxInternal->algo))) in sha_check_context()
241 if (kSHA_Sha1 == ctxInternal->algo) in sha_engine_init()
499 status_t SHA_Init(SHA_Type *base, sha_ctx_t *ctx, sha_algo_t algo) in SHA_Init() argument
508 status = sha_check_input_args(base, ctx, algo); in SHA_Init()
516 ctxInternal->algo = algo; in SHA_Init()
[all …]
Dfsl_sha.h105 status_t SHA_Init(SHA_Type *base, sha_ctx_t *ctx, sha_algo_t algo);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/hashcrypt/
Dfsl_hashcrypt.c49 hashcrypt_algo_t algo; /*!< selected algorithm from the set of supported algorithms */ member
367 static void hashcrypt_engine_init(HASHCRYPT_Type *base, hashcrypt_algo_t algo) in hashcrypt_engine_init() argument
371 base->CTRL = HASHCRYPT_CTRL_MODE(algo) | HASHCRYPT_CTRL_NEW_HASH(1); in hashcrypt_engine_init()
596 static status_t hashcrypt_sha_check_input_alg(HASHCRYPT_Type *base, hashcrypt_algo_t algo) in hashcrypt_sha_check_input_alg() argument
598 if ((algo == kHASHCRYPT_Sha1) || (algo == kHASHCRYPT_Sha256)) in hashcrypt_sha_check_input_alg()
616 …hcrypt_sha_check_input_args(HASHCRYPT_Type *base, hashcrypt_hash_ctx_t *ctx, hashcrypt_algo_t algo) in hashcrypt_sha_check_input_args() argument
619 if (kStatus_Success != hashcrypt_sha_check_input_alg(base, algo)) in hashcrypt_sha_check_input_args()
642 …ULL == ctxInternal) || (kStatus_Success != hashcrypt_sha_check_input_alg(base, ctxInternal->algo))) in hashcrypt_sha_check_context()
852 size_t len = (ctxInternal->algo == kHASHCRYPT_Sha1) ? SHA1_LEN : SHA256_LEN; in hashcrypt_save_running_hash()
880 size_t len = (ctxInternal->algo == kHASHCRYPT_Sha1) ? SHA1_LEN : SHA256_LEN; in hashcrypt_restore_running_hash()
[all …]
Dfsl_hashcrypt.h434 hashcrypt_algo_t algo,
450 status_t HASHCRYPT_SHA_Init(HASHCRYPT_Type *base, hashcrypt_hash_ctx_t *ctx, hashcrypt_algo_t algo);
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ltc/
Dfsl_ltc.c2994 …ltc_hash_algo_t algo; /*!< selected algorithm from the set of supported algorithms in ltc_drv_hash… member
3002 static status_t ltc_hash_check_input_alg(ltc_hash_algo_t algo) in ltc_hash_check_input_alg() argument
3004 if ((algo != kLTC_XcbcMac) && (algo != kLTC_Cmac) in ltc_hash_check_input_alg()
3006 && (algo != kLTC_Sha1) && (algo != kLTC_Sha224) && (algo != kLTC_Sha256) in ltc_hash_check_input_alg()
3015 static inline bool ltc_hash_alg_is_cmac(ltc_hash_algo_t algo) in ltc_hash_alg_is_cmac() argument
3017 return ((algo == kLTC_XcbcMac) || (algo == kLTC_Cmac)); in ltc_hash_alg_is_cmac()
3021 static inline bool ltc_hash_alg_is_sha(ltc_hash_algo_t algo) in ltc_hash_alg_is_sha() argument
3023 return ((algo == kLTC_Sha1) || (algo == kLTC_Sha224) || (algo == kLTC_Sha256)); in ltc_hash_alg_is_sha()
3028 LTC_Type *base, ltc_hash_ctx_t *ctx, ltc_hash_algo_t algo, const uint8_t *key, uint32_t keySize) in ltc_hash_check_input_args() argument
3031 if (kStatus_Success != ltc_hash_check_input_alg(algo)) in ltc_hash_check_input_args()
[all …]
Dfsl_ltc.h1090 status_t LTC_HASH_Init(LTC_Type *base, ltc_hash_ctx_t *ctx, ltc_hash_algo_t algo, const uint8_t *ke…
1133 ltc_hash_algo_t algo,
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/caam/
Dfsl_caam.c146 …caam_hash_algo_t algo; /*!< selected algorithm from the set of supported algorithms in caam_hash_a… member
196 …caam_crc_algo_t algo; /*!< selected algorithm from the set of supported algorithms in caam_h… member
2455 static status_t caam_hash_check_input_alg(caam_hash_algo_t algo) in caam_hash_check_input_alg() argument
2457 …if ((algo != kCAAM_XcbcMac) && (algo != kCAAM_Cmac) && (algo != kCAAM_Sha1) && (algo != kCAAM_Sha2… in caam_hash_check_input_alg()
2458 (algo != kCAAM_Sha256) && (algo != kCAAM_Sha384) && (algo != kCAAM_Sha512)) in caam_hash_check_input_alg()
2465 static inline bool caam_hash_alg_is_cmac(caam_hash_algo_t algo) in caam_hash_alg_is_cmac() argument
2467 return ((algo == kCAAM_XcbcMac) || (algo == kCAAM_Cmac)); in caam_hash_alg_is_cmac()
2470 static inline bool caam_hash_alg_is_sha(caam_hash_algo_t algo) in caam_hash_alg_is_sha() argument
2472 …return ((algo == kCAAM_Sha1) || (algo == kCAAM_Sha224) || (algo == kCAAM_Sha256) || (algo == kCAAM… in caam_hash_alg_is_sha()
2473 (algo == kCAAM_Sha512)); in caam_hash_alg_is_sha()
[all …]
Dfsl_caam.h1124 caam_hash_algo_t algo,
1183 caam_hash_algo_t algo,
1273 caam_hash_algo_t algo,
1314 caam_crc_algo_t algo,
1372 caam_crc_algo_t algo,
1408 caam_crc_algo_t algo,
/hal_nxp-3.5.0/mcux/mcux-sdk/components/css_pkc/src/comps/mcuxClHash/inc/
DmcuxClHash_Functions.h60 const mcuxClHash_Algo_t *algo,
93 const mcuxClHash_Algo_t * algo
DmcuxClHash_Types.h149 const mcuxClHash_Algo_t * algo; member
174 const mcuxClHash_Algo_t *algo,
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/cau3/
Dfsl_cau3.c107 cau3_hash_algo_t algo; /*!< selected algorithm from the set of supported algorithms */ member
1624 static status_t cau3_hash_check_input_alg(cau3_hash_algo_t algo) in cau3_hash_check_input_alg() argument
1626 if ((algo != kCAU3_Sha256) && (algo != kCAU3_Sha1)) in cau3_hash_check_input_alg()
1644 …c status_t cau3_hash_check_input_args(CAU3_Type *base, cau3_hash_ctx_t *ctx, cau3_hash_algo_t algo) in cau3_hash_check_input_args() argument
1647 if (kStatus_Success != cau3_hash_check_input_alg(algo)) in cau3_hash_check_input_args()
1671 …age) || (NULL == ctxInternal) || (kStatus_Success != cau3_hash_check_input_alg(ctxInternal->algo))) in cau3_hash_check_context()
1864 if (kCAU3_Sha256 == ctxInternal->algo) in cau3_hash_engine_init()
1869 if (kCAU3_Sha1 == ctxInternal->algo) in cau3_hash_engine_init()
1908 switch (ctxInternal->algo) in cau3_hash_process_message_data()
1972 switch (ctxInternal->algo) in cau3_hash_finalize()
[all …]
Dfsl_cau3.h479 status_t CAU3_HASH_Init(CAU3_Type *base, cau3_hash_ctx_t *ctx, cau3_hash_algo_t algo);
525 cau3_hash_algo_t algo,