Lines Matching defs:in
4 * Redistribution and use in source and binary forms, with or without
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in
19 * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
27 * nor may "OpenSSL" appear in their names without prior written
33 * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
97 void (*stream) (const unsigned char *in,
125 void vpaes_encrypt(const unsigned char *in, unsigned char *out,
127 void vpaes_decrypt(const unsigned char *in, unsigned char *out,
130 void vpaes_cbc_encrypt(const unsigned char *in,
136 void bsaes_cbc_encrypt(const unsigned char *in, unsigned char *out,
139 void bsaes_ctr32_encrypt_blocks(const unsigned char *in, unsigned char *out,
150 void AES_ctr32_encrypt(const unsigned char *in, unsigned char *out,
202 void aesni_encrypt(const unsigned char *in, unsigned char *out,
204 void aesni_decrypt(const unsigned char *in, unsigned char *out,
207 void aesni_ecb_encrypt(const unsigned char *in,
210 void aesni_cbc_encrypt(const unsigned char *in,
215 void aesni_ctr32_encrypt_blocks(const unsigned char *in,
220 void aesni_xts_encrypt(const unsigned char *in,
226 void aesni_xts_decrypt(const unsigned char *in,
232 void aesni_ccm64_encrypt_blocks(const unsigned char *in,
239 void aesni_ccm64_decrypt_blocks(const unsigned char *in,
247 size_t aesni_gcm_encrypt(const unsigned char *in,
252 size_t aesni_gcm_decrypt(const unsigned char *in,
257 void gcm_ghash_avx(u64 Xi[2], const u128 Htable[16], const u8 *in,
299 const unsigned char *in, size_t len)
301 aesni_cbc_encrypt(in, out, len, ctx->cipher_data, ctx->iv, ctx->encrypt);
307 const unsigned char *in, size_t len)
314 aesni_ecb_encrypt(in, out, len, ctx->cipher_data, ctx->encrypt);
321 const unsigned char *in, size_t len);
325 const unsigned char *in, size_t len);
329 const unsigned char *in, size_t len);
333 const unsigned char *in, size_t len);
337 const unsigned char *in, size_t len);
373 const unsigned char *in, size_t len);
411 const unsigned char *in, size_t len);
436 const unsigned char *in, size_t len);
491 void aes_t4_encrypt(const unsigned char *in, unsigned char *out,
493 void aes_t4_decrypt(const unsigned char *in, unsigned char *out,
500 * of instructions in inner loops [much needed on T4]. But then having
502 * either in inner loops or on subroutines' entries. Former is hardly
506 void aes128_t4_cbc_encrypt(const unsigned char *in, unsigned char *out,
509 void aes128_t4_cbc_decrypt(const unsigned char *in, unsigned char *out,
512 void aes192_t4_cbc_encrypt(const unsigned char *in, unsigned char *out,
515 void aes192_t4_cbc_decrypt(const unsigned char *in, unsigned char *out,
518 void aes256_t4_cbc_encrypt(const unsigned char *in, unsigned char *out,
521 void aes256_t4_cbc_decrypt(const unsigned char *in, unsigned char *out,
524 void aes128_t4_ctr32_encrypt(const unsigned char *in, unsigned char *out,
527 void aes192_t4_ctr32_encrypt(const unsigned char *in, unsigned char *out,
530 void aes256_t4_ctr32_encrypt(const unsigned char *in, unsigned char *out,
533 void aes128_t4_xts_encrypt(const unsigned char *in, unsigned char *out,
536 void aes128_t4_xts_decrypt(const unsigned char *in, unsigned char *out,
539 void aes256_t4_xts_encrypt(const unsigned char *in, unsigned char *out,
542 void aes256_t4_xts_decrypt(const unsigned char *in, unsigned char *out,
619 const unsigned char *in, size_t len);
623 const unsigned char *in, size_t len);
627 const unsigned char *in, size_t len);
631 const unsigned char *in, size_t len);
635 const unsigned char *in, size_t len);
639 const unsigned char *in, size_t len);
643 const unsigned char *in, size_t len);
693 const unsigned char *in, size_t len);
761 const unsigned char *in, size_t len);
805 const unsigned char *in, size_t len);
899 void HWAES_encrypt(const unsigned char *in, unsigned char *out,
901 void HWAES_decrypt(const unsigned char *in, unsigned char *out,
903 void HWAES_cbc_encrypt(const unsigned char *in, unsigned char *out,
906 void HWAES_ctr32_encrypt_blocks(const unsigned char *in, unsigned char *out,
1014 const unsigned char *in, size_t len)
1023 (*dat->stream.cbc) (in, out, len, &dat->ks, ctx->iv, ctx->encrypt);
1025 CRYPTO_cbc128_encrypt(in, out, len, &dat->ks, ctx->iv, dat->block);
1027 CRYPTO_cbc128_decrypt(in, out, len, &dat->ks, ctx->iv, dat->block);
1033 const unsigned char *in, size_t len)
1043 (*dat->block) (in + i, out + i, &dat->ks);
1049 const unsigned char *in, size_t len)
1053 CRYPTO_ofb128_encrypt(in, out, len, &dat->ks,
1059 const unsigned char *in, size_t len)
1063 CRYPTO_cfb128_encrypt(in, out, len, &dat->ks,
1069 const unsigned char *in, size_t len)
1073 CRYPTO_cfb128_8_encrypt(in, out, len, &dat->ks,
1079 const unsigned char *in, size_t len)
1084 CRYPTO_cfb128_1_encrypt(in, out, len, &dat->ks,
1090 CRYPTO_cfb128_1_encrypt(in, out, MAXBITCHUNK * 8, &dat->ks,
1095 CRYPTO_cfb128_1_encrypt(in, out, len * 8, &dat->ks,
1102 const unsigned char *in, size_t len)
1108 CRYPTO_ctr128_encrypt_ctr32(in, out, len, &dat->ks,
1111 CRYPTO_ctr128_encrypt(in, out, len, &dat->ks,
1215 * Invocation field will be at least 8 bytes in size and so no need
1356 const unsigned char *in, size_t len)
1360 /* Encrypt/decrypt must be performed in place */
1361 if (out != in
1376 in += EVP_GCM_TLS_EXPLICIT_IV_LEN;
1388 bulk = AES_gcm_encrypt(in, out, len,
1395 in + bulk,
1406 bulk = AES_gcm_encrypt(in, out, len,
1413 in + bulk, out + bulk, len - bulk))
1429 bulk = AES_gcm_decrypt(in, out, len,
1436 in + bulk,
1447 bulk = AES_gcm_decrypt(in, out, len,
1454 in + bulk, out + bulk, len - bulk))
1460 if (memcmp(ctx->buf, in + len, EVP_GCM_TLS_TAG_LEN)) {
1474 const unsigned char *in, size_t len)
1482 return aes_gcm_tls_cipher(ctx, out, in, len);
1486 if (in) {
1488 if (CRYPTO_gcm128_aad(&gctx->gcm, in, len))
1497 if (CRYPTO_gcm128_encrypt(&gctx->gcm, in, out, res))
1500 bulk = AES_gcm_encrypt(in + res,
1509 in + bulk,
1519 if (CRYPTO_gcm128_encrypt(&gctx->gcm, in, out, res))
1522 bulk = AES_gcm_encrypt(in + res,
1531 in + bulk, out + bulk, len - bulk))
1541 if (CRYPTO_gcm128_decrypt(&gctx->gcm, in, out, res))
1544 bulk = AES_gcm_decrypt(in + res,
1553 in + bulk,
1563 if (CRYPTO_gcm128_decrypt(&gctx->gcm, in, out, res))
1566 bulk = AES_gcm_decrypt(in + res,
1575 in + bulk, out + bulk, len - bulk))
1724 const unsigned char *in, size_t len)
1729 if (!out || !in || len < AES_BLOCK_SIZE)
1732 (*xctx->stream) (in, out, len,
1734 else if (CRYPTO_xts128_encrypt(&xctx->xts, ctx->iv, in, out, len,
1855 const unsigned char *in, size_t len)
1865 if (!in) {
1874 CRYPTO_ccm128_aad(ccm, in, len);
1878 if (!in)
1887 if (cctx->str ? CRYPTO_ccm128_encrypt_ccm64(ccm, in, out, len,
1889 CRYPTO_ccm128_encrypt(ccm, in, out, len))
1895 if (cctx->str ? !CRYPTO_ccm128_decrypt_ccm64(ccm, in, out, len,
1897 !CRYPTO_ccm128_decrypt(ccm, in, out, len)) {