/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_cbc_hmac_sha256_hw.c | 279 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 D | cipher_aes_cbc_hmac_sha1_hw.c | 271 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/crypto/openssl/crypto/modes/ |
H A D | gcm128.c | 26 # undef PUTU32 27 # define PUTU32(p,v) *(u32 *)(p) = BSWAP4(v) macro 203 PUTU32(p, v); in gcm_gmult_8bit() 205 PUTU32(p + 4, v); in gcm_gmult_8bit() 207 PUTU32(p + 8, v); in gcm_gmult_8bit() 209 PUTU32(p + 12, v); in gcm_gmult_8bit() 353 PUTU32(p, v); in gcm_gmult_4bit() 355 PUTU32(p + 4, v); in gcm_gmult_4bit() 357 PUTU32(p + 8, v); in gcm_gmult_4bit() 359 PUTU32(p + 12, v); in gcm_gmult_4bit() [all …]
|
H A D | ctr128.c | 189 PUTU32(ivec + 12, ctr32); in CRYPTO_ctr128_encrypt_ctr32() 202 PUTU32(ivec + 12, ctr32); in CRYPTO_ctr128_encrypt_ctr32()
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_aes_cbc_hmac_sha256.c | 307 PUTU32(blocks[i].c + 60, len); in tls1_1_multi_block_encrypt() 314 PUTU32(blocks[i].c + 124, len); in tls1_1_multi_block_encrypt() 346 PUTU32(blocks[i].c + 0, ctx->A[i]); in tls1_1_multi_block_encrypt() 348 PUTU32(blocks[i].c + 4, ctx->B[i]); in tls1_1_multi_block_encrypt() 350 PUTU32(blocks[i].c + 8, ctx->C[i]); in tls1_1_multi_block_encrypt() 352 PUTU32(blocks[i].c + 12, ctx->D[i]); in tls1_1_multi_block_encrypt() 354 PUTU32(blocks[i].c + 16, ctx->E[i]); in tls1_1_multi_block_encrypt() 356 PUTU32(blocks[i].c + 20, ctx->F[i]); in tls1_1_multi_block_encrypt() 358 PUTU32(blocks[i].c + 24, ctx->G[i]); in tls1_1_multi_block_encrypt() 360 PUTU32(blocks[i].c + 28, ctx->H[i]); in tls1_1_multi_block_encrypt() [all …]
|
H A D | e_aes_cbc_hmac_sha1.c | 308 PUTU32(blocks[i].c + 60, len); in tls1_1_multi_block_encrypt() 315 PUTU32(blocks[i].c + 124, len); in tls1_1_multi_block_encrypt() 341 PUTU32(blocks[i].c + 0, ctx->A[i]); in tls1_1_multi_block_encrypt() 343 PUTU32(blocks[i].c + 4, ctx->B[i]); in tls1_1_multi_block_encrypt() 345 PUTU32(blocks[i].c + 8, ctx->C[i]); in tls1_1_multi_block_encrypt() 347 PUTU32(blocks[i].c + 12, ctx->D[i]); in tls1_1_multi_block_encrypt() 349 PUTU32(blocks[i].c + 16, ctx->E[i]); in tls1_1_multi_block_encrypt() 352 PUTU32(blocks[i].c + 60, (64 + 20) * 8); in tls1_1_multi_block_encrypt() 371 PUTU32(out + 0, ctx->A[i]); in tls1_1_multi_block_encrypt() 372 PUTU32(out + 4, ctx->B[i]); in tls1_1_multi_block_encrypt() [all …]
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | aes-internal-enc.c | 88 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 D | aes-internal-dec.c | 141 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 D | aes_i.h | 111 #define PUTU32(ct, st) { *((u32 *)(ct)) = SWAP((st)); } macro 115 #define PUTU32(ct, st) { \ macro
|
/freebsd/crypto/openssl/crypto/camellia/ |
H A D | camellia.c | 57 #define PUTU32(p,v) ((p)[0] = (u8)((v) >> 24), (p)[1] = (u8)((v) >> 16), (p)[2] = (u8)((v) >> 8), … macro 443 PUTU32(ciphertext, s2); in Camellia_EncryptBlock_Rounds() 444 PUTU32(ciphertext + 4, s3); in Camellia_EncryptBlock_Rounds() 445 PUTU32(ciphertext + 8, s0); in Camellia_EncryptBlock_Rounds() 446 PUTU32(ciphertext + 12, s1); in Camellia_EncryptBlock_Rounds() 496 PUTU32(plaintext, s2); in Camellia_DecryptBlock_Rounds() 497 PUTU32(plaintext + 4, s3); in Camellia_DecryptBlock_Rounds() 498 PUTU32(plaintext + 8, s0); in Camellia_DecryptBlock_Rounds() 499 PUTU32(plaintext + 12, s1); in Camellia_DecryptBlock_Rounds()
|
/freebsd/crypto/openssl/crypto/aes/ |
H A D | aes_local.h | 21 # define PUTU32(ct, st) { *((u32 *)(ct)) = SWAP((st)); } macro 24 # define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((… macro
|
H A D | aes_core.c | 1596 PUTU32(out , s0); in AES_encrypt() 1603 PUTU32(out + 4, s1); in AES_encrypt() 1610 PUTU32(out + 8, s2); in AES_encrypt() 1617 PUTU32(out + 12, s3); in AES_encrypt() 1788 PUTU32(out , s0); in AES_decrypt() 1795 PUTU32(out + 4, s1); in AES_decrypt() 1802 PUTU32(out + 8, s2); in AES_decrypt() 1809 PUTU32(out + 12, s3); in AES_decrypt()
|
/freebsd/crypto/openssh/ |
H A D | rijndael.c | 622 #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/sys/crypto/rijndael/ |
H A D | rijndael-alg-fst.c | 726 #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/openssl/include/crypto/ |
H A D | modes.h | 94 # define PUTU32(p,v) *(u32 *)(p) = BSWAP4(v) macro 97 # define PUTU32(p,v) ((p)[0]=(u8)((v)>>24),(p)[1]=(u8)((v)>>16),(p)[2]=(u8)((v)>>8),(p)[3]=(u8)… macro
|
/freebsd/sys/crypto/camellia/ |
H A D | camellia.c | 69 #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 D | drbg_ctr.c | 436 PUTU32(ctr->V + 12, ctr32); in drbg_ctr_generate()
|