/freebsd-src/crypto/openssl/test/recipes/30-test_evp_data/ |
H A D | evppkey_ecdsa.txt | 2 # Copyright 2001-2024 The OpenSSL Project Authors. All Rights Reserved. 19 # EC P-256 key 21 PrivateKey=P-256 22 --- [all...] |
H A D | evppkey_mismatch.txt | 2 # Copyright 2001-2020 The OpenSSL Project Authors. All Rights Reserved. 17 PrivateKey=Alice-25519 18 -----BEGIN PRIVATE KEY----- 20 -----END PRIVATE KEY----- 22 PrivateKey=Alice-448 23 -----BEGIN PRIVATE KEY----- 26 -----END PRIVATE KEY----- 28 PublicKey=P-256-PUBLIC 29 -----BEGIN PUBLIC KEY----- 32 -----END PUBLIC KEY----- [all …]
|
/freebsd-src/contrib/bc/tests/bc/ |
H A D | lib2.txt | 1 p(2, 8.0000) 2 p(2, 8.0001) 3 p(2, -8.0001) 4 p(1024,32.1) 18 r(-1, 0) 19 r(-1, 3) 20 r(-1.4, 0) 21 r(-1.5, 0) 22 r(-34.45, 2) 23 r(-64.1223, 4) [all …]
|
/freebsd-src/crypto/heimdal/lib/asn1/ |
H A D | der_put.c | 2 * Copyright (c) 1997-2005 Kungliga Tekniska Högskolan 39 * All encoding functions take a pointer `p' to first position in 42 * the number of characters written in `size' (if non-NULL). 47 der_put_unsigned (unsigned char *p, size_t len, const unsigned *v, size_t *size) in der_put_unsigned() argument 49 unsigned char *base = p; in der_put_unsigned() 54 *p-- = val % 256; in der_put_unsigned() 55 val /= 256; in der_put_unsigned() 56 --len; in der_put_unsigned() 61 if(p[1] >= 128) { in der_put_unsigned() 64 *p-- = 0; in der_put_unsigned() [all …]
|
/freebsd-src/crypto/openssl/test/ssl-tests/ |
H A D | 20-cert-select.cnf.in | 1 # -*- mode: perl; -*- 16 "ECDSA.Certificate" => test_pem("server-ecdsa-cert.pem"), 17 "ECDSA.PrivateKey" => test_pem("server-ecdsa-key.pem"), 18 "Ed25519.Certificate" => test_pem("server-ed25519-cert.pem"), 19 "Ed25519.PrivateKey" => test_pem("server-ed25519-key.pem"), 20 "Ed448.Certificate" => test_pem("server-ed448-cert.pem"), 21 "Ed448.PrivateKey" => test_pem("server-ed448-key.pem"), 26 "PSS.Certificate" => test_pem("server-pss-cert.pem"), 27 "PSS.PrivateKey" => test_pem("server-pss-key.pem"), 28 "ECDSA.Certificate" => test_pem("server-ecdsa-cert.pem"), [all …]
|
H A D | 14-curves.cnf | 5 test-0 = 0-curve-prime256v1 6 test-1 = 1-curve-secp384r1 7 test-2 = 2-curve-secp521r1 8 test-3 = 3-curve-X25519 9 test-4 = 4-curve-X448 10 test-5 = 5-curve-ffdhe2048 11 test-6 = 6-curve-ffdhe3072 12 test-7 = 7-curve-ffdhe4096 13 test-8 = 8-curve-ffdhe6144 14 test-9 = 9-curve-ffdhe8192 [all …]
|
/freebsd-src/tests/sys/geom/class/eli/ |
H A D | testvect.h | 1 /* Test Vectors for PBKDF2-SHA512 */ 3 …n\371\300!tp\367\257\347c'\000\243F\246\376\274H\263\312m\336\304\3515P\222Cb\037-\313W\0067\232\0… 4 …356?alD\231I[%A\372\367\027\267,\303\022\324\004\302a\302t\257\306S\251\250;-pa\246Z\200\003*+\026… 5 …\223eS:\015\311\023\317\230O\012\347\014\32070\321\337p\353\305\361\223\323\333&\011'\360?\022\374… 7 …247\016\343\246\353\300\373\267\335\314h\216\245$\373\210\214\014b\340\377\256\0202E", 100, "a\274… 8 …:\355\262]\337\361JUe:\350|#D\262\335)\260\333\273\221\252\005\226\322'\371+a\270a\302\276p", 64 }, 9 …P\012\035\262\235", 8, "\375 \232J\304\271_\272\033\027\363\021\227\260\323\310\304k\004.\327\354\… 10 …p\314\334\005O,\374\225\234\014\266\365\030i6\210a\205", 100, "\220\006\216\2420-8m\2766\353(6\212… 11 …\314!`\015d\316\370L{\201B\245\317\366@V\036\227\273I\205\251\306GW\200*\340P\267\202#\354\330\266… 13 …{ "\246<\216\226^F\004\036", 8, "\344].\210\212\236\252f\256n\006\250\2615\325\371", 200, "\213J\2… [all …]
|
/freebsd-src/contrib/bearssl/src/ec/ |
H A D | ec_p256_m64.c | 75 * A field element is encoded as four 64-bit integers, in basis 2^64. 76 * Values may reach up to 2^256-1. Montgomery multiplication is used. 79 /* R = 2^256 mod p */ 85 /* Curve equation is y^2 = x^3 - 3*x + B. This constant is B*R mod p 116 * Fold carry t, using: 2^256 = 2^224 - 2^192 - 2^96 + 1 mod p. in f256_add() 120 w = (unsigned __int128)d[1] + (w >> 64) - (t << 32); in f256_add() 122 /* Here, carry "w >> 64" can only be 0 or -1 */ in f256_add() 123 w = (unsigned __int128)d[2] - ((w >> 64) & 1); in f256_add() 125 /* Again, carry is 0 or -1. But there can be carry only if t = 1, in f256_add() 126 in which case the addition of (t << 32) - t is positive. */ in f256_add() [all …]
|
H A D | ec_p256_m31.c | 29 * that right-shifting a signed negative integer copies the sign bit 30 * (arithmetic right-shift). This is "implementation-defined behaviour", 39 | ((-((uint32_t)(x) >> 31)) << (32 - (n)))) 41 | ((-((uint64_t)(x) >> 63)) << (64 - (n)))) 48 * Convert an integer from unsigned big-endian encoding to a sequence of 49 * 30-bit words in little-endian order. The final "partial" word is 60 while (len -- > 0) { in be8_to_le30() 69 acc = b >> (30 - acc_len); in be8_to_le30() 70 acc_len -= 22; in be8_to_le30() 77 * Convert an integer (30-bit words, little-endian) to unsigned [all …]
|
/freebsd-src/secure/usr.bin/openssl/man/ |
H A D | openssl-enc.1 | 18 .\" Set up some character translations and predefined strings. \*(-- will 24 .tr \(*W- 27 . ds -- \(*W- 29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch 30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch 37 . ds -- \|\(em\| 38 . ds PI \(*p 71 .\" Fear. Run. Save yourself. No user-serviceable parts. 81 . ds #H ((1u-(\\\\n(.fu%2u))*.13m) 97 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" [all …]
|
/freebsd-src/sbin/setkey/ |
H A D | sample.cf | 36 # Host-A and Host-B. Encryption algorithm is aes-cbc whose key 38 # hmac-sha2-512 whose key is "this is the test key". 42 # Host-A Host-B 43 # fec0::10 -------------------- fec0::11 45 # At Host-A and Host-B, 46 spdadd fec0::10[any] fec0::11[110] tcp -P out ipsec 48 spdadd fec0::11[110] fec0::10[any] tcp -P in ipsec 51 -m transport 52 -E aes-cbc "kamekamekamekamekamekamekamekame" 53 -A hmac-sha2-512 "this is the test key" ; [all …]
|
H A D | setkey.8 | 77 .Bl -tag -width indent 81 .Fl P , 86 .Fl P , 92 .Fl P 98 .Fl P 133 .Bl -tag -width indent 200 .Ar src_range Ar dst_range Ar upperspec Fl P Ar direction 223 Meta-argument [all...] |
/freebsd-src/contrib/bearssl/test/x509/ |
H A D | alltests.txt | 2 ; root -> ica1 -> ica2 -> ee 4 ; "ee" is "end-entity", i.e. the client or server certificate itself 7 ; as a self-signed certificate. 10 name = root-rsa2048 16 name = root-p256 18 curve = P-256 22 name = root-p384 24 curve = P-384 28 name = root-p521 30 curve = P-521 [all …]
|
/freebsd-src/crypto/openssl/demos/certs/apps/ |
H A D | mkxcerts.sh | 2 # Create certificates using various algorithms to test multi-certificate 6 CN="OpenSSL Test RSA SHA-1 cert" $OPENSSL req \ 7 -config apps.cnf -extensions usr_cert -x509 -nodes \ 8 -keyout tsha1.pem -out tsha1.pem -new -days 3650 -sha1 9 CN="OpenSSL Test RSA SHA-256 cert" $OPENSSL req \ 10 -config apps.cnf -extensions usr_cert -x509 -nodes \ 11 -keyout tsha256.pem -out tsha256.pem -new -days 3650 -sha256 12 CN="OpenSSL Test RSA SHA-512 cert" $OPENSSL req \ 13 -config apps.cnf -extensions usr_cert -x509 -nodes \ 14 -keyout tsha512.pem -out tsha512.pem -new -days 3650 -sha512 [all …]
|
/freebsd-src/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_cpio.c | 1 /*- 2 * Copyright (c) 2003-2007 Tim Kientzle 3 * Copyright (c) 2010-2012 Michihiro NAKAJIMA 233 archive_set_error(&a->archive, ENOMEM, "Can't allocate cpio data"); in archive_read_support_format_cpio() 236 cpio->magic = CPIO_MAGIC; in archive_read_support_format_cpio() 260 const unsigned char *p; in archive_read_format_cpio_bid() local 266 cpio = (struct cpio *)(a->format->data); in archive_read_format_cpio_bid() 268 if ((p = __archive_read_ahead(a, 6, NULL)) == NULL) in archive_read_format_cpio_bid() 269 return (- in archive_read_format_cpio_bid() 518 is_hex(const char * p,size_t len) is_hex() argument 535 const char *p, *q; find_newc_header() local 669 is_octal(const char * p,size_t len) is_octal() argument 704 const char *p, *q; find_odc_header() local 985 le4(const unsigned char * p) le4() argument 992 be4(const unsigned char * p) be4() argument 1003 atol8(const char * p,unsigned char_cnt) atol8() argument 1022 atol16(const char * p,unsigned char_cnt) atol16() argument [all...] |
H A D | archive_ppmd7_private.h | 1 /* Ppmd7.h -- PPMdH compression codec 2 2010-03-12 : Igor Pavlov : Public domain 22 #define PPMD7_MAX_MEM_SIZE (0xFFFFFFFFu - 12 * 3) 42 #define Ppmd7Context_OneState(p) ((CPpmd_State *)&(p)->SummFreq) argument 49 Int32 RunLength, InitRL; /* must be 32-bit at least */ 59 Byte NS2Indx[256], NS2BSIndx[256], HB2Flag[256]; 64 /* ---------- Decode ---------- */ 68 UInt32 (*GetThreshold)(void *p, UInt32 total); 69 void (*Decode)(void *p, UInt32 start, UInt32 size); 70 UInt32 (*DecodeBit)(void *p, UInt32 size0); [all …]
|
/freebsd-src/contrib/ofed/infiniband-diags/src/ |
H A D | iblinkinfo.c | 2 * Copyright (c) 2004-2009 Voltaire Inc. All rights reserved. 17 * - Redistributions of source code must retain the above 21 * - Redistributions in binary form must reproduce the above 89 fsw = ibnd_find_node_guid(filterdownports_fabric, node->guid); in filterdownport_check() 94 if (port->portnum > fsw->numports) in filterdownport_check() 97 fport = fsw->ports[port->portnum]; in filterdownport_check() 102 fistate = mad_get_field(fport->info, 0, IB_PORT_STATE_F); in filterdownport_check() 110 char remote_guid_str[256]; in print_port() 111 char remote_str[256]; in print_port() 112 char link_str[256]; in print_port() [all …]
|
/freebsd-src/sys/contrib/zlib/ |
H A D | crc32.c | 1 /* crc32.c -- compute the CRC-32 of a data stream 2 * Copyright (C) 1995-2022 Mark Adler 6 * arithmetic-logic units, commonly found in modern CPU cores. It is due to 7 * Kadatch and Jenkins (2010). See doc/crc-doc.1.0.pdf in this distribution. 14 protection on the static variables used to control the first-use generation 46 Lake i7, AMD Ryzen 7, ARM Cortex-A57, Sparc64-VII, PowerPC POWER9, and MIPS64 49 They were all tested with either gcc or clang, all using the -O3 optimization 75 # if Z_TESTW-1 != -1 109 self-respecting compiler will optimize this to a single machine byte-swap 136 * Table of powers of x for combining CRC-32s, filled in by make_crc_table() [all …]
|
/freebsd-src/contrib/llvm-project/clang/lib/Headers/ |
H A D | sm4intrin.h | 1 /*===--------------- sm4intrin.h - SM4 intrinsics -----------------=== 5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 *===-----------------------------------------------------------------------=== 18 /// operates on independent 128-bit lanes. The calculated results are 29 /// A 128-bit vector of [4 x int]. 31 /// A 128-bit vector of [4 x int]. 33 /// A 128-bit vector of [4 x int]. 38 /// dest := (dword << count) | (dword >> (32-count)) 61 /// P[0] := __B.xmm[i].dword[0] 62 /// P[1] := __B.xmm[i].dword[1] [all …]
|
/freebsd-src/contrib/cortex-strings/benchmarks/multi/ |
H A D | harness.c | 69 a total of 256 lines. Read randomly from 256*5 places should in empty() 71 int offset = (1024 - 256)*1024; in empty() 125 ((char *)src)[n-1] = 32; in xstrchr() 133 ((char *)src)[n-1] = 32; in xmemchr() 156 …"usage: %s [-c block-size] [-l loop-count] [-a alignment|src_alignment:dst_alignment] [-f] [-t tes… in usage() 161 for (const struct test *ptest = tests; ptest->name != NULL; ptest++) in usage() 163 printf(" %s", ptest->name); in usage() 168 exit(-1); in usage() 180 for (const struct test *p = tests; p->name != NULL; p++) in find_test() local 182 if (strcmp(p->name, name) == 0) in find_test() [all …]
|
/freebsd-src/crypto/openssl/test/recipes/ |
H A D | 70-test_key_share.t | 2 # Copyright 2015-2022 The OpenSSL Project Authors. All Rights Reserved. 56 if disabled("engine") || disabled("dynamic-engine"); 69 my $proxy = TLSProxy::Proxy->new( 82 $proxy->filter(\&modify_key_shares_filter); 84 $proxy->serverflags("-groups ffdhe3072"); 86 $proxy->serverflags("-groups P-256"); 88 $proxy->start() or plan skip_all => "Unable to start up Proxy for tests"; 90 ok(TLSProxy::Message->success(), "Success after HRR"); 94 $proxy->clear(); 95 $proxy->start(); [all …]
|
/freebsd-src/sys/compat/linux/ |
H A D | linux_util.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 87 /* Do not prevent execution if altroot is non-existent. */ in linux_pwd_onexec() 108 struct proc *p; in linux_msg() local 113 p = td->td_proc; in linux_msg() 114 printf("linux: jid %d pid %d (%s): ", p->p_ucred->cr_prison->pr_id, in linux_msg() 115 (int)p->p_pid, p->p_comm); in linux_msg() 145 if (strcmp(device_name, de->entry.bsd_driver_name) == 0) in linux_driver_get_name_dev() 146 return (de->entry.linux_driver_name); in linux_driver_get_name_dev() 162 sz = sizeof("pts/") - 1; in linux_driver_get_major_minor() [all …]
|
/freebsd-src/crypto/openssl/doc/man1/ |
H A D | openssl-enc.pod.in | 2 {- OpenSSL::safe::output_do_not_edit_headers(); -} 6 openssl-enc - symmetric cipher routines 11 [B<-I<cipher>>] 12 [B<-help>] 13 [B<-list>] 14 [B<-ciphers>] 15 [B<-in> I<filename>] 16 [B<-ou [all...] |
/freebsd-src/contrib/bearssl/tools/ |
H A D | names.c | 39 { "sha1", &br_sha1_vtable, "SHA-1" }, 40 { "sha224", &br_sha224_vtable, "SHA-224" }, 41 { "sha256", &br_sha256_vtable, "SHA-256" }, 42 { "sha384", &br_sha384_vtable, "SHA-384" }, 43 { "sha512", &br_sha512_vtable, "SHA-512" }, 65 "ECDHE with ECDSA, AES-128/GCM encryption (TLS 1.2+)" 71 "ECDHE with RSA, AES-128/GCM encryption (TLS 1.2+)" 77 "ECDHE with ECDSA, AES-256/GCM encryption (TLS 1.2+)" 83 "ECDHE with RSA, AES-256/GCM encryption (TLS 1.2+)" 89 "ECDHE with ECDSA, AES-128/CCM encryption (TLS 1.2+)" [all …]
|
/freebsd-src/sys/contrib/libsodium/test/default/ |
H A D | pwhash_argon2id.c | 81 char passwd[256]; in tv() 83 unsigned char out[256]; in tv() 84 char out_hex[256 * 2 + 1]; in tv() 133 char passwd[256]; in tv2() 135 unsigned char out[256]; in tv2() 136 char out_hex[256 * 2 + 1]; in tv2() 157 1ULL << 12, 0) != -1) { in tv2() 161 1, crypto_pwhash_argon2id_alg_argon2id13()) != -1) { in tv2() 165 1ULL << 12, crypto_pwhash_argon2id_alg_argon2id13()) != -1) { in tv2() 169 1ULL << 12, crypto_pwhash_argon2id_alg_argon2id13()) != -1) { in tv2() [all …]
|