Home
last modified time | relevance | path

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

12345678910>>...46

/freebsd/crypto/openssl/test/recipes/30-test_evp_data/
H A Devppkey_ecdsa.txt2 # Copyright 2001-2025 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-PUBLIC
[all …]
H A Devppkey_ecdsa_sigalg.txt19 # 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
41 Verify = ECDSA-SHA1:P-256-PUBLIC
47 Verify = ECDSA-SHA1:P-256-PUBLIC
[all …]
H A Devppkey_ecdsa_rfc6979.txt15 Title = RFC 6979 P-192 deterministic ECDSA tests
17 PrivateKey=P-192_PRIV
18 -----BEGIN PRIVATE KEY-----
21 -----END PRIVATE KEY-----
23 PublicKey=P-192_PUB
24 -----BEGIN PUBLIC KEY-----
27 -----END PUBLIC KEY-----
29 PrivPubKeyPair=P-192_PRIV:P-192_PUB
32 Key = P-192_PRIV
38 Key = P-192_PUB
[all …]
H A Devppkey_mismatch_ecx.txt2 # Copyright 2001-2023 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/crypto/openssl/test/ssl-tests/
H A D20-cert-select.cnf.in1 # -*- mode: perl; -*-
23 $alg =~ s{([a-zA-Z])}{chr(ord($1)^(int(rand(2.0)) * 32))}eg;
30 "ECDSA.Certificate" => test_pem("server-ecdsa-cert.pem"),
31 "ECDSA.PrivateKey" => test_pem("server-ecdsa-key.pem"),
32 "Ed25519.Certificate" => test_pem("server-ed25519-cert.pem"),
33 "Ed25519.PrivateKey" => test_pem("server-ed25519-key.pem"),
34 "Ed448.Certificate" => test_pem("server-ed448-cert.pem"),
35 "Ed448.PrivateKey" => test_pem("server-ed448-key.pem"),
40 "PSS.Certificate" => test_pem("server-pss-cert.pem"),
41 "PSS.PrivateKey" => test_pem("server-pss-key.pem"),
[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/crypto/openssl/crypto/slh_dsa/
H A Dslh_params.c2 * Copyright 2024-2025 The OpenSSL Project Authors. All Rights Reserved.
98 …{"SLH-DSA-SHA2-128s", NID_SLH_DSA_SHA2_128s, 0, OSSL_SLH_PARAMS(128S), OSSL_SLH_DSA_SHA2_NUM_ZER…
99 {"SLH-DSA-SHAKE-128s", NID_SLH_DSA_SHAKE_128s, 1, OSSL_SLH_PARAMS(128S)},
100 …{"SLH-DSA-SHA2-128f", NID_SLH_DSA_SHA2_128f, 0, OSSL_SLH_PARAMS(128F), OSSL_SLH_DSA_SHA2_NUM_ZER…
101 {"SLH-DSA-SHAKE-128f", NID_SLH_DSA_SHAKE_128f, 1, OSSL_SLH_PARAMS(128F)},
102 …{"SLH-DSA-SHA2-192s", NID_SLH_DSA_SHA2_192s, 0, OSSL_SLH_PARAMS(192S), OSSL_SLH_DSA_SHA2_NUM_ZER…
103 {"SLH-DSA-SHAKE-192s", NID_SLH_DSA_SHAKE_192s, 1, OSSL_SLH_PARAMS(192S)},
104 …{"SLH-DSA-SHA2-192f", NID_SLH_DSA_SHA2_192f, 0, OSSL_SLH_PARAMS(192F), OSSL_SLH_DSA_SHA2_NUM_ZER…
105 {"SLH-DSA-SHAKE-192f", NID_SLH_DSA_SHAKE_192f, 1, OSSL_SLH_PARAMS(192F)},
106 …{"SLH-DSA-SHA2-256s", NID_SLH_DSA_SHA2_256s, 0, OSSL_SLH_PARAMS(256S), OSSL_SLH_DSA_SHA2_NUM_ZER…
[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/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/libarchive/libarchive/
H A Darchive_read_support_format_cpio.c1 /*-
2 * Copyright (c) 2003-2007 Tim Kientzle
3 * Copyright (c) 2010-2012 Michihiro NAKAJIMA
234 archive_set_error(&a->archive, ENOMEM, "Can't allocate cpio data"); in archive_read_support_format_cpio()
237 cpio->magic = CPIO_MAGIC; in archive_read_support_format_cpio()
261 const unsigned char *p; in archive_read_format_cpio_bid() local
267 cpio = (struct cpio *)(a->format->data); in archive_read_format_cpio_bid()
269 if ((p = __archive_read_ahead(a, 6, NULL)) == NULL) in archive_read_format_cpio_bid()
270 return (-1); in archive_read_format_cpio_bid()
273 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/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/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/secure/usr.bin/openssl/man/
H A Dopenssl-enc.11 .\" -*- mode: troff; coding: utf-8 -*-
57 .IX Title "OPENSSL-ENC 1ossl"
58 .TH OPENSSL-ENC 1ossl 2025-09-30 3.5.4 OpenSSL
64 openssl\-enc \- symmetric cipher routines
68 [\fB\-\fR\f(BIcipher\fR]
69 [\fB\-help\fR]
70 [\fB\-list\fR]
71 [\fB\-ciphers\fR]
72 [\fB\-in\fR \fIfilename\fR]
73 [\fB\-out\fR \fIfilename\fR]
[all …]
/freebsd/crypto/openssl/test/recipes/
H A D70-test_key_share.t2 # Copyright 2015-2025 The OpenSSL Project Authors. All Rights Reserved.
56 if disabled("engine") || disabled("dynamic-engine");
67 my $proxy = TLSProxy::Proxy->new(
80 $proxy->filter(\&modify_key_shares_filter);
82 $proxy->serverflags("-groups ffdhe3072");
84 $proxy->serverflags("-groups P-384");
86 $proxy->start() or plan skip_all => "Unable to start up Proxy for tests";
88 ok(TLSProxy::Message->success(), "Success after HRR");
92 $proxy->clear();
93 $proxy->start();
[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/crypto/openssl/demos/certs/apps/
H A Dmkxcerts.sh3 # Create certificates using various algorithms to test multi-certificate
12 CN="OpenSSL Test RSA SHA-1 cert" opensslcmd req \
13 -config apps.cnf -extensions usr_cert -x509 -nodes \
14 -keyout tsha1.pem -out tsha1.pem -new -days 3650 -sha1
15 CN="OpenSSL Test RSA SHA-256 cert" opensslcmd req \
16 -config apps.cnf -extensions usr_cert -x509 -nodes \
17 -keyout tsha256.pem -out tsha256.pem -new -days 3650 -sha256
18 CN="OpenSSL Test RSA SHA-512 cert" opensslcmd req \
19 -config apps.cnf -extensions usr_cert -x509 -nodes \
20 -keyout tsha512.pem -out tsha512.pem -new -days 3650 -sha512
[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/crypto/krb5/src/util/et/
H A Det_h.awk19 c2n["P"]=16
45 c2n["p"]=42
69 /^[ \t]*(error_table|et)[ \t]+[a-zA-Z][a-zA-Z0-9_]+/ {
82 # figure out: table_number_base=table_number*256
83 tab_base_low = tab_base_low * 256
84 tab_base_high = (tab_base_high * 256) + int(tab_base_low / mod_base)
87 if (table_number > 128*256*256) {
88 # figure out: table_number_base -= 256*256*256*256
89 # sub_high, sub_low is 256*256*256*256
90 sub_low = 256*256*256 % mod_base
[all …]
/freebsd/crypto/openssl/test/
H A Devp_pkey_dhkem_test.c2 * Copyright 2022-2025 The OpenSSL Project Authors. All Rights Reserved.
45 TEST_note("Test %s %s Decapsulate", t->curve, in test_dhkem_encapsulate()
46 t->spriv != NULL ? "Auth" : ""); in test_dhkem_encapsulate()
48 if (!TEST_ptr(rpub = new_raw_public_key(t->curve, t->rpub, t->rpublen))) in test_dhkem_encapsulate()
51 if (t->spriv != NULL) { in test_dhkem_encapsulate()
52 if (!TEST_ptr(spriv = new_raw_private_key(t->curve, in test_dhkem_encapsulate()
53 t->spriv, t->sprivlen, in test_dhkem_encapsulate()
54 t->spub, t->spublen))) in test_dhkem_encapsulate()
71 TEST_note("Test %s %s Decapsulate", t->curve, t->spub != NULL ? "Auth" : ""); in test_dhkem_decapsulate()
73 if (!TEST_ptr(rpriv = new_raw_private_key(t->curve, t->rpriv, t->rprivlen, in test_dhkem_decapsulate()
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_util.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
86 /* Do not prevent execution if altroot is non-existent. */ in linux_pwd_onexec()
107 struct proc *p; in linux_msg() local
112 p = td->td_proc; in linux_msg()
113 printf("linux: jid %d pid %d (%s): ", p->p_ucred->cr_prison->pr_id, in linux_msg()
114 (int)p->p_pid, p->p_comm); in linux_msg()
144 if (strcmp(device_name, de->entry.bsd_driver_name) == 0) in linux_driver_get_name_dev()
145 return (de->entry.linux_driver_name); in linux_driver_get_name_dev()
161 sz = sizeof("pts/") - 1; in linux_driver_get_major_minor()
[all …]

12345678910>>...46