Home
last modified time | relevance | path

Searched refs:plaintext (Results 1 – 25 of 147) sorted by relevance

123456

/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Digetest.c32 static unsigned char plaintext[BIG_TEST_SIZE]; variable
232 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE, &key, iv, AES_ENCRYPT); in test_ige_enc_dec()
238 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_ige_enc_dec()
250 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv, in test_ige_enc_chaining()
252 AES_ige_encrypt(plaintext + TEST_SIZE / 2, in test_ige_enc_chaining()
260 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_ige_enc_chaining()
272 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv, in test_ige_dec_chaining()
274 AES_ige_encrypt(plaintext + TEST_SIZE / 2, in test_ige_dec_chaining()
286 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_ige_dec_chaining()
302 AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv, in test_ige_garble_forwards()
[all …]
H A Dtls13encryptiontest.c27 const char *plaintext[3]; member
248 pt = multihexstr2buf(recd->plaintext, &ptlen); in load_record()
285 refd = multihexstr2buf(recd->plaintext, &refdatalen); in test_record()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Digetest.c27 static unsigned char plaintext[BIG_TEST_SIZE]; variable
227 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE, &key, iv, AES_ENCRYPT); in test_ige_enc_dec()
233 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_ige_enc_dec()
245 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv, in test_ige_enc_chaining()
247 AES_ige_encrypt(plaintext + TEST_SIZE / 2, in test_ige_enc_chaining()
255 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_ige_enc_chaining()
267 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv, in test_ige_dec_chaining()
269 AES_ige_encrypt(plaintext + TEST_SIZE / 2, in test_ige_dec_chaining()
281 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_ige_dec_chaining()
297 AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv, in test_ige_garble_forwards()
[all …]
H A Devp_extra_test.c966 unsigned char ciphertext[32], plaintext[16]; in test_EVP_Enveloped() local
983 || !TEST_true(EVP_OpenUpdate(ctx, plaintext, &plaintext_len, in test_EVP_Enveloped()
985 || !TEST_true(EVP_OpenFinal(ctx, plaintext + plaintext_len, &len))) in test_EVP_Enveloped()
989 if (!TEST_mem_eq(msg, sizeof(msg), plaintext, plaintext_len)) in test_EVP_Enveloped()
1279 uint8_t plaintext[8]; in test_EVP_SM2() local
1280 size_t ptext_len = sizeof(plaintext); in test_EVP_SM2()
1369 if (!TEST_true(EVP_PKEY_decrypt(cctx, plaintext, &ptext_len, ciphertext, ctext_len))) in test_EVP_SM2()
1375 if (!TEST_true(memcmp(plaintext, kMsg, sizeof(kMsg)) == 0)) in test_EVP_SM2()
1676 unsigned char plaintext[80]; in test_decrypt_null_chunks() local
1703 || !TEST_true(EVP_DecryptUpdate(ctx, plaintext, &ptlen, ciphertext, in test_decrypt_null_chunks()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/recipes/
H A D20-test_enc_more.t25 my $plaintext = catfile(".", "testdatafile");
41 unless (ok(copy($testsrc, $plaintext), "Copying $testsrc to $plaintext")) {
48 my $cipherfile = "$plaintext.$ciphername.cipher";
49 my $clearfile = "$plaintext.$ciphername.clear";
52 ok(run(app([@common, "-e", "-in", $plaintext, "-out", $cipherfile]))
53 && compare_text($plaintext, $cipherfile) != 0
55 && compare_text($plaintext, $clearfile) == 0
61 unlink $plaintext;
H A D70-test_sslcbcpadding.t96 my $plaintext = "A" x $plaintext_len;
99 $data .= $plaintext;
121 $plaintext,
/netbsd-src/crypto/external/bsd/openssl/dist/test/recipes/
H A D20-test_enc_more.t27 my $plaintext = catfile(".", "testdatafile");
49 unless (ok(copy($testsrc, $plaintext), "Copying $testsrc to $plaintext")) {
56 my $cipherfile = "$plaintext.$ciphername.cipher";
57 my $clearfile = "$plaintext.$ciphername.clear";
60 ok(run(app([@common, @prov, "-e", "-in", $plaintext, "-out", $cipherfile]))
61 && compare_text($plaintext, $cipherfile) != 0
63 && compare_text($plaintext, $clearfile) == 0
H A D70-test_sslcbcpadding.t98 my $plaintext = "A" x $plaintext_len;
101 $data .= $plaintext;
123 $plaintext,
/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.c397 void Camellia_EncryptBlock_Rounds(int grandRounds, const u8 plaintext[], in Camellia_EncryptBlock_Rounds() argument
404 s0 = GETU32(plaintext) ^ k[0]; in Camellia_EncryptBlock_Rounds()
405 s1 = GETU32(plaintext + 4) ^ k[1]; in Camellia_EncryptBlock_Rounds()
406 s2 = GETU32(plaintext + 8) ^ k[2]; in Camellia_EncryptBlock_Rounds()
407 s3 = GETU32(plaintext + 12) ^ k[3]; in Camellia_EncryptBlock_Rounds()
443 void Camellia_EncryptBlock(int keyBitLength, const u8 plaintext[], in Camellia_EncryptBlock() argument
447 plaintext, keyTable, ciphertext); in Camellia_EncryptBlock()
452 u8 plaintext[]) in Camellia_DecryptBlock_Rounds() argument
490 PUTU32(plaintext, s2); in Camellia_DecryptBlock_Rounds()
491 PUTU32(plaintext + 4, s3); in Camellia_DecryptBlock_Rounds()
[all …]
H A Dcmll_local.h33 void Camellia_EncryptBlock_Rounds(int grandRounds, const u8 plaintext[],
38 u8 plaintext[]);
39 void Camellia_EncryptBlock(int keyBitLength, const u8 plaintext[],
42 const KEY_TABLE_TYPE keyTable, u8 plaintext[]);
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/camellia/
H A Dcamellia.c403 void Camellia_EncryptBlock_Rounds(int grandRounds, const u8 plaintext[], in Camellia_EncryptBlock_Rounds() argument
410 s0 = GETU32(plaintext) ^ k[0]; in Camellia_EncryptBlock_Rounds()
411 s1 = GETU32(plaintext + 4) ^ k[1]; in Camellia_EncryptBlock_Rounds()
412 s2 = GETU32(plaintext + 8) ^ k[2]; in Camellia_EncryptBlock_Rounds()
413 s3 = GETU32(plaintext + 12) ^ k[3]; in Camellia_EncryptBlock_Rounds()
449 void Camellia_EncryptBlock(int keyBitLength, const u8 plaintext[], in Camellia_EncryptBlock() argument
453 plaintext, keyTable, ciphertext); in Camellia_EncryptBlock()
458 u8 plaintext[]) in Camellia_DecryptBlock_Rounds() argument
496 PUTU32(plaintext, s2); in Camellia_DecryptBlock_Rounds()
497 PUTU32(plaintext + 4, s3); in Camellia_DecryptBlock_Rounds()
[all …]
H A Dcmll_local.h33 void Camellia_EncryptBlock_Rounds(int grandRounds, const u8 plaintext[],
38 u8 plaintext[]);
39 void Camellia_EncryptBlock(int keyBitLength, const u8 plaintext[],
42 const KEY_TABLE_TYPE keyTable, u8 plaintext[]);
/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
55 plaintext is encrypted using the same key and starting variable.
60 current and all preceding plaintext blocks and therefore blocks can not
65 The use of different starting variables prevents the same plaintext
87 plaintext is encrypted using the same key and starting variable.
97 The use of different starting variables prevents the same plaintext
108 the encipherment algorithm per unit of plaintext and thus cause
134 plaintext enciphered using the same key and starting variable. More
146 plaintext enciphering to the same ciphertext, by producing different
152 the encipherment algorithm per unit of plaintext and thus cause
[all …]
/netbsd-src/crypto/external/bsd/openssl/lib/libdes/
H A Ddes_modes.pod31 The same plaintext block always produces the same ciphertext block
55 plaintext is encrypted using the same key and starting variable.
60 current and all preceding plaintext blocks and therefore blocks can not
65 The use of different starting variables prevents the same plaintext
87 plaintext is encrypted using the same key and starting variable.
97 The use of different starting variables prevents the same plaintext
108 the encipherment algorithm per unit of plaintext and thus cause
135 plaintext enciphered using the same key and starting variable. More
147 plaintext enciphering to the same ciphertext, by producing different
153 the encipherment algorithm per unit of plaintext and thus cause
[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
55 plaintext is encrypted using the same key and starting variable.
60 current and all preceding plaintext blocks and therefore blocks can not
65 The use of different starting variables prevents the same plaintext
87 plaintext is encrypted using the same key and starting variable.
97 The use of different starting variables prevents the same plaintext
108 the encipherment algorithm per unit of plaintext and thus cause
135 plaintext enciphered using the same key and starting variable. More
147 plaintext enciphering to the same ciphertext, by producing different
153 the encipherment algorithm per unit of plaintext and thus cause
[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
55 plaintext is encrypted using the same key and starting variable.
60 current and all preceding plaintext blocks and therefore blocks can not
65 The use of different starting variables prevents the same plaintext
87 plaintext is encrypted using the same key and starting variable.
97 The use of different starting variables prevents the same plaintext
108 the encipherment algorithm per unit of plaintext and thus cause
134 plaintext enciphered using the same key and starting variable. More
146 plaintext enciphering to the same ciphertext, by producing different
152 the encipherment algorithm per unit of plaintext and thus cause
[all …]
/netbsd-src/external/bsd/libfido2/dist/tools/
H A Dlargeblob.c351 decompress(const struct blob *plaintext, uint64_t origsiz) in decompress() argument
353 if (try_decompress(plaintext, origsiz, MAX_WBITS) == 0) /* rfc1950 */ in decompress()
355 return try_decompress(plaintext, origsiz, -MAX_WBITS); /* rfc1951 */ in decompress()
365 struct blob plaintext; in decode() local
369 memset(&plaintext, 0, sizeof(plaintext)); in decode()
381 plaintext.len = ciphertext->len - 16; in decode()
382 if ((plaintext.ptr = calloc(1, plaintext.len)) == NULL) in decode()
399 EVP_Cipher(ctx, plaintext.ptr, ciphertext->ptr, in decode()
400 (u_int)plaintext.len) < 0 || in decode()
403 if (decompress(&plaintext, origsiz) < 0) in decode()
[all …]
/netbsd-src/external/bsd/libfido2/dist/src/
H A Dlargeblob.c67 fido_blob_t *plaintext = NULL, *aad = NULL; in largeblob_decrypt() local
70 if ((plaintext = fido_blob_new()) == NULL || in largeblob_decrypt()
80 plaintext) < 0) { in largeblob_decrypt()
90 fido_blob_free(&plaintext); in largeblob_decrypt()
92 return plaintext; in largeblob_decrypt()
121 fido_blob_t *plaintext = NULL, *aad = NULL; in largeblob_seal() local
124 if ((plaintext = fido_blob_new()) == NULL || in largeblob_seal()
129 if (fido_compress(plaintext, body) != FIDO_OK) { in largeblob_seal()
141 if (aes256_gcm_enc(key, &blob->nonce, aad, plaintext, in largeblob_seal()
150 fido_blob_free(&plaintext); in largeblob_seal()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/jit/docs/_build/texinfo/
H A DMakefile7 MAKEINFO_plaintext = makeinfo --no-split --plaintext
15 plaintext: $(addsuffix .txt,$(ALLDOCS)) target
50 .PHONY: all info plaintext html pdf install-info uninstall-info clean
/netbsd-src/external/gpl3/gcc/dist/gcc/jit/docs/_build/texinfo/
H A DMakefile7 MAKEINFO_plaintext = makeinfo --no-split --plaintext
15 plaintext: $(addsuffix .txt,$(ALLDOCS)) target
57 .PHONY: all info plaintext html pdf install-info uninstall-info clean
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Dcamellia-ntt.h53 const unsigned char *plaintext,
60 unsigned char *plaintext);
/netbsd-src/sys/crypto/camellia/
H A Dcamellia.h51 const unsigned char *plaintext,
58 unsigned char *plaintext);
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/
H A DRSA_public_encrypt.pod57 plaintext and the public key are exactly identical.
63 private key B<rsa> and stores the plaintext in B<to>. B<flen> should
78 recovered plaintext. A return value of 0 is not an error and
79 means only that the plaintext was empty.
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/
H A DRSA_public_encrypt.pod61 plaintext and the public key are exactly identical.
67 private key B<rsa> and stores the plaintext in B<to>. B<flen> should
82 recovered plaintext. A return value of 0 is not an error and
83 means only that the plaintext was empty.

123456