Home
last modified time | relevance | path

Searched refs:PUTU32 (Results 1 – 18 of 18) sorted by relevance

/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_cbc_hmac_sha256_hw.c279 PUTU32(blocks[i].c + 60, len); in tls1_multi_block_encrypt()
286 PUTU32(blocks[i].c + 124, len); in tls1_multi_block_encrypt()
318 PUTU32(blocks[i].c + 0, mctx->A[i]); in tls1_multi_block_encrypt()
320 PUTU32(blocks[i].c + 4, mctx->B[i]); in tls1_multi_block_encrypt()
322 PUTU32(blocks[i].c + 8, mctx->C[i]); in tls1_multi_block_encrypt()
324 PUTU32(blocks[i].c + 12, mctx->D[i]); in tls1_multi_block_encrypt()
326 PUTU32(blocks[i].c + 16, mctx->E[i]); in tls1_multi_block_encrypt()
328 PUTU32(blocks[i].c + 20, mctx->F[i]); in tls1_multi_block_encrypt()
330 PUTU32(blocks[i].c + 24, mctx->G[i]); in tls1_multi_block_encrypt()
332 PUTU32(blocks[i].c + 28, mctx->H[i]); in tls1_multi_block_encrypt()
[all …]
H A Dcipher_aes_cbc_hmac_sha1_hw.c271 PUTU32(blocks[i].c + 60, len); in tls1_multi_block_encrypt()
278 PUTU32(blocks[i].c + 124, len); in tls1_multi_block_encrypt()
304 PUTU32(blocks[i].c + 0, mctx->A[i]); in tls1_multi_block_encrypt()
306 PUTU32(blocks[i].c + 4, mctx->B[i]); in tls1_multi_block_encrypt()
308 PUTU32(blocks[i].c + 8, mctx->C[i]); in tls1_multi_block_encrypt()
310 PUTU32(blocks[i].c + 12, mctx->D[i]); in tls1_multi_block_encrypt()
312 PUTU32(blocks[i].c + 16, mctx->E[i]); in tls1_multi_block_encrypt()
315 PUTU32(blocks[i].c + 60, (64 + 20) * 8); in tls1_multi_block_encrypt()
334 PUTU32(out + 0, mctx->A[i]); in tls1_multi_block_encrypt()
335 PUTU32(out + 4, mctx->B[i]); in tls1_multi_block_encrypt()
[all …]
/freebsd/contrib/wpa/src/crypto/
H A Daes-internal-enc.c88 PUTU32(ct , s0); in rijndaelEncrypt()
90 PUTU32(ct + 4, s1); in rijndaelEncrypt()
92 PUTU32(ct + 8, s2); in rijndaelEncrypt()
94 PUTU32(ct + 12, s3); in rijndaelEncrypt()
H A Daes-internal-dec.c141 PUTU32(pt , s0); in rijndaelDecrypt()
143 PUTU32(pt + 4, s1); in rijndaelDecrypt()
145 PUTU32(pt + 8, s2); in rijndaelDecrypt()
147 PUTU32(pt + 12, s3); in rijndaelDecrypt()
H A Daes_i.h111 #define PUTU32(ct, st) { *((u32 *)(ct)) = SWAP((st)); } macro
115 #define PUTU32(ct, st) { \ macro
/freebsd/crypto/openssl/crypto/evp/
H A De_aes_cbc_hmac_sha256.c304 PUTU32(blocks[i].c + 60, len); in tls1_1_multi_block_encrypt()
311 PUTU32(blocks[i].c + 124, len); in tls1_1_multi_block_encrypt()
343 PUTU32(blocks[i].c + 0, ctx->A[i]); in tls1_1_multi_block_encrypt()
345 PUTU32(blocks[i].c + 4, ctx->B[i]); in tls1_1_multi_block_encrypt()
347 PUTU32(blocks[i].c + 8, ctx->C[i]); in tls1_1_multi_block_encrypt()
349 PUTU32(blocks[i].c + 12, ctx->D[i]); in tls1_1_multi_block_encrypt()
351 PUTU32(blocks[i].c + 16, ctx->E[i]); in tls1_1_multi_block_encrypt()
353 PUTU32(blocks[i].c + 20, ctx->F[i]); in tls1_1_multi_block_encrypt()
355 PUTU32(blocks[i].c + 24, ctx->G[i]); in tls1_1_multi_block_encrypt()
357 PUTU32(blocks[i].c + 28, ctx->H[i]); in tls1_1_multi_block_encrypt()
[all …]
H A De_aes_cbc_hmac_sha1.c306 PUTU32(blocks[i].c + 60, len); in tls1_1_multi_block_encrypt()
313 PUTU32(blocks[i].c + 124, len); in tls1_1_multi_block_encrypt()
339 PUTU32(blocks[i].c + 0, ctx->A[i]); in tls1_1_multi_block_encrypt()
341 PUTU32(blocks[i].c + 4, ctx->B[i]); in tls1_1_multi_block_encrypt()
343 PUTU32(blocks[i].c + 8, ctx->C[i]); in tls1_1_multi_block_encrypt()
345 PUTU32(blocks[i].c + 12, ctx->D[i]); in tls1_1_multi_block_encrypt()
347 PUTU32(blocks[i].c + 16, ctx->E[i]); in tls1_1_multi_block_encrypt()
350 PUTU32(blocks[i].c + 60, (64 + 20) * 8); in tls1_1_multi_block_encrypt()
369 PUTU32(out + 0, ctx->A[i]); in tls1_1_multi_block_encrypt()
370 PUTU32(out + 4, ctx->B[i]); in tls1_1_multi_block_encrypt()
[all …]
/freebsd/crypto/openssl/crypto/camellia/
H A Dcamellia.c57 #define PUTU32(p, v) ((p)[0] = (u8)((v) >> 24), (p)[1] = (u8)((v) >> 16), (p)[2] = (u8)((v) >> 8), … macro
445 PUTU32(ciphertext, s2); in Camellia_EncryptBlock_Rounds()
446 PUTU32(ciphertext + 4, s3); in Camellia_EncryptBlock_Rounds()
447 PUTU32(ciphertext + 8, s0); in Camellia_EncryptBlock_Rounds()
448 PUTU32(ciphertext + 12, s1); in Camellia_EncryptBlock_Rounds()
498 PUTU32(plaintext, s2); in Camellia_DecryptBlock_Rounds()
499 PUTU32(plaintext + 4, s3); in Camellia_DecryptBlock_Rounds()
500 PUTU32(plaintext + 8, s0); in Camellia_DecryptBlock_Rounds()
501 PUTU32(plaintext + 12, s1); in Camellia_DecryptBlock_Rounds()
/freebsd/crypto/openssl/crypto/modes/
H A Dgcm128.c26 #undef PUTU32
27 #define PUTU32(p, v) *(u32 *)(p) = BSWAP4(v) macro
221 PUTU32(p, v); in gcm_gmult_4bit()
223 PUTU32(p + 4, v); in gcm_gmult_4bit()
225 PUTU32(p + 8, v); in gcm_gmult_4bit()
227 PUTU32(p + 12, v); in gcm_gmult_4bit()
304 PUTU32(p, v); in gcm_ghash_4bit()
306 PUTU32(p + 4, v); in gcm_ghash_4bit()
308 PUTU32(p + 8, v); in gcm_ghash_4bit()
310 PUTU32(p + 12, v); in gcm_ghash_4bit()
[all …]
H A Dctr128.c189 PUTU32(ivec + 12, ctr32); in CRYPTO_ctr128_encrypt_ctr32()
202 PUTU32(ivec + 12, ctr32); in CRYPTO_ctr128_encrypt_ctr32()
/freebsd/crypto/openssl/crypto/aes/
H A Daes_local.h21 #define PUTU32(ct, st) \ macro
27 #define PUTU32(ct, st) \ macro
H A Daes_core.c3292 PUTU32(out, s0); in AES_encrypt()
3294 PUTU32(out + 4, s1); in AES_encrypt()
3296 PUTU32(out + 8, s2); in AES_encrypt()
3298 PUTU32(out + 12, s3); in AES_encrypt()
3424 PUTU32(out, s0); in AES_decrypt()
3426 PUTU32(out + 4, s1); in AES_decrypt()
3428 PUTU32(out + 8, s2); in AES_decrypt()
3430 PUTU32(out + 12, s3); in AES_decrypt()
/freebsd/sys/crypto/rijndael/
H A Drijndael-alg-fst.c726 #define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st… macro
1018 PUTU32(ct , s0); in rijndaelEncrypt()
1025 PUTU32(ct + 4, s1); in rijndaelEncrypt()
1032 PUTU32(ct + 8, s2); in rijndaelEncrypt()
1039 PUTU32(ct + 12, s3); in rijndaelEncrypt()
1199 PUTU32(pt , s0); in rijndaelDecrypt()
1206 PUTU32(pt + 4, s1); in rijndaelDecrypt()
1213 PUTU32(pt + 8, s2); in rijndaelDecrypt()
1220 PUTU32(pt + 12, s3); in rijndaelDecrypt()
/freebsd/crypto/openssh/
H A Drijndael.c622 #define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st… macro
921 PUTU32(ct , s0); in rijndaelEncrypt()
928 PUTU32(ct + 4, s1); in rijndaelEncrypt()
935 PUTU32(ct + 8, s2); in rijndaelEncrypt()
942 PUTU32(ct + 12, s3); in rijndaelEncrypt()
1106 PUTU32(pt , s0);
1113 PUTU32(pt + 4, s1);
1120 PUTU32(pt + 8, s2);
1127 PUTU32(pt + 12, s3);
/freebsd/crypto/openssl/include/crypto/
H A Dmodes.h96 #define PUTU32(p, v) *(u32 *)(p) = BSWAP4(v) macro
99 #define PUTU32(p, v) ((p)[0] = (u8)((v) >> 24), (p)[1] = (u8)((v) >> 16), (p)[2] = (u8)((v) >> 8), … macro
/freebsd/crypto/krb5/src/lib/crypto/builtin/camellia/
H A Dcamellia.c66 # define PUTU32(ct, st) {*((u32 *)(ct)) = SWAP((st));} macro
76 # define PUTU32(ct, st) { \ macro
1443 PUTU32(ciphertext, tmp[0]); in Camellia_EncryptBlock()
1444 PUTU32(ciphertext + 4, tmp[1]); in Camellia_EncryptBlock()
1445 PUTU32(ciphertext + 8, tmp[2]); in Camellia_EncryptBlock()
1446 PUTU32(ciphertext + 12, tmp[3]); in Camellia_EncryptBlock()
1474 PUTU32(plaintext, tmp[0]); in Camellia_DecryptBlock()
1475 PUTU32(plaintext + 4, tmp[1]); in Camellia_DecryptBlock()
1476 PUTU32(plaintext + 8, tmp[2]); in Camellia_DecryptBlock()
1477 PUTU32(plaintext + 12, tmp[3]); in Camellia_DecryptBlock()
/freebsd/sys/crypto/camellia/
H A Dcamellia.c69 #define PUTU32(ct, st) {(ct)[0] = (uint8_t)((st) >> 24); \ macro
1293 PUTU32(ciphertext, tmp[0]); in Camellia_EncryptBlock()
1294 PUTU32(ciphertext+4, tmp[1]); in Camellia_EncryptBlock()
1295 PUTU32(ciphertext+8, tmp[2]); in Camellia_EncryptBlock()
1296 PUTU32(ciphertext+12, tmp[3]); in Camellia_EncryptBlock()
1325 PUTU32(plaintext, tmp[0]); in Camellia_DecryptBlock()
1326 PUTU32(plaintext+4, tmp[1]); in Camellia_DecryptBlock()
1327 PUTU32(plaintext+8, tmp[2]); in Camellia_DecryptBlock()
1328 PUTU32(plaintext+12, tmp[3]); in Camellia_DecryptBlock()
/freebsd/crypto/openssl/providers/implementations/rands/
H A Ddrbg_ctr.c452 PUTU32(ctr->V + 12, ctr32); in drbg_ctr_generate()