/optee_os/core/crypto/ |
A D | sm3.c | 26 #define PUT_UINT32_BE(n, b, i) \ macro 207 PUT_UINT32_BE(high, msglen, 0); in sm3_final() 208 PUT_UINT32_BE(low, msglen, 4); in sm3_final() 216 PUT_UINT32_BE(ctx->state[0], output, 0); in sm3_final() 217 PUT_UINT32_BE(ctx->state[1], output, 4); in sm3_final() 218 PUT_UINT32_BE(ctx->state[2], output, 8); in sm3_final() 219 PUT_UINT32_BE(ctx->state[3], output, 12); in sm3_final() 220 PUT_UINT32_BE(ctx->state[4], output, 16); in sm3_final() 221 PUT_UINT32_BE(ctx->state[5], output, 20); in sm3_final() 222 PUT_UINT32_BE(ctx->state[6], output, 24); in sm3_final() [all …]
|
A D | sm4.c | 27 #define PUT_UINT32_BE(n, b, i) \ macro 108 PUT_UINT32_BE(ka, a, 0); in sm4Lt() 130 PUT_UINT32_BE(ka, a, 0); in sm4CalciRK() 180 PUT_UINT32_BE(ulbuf[35], output, 0); in sm4_one_round() 181 PUT_UINT32_BE(ulbuf[34], output, 4); in sm4_one_round() 182 PUT_UINT32_BE(ulbuf[33], output, 8); in sm4_one_round() 183 PUT_UINT32_BE(ulbuf[32], output, 12); in sm4_one_round()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | gcm.c | 74 #ifndef PUT_UINT32_BE 75 #define PUT_UINT32_BE(n,b,i) \ macro 226 PUT_UINT32_BE( ctx->HH[8] >> 32, h, 0 ); in gcm_mult() 227 PUT_UINT32_BE( ctx->HH[8], h, 4 ); in gcm_mult() 228 PUT_UINT32_BE( ctx->HL[8] >> 32, h, 8 ); in gcm_mult() 229 PUT_UINT32_BE( ctx->HL[8], h, 12 ); in gcm_mult() 265 PUT_UINT32_BE( zh >> 32, output, 0 ); in gcm_mult() 266 PUT_UINT32_BE( zh, output, 4 ); in gcm_mult() 267 PUT_UINT32_BE( zl >> 32, output, 8 ); in gcm_mult() 268 PUT_UINT32_BE( zl, output, 12 ); in gcm_mult() [all …]
|
A D | sha256.c | 66 #ifndef PUT_UINT32_BE 398 PUT_UINT32_BE( high, ctx->buffer, 56 ); in mbedtls_sha256_finish_ret() 399 PUT_UINT32_BE( low, ctx->buffer, 60 ); in mbedtls_sha256_finish_ret() 407 PUT_UINT32_BE( ctx->state[0], output, 0 ); in mbedtls_sha256_finish_ret() 408 PUT_UINT32_BE( ctx->state[1], output, 4 ); in mbedtls_sha256_finish_ret() 409 PUT_UINT32_BE( ctx->state[2], output, 8 ); in mbedtls_sha256_finish_ret() 410 PUT_UINT32_BE( ctx->state[3], output, 12 ); in mbedtls_sha256_finish_ret() 411 PUT_UINT32_BE( ctx->state[4], output, 16 ); in mbedtls_sha256_finish_ret() 412 PUT_UINT32_BE( ctx->state[5], output, 20 ); in mbedtls_sha256_finish_ret() 413 PUT_UINT32_BE( ctx->state[6], output, 24 ); in mbedtls_sha256_finish_ret() [all …]
|
A D | xtea.c | 53 #ifndef PUT_UINT32_BE 54 #define PUT_UINT32_BE(n,b,i) \ macro 127 PUT_UINT32_BE( v0, output, 0 ); in mbedtls_xtea_crypt_ecb() 128 PUT_UINT32_BE( v1, output, 4 ); in mbedtls_xtea_crypt_ecb()
|
A D | sha1.c | 64 #ifndef PUT_UINT32_BE 65 #define PUT_UINT32_BE(n,b,i) \ macro 411 PUT_UINT32_BE( high, ctx->buffer, 56 ); in mbedtls_sha1_finish_ret() 412 PUT_UINT32_BE( low, ctx->buffer, 60 ); in mbedtls_sha1_finish_ret() 420 PUT_UINT32_BE( ctx->state[0], output, 0 ); in mbedtls_sha1_finish_ret() 421 PUT_UINT32_BE( ctx->state[1], output, 4 ); in mbedtls_sha1_finish_ret() 422 PUT_UINT32_BE( ctx->state[2], output, 8 ); in mbedtls_sha1_finish_ret() 423 PUT_UINT32_BE( ctx->state[3], output, 12 ); in mbedtls_sha1_finish_ret() 424 PUT_UINT32_BE( ctx->state[4], output, 16 ); in mbedtls_sha1_finish_ret()
|
A D | des.c | 59 #ifndef PUT_UINT32_BE 60 #define PUT_UINT32_BE(n,b,i) \ macro 649 PUT_UINT32_BE( Y, output, 0 ); in mbedtls_des_crypt_ecb() 650 PUT_UINT32_BE( X, output, 4 ); in mbedtls_des_crypt_ecb() 748 PUT_UINT32_BE( Y, output, 0 ); in mbedtls_des3_crypt_ecb() 749 PUT_UINT32_BE( X, output, 4 ); in mbedtls_des3_crypt_ecb()
|
A D | blowfish.c | 56 #ifndef PUT_UINT32_BE 57 #define PUT_UINT32_BE(n,b,i) \ macro 257 PUT_UINT32_BE( X0, output, 0 ); in mbedtls_blowfish_crypt_ecb() 258 PUT_UINT32_BE( X1, output, 4 ); in mbedtls_blowfish_crypt_ecb()
|
A D | camellia.c | 65 #ifndef PUT_UINT32_BE 66 #define PUT_UINT32_BE(n,b,i) \ macro 555 PUT_UINT32_BE( X[2], output, 0 ); in mbedtls_camellia_crypt_ecb() 556 PUT_UINT32_BE( X[3], output, 4 ); in mbedtls_camellia_crypt_ecb() 557 PUT_UINT32_BE( X[0], output, 8 ); in mbedtls_camellia_crypt_ecb() 558 PUT_UINT32_BE( X[1], output, 12 ); in mbedtls_camellia_crypt_ecb()
|
A D | nist_kw.c | 90 #ifndef PUT_UINT32_BE 91 #define PUT_UINT32_BE(n,b,i) \ macro 246 PUT_UINT32_BE( ( in_len & 0xffffffff ), output, in mbedtls_nist_kw_wrap()
|