Home
last modified time | relevance | path

Searched +full:p +full:- +full:256 (Results 1 – 25 of 1071) sorted by relevance

12345678910>>...43

/freebsd/crypto/openssl/test/recipes/30-test_evp_data/
H A Devppkey_ecdsa.txt2 # Copyright 2001-2024 The OpenSSL Project Authors. All Rights Reserved.
19 # EC P-256 key
21 PrivateKey=P-256
22 -----BEGIN PRIVATE KEY-----
26 -----END PRIVATE KEY-----
30 PublicKey=P-256-PUBLIC
31 -----BEGIN PUBLIC KEY-----
34 -----END PUBLIC KEY-----
36 PrivPubKeyPair = P-256:P-256-PUBLIC
40 Verify = P-256
[all …]
H A Devppkey_mismatch.txt2 # 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/contrib/bc/tests/bc/
H A Dlib2.txt1 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/crypto/openssl/test/ssl-tests/
H A D20-cert-select.cnf.in1 # -*- 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-cer
[all...]
H A D14-curves.cnf5 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/tests/sys/geom/class/eli/
H A Dtestvect.h1 /* 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 },
9P\012\035\262\235", 8, "\375 \232J\304\271_\272\033\027\363\021\227\260\323\310\304k\004.\327\354\…
10p\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/contrib/bearssl/src/ec/
H A Dec_p256_m64.c75 * 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 Dec_p256_m31.c29 * 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/crypto/heimdal/lib/asn1/
H A Dder_put.c2 * 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()
79 der_put_integer(unsigned char * p,size_t len,const int * v,size_t * size) der_put_integer() argument
120 der_put_length(unsigned char * p,size_t len,size_t val,size_t * size) der_put_length() argument
147 der_put_boolean(unsigned char * p,size_t len,const int * data,size_t * size) der_put_boolean() argument
160 der_put_general_string(unsigned char * p,size_t len,const heim_general_string * str,size_t * size) der_put_general_string() argument
174 der_put_utf8string(unsigned char * p,size_t len,const heim_utf8_string * str,size_t * size) der_put_utf8string() argument
181 der_put_printable_string(unsigned char * p,size_t len,const heim_printable_string * str,size_t * size) der_put_printable_string() argument
188 der_put_ia5_string(unsigned char * p,size_t len,const heim_ia5_string * str,size_t * size) der_put_ia5_string() argument
195 der_put_bmp_string(unsigned char * p,size_t len,const heim_bmp_string * data,size_t * size) der_put_bmp_string() argument
212 der_put_universal_string(unsigned char * p,size_t len,const heim_universal_string * data,size_t * size) der_put_universal_string() argument
231 der_put_visible_string(unsigned char * p,size_t len,const heim_visible_string * str,size_t * size) der_put_visible_string() argument
238 der_put_octet_string(unsigned char * p,size_t len,const heim_octet_string * data,size_t * size) der_put_octet_string() argument
250 der_put_heim_integer(unsigned char * p,size_t len,const heim_integer * data,size_t * size) der_put_heim_integer() argument
302 der_put_generalized_time(unsigned char * p,size_t len,const time_t * data,size_t * size) der_put_generalized_time() argument
322 der_put_utctime(unsigned char * p,size_t len,const time_t * data,size_t * size) der_put_utctime() argument
342 der_put_oid(unsigned char * p,size_t len,const heim_oid * data,size_t * size) der_put_oid() argument
372 der_put_tag(unsigned char * p,size_t len,Der_class class,Der_type type,unsigned int tag,size_t * size) der_put_tag() argument
403 der_put_length_and_tag(unsigned char * p,size_t len,size_t len_val,Der_class class,Der_type type,unsigned int tag,size_t * size) der_put_length_and_tag() argument
451 der_put_bit_string(unsigned char * p,size_t len,const heim_bit_string * data,size_t * size) der_put_bit_string() argument
[all...]
/freebsd/secure/usr.bin/openssl/man/
H A Dopenssl-enc.118 .\" 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/sbin/setkey/
H A Dsample.cf36 # 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 Dsetkey.877 .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-arguments are as follows:
225 .Bl -tag -compact -width indent
254 .Bl -tag -width Fl -compact
[all …]
/freebsd/contrib/bearssl/test/x509/
H A Dalltests.txt2 ; 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/contrib/libarchive/libarchive/
H A Darchive_read_support_format_cpio.c1 /*-
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 (-1); in archive_read_format_cpio_bid()
272 if (memcmp(p, "070707", 6) == 0) { in archive_read_format_cpio_bid()
[all …]
H A Darchive_ppmd7_private.h1 /* 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/contrib/ofed/infiniband-diags/src/
H A Diblinkinfo.c2 * 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/crypto/openssl/demos/certs/apps/
H A Dmkxcerts.sh2 # 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/sys/contrib/zlib/
H A Dcrc32.c1 /* 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/contrib/llvm-project/clang/lib/Headers/
H A Dsm4intrin.h1 /*===--------------- 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/contrib/cortex-strings/benchmarks/multi/
H A Dharness.c69 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/crypto/openssl/test/recipes/
H A D70-test_key_share.t2 # 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/sys/compat/linux/
H A Dlinux_util.c1 /*-
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_pwd_onexec_native()
113 p = td->td_proc; in linux_msg()
114 printf("linux: jid %d pid %d (%s): ", p in linux_msg()
116 struct proc *p; linux_msg() local
[all...]
/freebsd/crypto/openssl/doc/man1/
H A Dopenssl-enc.pod.in2 {- 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<-out> I<filename>]
17 [B<-pass> I<arg>]
18 [B<-e>]
[all …]
/freebsd/contrib/bearssl/tools/
H A Dnames.c39 { "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/contrib/pf/ftp-proxy/
H A Dftp-proxy.c1 /* $OpenBSD: ftp-proxy.c,v 1.19 2008/06/13 07:25:26 claudio Exp $ */
136 logmsg(LOG_INFO, "#%d client close", s->id); in client_error()
138 logmsg(LOG_ERR, "#%d client reset connection", s->id); in client_error()
140 logmsg(LOG_ERR, "#%d client timeout", s->id); in client_error()
142 logmsg(LOG_ERR, "#%d client write error: %d", s->id, what); in client_error()
144 logmsg(LOG_ERR, "#%d abnormal client error: %d", s->id, what); in client_error()
153 s->cmd = CMD_NONE; in client_parse()
154 s->port = 0; in client_parse()
160 if (linebuf[0] == 'P' || linebuf[0] == 'p' || in client_parse()
171 if (s->cmd == CMD_PORT || s->cmd == CMD_EPRT) in client_parse()
[all …]

12345678910>>...43