| /netbsd-src/crypto/external/bsd/openssl.old/dist/test/ |
| H A D | destest.c | 240 static unsigned char plain[24] = { variable 506 DES_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test() 508 if (!TEST_mem_eq(cfb_cipher, sizeof(plain), cfb_buf1, sizeof(plain))) in cfb_test() 511 DES_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test() 513 return TEST_mem_eq(plain, sizeof(plain), cfb_buf2, sizeof(plain)); in cfb_test() 548 DES_cfb64_encrypt(plain, cfb_buf1, 12, &ks, &cfb_tmp, &n, DES_ENCRYPT); in test_des_cfb64() 549 DES_cfb64_encrypt(&plain[12], &cfb_buf1[12], sizeof(plain) - 12, &ks, in test_des_cfb64() 551 if (!TEST_mem_eq(cfb_cipher64, sizeof(plain), cfb_buf1, sizeof(plain))) in test_des_cfb64() 557 sizeof(plain) - 17, &ks, &cfb_tmp, &n, DES_DECRYPT); in test_des_cfb64() 558 if (!TEST_mem_eq(plain, sizeof(plain), cfb_buf2, sizeof(plain))) in test_des_cfb64() [all …]
|
| H A D | ideatest.c | 38 static const unsigned char plain[CFB_TEST_SIZE] = { variable 93 IDEA_cfb64_encrypt(plain, cfb_buf1, (long)12, &eks, in test_idea_cfb64() 95 IDEA_cfb64_encrypt(&plain[12], &cfb_buf1[12], in test_idea_cfb64() 107 return TEST_mem_eq(plain, CFB_TEST_SIZE, cfb_buf2, CFB_TEST_SIZE); in test_idea_cfb64()
|
| /netbsd-src/tests/lib/libdes/ |
| H A D | t_des.c | 291 static unsigned char plain[24] = variable 391 des_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), ks, &cfb_tmp, in cfb_test() 393 if (memcmp(cfb_cipher, cfb_buf1, sizeof(plain)) != 0) in cfb_test() 396 des_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), ks, &cfb_tmp, in cfb_test() 398 if (memcmp(plain, cfb_buf2, sizeof(plain)) != 0) in cfb_test() 413 des_cfb64_encrypt(plain, cfb_buf1, 12, ks, &cfb_tmp, &n, DES_ENCRYPT); in cfb64_test() 414 des_cfb64_encrypt(&(plain[12]), &(cfb_buf1[12]), sizeof(plain) - 12, ks, in cfb64_test() 416 if (memcmp(cfb_cipher, cfb_buf1, sizeof(plain)) != 0) in cfb64_test() 422 sizeof(plain) - 17, ks, &cfb_tmp, &n, DES_DECRYPT); in cfb64_test() 423 if (memcmp(plain, cfb_buf2, sizeof(plain)) != 0) in cfb64_test() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/test/ |
| H A D | destest.c | 247 static unsigned char plain[24] = { variable 513 DES_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test() 515 if (!TEST_mem_eq(cfb_cipher, sizeof(plain), cfb_buf1, sizeof(plain))) in cfb_test() 518 DES_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test() 520 return TEST_mem_eq(plain, sizeof(plain), cfb_buf2, sizeof(plain)); in cfb_test() 555 DES_cfb64_encrypt(plain, cfb_buf1, 12, &ks, &cfb_tmp, &n, DES_ENCRYPT); in test_des_cfb64() 556 DES_cfb64_encrypt(&plain[12], &cfb_buf1[12], sizeof(plain) - 12, &ks, in test_des_cfb64() 558 if (!TEST_mem_eq(cfb_cipher64, sizeof(plain), cfb_buf1, sizeof(plain))) in test_des_cfb64() 564 sizeof(plain) - 17, &ks, &cfb_tmp, &n, DES_DECRYPT); in test_des_cfb64() 565 if (!TEST_mem_eq(plain, sizeof(plain), cfb_buf2, sizeof(plain))) in test_des_cfb64() [all …]
|
| H A D | ideatest.c | 45 static const unsigned char plain[CFB_TEST_SIZE] = { variable 100 IDEA_cfb64_encrypt(plain, cfb_buf1, (long)12, &eks, in test_idea_cfb64() 102 IDEA_cfb64_encrypt(&plain[12], &cfb_buf1[12], in test_idea_cfb64() 114 return TEST_mem_eq(plain, CFB_TEST_SIZE, cfb_buf2, CFB_TEST_SIZE); in test_idea_cfb64()
|
| /netbsd-src/external/bsd/wpa/dist/src/crypto/ |
| H A D | crypto_internal-cipher.c | 103 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, in crypto_cipher_encrypt() argument 110 if (plain != crypt) in crypto_cipher_encrypt() 111 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt() 122 ctx->u.aes.cbc[j] ^= plain[j]; in crypto_cipher_encrypt() 126 plain += AES_BLOCK_SIZE; in crypto_cipher_encrypt() 136 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt() 140 plain += 8; in crypto_cipher_encrypt() 150 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt() 154 plain += 8; in crypto_cipher_encrypt() 167 u8 *plain, size_t len) in crypto_cipher_decrypt() argument [all …]
|
| H A D | des-internal.c | 435 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt) in des_block_encrypt() argument 438 work[0] = WPA_GET_BE32(plain); in des_block_encrypt() 439 work[1] = WPA_GET_BE32(plain + 4); in des_block_encrypt() 446 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain) in des_block_decrypt() argument 452 WPA_PUT_BE32(plain, work[0]); in des_block_decrypt() 453 WPA_PUT_BE32(plain + 4, work[1]); in des_block_decrypt() 469 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt) in des3_encrypt() argument 473 work[0] = WPA_GET_BE32(plain); in des3_encrypt() 474 work[1] = WPA_GET_BE32(plain + 4); in des3_encrypt() 483 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain) in des3_decrypt() argument [all …]
|
| H A D | des_i.h | 18 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt); 19 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain); 22 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt); 23 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain);
|
| H A D | aes_wrap.h | 21 int __must_check aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, 24 const u8 *cipher, u8 *plain); 54 const u8 *plain, size_t plain_len, 61 u8 *plain); 66 size_t M, const u8 *plain, size_t plain_len, 71 u8 *plain);
|
| H A D | aes-ccm.c | 149 size_t M, const u8 *plain, size_t plain_len, in aes_ccm_ae() argument 164 aes_ccm_auth(aes, plain, plain_len, x); in aes_ccm_ae() 168 aes_ccm_encr(aes, L, plain, plain_len, crypt, a); in aes_ccm_ae() 180 const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) in aes_ccm_ad() argument 199 aes_ccm_encr(aes, L, crypt, crypt_len, plain, a); in aes_ccm_ad() 202 aes_ccm_auth(aes, plain, crypt_len, x); in aes_ccm_ad()
|
| H A D | aes-unwrap.c | 27 u8 *plain) in aes_unwrap() argument 36 r = plain; in aes_unwrap() 51 r = plain + (n - 1) * 8; in aes_unwrap()
|
| /netbsd-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | attr_print64.c | 125 static VSTRING *plain; in attr_print64_num() local 127 if (plain == 0) in attr_print64_num() 128 plain = vstring_alloc(10); in attr_print64_num() 130 vstring_sprintf(plain, "%u", num); in attr_print64_num() 131 attr_print64_str(fp, STR(plain), LEN(plain)); in attr_print64_num() 136 static VSTRING *plain; in attr_print64_long_num() local 138 if (plain == 0) in attr_print64_long_num() 139 plain = vstring_alloc(10); in attr_print64_long_num() 141 vstring_sprintf(plain, "%lu", long_num); in attr_print64_long_num() 142 attr_print64_str(fp, STR(plain), LEN(plain)); in attr_print64_long_num()
|
| /netbsd-src/external/bsd/kyua-testers/libexec/kyua-plain-tester/ |
| H A D | Makefile | 9 PROG_CXX= kyua-plain-tester 11 MAN= kyua-plain-tester.1 12 MAN+= kyua-plain-interface.7 24 CLEANFILES+= kyua-plain-tester.1 25 kyua-plain-tester.1: kyua-plain-tester.1.in
|
| /netbsd-src/sys/crypto/skipjack/ |
| H A D | skipjack.c | 134 skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key_tables) in skipjack_forwards() argument 136 u_int8_t wh1 = plain[0]; u_int8_t wl1 = plain[1]; in skipjack_forwards() 137 u_int8_t wh2 = plain[2]; u_int8_t wl2 = plain[3]; in skipjack_forwards() 138 u_int8_t wh3 = plain[4]; u_int8_t wl3 = plain[5]; in skipjack_forwards() 139 u_int8_t wh4 = plain[6]; u_int8_t wl4 = plain[7]; in skipjack_forwards() 201 skipjack_backwards (u_int8_t *cipher, u_int8_t *plain, u_int8_t **key_tables) in skipjack_backwards() argument 261 plain [0] = wh1; plain [1] = wl1; in skipjack_backwards() 262 plain [2] = wh2; plain [3] = wl2; in skipjack_backwards() 263 plain [4] = wh3; plain [5] = wl3; in skipjack_backwards() 264 plain [6] = wh4; plain [7] = wl4; in skipjack_backwards()
|
| /netbsd-src/external/mpl/bind/dist/bin/tests/system/legacy/ns1/ |
| H A D | root.db | 20 plain. NS ns.plain. 21 ns.plain. A 10.53.0.4 22 plain-notcp. NS ns.plain-notcp. 23 ns.plain-notcp. A 10.53.0.5
|
| /netbsd-src/external/bsd/less/dist/lesstest/lt/ |
| H A D | utf8-2.txt.lt | 61 Nicer typography in plain text files: 82 …______________________________________________________Nicer typography in plain text files:_______… 84 …______________________________________________________Nicer typography in plain text files:_______… 86 …______________________________________________________Nicer typography in plain text files:_______… 88 …______________________________________________________Nicer typography in plain text files:_______… 90 …______________________________________________________Nicer typography in plain text files:_______… 92 …______________________________________________________Nicer typography in plain text files:_______… 94 …______________________________________________________Nicer typography in plain text files:_______… 96 …______________________________________________________Nicer typography in plain text files:_______… 98 …______________________________________________________Nicer typography in plain text files:_______… [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| H A D | rd_priv.c | 49 krb5_data plain; in krb5_rd_priv() local 98 &plain); in krb5_rd_priv() 103 ret = decode_EncKrbPrivPart (plain.data, plain.length, &part, &len); in krb5_rd_priv() 104 krb5_data_free (&plain); in krb5_rd_priv()
|
| H A D | aes-test.c | 505 krb5_data *plain, in krb_checksum_iov() argument 513 p = plain->data; in krb_checksum_iov() 514 len = plain->length; in krb_checksum_iov() 751 krb5_data cipher, plain; in krb_enc_test() local 764 plain.length = krbencs[i].plen; in krb_enc_test() 765 plain.data = krbencs[i].pdata; in krb_enc_test() 767 ret = krb_enc(context, crypto, krbencs[i].usage, &cipher, &plain); in krb_enc_test() 772 ret = krb_enc_iov(context, crypto, krbencs[i].usage, &cipher, &plain); in krb_enc_test() 777 cipher.length, &plain); in krb_enc_test() 781 ret = krb_checksum_iov(context, crypto, krbencs[i].usage, &plain, NULL); in krb_enc_test() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | ChangeLog.gimple-classes | 1942 than a plain const_gimple. 2216 gimple_call rather than a plain gimple. 2225 (ipa_note_param_call): Require a gimple_call rather than a plain 2240 * cgraph.h (cgraph_edge::call_stmt): Strengthen field from plain 2253 rather than a plain gimple. 2268 rather than a plain gimple. 2289 rather than a plain gimple. 2297 rather than a plain gimple. 2304 from plain gimple to a gimple_call, and introducing new local 2316 than a plain gimple. [all …]
|
| /netbsd-src/external/mpl/bind/dist/tests/dns/ |
| H A D | name_test.c | 208 unsigned char plain[] = "\x0E\xAD" in ISC_RUN_TEST_IMPL() 261 compress_test(&name1, &name2, &name3, plain, sizeof(plain), plain, in ISC_RUN_TEST_IMPL() 262 sizeof(plain), &cctx, dctx, true); in ISC_RUN_TEST_IMPL() 274 plain, sizeof(plain), &cctx, dctx, true); in ISC_RUN_TEST_IMPL() 285 compress_test(&name1, &name2, &name3, plain, sizeof(plain), plain, in ISC_RUN_TEST_IMPL() 174 unsigned char plain[] = "\003yyy\003foo\0\003bar\003yyy\003foo\0\003" ISC_RUN_TEST_IMPL() local [all...] |
| /netbsd-src/external/bsd/wpa/dist/src/eap_common/ |
| H A D | ikev2_common.c | 176 const u8 *plain, u8 *crypt, size_t len) in ikev2_encr_encrypt() argument 199 if (crypto_cipher_encrypt(cipher, plain, crypt, len) < 0) { in ikev2_encr_encrypt() 211 const u8 *crypt, u8 *plain, size_t len) in ikev2_encr_decrypt() argument 234 if (crypto_cipher_decrypt(cipher, crypt, plain, len) < 0) { in ikev2_encr_decrypt() 532 struct wpabuf *plain, u8 next_payload) in ikev2_build_encrypted() argument 580 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; in ikev2_build_encrypted() 583 wpabuf_put(plain, pad_len); in ikev2_build_encrypted() 584 wpabuf_put_u8(plain, pad_len); in ikev2_build_encrypted() 587 wpabuf_head(plain), wpabuf_mhead(plain), in ikev2_build_encrypted() 588 wpabuf_len(plain)) < 0) in ikev2_build_encrypted() [all …]
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/netpgpverify/ |
| H A D | rsa.c | 64 lowlevel_rsa_private_encrypt(int plainc, const unsigned char *plain, unsigned char *encbuf, NETPGPV… in lowlevel_rsa_private_encrypt() argument 81 memcpy(decbuf, plain, plainc); in lowlevel_rsa_private_encrypt() 103 lowlevel_rsa_public_encrypt(int plainc, const unsigned char *plain, unsigned char *encbuf, NETPGPV_… in lowlevel_rsa_public_encrypt() argument 118 (void) memcpy(decbuf, plain, plainc); in lowlevel_rsa_public_encrypt() 599 netpgpv_RSA_public_encrypt(int plainc, const unsigned char *plain, unsigned char *encbuf, NETPGPV_R… in netpgpv_RSA_public_encrypt() argument 602 if (plain == NULL || encbuf == NULL || rsa == NULL) { in netpgpv_RSA_public_encrypt() 605 return lowlevel_rsa_public_encrypt(plainc, plain, encbuf, rsa); in netpgpv_RSA_public_encrypt() 621 netpgpv_RSA_private_encrypt(int plainc, const unsigned char *plain, unsigned char *encbuf, NETPGPV_… in netpgpv_RSA_private_encrypt() argument 624 if (plain == NULL || encbuf == NULL || rsa == NULL) { in netpgpv_RSA_private_encrypt() 627 return lowlevel_rsa_private_encrypt(plainc, plain, encbuf, rsa); in netpgpv_RSA_private_encrypt()
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/librsa/ |
| H A D | rsa.c | 64 lowlevel_rsa_private_encrypt(int plainc, const unsigned char *plain, unsigned char *encbuf, RSA *rs… in lowlevel_rsa_private_encrypt() argument 81 memcpy(decbuf, plain, plainc); in lowlevel_rsa_private_encrypt() 103 lowlevel_rsa_public_encrypt(int plainc, const unsigned char *plain, unsigned char *encbuf, RSA *rsa) in lowlevel_rsa_public_encrypt() argument 118 (void) memcpy(decbuf, plain, plainc); in lowlevel_rsa_public_encrypt() 597 RSA_public_encrypt(int plainc, const unsigned char *plain, unsigned char *encbuf, RSA *rsa, int pad… in RSA_public_encrypt() argument 600 if (plain == NULL || encbuf == NULL || rsa == NULL) { in RSA_public_encrypt() 603 return lowlevel_rsa_public_encrypt(plainc, plain, encbuf, rsa); in RSA_public_encrypt() 619 RSA_private_encrypt(int plainc, const unsigned char *plain, unsigned char *encbuf, RSA *rsa, int pa… in RSA_private_encrypt() argument 622 if (plain == NULL || encbuf == NULL || rsa == NULL) { in RSA_private_encrypt() 625 return lowlevel_rsa_private_encrypt(plainc, plain, encbuf, rsa); in RSA_private_encrypt()
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| H A D | rc2test.c | 45 const void *plain; member 133 memcpy(t, tests[i].plain, 8); in main() 140 if (memcmp(t, tests[i].plain, 8) != 0) { in main()
|
| /netbsd-src/external/lgpl3/gmp/dist/mpn/generic/ |
| H A D | div_qr_1.c | 74 plain: in mpn_div_qr_1() 96 goto plain; in mpn_div_qr_1() 118 goto plain; in mpn_div_qr_1()
|