Home
last modified time | relevance | path

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

1234

/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Digetest.c227 unsigned char ciphertext[BIG_TEST_SIZE]; in test_ige_enc_dec() local
232 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE, &key, iv, AES_ENCRYPT); in test_ige_enc_dec()
236 AES_ige_encrypt(ciphertext, checktext, TEST_SIZE, &key, iv, AES_DECRYPT); in test_ige_enc_dec()
245 unsigned char ciphertext[BIG_TEST_SIZE]; in test_ige_enc_chaining() local
250 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv, in test_ige_enc_chaining()
253 ciphertext + TEST_SIZE / 2, TEST_SIZE / 2, in test_ige_enc_chaining()
258 AES_ige_encrypt(ciphertext, checktext, TEST_SIZE, &key, iv, AES_DECRYPT); in test_ige_enc_chaining()
267 unsigned char ciphertext[BIG_TEST_SIZE]; in test_ige_dec_chaining() local
272 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv, in test_ige_dec_chaining()
275 ciphertext + TEST_SIZE / 2, TEST_SIZE / 2, in test_ige_dec_chaining()
[all …]
H A Dmodes_internal_test.c194 unsigned char cleartext[64], ciphertext[64], vector[64]; in execute_cts128() local
203 if (!TEST_size_t_eq(fixture->encrypt_block(test_input, ciphertext, len, in execute_cts128()
206 || !TEST_mem_eq(ciphertext, len, vector, len) in execute_cts128()
212 size = fixture->decrypt_block(ciphertext, cleartext, len, in execute_cts128()
222 if (!TEST_size_t_eq(fixture->encrypt_stream(test_input, ciphertext, len, in execute_cts128()
226 || !TEST_mem_eq(ciphertext, len, vector, len) in execute_cts128()
232 if (!TEST_size_t_eq(fixture->decrypt_stream(ciphertext, cleartext, len, in execute_cts128()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Digetest.c222 unsigned char ciphertext[BIG_TEST_SIZE]; in test_ige_enc_dec() local
227 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE, &key, iv, AES_ENCRYPT); in test_ige_enc_dec()
231 AES_ige_encrypt(ciphertext, checktext, TEST_SIZE, &key, iv, AES_DECRYPT); in test_ige_enc_dec()
240 unsigned char ciphertext[BIG_TEST_SIZE]; in test_ige_enc_chaining() local
245 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv, in test_ige_enc_chaining()
248 ciphertext + TEST_SIZE / 2, TEST_SIZE / 2, in test_ige_enc_chaining()
253 AES_ige_encrypt(ciphertext, checktext, TEST_SIZE, &key, iv, AES_DECRYPT); in test_ige_enc_chaining()
262 unsigned char ciphertext[BIG_TEST_SIZE]; in test_ige_dec_chaining() local
267 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv, in test_ige_dec_chaining()
270 ciphertext + TEST_SIZE / 2, TEST_SIZE / 2, in test_ige_dec_chaining()
[all …]
H A Dmodes_internal_test.c188 unsigned char cleartext[64], ciphertext[64], vector[64]; in execute_cts128() local
197 if (!TEST_size_t_eq(fixture->encrypt_block(test_input, ciphertext, len, in execute_cts128()
200 || !TEST_mem_eq(ciphertext, len, vector, len) in execute_cts128()
206 size = fixture->decrypt_block(ciphertext, cleartext, len, in execute_cts128()
216 if (!TEST_size_t_eq(fixture->encrypt_stream(test_input, ciphertext, len, in execute_cts128()
220 || !TEST_mem_eq(ciphertext, len, vector, len) in execute_cts128()
226 if (!TEST_size_t_eq(fixture->decrypt_stream(ciphertext, cleartext, len, in execute_cts128()
H A Devp_extra_test.c966 unsigned char ciphertext[32], plaintext[16]; in test_EVP_Enveloped() local
974 || !TEST_true(EVP_SealUpdate(ctx, ciphertext, &ciphertext_len, in test_EVP_Enveloped()
976 || !TEST_true(EVP_SealFinal(ctx, ciphertext + ciphertext_len, in test_EVP_Enveloped()
984 ciphertext, ciphertext_len)) in test_EVP_Enveloped()
1276 uint8_t ciphertext[128]; in test_EVP_SM2() local
1277 size_t ctext_len = sizeof(ciphertext); in test_EVP_SM2()
1363 if (!TEST_true(EVP_PKEY_encrypt(cctx, ciphertext, &ctext_len, kMsg, sizeof(kMsg)))) in test_EVP_SM2()
1369 if (!TEST_true(EVP_PKEY_decrypt(cctx, plaintext, &ptext_len, ciphertext, ctext_len))) in test_EVP_SM2()
1675 unsigned char ciphertext[80]; in test_decrypt_null_chunks() local
1685 || !TEST_true(EVP_EncryptUpdate(ctx, ciphertext, &ctlen, msg, in test_decrypt_null_chunks()
[all …]
/netbsd-src/external/bsd/libfido2/dist/tools/
H A Dlargeblob.c359 decode(const struct blob *ciphertext, const struct blob *nonce, in decode() argument
377 if (ciphertext->len > UINT_MAX || in decode()
378 ciphertext->len > SIZE_MAX - 16 || in decode()
379 ciphertext->len < 16) in decode()
381 plaintext.len = ciphertext->len - 16; in decode()
390 ciphertext->ptr + ciphertext->len - 16) == 0) in decode()
399 EVP_Cipher(ctx, plaintext.ptr, ciphertext->ptr, in decode()
417 try_rp(const fido_credman_rk_t *rk, const struct blob *ciphertext, in try_rp() argument
424 decode(ciphertext, nonce, origsiz, cred) == 0) in try_rp()
446 decode_blob_entry(const cbor_item_t *item, struct blob *ciphertext, in decode_blob_entry() argument
[all …]
/netbsd-src/sys/external/isc/libsodium/dist/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()
/netbsd-src/external/mpl/bind/dist/tests/isc/
H A Daes_test.c
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/camellia/
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()
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 …]
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[],
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/camellia/
H A Dcamellia.c405 u8 ciphertext[]) in Camellia_EncryptBlock_Rounds() argument
443 PUTU32(ciphertext, s2); in Camellia_EncryptBlock_Rounds()
444 PUTU32(ciphertext + 4, s3); in Camellia_EncryptBlock_Rounds()
445 PUTU32(ciphertext + 8, s0); in Camellia_EncryptBlock_Rounds()
446 PUTU32(ciphertext + 12, s1); in Camellia_EncryptBlock_Rounds()
450 const KEY_TABLE_TYPE keyTable, u8 ciphertext[]) in Camellia_EncryptBlock() argument
453 plaintext, keyTable, ciphertext); in Camellia_EncryptBlock()
456 void Camellia_DecryptBlock_Rounds(int grandRounds, const u8 ciphertext[], in Camellia_DecryptBlock_Rounds() argument
463 s0 = GETU32(ciphertext) ^ k[0]; in Camellia_DecryptBlock_Rounds()
464 s1 = GETU32(ciphertext + 4) ^ k[1]; in Camellia_DecryptBlock_Rounds()
[all …]
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[],
/netbsd-src/crypto/external/bsd/openssl.old/dist/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
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 …]
/netbsd-src/crypto/external/bsd/openssl/lib/libdes/
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
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 …]
/netbsd-src/crypto/external/bsd/openssl.old/lib/libdes/
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
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 …]
/netbsd-src/crypto/external/bsd/openssl/dist/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
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 …]
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dbcrypt_pbkdf.c72 u_int8_t ciphertext[BCRYPT_HASHSIZE] = in bcrypt_hash() local
90 cdata[i] = Blowfish_stream2word(ciphertext, sizeof(ciphertext), in bcrypt_hash()
104 memset(ciphertext, 0, sizeof(ciphertext)); in bcrypt_hash()
/netbsd-src/lib/libcrypt/
H A Dbcrypt.c219 u_int8_t ciphertext[4 * BCRYPT_BLOCKS] = "OrpheanBeholderScryDoubt"; in __bcrypt() local
288 cdata[i] = Blowfish_stream2word(ciphertext, 4 * BCRYPT_BLOCKS, &j); in __bcrypt()
295 ciphertext[4 * i + 3] = cdata[i] & 0xff; in __bcrypt()
297 ciphertext[4 * i + 2] = cdata[i] & 0xff; in __bcrypt()
299 ciphertext[4 * i + 1] = cdata[i] & 0xff; in __bcrypt()
301 ciphertext[4 * i + 0] = cdata[i] & 0xff; in __bcrypt()
315 encode_base64((u_int8_t *) encrypted + strlen(encrypted), ciphertext, in __bcrypt()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hx509/
H A Dcrypto.c1218 heim_octet_string *ciphertext) in _hx509_public_encrypt() argument
1228 ciphertext->data = NULL; in _hx509_public_encrypt()
1229 ciphertext->length = 0; in _hx509_public_encrypt()
1263 ciphertext->length = ret; in _hx509_public_encrypt()
1264 ciphertext->data = to; in _hx509_public_encrypt()
1268 der_free_octet_string(ciphertext); in _hx509_public_encrypt()
1278 const heim_octet_string *ciphertext, in hx509_private_key_private_decrypt() argument
1300 ret = RSA_private_decrypt(ciphertext->length, ciphertext->data, in hx509_private_key_private_decrypt()
2095 heim_octet_string **ciphertext) in hx509_crypto_encrypt() argument
2109 *ciphertext = NULL; in hx509_crypto_encrypt()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/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,
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/
H A DRSA_public_encrypt.pod29 session key) using the public key B<rsa> and stores the ciphertext in
59 RSA_public_encrypt() will include some random bytes into the ciphertext
60 and therefore the ciphertext will be different each time, even if the
62 The returned ciphertext in B<to> will always be zero padded to exactly
69 bytes are in the ciphertext. Those are not important and may be removed,
/netbsd-src/external/bsd/libfido2/dist/src/
H A Dlargeblob.c19 fido_blob_t ciphertext; member
32 fido_blob_reset(&blob->ciphertext); in largeblob_reset()
79 if (aes256_gcm_dec(key, &blob->nonce, aad, &blob->ciphertext, in largeblob_decrypt()
142 &blob->ciphertext) < 0) { in largeblob_seal()
290 if (fido_blob_decode(val, &blob->ciphertext) < 0 || in largeblob_do_decode()
291 blob->ciphertext.len < LARGEBLOB_TAG_LENGTH) in largeblob_do_decode()
322 if (fido_blob_is_empty(&blob->ciphertext) || in largeblob_decode()
343 if ((argv[0] = fido_blob_encode(&blob->ciphertext)) == NULL || in largeblob_encode()
/netbsd-src/crypto/external/bsd/netpgp/dist/ref/
H A Drfc2437.txt154 c ciphertext representative, an integer between 0 and n-1
156 C ciphertext, an octet string
415 An encryption primitive produces a ciphertext representative from a
418 ciphertext representative under the control of the corresponding
440 c ciphertext representative, an integer between 0 and n-1;
471 c ciphertext representative, an integer between 0 and n-1
475 "ciphertext representative out of range"
481 1. If the ciphertext representative c is not between 0 and n-1,
482 output "ciphertext representative out of range" and stop.
637 ciphertext from a message with a recipient's public key, and the
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/
H A Devpciph_camellia.txt17 # CAMELLIA-bits-ECB:key::plaintext:ciphertext:encdec
120 # CAMELLIA-bits-CBC:key:IV/ciphertext':plaintext:ciphertext:encdec
213 # CAMELLIA-bits-CFB:key:IV/ciphertext':plaintext:ciphertext:encdec
419 # CAMELLIA-bits-OFB:key:IV/output':plaintext:ciphertext:encdec
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dmit_glue.c237 input->ciphertext.data, input->ciphertext.length, in krb5_c_decrypt()
278 &output->ciphertext, in krb5_c_encrypt()

1234