| /freebsd-12.1/sys/contrib/libsodium/test/default/ |
| H A D | aead_aes256gcm.c | 3083 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.1/secure/lib/libcrypt/ |
| H A D | crypt-blowfish.c | 144 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.1/crypto/openssl/crypto/camellia/ |
| H A D | cmll_locl.h | 35 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 D | camellia.c | 399 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-12.1/crypto/openssl/doc/man7/ |
| H A D | des_modes.pod | 31 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-12.1/contrib/subversion/subversion/libsvn_subr/ |
| H A D | crypto.c | 249 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 …]
|
| H A D | crypto.h | 75 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.1/tools/tools/crypto/ |
| H A D | cryptocheck.c | 696 ciphertext = malloc(size); in run_blkcipher_test() 720 hexdump(ciphertext, size, NULL, 0); in run_blkcipher_test() 744 free(ciphertext); in run_blkcipher_test() 867 ciphertext + aad_len, size, 1); in run_authenc_test() 939 free(ciphertext); in run_authenc_test() 1116 ciphertext = malloc(size); in run_gcm_test() 1124 ciphertext, size, control_tag); in run_gcm_test() 1166 free(ciphertext); in run_gcm_test() 1327 ciphertext = malloc(size); in run_ccm_test() 1335 ciphertext, size, control_tag); in run_ccm_test() [all …]
|
| H A D | cryptotest.c | 264 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.1/crypto/openssh/openbsd-compat/ |
| H A D | bcrypt_pbkdf.c | 73 u_int8_t ciphertext[BCRYPT_HASHSIZE] = in bcrypt_hash() local 91 cdata[i] = Blowfish_stream2word(ciphertext, sizeof(ciphertext), in bcrypt_hash() 105 explicit_bzero(ciphertext, sizeof(ciphertext)); in bcrypt_hash()
|
| /freebsd-12.1/crypto/openssl/doc/man3/ |
| H A D | RSA_public_encrypt.pod | 20 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 D | EVP_aes.pod | 153 SP 800-38E. The XTS (XEX-based tweaked-codebook mode with ciphertext stealing)
|
| H A D | DES_random_key.pod | 141 (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>
|
| H A D | EVP_EncryptInit.pod | 401 For CCM mode, the total plaintext or ciphertext length B<MUST> be passed to 561 The ciphertext from the above example can be decrypted using the B<openssl>
|
| /freebsd-12.1/crypto/heimdal/lib/hx509/ |
| H A D | crypto.c | 1711 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 …]
|
| H A D | cert.c | 1600 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.1/crypto/heimdal/lib/krb5/ |
| H A D | mit_glue.c | 235 input->ciphertext.data, input->ciphertext.length, in krb5_c_decrypt() 276 &output->ciphertext, in krb5_c_encrypt()
|
| H A D | krb5.h | 116 krb5_data ciphertext; member
|
| H A D | aes-test.c | 535 e.ciphertext = *cipher; in krb_enc_mit()
|
| /freebsd-12.1/sys/crypto/camellia/ |
| H A D | camellia.c | 1274 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.1/crypto/openssl/crypto/include/internal/ |
| H A D | sm2.h | 74 const uint8_t *ciphertext,
|
| /freebsd-12.1/crypto/openssh/ |
| H A D | PROTOCOL.chacha20poly1305 | 66 bytes of ciphertext length have been received, they may be decrypted 74 ciphertext of the packet length and the payload together. The calculated
|
| H A D | PROTOCOL | 59 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.1/crypto/openssl/crypto/sm2/ |
| H A D | sm2_crypt.c | 265 const uint8_t *ciphertext, in sm2_decrypt() argument 291 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ciphertext, ciphertext_len); in sm2_decrypt()
|
| /freebsd-12.1/contrib/wpa/src/crypto/ |
| H A D | crypto_module_tests.c | 423 char *ciphertext; in test_ecb() member 482 hexstr2bin(tv->ciphertext, cipher, sizeof(cipher))) { in test_ecb()
|