| /NetX-Duo-v6.2.1/crypto_libraries/src/ |
| D | nx_crypto_method_self_test_sha.c | 240 UINT input_length; in _nx_crypto_method_self_test_sha() local 256 input_length = sizeof(plain_1); in _nx_crypto_method_self_test_sha() 262 input_length = sizeof(plain_224); in _nx_crypto_method_self_test_sha() 268 input_length = sizeof(plain_256); in _nx_crypto_method_self_test_sha() 274 input_length = sizeof(plain_384); in _nx_crypto_method_self_test_sha() 280 input_length = sizeof(plain_512); in _nx_crypto_method_self_test_sha() 286 input_length = sizeof(plain_512_224); in _nx_crypto_method_self_test_sha() 292 input_length = sizeof(plain_512_256); in _nx_crypto_method_self_test_sha() 329 input_length, in _nx_crypto_method_self_test_sha()
|
| D | nx_crypto_method_self_test_hmac_sha.c | 255 UINT input_length; in _nx_crypto_method_self_test_hmac_sha() local 273 input_length = sizeof(plain_1_96); in _nx_crypto_method_self_test_hmac_sha() 281 input_length = sizeof(plain_1_160); in _nx_crypto_method_self_test_hmac_sha() 289 input_length = sizeof(plain_224); in _nx_crypto_method_self_test_hmac_sha() 297 input_length = sizeof(plain_256); in _nx_crypto_method_self_test_hmac_sha() 305 input_length = sizeof(plain_384); in _nx_crypto_method_self_test_hmac_sha() 313 input_length = sizeof(plain_512); in _nx_crypto_method_self_test_hmac_sha() 321 input_length = sizeof(plain_512_224); in _nx_crypto_method_self_test_hmac_sha() 329 input_length = sizeof(plain_512_256); in _nx_crypto_method_self_test_hmac_sha() 367 input_length, in _nx_crypto_method_self_test_hmac_sha() [all …]
|
| D | nx_crypto_sha1.c | 188 …PTO_KEEP UINT _nx_crypto_sha1_update(NX_CRYPTO_SHA1 *context, UCHAR *input_ptr, UINT input_length) in _nx_crypto_sha1_update() argument 202 if (input_length == 0) in _nx_crypto_sha1_update() 215 context -> nx_sha1_bit_count[0] += (input_length << 3); in _nx_crypto_sha1_update() 218 if (context -> nx_sha1_bit_count[0] < (input_length << 3)) in _nx_crypto_sha1_update() 226 context -> nx_sha1_bit_count[1] += (input_length >> 29); in _nx_crypto_sha1_update() 229 if ((current_bytes) && (input_length >= needed_fill_bytes)) in _nx_crypto_sha1_update() 242 input_length = input_length - needed_fill_bytes; in _nx_crypto_sha1_update() 250 while (input_length >= 64) in _nx_crypto_sha1_update() 257 input_length = input_length - 64; in _nx_crypto_sha1_update() 262 if (input_length) in _nx_crypto_sha1_update() [all …]
|
| D | nx_crypto_sha5.c | 236 …_KEEP UINT _nx_crypto_sha512_update(NX_CRYPTO_SHA512 *context, UCHAR *input_ptr, UINT input_length) in _nx_crypto_sha512_update() argument 248 if (input_length == 0) in _nx_crypto_sha512_update() 261 context -> nx_sha512_bit_count[0] += (input_length << 3); in _nx_crypto_sha512_update() 264 if (context -> nx_sha512_bit_count[0] < (input_length << 3)) in _nx_crypto_sha512_update() 272 context -> nx_sha512_bit_count[1] += (input_length >> 29); in _nx_crypto_sha512_update() 275 if ((current_bytes) && (input_length >= needed_fill_bytes)) in _nx_crypto_sha512_update() 287 input_length = (UINT)(input_length - needed_fill_bytes); in _nx_crypto_sha512_update() 295 while (input_length >= NX_CRYPTO_SHA512_BLOCK_SIZE_IN_BYTES) in _nx_crypto_sha512_update() 302 input_length = input_length - NX_CRYPTO_SHA512_BLOCK_SIZE_IN_BYTES; in _nx_crypto_sha512_update() 307 if (input_length) in _nx_crypto_sha512_update() [all …]
|
| D | nx_crypto_md5.c | 208 …RYPTO_KEEP UINT _nx_crypto_md5_update(NX_CRYPTO_MD5 *context, UCHAR *input_ptr, UINT input_length) in _nx_crypto_md5_update() argument 222 if (input_length == 0) in _nx_crypto_md5_update() 235 context -> nx_md5_bit_count[0] += (input_length << 3); in _nx_crypto_md5_update() 238 if (context -> nx_md5_bit_count[0] < (input_length << 3)) in _nx_crypto_md5_update() 245 context -> nx_md5_bit_count[1] += (input_length >> 29); in _nx_crypto_md5_update() 248 if ((current_bytes) && (input_length >= needed_fill_bytes)) in _nx_crypto_md5_update() 260 input_length = input_length - needed_fill_bytes; in _nx_crypto_md5_update() 268 while (input_length >= 64) in _nx_crypto_md5_update() 275 input_length = input_length - 64; in _nx_crypto_md5_update() 280 if (input_length) in _nx_crypto_md5_update() [all …]
|
| D | nx_crypto_method_self_test_pkcs1.c | 162 UINT input_length; in _nx_crypto_method_self_test_pkcs1() local 186 input_length = sizeof(msg); in _nx_crypto_method_self_test_pkcs1() 238 input_length, in _nx_crypto_method_self_test_pkcs1() 262 input_length, in _nx_crypto_method_self_test_pkcs1()
|
| D | nx_crypto_sha2.c | 188 …_KEEP UINT _nx_crypto_sha256_update(NX_CRYPTO_SHA256 *context, UCHAR *input_ptr, UINT input_length) in _nx_crypto_sha256_update() argument 200 if (input_length == 0) in _nx_crypto_sha256_update() 213 context -> nx_sha256_bit_count[0] += (input_length << 3); in _nx_crypto_sha256_update() 216 if (context -> nx_sha256_bit_count[0] < (input_length << 3)) in _nx_crypto_sha256_update() 224 context -> nx_sha256_bit_count[1] += (input_length >> 29); in _nx_crypto_sha256_update() 227 if ((current_bytes) && (input_length >= needed_fill_bytes)) in _nx_crypto_sha256_update() 239 input_length = input_length - needed_fill_bytes; in _nx_crypto_sha256_update() 247 while (input_length >= 64) in _nx_crypto_sha256_update() 254 input_length = input_length - 64; in _nx_crypto_sha256_update() 259 if (input_length) in _nx_crypto_sha256_update() [all …]
|
| D | nx_crypto_hmac.c | 75 UCHAR *input_ptr, UINT input_length, in _nx_crypto_hmac() argument 82 _nx_crypto_hmac_update(hmac_metadata, input_ptr, input_length); in _nx_crypto_hmac() 242 …EEP UINT _nx_crypto_hmac_update(NX_CRYPTO_HMAC *hmac_metadata, UCHAR *input_ptr, UINT input_length) in _nx_crypto_hmac_update() argument 246 hmac_metadata -> crypto_update(hmac_metadata -> context, input_ptr, input_length); in _nx_crypto_hmac_update() 514 UINT _nx_crypto_hmac_hash_update(VOID *context, UCHAR *input, UINT input_length) in _nx_crypto_hmac_hash_update() argument 535 input_length, in _nx_crypto_hmac_hash_update()
|
| D | nx_crypto_gcm.c | 293 NX_CRYPTO_KEEP static VOID _nx_crypto_gcm_ghash_update(UCHAR *hkey, UCHAR *input, UINT input_length… in _nx_crypto_gcm_ghash_update() argument 298 n = input_length >> NX_CRYPTO_GCM_BLOCK_SIZE_SHIFT; in _nx_crypto_gcm_ghash_update() 308 input_length -= n << NX_CRYPTO_GCM_BLOCK_SIZE_SHIFT; in _nx_crypto_gcm_ghash_update() 309 if (input_length > 0) in _nx_crypto_gcm_ghash_update() 314 NX_CRYPTO_MEMCPY(tmp_block, input, input_length); /* Use case of memcpy is verified. */ in _nx_crypto_gcm_ghash_update() 315 NX_CRYPTO_MEMSET(&tmp_block[input_length], 0, sizeof(tmp_block) - input_length); in _nx_crypto_gcm_ghash_update()
|
| D | nx_crypto_pkcs1_v1.5.c | 74 NX_CRYPTO_KEEP UINT _nx_crypto_pkcs1_v1_5_sign(UCHAR *input, UINT input_length, in _nx_crypto_pkcs1_v1_5_sign() argument 135 …status = _nx_crypto_pkcs1_v1_5_encode(input, input_length, ctx -> hash_method, ctx -> hash_metadat… in _nx_crypto_pkcs1_v1_5_sign() 350 NX_CRYPTO_KEEP UINT _nx_crypto_pkcs1_v1_5_encode(UCHAR *input, UINT input_length, in _nx_crypto_pkcs1_v1_5_encode() argument 443 input_length, in _nx_crypto_pkcs1_v1_5_encode()
|
| D | nx_crypto_rsa.c | 94 const UCHAR *input, UINT input_length, UCHAR *output, in _nx_crypto_rsa_operation() argument 123 _nx_crypto_huge_number_setup(&input_hn, input, input_length); in _nx_crypto_rsa_operation()
|
| /NetX-Duo-v6.2.1/addons/websocket/ |
| D | nx_sha1.c | 183 UINT _nx_sha1_update(NX_SHA1 *context, UCHAR *input_ptr, UINT input_length) in _nx_sha1_update() argument 195 if (input_length == 0) in _nx_sha1_update() 206 context -> nx_sha1_bit_count[0] += (input_length << 3); in _nx_sha1_update() 209 if (context -> nx_sha1_bit_count[0] < (input_length << 3)) in _nx_sha1_update() 217 context -> nx_sha1_bit_count[1] += (input_length >> 29); in _nx_sha1_update() 220 if ((current_bytes) && (input_length >= needed_fill_bytes)) in _nx_sha1_update() 233 input_length = input_length - needed_fill_bytes; in _nx_sha1_update() 241 while (input_length >= 64) in _nx_sha1_update() 248 input_length = input_length - 64; in _nx_sha1_update() 253 if (input_length) in _nx_sha1_update() [all …]
|
| D | nx_sha1.h | 111 UINT _nx_sha1_update(NX_SHA1 *context, UCHAR *input_ptr, UINT input_length);
|
| /NetX-Duo-v6.2.1/addons/snmp/ |
| D | nx_sha1.c | 183 UINT _nx_sha1_update(NX_SHA1 *context, UCHAR *input_ptr, UINT input_length) in _nx_sha1_update() argument 195 if (input_length == 0) in _nx_sha1_update() 206 context -> nx_sha1_bit_count[0] += (input_length << 3); in _nx_sha1_update() 209 if (context -> nx_sha1_bit_count[0] < (input_length << 3)) in _nx_sha1_update() 217 context -> nx_sha1_bit_count[1] += (input_length >> 29); in _nx_sha1_update() 220 if ((current_bytes) && (input_length >= needed_fill_bytes)) in _nx_sha1_update() 233 input_length = input_length - needed_fill_bytes; in _nx_sha1_update() 241 while (input_length >= 64) in _nx_sha1_update() 248 input_length = input_length - 64; in _nx_sha1_update() 253 if (input_length) in _nx_sha1_update() [all …]
|
| D | nx_sha1.h | 111 UINT _nx_sha1_update(NX_SHA1 *context, UCHAR *input_ptr, UINT input_length);
|
| /NetX-Duo-v6.2.1/nx_secure/src/ |
| D | nx_secure_crypto_method_self_test_sha.c | 181 UINT input_length; in _nx_secure_crypto_method_self_test_sha() local 197 input_length = sizeof(plain_1); in _nx_secure_crypto_method_self_test_sha() 203 input_length = sizeof(plain_256); in _nx_secure_crypto_method_self_test_sha() 209 input_length = sizeof(plain_384); in _nx_secure_crypto_method_self_test_sha() 215 input_length = sizeof(plain_512); in _nx_secure_crypto_method_self_test_sha() 252 input_length, in _nx_secure_crypto_method_self_test_sha()
|
| D | nx_secure_crypto_method_self_test_hmac_sha.c | 183 UINT input_length; in _nx_secure_crypto_method_self_test_hmac_sha() local 201 input_length = sizeof(plain_1_96); in _nx_secure_crypto_method_self_test_hmac_sha() 209 input_length = sizeof(plain_1_160); in _nx_secure_crypto_method_self_test_hmac_sha() 217 input_length = sizeof(plain_256); in _nx_secure_crypto_method_self_test_hmac_sha() 225 input_length = sizeof(plain_384); in _nx_secure_crypto_method_self_test_hmac_sha() 233 input_length = sizeof(plain_512); in _nx_secure_crypto_method_self_test_hmac_sha() 271 input_length, in _nx_secure_crypto_method_self_test_hmac_sha() 321 input_length, in _nx_secure_crypto_method_self_test_hmac_sha()
|
| /NetX-Duo-v6.2.1/common/src/ |
| D | nx_md5.c | 200 UINT _nx_md5_update(NX_MD5 *context, UCHAR *input_ptr, UINT input_length) in _nx_md5_update() argument 212 if (input_length == 0) in _nx_md5_update() 223 context -> nx_md5_bit_count[0] += (input_length << 3); in _nx_md5_update() 226 if (context -> nx_md5_bit_count[0] < (input_length << 3)) in _nx_md5_update() 234 context -> nx_md5_bit_count[1] += (input_length >> 29); in _nx_md5_update() 237 if ((current_bytes) && (input_length >= needed_fill_bytes)) in _nx_md5_update() 250 input_length = input_length - needed_fill_bytes; in _nx_md5_update() 258 while (input_length >= 64) in _nx_md5_update() 265 input_length = input_length - 64; in _nx_md5_update() 270 if (input_length) in _nx_md5_update() [all …]
|
| /NetX-Duo-v6.2.1/crypto_libraries/inc/ |
| D | nx_crypto_hmac.h | 84 UCHAR *input_ptr, UINT input_length, 90 UINT _nx_crypto_hmac_update(NX_CRYPTO_HMAC *crypto_matadata, UCHAR *input_ptr, UINT input_length); 102 UINT _nx_crypto_hmac_hash_update(VOID *context, UCHAR *input, UINT input_length);
|
| D | nx_crypto_pkcs1_v1.5.h | 86 UINT _nx_crypto_pkcs1_v1_5_sign(UCHAR *input, UINT input_length, 96 UINT _nx_crypto_pkcs1_v1_5_encode(UCHAR *input, UINT input_length,
|
| D | nx_crypto_ecjpake.h | 118 UCHAR *input, UINT input_length, 133 UCHAR *input, UINT input_length,
|
| D | nx_crypto_md5.h | 118 UINT _nx_crypto_md5_update(NX_CRYPTO_MD5 *context, UCHAR *input_ptr, UINT input_length);
|
| D | nx_crypto_sha2.h | 93 UINT _nx_crypto_sha256_update(NX_CRYPTO_SHA256 *context, UCHAR *input_ptr, UINT input_length);
|
| /NetX-Duo-v6.2.1/common/inc/ |
| D | nx_md5.h | 109 UINT _nx_md5_update(NX_MD5 *context, UCHAR *input_ptr, UINT input_length);
|
| /NetX-Duo-v6.2.1/test/regression/nx_secure_test/hash_clone/ |
| D | nx_crypto_clone_cleanup_test.c | 34 …one_cleanup_test_update(NX_CRYPTO_CLONE_CLEANUP_TEST *context, UCHAR *input_ptr, UINT input_length) in _nx_crypto_clone_cleanup_test_update() argument 45 if (input_length == 0) in _nx_crypto_clone_cleanup_test_update() 54 …pto_sha256_update((NX_CRYPTO_SHA256 *)context -> nx_crypto_hash_metadata, input_ptr, input_length); in _nx_crypto_clone_cleanup_test_update()
|