Home
last modified time | relevance | path

Searched refs:ciphertext (Results 1 – 25 of 35) sorted by relevance

12

/freebsd-13.1/sys/contrib/openzfs/module/icp/io/
H A Daes.c411 ASSERT(ciphertext != NULL); in aes_encrypt()
462 ciphertext->cd_offset = ciphertext->cd_length; in aes_encrypt()
463 ciphertext->cd_length = saved_length - ciphertext->cd_length; in aes_encrypt()
471 ciphertext->cd_length = in aes_encrypt()
483 ciphertext->cd_offset = ciphertext->cd_length; in aes_encrypt()
484 ciphertext->cd_length = saved_length - ciphertext->cd_length; in aes_encrypt()
493 ciphertext->cd_length = in aes_encrypt()
633 ASSERT(ciphertext != NULL); in aes_encrypt_update()
680 ciphertext->cd_length = in aes_encrypt_update()
945 ASSERT(ciphertext != NULL); in aes_encrypt_atomic()
[all …]
/freebsd-13.1/sys/contrib/openzfs/module/icp/api/
H A Dkcf_cipher.c335 plaintext, ciphertext, tmpl); in crypto_encrypt_prov()
402 mech, key, plaintext, ciphertext, spi_ctx_tmpl); in crypto_encrypt()
470 crypto_data_t *ciphertext, crypto_call_req_t *cr) in crypto_encrypt_update() argument
489 ciphertext, NULL); in crypto_encrypt_update()
617 ciphertext, plaintext, tmpl); in crypto_decrypt_prov()
648 ciphertext->cd_length)) == NULL) { in crypto_decrypt()
850 crypto_data_t *ciphertext, crypto_call_req_t *cr) in crypto_encrypt_single() argument
867 ciphertext, NULL); in crypto_encrypt_single()
871 NULL, NULL, plaintext, ciphertext, NULL); in crypto_encrypt_single()
901 error = KCF_PROV_DECRYPT(pd, ctx, ciphertext, in crypto_decrypt_single()
[all …]
/freebsd-13.1/crypto/openssh/
H A Dkexsntrup761x25519.c80 u_char *kem_key, *ciphertext, *server_pub; in kex_kem_sntrup761x25519_enc() local
118 if ((r = sshbuf_reserve(server_blob, need, &ciphertext)) != 0) in kex_kem_sntrup761x25519_enc()
121 crypto_kem_sntrup761_enc(ciphertext, kem_key, client_pub); in kex_kem_sntrup761x25519_enc()
123 server_pub = ciphertext + crypto_kem_sntrup761_CIPHERTEXTBYTES; in kex_kem_sntrup761x25519_enc()
133 dump_digest("server cipher text:", ciphertext, in kex_kem_sntrup761x25519_enc()
165 const u_char *ciphertext, *server_pub; in kex_kem_sntrup761x25519_dec() local
177 ciphertext = sshbuf_ptr(server_blob); in kex_kem_sntrup761x25519_dec()
178 server_pub = ciphertext + crypto_kem_sntrup761_CIPHERTEXTBYTES; in kex_kem_sntrup761x25519_dec()
180 dump_digest("server cipher text:", ciphertext, in kex_kem_sntrup761x25519_dec()
192 decoded = crypto_kem_sntrup761_dec(kem_key, ciphertext, in kex_kem_sntrup761x25519_dec()
H A DPROTOCOL.chacha20poly130566 bytes of ciphertext length have been received, they may be decrypted
74 ciphertext of the packet length and the payload together. The calculated
/freebsd-13.1/sys/contrib/libsodium/test/default/
H A Daead_aes256gcm.c3083 unsigned char *ciphertext; in tv() local
3135 ciphertext = (unsigned char *) sodium_malloc(ciphertext_len); in tv()
3150 ciphertext, ciphertext_len); in tv()
3155 crypto_aead_aes256gcm_encrypt(ciphertext, &found_ciphertext_len, in tv()
3160 if (memcmp(ciphertext, expected_ciphertext, ciphertext_len) != 0) { in tv()
3164 ciphertext, ciphertext_len); in tv()
3172 NULL, ciphertext, in tv()
3189 NULL, ciphertext, ciphertext_len, in tv()
3194 NULL, ciphertext, ciphertext_len, in tv()
3216 sodium_free(ciphertext); in tv()
/freebsd-13.1/contrib/libfido2/tools/
H A Dlargeblob.c352 if (ciphertext->len > UINT_MAX || in decode()
353 ciphertext->len > SIZE_MAX - 16 || in decode()
354 ciphertext->len < 16) in decode()
356 plaintext.len = ciphertext->len - 16; in decode()
365 ciphertext->ptr + ciphertext->len - 16) == 0) in decode()
374 EVP_Cipher(ctx, plaintext.ptr, ciphertext->ptr, in decode()
399 decode(ciphertext, nonce, origsiz, cred) == 0) in try_rp()
441 if (decode_cbor_blob(ciphertext, v[i].value) < 0) in decode_blob_entry()
464 struct blob ciphertext, nonce; in print_blob_entry() local
470 memset(&ciphertext, 0, sizeof(ciphertext)); in print_blob_entry()
[all …]
/freebsd-13.1/secure/lib/libcrypt/
H A Dcrypt-blowfish.c144 u_int8_t ciphertext[4 * BCRYPT_BLOCKS] = "OrpheanBeholderScryDoubt"; in crypt_blowfish() local
230 cdata[i] = Blowfish_stream2word(ciphertext, 4 * BCRYPT_BLOCKS, &j); in crypt_blowfish()
237 ciphertext[4 * i + 3] = cdata[i] & 0xff; in crypt_blowfish()
239 ciphertext[4 * i + 2] = cdata[i] & 0xff; in crypt_blowfish()
241 ciphertext[4 * i + 1] = cdata[i] & 0xff; in crypt_blowfish()
243 ciphertext[4 * i + 0] = cdata[i] & 0xff; in crypt_blowfish()
258 encode_base64((u_int8_t *)buffer, ciphertext, 4 * BCRYPT_BLOCKS - 1); in crypt_blowfish()
260 memset(ciphertext, 0, sizeof(ciphertext)); in crypt_blowfish()
/freebsd-13.1/crypto/openssl/crypto/camellia/
H A Dcmll_local.h35 u8 ciphertext[]);
36 void Camellia_DecryptBlock_Rounds(int grandRounds, const u8 ciphertext[],
40 const KEY_TABLE_TYPE keyTable, u8 ciphertext[]);
41 void Camellia_DecryptBlock(int keyBitLength, const u8 ciphertext[],
H A Dcamellia.c399 u8 ciphertext[]) in Camellia_EncryptBlock_Rounds() argument
437 PUTU32(ciphertext, s2); in Camellia_EncryptBlock_Rounds()
438 PUTU32(ciphertext + 4, s3); in Camellia_EncryptBlock_Rounds()
439 PUTU32(ciphertext + 8, s0); in Camellia_EncryptBlock_Rounds()
440 PUTU32(ciphertext + 12, s1); in Camellia_EncryptBlock_Rounds()
447 plaintext, keyTable, ciphertext); in Camellia_EncryptBlock()
457 s0 = GETU32(ciphertext) ^ k[0]; in Camellia_DecryptBlock_Rounds()
458 s1 = GETU32(ciphertext + 4) ^ k[1]; in Camellia_DecryptBlock_Rounds()
459 s2 = GETU32(ciphertext + 8) ^ k[2]; in Camellia_DecryptBlock_Rounds()
460 s3 = GETU32(ciphertext + 12) ^ k[3]; in Camellia_DecryptBlock_Rounds()
[all …]
/freebsd-13.1/sys/contrib/openzfs/module/icp/include/sys/crypto/
H A Dimpl.h644 ciphertext, req) : \
845 ciphertext, req) ( \ argument
861 ciphertext, req) ( \ argument
893 ctx, plaintext, ciphertext, mac, req) : \
900 ctx, plaintext, ciphertext, req) : \
907 ctx, ciphertext, mac, req) : \
911 mac_mech, mac_key, plaintext, ciphertext, mac, \ argument
917 mac_mech, mac_key, plaintext, ciphertext, mac, \
934 ctx, ciphertext, mac, plaintext, req) : \
941 ctx, ciphertext, plaintext, req) : \
[all …]
/freebsd-13.1/contrib/subversion/subversion/libsvn_subr/
H A Dcrypto.h75 svn_crypto__encrypt_password(const svn_string_t **ciphertext,
91 const svn_string_t *ciphertext,
112 svn_crypto__generate_secret_checktext(const svn_string_t **ciphertext,
131 const svn_string_t *ciphertext,
H A Dcrypto.c249 svn_crypto__encrypt_password(const svn_string_t **ciphertext, in svn_crypto__encrypt_password() argument
376 *ciphertext = wrap_as_string(result, result_len, result_pool); in svn_crypto__encrypt_password()
393 const svn_string_t *ciphertext, in svn_crypto__decrypt_password() argument
439 (unsigned char *)ciphertext->data, in svn_crypto__decrypt_password()
440 ciphertext->len, block_ctx); in svn_crypto__decrypt_password()
451 ciphertext->len, block_ctx); in svn_crypto__decrypt_password()
485 svn_crypto__generate_secret_checktext(const svn_string_t **ciphertext, in svn_crypto__generate_secret_checktext() argument
594 *ciphertext = wrap_as_string(result, result_len, result_pool); in svn_crypto__generate_secret_checktext()
613 const svn_string_t *ciphertext, in svn_crypto__verify_secret() argument
662 ciphertext->len, block_ctx); in svn_crypto__verify_secret()
[all …]
/freebsd-13.1/crypto/openssl/doc/man7/
H A Ddes_modes.pod31 The same plaintext block always produces the same ciphertext block
36 An error will only affect one ciphertext block.
54 The CBC mode produces the same ciphertext whenever the same
59 The chaining operation makes the ciphertext blocks dependent on the
66 enciphering to the same ciphertext.
70 An error will affect the current and the following ciphertext blocks.
86 The CFB mode produces the same ciphertext whenever the same
98 enciphering to the same ciphertext.
133 The OFB mode produces the same ciphertext whenever the same
146 plaintext enciphering to the same ciphertext, by producing different
[all …]
/freebsd-13.1/crypto/openssh/openbsd-compat/
H A Dbcrypt_pbkdf.c75 u_int8_t ciphertext[BCRYPT_HASHSIZE] = in bcrypt_hash() local
93 cdata[i] = Blowfish_stream2word(ciphertext, sizeof(ciphertext), in bcrypt_hash()
107 explicit_bzero(ciphertext, sizeof(ciphertext)); in bcrypt_hash()
/freebsd-13.1/tools/tools/crypto/
H A Dcryptocheck.c754 char *buffer, *cleartext, *ciphertext; in run_cipher_test() local
788 ciphertext = malloc(size); in run_cipher_test()
814 hexdump(ciphertext, size, NULL, 0); in run_cipher_test()
838 free(ciphertext); in run_cipher_test()
909 char *buffer, *cleartext, *ciphertext; in run_eta_test() local
948 ciphertext = malloc(aad_len + size); in run_eta_test()
954 ciphertext + aad_len, size, 1); in run_eta_test()
1043 free(ciphertext); in run_eta_test()
1501 ciphertext = malloc(size); in run_aead_test()
1530 hexdump(ciphertext, size, NULL, 0); in run_aead_test()
[all …]
H A Dcryptotest.c252 char *cleartext, *ciphertext, *originaltext, *key; in runtest() local
314 ciphertext = cleartext+size; in runtest()
341 cop.dst = ciphertext; in runtest()
351 if (verify && bcmp(ciphertext, cleartext, size) == 0) { in runtest()
353 hexdump(ciphertext, size); in runtest()
361 cop.src = ciphertext; in runtest()
388 cop.mac = ciphertext; in runtest()
/freebsd-13.1/crypto/openssl/doc/man3/
H A DRSA_public_encrypt.pod20 session key) using the public key B<rsa> and stores the ciphertext in
55 RSA_public_encrypt() will include some random bytes into the ciphertext
56 and therefore the ciphertext will be different each time, even if the
58 The returned ciphertext in B<to> will always be zero padded to exactly
65 bytes are in the ciphertext. Those are not important and may be removed,
H A DDES_random_key.pod141 (cleartext) is encrypted in to the I<output> (ciphertext) using the
144 ciphertext) is decrypted into the I<output> (now cleartext). Input
161 the I<input> argument into the ciphertext pointed to by the I<output>
/freebsd-13.1/crypto/heimdal/lib/hx509/
H A Dcrypto.c1711 ciphertext->data = NULL; in _hx509_public_encrypt()
1712 ciphertext->length = 0; in _hx509_public_encrypt()
1747 ciphertext->data = to; in _hx509_public_encrypt()
1783 ret = RSA_private_decrypt(ciphertext->length, ciphertext->data, in hx509_private_key_private_decrypt()
2597 *ciphertext = NULL; in hx509_crypto_encrypt()
2616 *ciphertext = calloc(1, sizeof(**ciphertext)); in hx509_crypto_encrypt()
2652 (*ciphertext)->data, in hx509_crypto_encrypt()
2662 if (*ciphertext) { in hx509_crypto_encrypt()
2664 free((*ciphertext)->data); in hx509_crypto_encrypt()
2666 free(*ciphertext); in hx509_crypto_encrypt()
[all …]
/freebsd-13.1/contrib/libfido2/src/
H A Dlargeblob.c18 fido_blob_t ciphertext; member
31 fido_blob_reset(&blob->ciphertext); in largeblob_reset()
78 if (aes256_gcm_dec(key, &blob->nonce, aad, &blob->ciphertext, in largeblob_decrypt()
141 &blob->ciphertext) < 0) { in largeblob_seal()
278 if (fido_blob_decode(val, &blob->ciphertext) < 0 || in largeblob_do_decode()
279 blob->ciphertext.len < LARGEBLOB_TAG_LENGTH) in largeblob_do_decode()
310 if (fido_blob_is_empty(&blob->ciphertext) || in largeblob_decode()
331 if ((argv[0] = fido_blob_encode(&blob->ciphertext)) == NULL || in largeblob_encode()
/freebsd-13.1/sys/contrib/openzfs/include/sys/crypto/
H A Dapi.h172 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *ciphertext,
183 crypto_data_t *plaintext, crypto_data_t *ciphertext,
186 crypto_data_t *ciphertext, crypto_call_req_t *cr);
191 extern int crypto_decrypt(crypto_mechanism_t *mech, crypto_data_t *ciphertext,
204 crypto_data_t *ciphertext, crypto_data_t *plaintext,
/freebsd-13.1/crypto/heimdal/lib/krb5/
H A Dmit_glue.c235 input->ciphertext.data, input->ciphertext.length, in krb5_c_decrypt()
276 &output->ciphertext, in krb5_c_encrypt()
/freebsd-13.1/crypto/openssl/include/crypto/
H A Dsm2.h73 const uint8_t *ciphertext,
/freebsd-13.1/sys/crypto/camellia/
H A Dcamellia.c1274 unsigned char *ciphertext) in Camellia_EncryptBlock() argument
1296 PUTU32(ciphertext, tmp[0]); in Camellia_EncryptBlock()
1297 PUTU32(ciphertext+4, tmp[1]); in Camellia_EncryptBlock()
1298 PUTU32(ciphertext+8, tmp[2]); in Camellia_EncryptBlock()
1299 PUTU32(ciphertext+12, tmp[3]); in Camellia_EncryptBlock()
1304 const unsigned char *ciphertext, in Camellia_DecryptBlock() argument
1310 tmp[0] = GETU32(ciphertext); in Camellia_DecryptBlock()
1311 tmp[1] = GETU32(ciphertext + 4); in Camellia_DecryptBlock()
1312 tmp[2] = GETU32(ciphertext + 8); in Camellia_DecryptBlock()
1313 tmp[3] = GETU32(ciphertext + 12); in Camellia_DecryptBlock()
/freebsd-13.1/crypto/openssl/crypto/sm2/
H A Dsm2_crypt.c256 const uint8_t *ciphertext, in sm2_decrypt() argument
282 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ciphertext, ciphertext_len); in sm2_decrypt()

12