Home
last modified time | relevance | path

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

12

/freebsd-12-stable/crypto/openssh/
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()
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
DPROTOCOL59 calculating the MAC over the packet ciphertext rather than the
61 protocol, where decryption of unauthenticated ciphertext provided a
66 to calculate the MAC over the packet ciphertext and to send the packet
/freebsd-12-stable/sys/contrib/libsodium/test/default/
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-12-stable/secure/lib/libcrypt/
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-12-stable/crypto/openssl/crypto/camellia/
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[],
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()
444 const KEY_TABLE_TYPE keyTable, u8 ciphertext[]) in Camellia_EncryptBlock() argument
447 plaintext, keyTable, ciphertext); in Camellia_EncryptBlock()
450 void Camellia_DecryptBlock_Rounds(int grandRounds, const u8 ciphertext[], in Camellia_DecryptBlock_Rounds() argument
457 s0 = GETU32(ciphertext) ^ k[0]; in Camellia_DecryptBlock_Rounds()
458 s1 = GETU32(ciphertext + 4) ^ k[1]; in Camellia_DecryptBlock_Rounds()
[all …]
/freebsd-12-stable/crypto/openssl/doc/man7/
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
91 The chaining operation makes the ciphertext variables dependent on the
98 enciphering to the same ciphertext.
117 An error will affect the current and the following ciphertext variables.
[all …]
/freebsd-12-stable/contrib/subversion/subversion/libsvn_subr/
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()
450 (unsigned char *)ciphertext->data, 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
[all …]
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,
/freebsd-12-stable/tools/tools/crypto/
Dcryptocheck.c675 char *buffer, *cleartext, *ciphertext; in run_blkcipher_test() local
696 ciphertext = malloc(size); in run_blkcipher_test()
699 openssl_cipher(alg, cipher, key, iv, cleartext, ciphertext, size, 1); in run_blkcipher_test()
700 if (size > 0 && memcmp(cleartext, ciphertext, size) == 0) in run_blkcipher_test()
703 openssl_cipher(alg, cipher, key, iv, ciphertext, buffer, size, 0); in run_blkcipher_test()
717 if (memcmp(ciphertext, buffer, size) != 0) { in run_blkcipher_test()
720 hexdump(ciphertext, size, NULL, 0); in run_blkcipher_test()
727 if (!ocf_cipher(alg, key, key_len, iv, ciphertext, buffer, size, 0, in run_blkcipher_test()
744 free(ciphertext); in run_blkcipher_test()
832 char *aad, *buffer, *cleartext, *ciphertext; in run_authenc_test() local
[all …]
Dcryptotest.c264 char *cleartext, *ciphertext, *originaltext, *key; in runtest() local
326 ciphertext = cleartext+size; in runtest()
353 cop.dst = ciphertext; in runtest()
363 if (verify && bcmp(ciphertext, cleartext, size) == 0) { in runtest()
365 hexdump(ciphertext, size); in runtest()
373 cop.src = ciphertext; in runtest()
400 cop.mac = ciphertext; in runtest()
/freebsd-12-stable/crypto/openssh/openbsd-compat/
Dbcrypt_pbkdf.c76 uint8_t ciphertext[BCRYPT_HASHSIZE] = in bcrypt_hash() local
94 cdata[i] = Blowfish_stream2word(ciphertext, sizeof(ciphertext), in bcrypt_hash()
108 explicit_bzero(ciphertext, sizeof(ciphertext)); in bcrypt_hash()
/freebsd-12-stable/crypto/openssl/doc/man3/
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,
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>
DEVP_aes.pod153 SP 800-38E. The XTS (XEX-based tweaked-codebook mode with ciphertext stealing)
/freebsd-12-stable/crypto/heimdal/lib/hx509/
Dcrypto.c1701 heim_octet_string *ciphertext) in _hx509_public_encrypt() argument
1711 ciphertext->data = NULL; in _hx509_public_encrypt()
1712 ciphertext->length = 0; in _hx509_public_encrypt()
1746 ciphertext->length = ret; in _hx509_public_encrypt()
1747 ciphertext->data = to; in _hx509_public_encrypt()
1751 der_free_octet_string(ciphertext); in _hx509_public_encrypt()
1761 const heim_octet_string *ciphertext, in hx509_private_key_private_decrypt() argument
1783 ret = RSA_private_decrypt(ciphertext->length, ciphertext->data, in hx509_private_key_private_decrypt()
2591 heim_octet_string **ciphertext) in hx509_crypto_encrypt() argument
2597 *ciphertext = NULL; in hx509_crypto_encrypt()
[all …]
Dcert.c1600 const heim_octet_string *ciphertext, in _hx509_cert_private_decrypt() argument
1615 ciphertext, in _hx509_cert_private_decrypt()
1626 heim_octet_string *ciphertext) in hx509_cert_public_encrypt() argument
1630 encryption_oid, ciphertext); in hx509_cert_public_encrypt()
/freebsd-12-stable/crypto/heimdal/lib/krb5/
Dmit_glue.c235 input->ciphertext.data, input->ciphertext.length, in krb5_c_decrypt()
276 &output->ciphertext, in krb5_c_encrypt()
Dkrb5.h116 krb5_data ciphertext; member
Daes-test.c535 e.ciphertext = *cipher; in krb_enc_mit()
/freebsd-12-stable/sys/crypto/camellia/
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-12-stable/crypto/openssl/include/crypto/
Dsm2.h73 const uint8_t *ciphertext,
/freebsd-12-stable/crypto/openssl/crypto/sm2/
Dsm2_crypt.c256 const uint8_t *ciphertext, in sm2_decrypt() argument
282 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ciphertext, ciphertext_len); in sm2_decrypt()
/freebsd-12-stable/contrib/wpa/src/crypto/
Dcrypto_module_tests.c423 char *ciphertext; in test_ecb() member
482 hexstr2bin(tv->ciphertext, cipher, sizeof(cipher))) { in test_ecb()

12