/third_party/node/test/parallel/ |
H A D | test-crypto-authenticated.js | 114 const encrypt = crypto.createCipheriv(test.algo, 120 encrypt.setAAD(Buffer.from(test.aad, 'hex'), aadOptions); 122 let hex = encrypt.update(test.plain, inputEncoding, 'hex'); 123 hex += encrypt.final('hex'); 125 const auth_tag = encrypt.getAuthTag(); 168 const encrypt = crypto.createCipher(test.algo, test.password, options); 170 encrypt.setAAD(Buffer.from(test.aad, 'hex'), aadOptions); 171 let hex = encrypt.update(test.plain, 'ascii', 'hex'); 172 hex += encrypt.final('hex'); 173 const auth_tag = encrypt [all...] |
H A D | test-crypto-padding.js | 63 const encrypt = crypto.createCipheriv(CIPHER_NAME, KEY_PLAIN, IV_PLAIN); 64 encrypt.setAutoPadding(pad); 65 let hex = encrypt.update(plain, 'ascii', 'hex'); 66 hex += encrypt.final('hex');
|
H A D | test-crypto-padding-aes256.js | 34 function encrypt(val, pad) { function 50 let encrypted = encrypt(plaintext, false); 58 encrypted = encrypt(plaintext, true);
|
H A D | test-tls-write-error.js | 48 client.encrypt(finished), 49 client.encrypt(ill),
|
/third_party/mbedtls/programs/psa/ |
H A D | crypto_examples.c | 173 uint8_t encrypt[block_size]; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() local 190 encrypt, sizeof(encrypt), &output_len); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 194 encrypt, output_len, part_size, in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 222 encrypt[input_size + block_size], decrypt[input_size + block_size]; in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() local 238 encrypt, sizeof(encrypt), &output_len); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() 242 encrypt, output_len, part_size, in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() 268 uint8_t iv[block_size], input[input_size], encrypt[input_size], in cipher_example_encrypt_decrypt_aes_ctr_multi() local 285 encrypt, sizeo in cipher_example_encrypt_decrypt_aes_ctr_multi() [all...] |
/third_party/node/deps/openssl/openssl/crypto/modes/ |
H A D | ocb128.c | 131 block128_f encrypt, block128_f decrypt, in CRYPTO_ocb128_new() 138 ret = CRYPTO_ocb128_init(octx, keyenc, keydec, encrypt, decrypt, in CRYPTO_ocb128_new() 152 block128_f encrypt, block128_f decrypt, in CRYPTO_ocb128_init() 168 ctx->encrypt = encrypt; in CRYPTO_ocb128_init() 175 ctx->encrypt(ctx->l_star.c, ctx->l_star.c, ctx->keyenc); in CRYPTO_ocb128_init() 244 ctx->encrypt(tmp, ktop, ctx->keyenc); in CRYPTO_ocb128_setiv() 294 ctx->encrypt(tmp.c, tmp.c, ctx->keyenc); in CRYPTO_ocb128_aad() 316 ctx->encrypt(tmp.c, tmp.c, ctx->keyenc); in CRYPTO_ocb128_aad() 379 ctx->encrypt(tm in CRYPTO_ocb128_encrypt() 130 CRYPTO_ocb128_new(void *keyenc, void *keydec, block128_f encrypt, block128_f decrypt, ocb128_f stream) CRYPTO_ocb128_new() argument 151 CRYPTO_ocb128_init(OCB128_CONTEXT *ctx, void *keyenc, void *keydec, block128_f encrypt, block128_f decrypt, ocb128_f stream) CRYPTO_ocb128_init() argument [all...] |
/third_party/openssl/crypto/modes/ |
H A D | ocb128.c | 131 block128_f encrypt, block128_f decrypt, in CRYPTO_ocb128_new() 138 ret = CRYPTO_ocb128_init(octx, keyenc, keydec, encrypt, decrypt, in CRYPTO_ocb128_new() 152 block128_f encrypt, block128_f decrypt, in CRYPTO_ocb128_init() 168 ctx->encrypt = encrypt; in CRYPTO_ocb128_init() 175 ctx->encrypt(ctx->l_star.c, ctx->l_star.c, ctx->keyenc); in CRYPTO_ocb128_init() 244 ctx->encrypt(tmp, ktop, ctx->keyenc); in CRYPTO_ocb128_setiv() 294 ctx->encrypt(tmp.c, tmp.c, ctx->keyenc); in CRYPTO_ocb128_aad() 316 ctx->encrypt(tmp.c, tmp.c, ctx->keyenc); in CRYPTO_ocb128_aad() 379 ctx->encrypt(tm in CRYPTO_ocb128_encrypt() 130 CRYPTO_ocb128_new(void *keyenc, void *keydec, block128_f encrypt, block128_f decrypt, ocb128_f stream) CRYPTO_ocb128_new() argument 151 CRYPTO_ocb128_init(OCB128_CONTEXT *ctx, void *keyenc, void *keydec, block128_f encrypt, block128_f decrypt, ocb128_f stream) CRYPTO_ocb128_init() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/evp/ |
H A D | e_chacha20_poly1305.c | 242 if (ctx->encrypt) in chacha20_poly1305_tls_cipher() 266 if (ctx->encrypt) { in chacha20_poly1305_tls_cipher() 300 if (ctx->encrypt) { in chacha20_poly1305_tls_cipher() 343 Poly1305_Final(POLY1305_ctx(actx), ctx->encrypt ? actx->tag in chacha20_poly1305_tls_cipher() 348 if (ctx->encrypt) { in chacha20_poly1305_tls_cipher() 411 if (ctx->encrypt) { /* plaintext */ in chacha20_poly1305_cipher() 466 Poly1305_Final(POLY1305_ctx(actx), ctx->encrypt ? actx->tag in chacha20_poly1305_cipher() 471 if (ctx->encrypt) { in chacha20_poly1305_cipher() 480 else if (!ctx->encrypt) { in chacha20_poly1305_cipher() 564 if (arg <= 0 || arg > POLY1305_BLOCK_SIZE || !ctx->encrypt) in chacha20_poly1305_ctrl() [all...] |
H A D | asymcipher.c | 188 if (ctx->pmeth == NULL || ctx->pmeth->encrypt == NULL) { in evp_pkey_asym_cipher_init() 246 ret = ctx->op.ciph.cipher->encrypt(ctx->op.ciph.algctx, out, outlen, in EVP_PKEY_encrypt() 251 if (ctx->pmeth == NULL || ctx->pmeth->encrypt == NULL) { in EVP_PKEY_encrypt() 256 return ctx->pmeth->encrypt(ctx, out, outlen, in, inlen); in EVP_PKEY_encrypt() 358 if (cipher->encrypt != NULL) in evp_asym_cipher_from_algorithm() 360 cipher->encrypt = OSSL_FUNC_asym_cipher_encrypt(fns); in evp_asym_cipher_from_algorithm() 425 * "cipher" functions: (encrypt_init, encrypt) or in evp_asym_cipher_from_algorithm()
|
/third_party/openssl/crypto/evp/ |
H A D | e_chacha20_poly1305.c | 242 if (ctx->encrypt) in chacha20_poly1305_tls_cipher() 266 if (ctx->encrypt) { in chacha20_poly1305_tls_cipher() 300 if (ctx->encrypt) { in chacha20_poly1305_tls_cipher() 343 Poly1305_Final(POLY1305_ctx(actx), ctx->encrypt ? actx->tag in chacha20_poly1305_tls_cipher() 348 if (ctx->encrypt) { in chacha20_poly1305_tls_cipher() 411 if (ctx->encrypt) { /* plaintext */ in chacha20_poly1305_cipher() 466 Poly1305_Final(POLY1305_ctx(actx), ctx->encrypt ? actx->tag in chacha20_poly1305_cipher() 471 if (ctx->encrypt) { in chacha20_poly1305_cipher() 480 else if (!ctx->encrypt) { in chacha20_poly1305_cipher() 564 if (arg <= 0 || arg > POLY1305_BLOCK_SIZE || !ctx->encrypt) in chacha20_poly1305_ctrl() [all...] |
H A D | asymcipher.c | 188 if (ctx->pmeth == NULL || ctx->pmeth->encrypt == NULL) { in evp_pkey_asym_cipher_init() 246 ret = ctx->op.ciph.cipher->encrypt(ctx->op.ciph.algctx, out, outlen, in EVP_PKEY_encrypt() 251 if (ctx->pmeth == NULL || ctx->pmeth->encrypt == NULL) { in EVP_PKEY_encrypt() 256 return ctx->pmeth->encrypt(ctx, out, outlen, in, inlen); in EVP_PKEY_encrypt() 358 if (cipher->encrypt != NULL) in evp_asym_cipher_from_algorithm() 360 cipher->encrypt = OSSL_FUNC_asym_cipher_encrypt(fns); in evp_asym_cipher_from_algorithm() 425 * "cipher" functions: (encrypt_init, encrypt) or in evp_asym_cipher_from_algorithm()
|
/third_party/node/deps/openssl/openssl/crypto/rc2/ |
H A D | rc2_ecb.c | 29 int encrypt) in RC2_ecb_encrypt() 37 if (encrypt) in RC2_ecb_encrypt() 28 RC2_ecb_encrypt(const unsigned char *in, unsigned char *out, RC2_KEY *ks, int encrypt) RC2_ecb_encrypt() argument
|
H A D | rc2cfb64.c | 27 int *num, int encrypt) in RC2_cfb64_encrypt() 36 if (encrypt) { in RC2_cfb64_encrypt() 25 RC2_cfb64_encrypt(const unsigned char *in, unsigned char *out, long length, RC2_KEY *schedule, unsigned char *ivec, int *num, int encrypt) RC2_cfb64_encrypt() argument
|
/third_party/node/deps/openssl/openssl/crypto/rc5/ |
H A D | rc5_ecb.c | 21 RC5_32_KEY *ks, int encrypt) in RC5_32_ecb_encrypt() 29 if (encrypt) in RC5_32_ecb_encrypt() 20 RC5_32_ecb_encrypt(const unsigned char *in, unsigned char *out, RC5_32_KEY *ks, int encrypt) RC5_32_ecb_encrypt() argument
|
H A D | rc5cfb64.c | 27 unsigned char *ivec, int *num, int encrypt) in RC5_32_cfb64_encrypt() 36 if (encrypt) { in RC5_32_cfb64_encrypt() 25 RC5_32_cfb64_encrypt(const unsigned char *in, unsigned char *out, long length, RC5_32_KEY *schedule, unsigned char *ivec, int *num, int encrypt) RC5_32_cfb64_encrypt() argument
|
/third_party/node/deps/openssl/openssl/crypto/bf/ |
H A D | bf_ecb.c | 32 const BF_KEY *key, int encrypt) in BF_ecb_encrypt() 40 if (encrypt) in BF_ecb_encrypt() 31 BF_ecb_encrypt(const unsigned char *in, unsigned char *out, const BF_KEY *key, int encrypt) BF_ecb_encrypt() argument
|
H A D | bf_cfb64.c | 27 unsigned char *ivec, int *num, int encrypt) in BF_cfb64_encrypt() 36 if (encrypt) { in BF_cfb64_encrypt() 25 BF_cfb64_encrypt(const unsigned char *in, unsigned char *out, long length, const BF_KEY *schedule, unsigned char *ivec, int *num, int encrypt) BF_cfb64_encrypt() argument
|
/third_party/openssl/crypto/bf/ |
H A D | bf_ecb.c | 32 const BF_KEY *key, int encrypt) in BF_ecb_encrypt() 40 if (encrypt) in BF_ecb_encrypt() 31 BF_ecb_encrypt(const unsigned char *in, unsigned char *out, const BF_KEY *key, int encrypt) BF_ecb_encrypt() argument
|
/third_party/openssl/crypto/rc2/ |
H A D | rc2_ecb.c | 29 int encrypt) in RC2_ecb_encrypt() 37 if (encrypt) in RC2_ecb_encrypt() 28 RC2_ecb_encrypt(const unsigned char *in, unsigned char *out, RC2_KEY *ks, int encrypt) RC2_ecb_encrypt() argument
|
/third_party/openssl/crypto/rc5/ |
H A D | rc5_ecb.c | 21 RC5_32_KEY *ks, int encrypt) in RC5_32_ecb_encrypt() 29 if (encrypt) in RC5_32_ecb_encrypt() 20 RC5_32_ecb_encrypt(const unsigned char *in, unsigned char *out, RC5_32_KEY *ks, int encrypt) RC5_32_ecb_encrypt() argument
|
/third_party/node/test/fixtures/wpt/WebCryptoAPI/encrypt_decrypt/ |
H A D | rsa.js | 16 var promise = importVectorKeys(vector, ["encrypt"], ["decrypt"]) 18 // Get a one byte longer plaintext to encrypt 45 var promise = importVectorKeys(vector, ["encrypt"], ["decrypt"]) 47 // Get a one byte longer plaintext to encrypt 77 var promise = importVectorKeys(vector, ["encrypt"], ["decrypt"]) 104 var promise = importVectorKeys(vector, ["encrypt"], ["unwrapKey"]) 106 // Get a one byte longer plaintext to encrypt 130 var promise = importVectorKeys(vector, ["encrypt"], ["decrypt"]) 134 var operation = subtle.encrypt(vector.algorithm, vector.publicKey, plaintext) 147 // Will a second encrypt giv [all...] |
H A D | aes.js | 17 var promise = importVectorKey(vector, ["encrypt", "decrypt"]) 20 return subtle.encrypt(vector.algorithm, vector.key, vector.plaintext) 24 assert_unreached("encrypt error for test " + vector.name + ": " + err.message); 38 // Check for successful encryption even if the buffer is changed after calling encrypt. 41 var promise = importVectorKey(vector, ["encrypt", "decrypt"]) 44 var operation = subtle.encrypt(vector.algorithm, vector.key, plaintext) 48 assert_unreached("encrypt error for test " + vector.name + ": " + err.message); 66 var promise = importVectorKey(vector, ["encrypt", "decrypt"]) 90 var promise = importVectorKey(vector, ["encrypt", "decrypt"]) 113 // Everything that succeeded should fail if no "encrypt" usag [all...] |
/third_party/ltp/lib/ |
H A D | tst_af_alg.c | 207 if (params->encrypt && params->decrypt) in tst_alg_sendmsg() 208 tst_brk(TBROK, "Both encrypt and decrypt are specified"); in tst_alg_sendmsg() 211 if (params->encrypt || params->decrypt) in tst_alg_sendmsg() 225 if (params->encrypt || params->decrypt) { in tst_alg_sendmsg() 230 params->encrypt ? ALG_OP_ENCRYPT : ALG_OP_DECRYPT; in tst_alg_sendmsg()
|
/third_party/musl/libc-test/src/functionalext/crypt/ |
H A D | encrypt.c | 53 encrypt(buf, 0); in test_encrypt_and_decrypt() 64 encrypt(buf, 1); in test_encrypt_and_decrypt()
|
/third_party/node/deps/openssl/openssl/crypto/idea/ |
H A D | i_cfb64.c | 28 unsigned char *ivec, int *num, int encrypt) in IDEA_cfb64_encrypt() 42 if (encrypt) { in IDEA_cfb64_encrypt() 26 IDEA_cfb64_encrypt(const unsigned char *in, unsigned char *out, long length, IDEA_KEY_SCHEDULE *schedule, unsigned char *ivec, int *num, int encrypt) IDEA_cfb64_encrypt() argument
|