HomeSort by: relevance | last modified time | path
    Searched defs:plaintext (Results 1 - 19 of 19) sorted by relevancy

  /src/sys/external/isc/libsodium/src/
sodium_selftest.c 87 static const uint8_t plaintext[] = { local
147 * (plaintext/ciphertext, associated data, nonce, and key), and
148 * the output (ciphertext/plaintext).
172 memcpy(inbuf + i, plaintext, sizeof(plaintext));
179 inbuf + i, sizeof(plaintext),
209 * and produces the expected plaintext.
236 if (outsize != sizeof(plaintext)) {
241 outsize, sizeof(plaintext));
244 if (memcmp(outbuf + M, plaintext, sizeof(plaintext)) != 0)
328 static const uint8_t plaintext[] = { local
    [all...]
  /src/crypto/external/apache2/openssl/dist/test/
igetest.c 32 static unsigned char plaintext[BIG_TEST_SIZE]; variable
232 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE, &key, iv, AES_ENCRYPT);
238 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE);
250 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv,
252 AES_ige_encrypt(plaintext + TEST_SIZE / 2,
260 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE);
272 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv,
274 AES_ige_encrypt(plaintext + TEST_SIZE / 2,
286 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE);
302 AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv
    [all...]
tls13encryptiontest.c 29 const char *plaintext[3]; member in struct:__anon774
37 * Note 1: The plaintext values given here have an additional "16" or "17" byte
225 pt = multihexstr2buf(recd->plaintext, &ptlen);
262 refd = multihexstr2buf(recd->plaintext, &refdatalen);
evp_test.c 889 unsigned char *plaintext; member in struct:cipher_data_st
992 OPENSSL_free(cdat->plaintext);
1020 if (strcmp(keyword, "Plaintext") == 0)
1021 return parse_bin(value, &cdat->plaintext, &cdat->plaintext_len);
1105 in = expected->plaintext;
1112 expected_out = expected->plaintext;
evp_extra_test.c 1796 unsigned char ciphertext[32], plaintext[16]; local
1822 || !TEST_true(EVP_OpenUpdate(ctx, plaintext, &plaintext_len,
1824 || !TEST_true(EVP_OpenFinal(ctx, plaintext + plaintext_len, &len)))
1828 if (!TEST_mem_eq(msg, sizeof(msg), plaintext, plaintext_len))
2619 uint8_t plaintext[8]; local
2620 size_t ptext_len = sizeof(plaintext);
2763 if (!TEST_int_gt(EVP_PKEY_decrypt(cctx, plaintext, &ptext_len_param, ciphertext,
2787 if (!TEST_true(memcmp(plaintext, kMsg, sizeof(kMsg)) == 0))
4205 unsigned char plaintext[80]; local
4232 || !TEST_true(EVP_DecryptUpdate(ctx, plaintext, &ptlen, ciphertext
    [all...]
  /src/crypto/external/bsd/openssl/dist/test/
igetest.c 32 static unsigned char plaintext[BIG_TEST_SIZE]; variable
232 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE, &key, iv, AES_ENCRYPT);
238 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE);
250 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv,
252 AES_ige_encrypt(plaintext + TEST_SIZE / 2,
260 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE);
272 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv,
274 AES_ige_encrypt(plaintext + TEST_SIZE / 2,
286 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE);
302 AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv
    [all...]
tls13encryptiontest.c 27 const char *plaintext[3]; member in struct:__anon1782
35 * Note 1: The plaintext values given here have an additional "16" or "17" byte
248 pt = multihexstr2buf(recd->plaintext, &ptlen);
285 refd = multihexstr2buf(recd->plaintext, &refdatalen);
evp_extra_test.c 1299 unsigned char ciphertext[32], plaintext[16]; local
1325 || !TEST_true(EVP_OpenUpdate(ctx, plaintext, &plaintext_len,
1327 || !TEST_true(EVP_OpenFinal(ctx, plaintext + plaintext_len, &len)))
1331 if (!TEST_mem_eq(msg, sizeof(msg), plaintext, plaintext_len))
2034 uint8_t plaintext[8]; local
2035 size_t ptext_len = sizeof(plaintext);
2175 if (!TEST_int_gt(EVP_PKEY_decrypt(cctx, plaintext, &ptext_len, ciphertext,
2198 if (!TEST_true(memcmp(plaintext, kMsg, sizeof(kMsg)) == 0))
3023 unsigned char plaintext[80]; local
3050 || !TEST_true(EVP_DecryptUpdate(ctx, plaintext, &ptlen, ciphertext
    [all...]
evp_test.c 531 unsigned char *plaintext; member in struct:cipher_data_st
603 OPENSSL_free(cdat->plaintext);
630 if (strcmp(keyword, "Plaintext") == 0)
631 return parse_bin(value, &cdat->plaintext, &cdat->plaintext_len);
710 in = expected->plaintext;
717 expected_out = expected->plaintext;
  /src/crypto/external/bsd/openssl.old/dist/test/
igetest.c 27 static unsigned char plaintext[BIG_TEST_SIZE]; variable
227 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE, &key, iv, AES_ENCRYPT);
233 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE);
245 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv,
247 AES_ige_encrypt(plaintext + TEST_SIZE / 2,
255 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE);
267 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv,
269 AES_ige_encrypt(plaintext + TEST_SIZE / 2,
281 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE);
297 AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv
    [all...]
tls13encryptiontest.c 38 const char *plaintext[3]; member in struct:__anon2290
46 * Note 1: The plaintext values given here have an additional "16" or "17" byte
259 pt = multihexstr2buf(recd->plaintext, &ptlen);
296 refd = multihexstr2buf(recd->plaintext, &refdatalen);
evp_extra_test.c 966 unsigned char ciphertext[32], plaintext[16]; local
983 || !TEST_true(EVP_OpenUpdate(ctx, plaintext, &plaintext_len,
985 || !TEST_true(EVP_OpenFinal(ctx, plaintext + plaintext_len, &len)))
989 if (!TEST_mem_eq(msg, sizeof(msg), plaintext, plaintext_len))
1279 uint8_t plaintext[8]; local
1280 size_t ptext_len = sizeof(plaintext);
1369 if (!TEST_true(EVP_PKEY_decrypt(cctx, plaintext, &ptext_len, ciphertext, ctext_len)))
1375 if (!TEST_true(memcmp(plaintext, kMsg, sizeof(kMsg)) == 0))
1676 unsigned char plaintext[80]; local
1703 || !TEST_true(EVP_DecryptUpdate(ctx, plaintext, &ptlen, ciphertext
    [all...]
evp_test.c 478 unsigned char *plaintext; member in struct:cipher_data_st
528 OPENSSL_free(cdat->plaintext);
542 if (strcmp(keyword, "Plaintext") == 0)
543 return parse_bin(value, &cdat->plaintext, &cdat->plaintext_len);
588 in = expected->plaintext;
595 expected_out = expected->plaintext;
  /src/external/bsd/libfido2/dist/tools/
largeblob.c 351 decompress(const struct blob *plaintext, uint64_t origsiz)
353 if (try_decompress(plaintext, origsiz, MAX_WBITS) == 0) /* rfc1950 */
355 return try_decompress(plaintext, origsiz, -MAX_WBITS); /* rfc1951 */
365 struct blob plaintext; local
369 memset(&plaintext, 0, sizeof(plaintext));
381 plaintext.len = ciphertext->len - 16;
382 if ((plaintext.ptr = calloc(1, plaintext.len)) == NULL)
399 EVP_Cipher(ctx, plaintext.ptr, ciphertext->ptr
    [all...]
  /src/crypto/external/bsd/openssh/dist/
cipher.c 91 int plaintext; member in struct:sshcipher_ctx
226 return cc->plaintext;
290 cc->plaintext = (cipher->flags & CFLAG_NONE) != 0;
  /src/external/bsd/libfido2/dist/src/
largeblob.c 67 fido_blob_t *plaintext = NULL, *aad = NULL; local
70 if ((plaintext = fido_blob_new()) == NULL ||
80 plaintext) < 0) {
90 fido_blob_free(&plaintext);
92 return plaintext;
121 fido_blob_t *plaintext = NULL, *aad = NULL; local
124 if ((plaintext = fido_blob_new()) == NULL ||
129 if (fido_compress(plaintext, body) != FIDO_OK) {
141 if (aes256_gcm_enc(key, &blob->nonce, aad, plaintext,
150 fido_blob_free(&plaintext);
362 fido_blob_t *plaintext = NULL; local
    [all...]
  /src/crypto/external/bsd/netpgp/dist/src/lib/
reader.c 1055 /* content - this is because plaintext is not encapsulated in PGP */
1570 /* and are reading from the plaintext */
1572 uint8_t *plaintext; member in struct:__anon1050
1583 Then passes up plaintext as requested
1601 uint8_t *plaintext; local
1658 plaintext = buf + sz_preamble;
1659 mdc = plaintext + sz_plaintext;
1663 hexdump(stderr, "plaintext", plaintext, sz_plaintext);
1666 pgp_calc_mdc_hash(preamble, sz_preamble, plaintext,
    [all...]
  /src/external/bsd/wpa/dist/src/crypto/
crypto_module_tests.c 38 u8 plaintext[] = { local
96 if (aes_siv_encrypt(key, sizeof(key), plaintext, sizeof(plaintext),
112 if (os_memcmp(out, plaintext, sizeof(plaintext)) != 0) {
422 char *plaintext; member in struct:ecb_test_vector
481 hexstr2bin(tv->plaintext, plain, sizeof(plain)) ||
  /src/external/apache2/mDNSResponder/dist/Clients/dnssdutil/
dnssdutil.c 7754 uint8_t * plaintext; local
7802 plaintext = (uint8_t *)( hdr + 1 ) - crypto_box_ZEROBYTES;
7803 check( plaintext == ciphertext );
7807 err = crypto_box_open_afternm( plaintext, ciphertext, (size_t)( end - ciphertext ), nonce, context->nmKey );
7810 response = plaintext + crypto_box_ZEROBYTES;
    [all...]

Completed in 76 milliseconds