| /freebsd/crypto/openssl/include/internal/ |
| H A D | safe_math.h | 2 * Copyright 2021-2022 The OpenSSL Project Authors. All Rights Reserved. 34 # define OSSL_SAFE_MATH_ADDS(type_name, type, min, max) \ argument 35 static ossl_inline ossl_unused type safe_add_ ## type_name(type a, \ 36 type b, \ 39 type r; \ 41 if (!__builtin_add_overflow(a, b, &r)) \ 47 # define OSSL_SAFE_MATH_ADDU(type_name, type, max) \ argument 48 static ossl_inline ossl_unused type safe_add_ ## type_name(type a, \ 49 type b, \ 52 type r; \ [all …]
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | DEFINE_STACK_OF.pod | 21 - stack container 29 STACK_OF(TYPE) 30 DEFINE_STACK_OF(TYPE) 31 DEFINE_STACK_OF_CONST(TYPE) 32 DEFINE_SPECIAL_STACK_OF(FUNCTYPE, TYPE) 33 DEFINE_SPECIAL_STACK_OF_CONST(FUNCTYPE, TYPE) 35 typedef int (*sk_TYPE_compfunc)(const TYPE *const *a, const TYPE *const *b); 36 typedef TYPE * (*sk_TYPE_copyfunc)(const TYPE *a); 37 typedef void (*sk_TYPE_freefunc)(TYPE *a); 39 int sk_TYPE_num(const STACK_OF(TYPE) *sk); [all …]
|
| H A D | d2i_RSAPrivateKey.pod | 65 - DEPRECATED 72 hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value, 75 TYPE *d2i_TYPEPrivateKey(TYPE **a, const unsigned char **ppin, long length); 76 TYPE *d2i_TYPEPrivateKey_bio(BIO *bp, TYPE **a); 77 TYPE *d2i_TYPEPrivateKey_fp(FILE *fp, TYPE **a); 78 TYPE *d2i_TYPEPublicKey(TYPE **a, const unsigned char **ppin, long length); 79 TYPE *d2i_TYPEPublicKey_bio(BIO *bp, TYPE **a); 80 TYPE *d2i_TYPEPublicKey_fp(FILE *fp, TYPE **a); 81 TYPE *d2i_TYPEparams(TYPE **a, const unsigned char **ppin, long length); 82 TYPE *d2i_TYPEparams_bio(BIO *bp, TYPE **a); [all …]
|
| H A D | OPENSSL_LH_COMPFUNC.pod | 18 - dynamic hash table 26 LHASH_OF(TYPE) 28 DEFINE_LHASH_OF_EX(TYPE); 30 LHASH_OF(TYPE) *lh_TYPE_new(OPENSSL_LH_HASHFUNC hash, OPENSSL_LH_COMPFUNC compare); 31 void lh_TYPE_free(LHASH_OF(TYPE) *table); 32 void lh_TYPE_flush(LHASH_OF(TYPE) *table); 39 TYPE *lh_TYPE_insert(LHASH_OF(TYPE) *table, TYPE *data); 40 TYPE *lh_TYPE_delete(LHASH_OF(TYPE) *table, TYPE *data); 41 TYPE *lh_TYPE_retrieve(LHASH_OF(TYPE) *table, TYPE *data); 43 void lh_TYPE_doall(LHASH_OF(TYPE) *table, OPENSSL_LH_DOALL_FUNC func); [all …]
|
| H A D | UI_STRING.pod | 10 - User interface string parsing 41 The B<UI_STRING> gets created internally and added to a B<UI> whenever 47 For a B<UI_METHOD> user, there's no need to know more. 48 For a B<UI_METHOD> creator, it is of interest to fetch text from these 49 B<UI_STRING> objects as well as adding results to some of them. 51 UI_get_string_type() is used to retrieve the type of the given 52 B<UI_STRING>. 55 given B<UI_STRING>. 61 associated with a B<UIT_BOOLEAN> type B<UI_STRING>. 62 For all other B<UI_STRING> types, NULL is returned. [all …]
|
| H A D | d2i_X509.pod | 445 - convert objects from/to ASN.1/DER representation 451 TYPE *d2i_TYPE(TYPE **a, const unsigned char **ppin, long length); 452 TYPE *d2i_TYPE_bio(BIO *bp, TYPE **a); 453 TYPE *d2i_TYPE_fp(FILE *fp, TYPE **a); 455 int i2d_TYPE(const TYPE *a, unsigned char **ppout); 456 int i2d_TYPE(TYPE *a, unsigned char **ppout); 457 int i2d_TYPE_fp(FILE *fp, const TYPE *a); 458 int i2d_TYPE_fp(FILE *fp, TYPE *a); 459 int i2d_TYPE_bio(BIO *bp, const TYPE *a); 460 int i2d_TYPE_bio(BIO *bp, TYPE *a); [all …]
|
| H A D | X509_NAME_add_entry_by_txt.pod | 6 X509_NAME_add_entry, X509_NAME_delete_entry - X509_NAME modification functions 12 int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, 15 int X509_NAME_add_entry_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, int type, 18 int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type, 29 by a string B<field>, an object B<obj> or a NID B<nid> respectively. 30 The field value to be added is in B<bytes> of length B<len>. If 31 B<len> is -1 then the field length is calculated internally using 34 The type of field is determined by B<type> which can either be a 35 definition of the type of B<bytes> (such as B<MBSTRING_ASC>) or a 36 standard ASN1 type (such as B<V_ASN1_IA5STRING>). The new entry is [all …]
|
| H A D | ASN1_TYPE_get.pod | 5 …N1_TYPE_set1, ASN1_TYPE_cmp, ASN1_TYPE_unpack_sequence, ASN1_TYPE_pack_sequence - ASN1_TYPE utility 13 void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value); 14 int ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value); 15 int ASN1_TYPE_cmp(const ASN1_TYPE *a, const ASN1_TYPE *b); 23 These functions allow an B<ASN1_TYPE> structure to be manipulated. The 24 B<ASN1_TYPE> structure can contain any ASN.1 type or constructed type 25 such as a SEQUENCE: it is effectively equivalent to the ASN.1 ANY type. 27 ASN1_TYPE_get() returns the type of I<a> or 0 if it fails. 29 ASN1_TYPE_set() sets the value of I<a> to I<type> and I<value>. This 30 function uses the pointer I<value> internally so it must B<not> be freed [all …]
|
| H A D | EVP_PKEY_CTX_get_algor.pod | 7 EVP_{TYPE}_CTX_get_algor() 8 EVP_{TYPE}_CTX_get_algor_params() 9 EVP_{TYPE}_CTX_set_algor_params() 11 ... where {TYPE} is the name of an EVP operation type. 23 - pass AlgorithmIdentifier and its params to/from algorithm implementations 35 In the description here and the L</SYNOPSIS> above, B<I<TYPE>> is used as a 36 placeholder for any EVP operation type. 38 B<EVP_I<TYPE>_CTX_get_algor>() attempts to retrieve a complete 39 AlgorithmIdentifier from the B<EVP_I<TYPE>> implementation, and populates 42 function is supported at all by the B<EVP_I<TYPE>> implementation. [all …]
|
| /freebsd/crypto/openssl/doc/internal/man3/ |
| H A D | DEFINE_PRIORITY_QUEUE_OF.pod | 11 - priority queue container 19 PRIORITY_QUEUE_OF(type); 21 DEFINE_PRIORITY_QUEUE_OF(NAME, TYPE) 23 size_t ossl_pqueue_TYPE_num(const PRIORITY_QUEUE_OF(type) *pq); 24 PRIORITY_QUEUE_OF(type) *ossl_pqueue_TYPE_new(int (*compare)(const type *, 25 const type *)); 26 void ossl_pqueue_TYPE_free(PRIORITY_QUEUE_OF(type) *pq); 27 void ossl_pqueue_TYPE_pop_free(PRIORITY_QUEUE_OF(type) *pq, 28 void (*free_func)(type *)); 29 int ossl_pqueue_TYPE_reserve(PRIORITY_QUEUE_OF(type) *pq, size_t n); [all …]
|
| H A D | OPENSSL_SA.pod | 8 - sparse array container 16 SPARSE_ARRAY_OF(TYPE) 17 DEFINE_SPARSE_ARRAY_OF(TYPE) 19 SPARSE_ARRAY_OF(TYPE) *ossl_sa_TYPE_new(void); 20 void ossl_sa_TYPE_free(const SPARSE_ARRAY_OF(TYPE) *sa); 21 void ossl_sa_TYPE_free_leaves(const SPARSE_ARRAY_OF(TYPE) *sa); 22 size_t ossl_sa_TYPE_num(const SPARSE_ARRAY_OF(TYPE) *sa); 28 TYPE *ossl_sa_TYPE_get(const SPARSE_ARRAY_OF(TYPE) *sa, ossl_uintmax_t idx); 29 int ossl_sa_TYPE_set(SPARSE_ARRAY_OF(TYPE) *sa, ossl_uintmax_t idx, 30 TYPE *value); [all …]
|
| H A D | DEFINE_LIST_OF.pod | 12 - doubly linked list 21 OSSL_LIST_MEMBER(NAME, TYPE); 22 DEFINE_LIST_OF(NAME, TYPE); 25 void ossl_list_TYPE_init_elem(type *elem); 29 type *ossl_list_TYPE_head(const OSSL_LIST(name) *list); 30 type *ossl_list_TYPE_tail(const OSSL_LIST(name) *list); 32 type *ossl_list_TYPE_next(const type *elem); 33 type *ossl_list_TYPE_prev(const type *elem); 35 void ossl_list_TYPE_remove(OSSL_LIST(name) *list, type *elem); 36 void ossl_list_TYPE_insert_head(OSSL_LIST(name) *list, type *elem); [all …]
|
| H A D | OSSL_SAFE_MATH_SIGNED.pod | 8 - create helper functions to safely perform non-overflowing integer operations 16 OSSL_SAFE_MATH_SIGNED(NAME, TYPE) 17 OSSL_SAFE_MATH_UNSIGNED(NAME, TYPE) 19 TYPE safe_add_TYPE(TYPE a, TYPE b, int *err); 20 TYPE safe_sub_TYPE(TYPE a, TYPE b, int *err); 21 TYPE safe_mul_TYPE(TYPE a, TYPE b, int *err); 22 TYPE safe_div_TYPE(TYPE a, TYPE b, int *err); 23 TYPE safe_mod_TYPE(TYPE a, TYPE b, int *err); 24 TYPE safe_div_round_up_TYPE(TYPE a, TYPE b, int *err); 25 TYPE safe_muldiv_TYPE(TYPE a, TYPE b, TYPE c, int *err); [all …]
|
| /freebsd/sys/contrib/ck/include/ |
| H A D | ck_ring.h | 2 * Copyright 2009-2015 Samy Al Bahra. 42 char pad[CK_MD_CACHELINE - sizeof(unsigned int)]; 45 char _pad[CK_MD_CACHELINE - sizeof(unsigned int) * 2]; 61 c = ck_pr_load_uint(&ring->c_head); in ck_ring_size() 62 p = ck_pr_load_uint(&ring->p_tail); in ck_ring_size() 63 return (p - c) & ring->mask; in ck_ring_size() 70 return ring->size; in ck_ring_capacity() 75 * on the ring. This is primarily meant for persistent ck_ring use-cases. The 83 if (ring->p_tail != ring->p_head) { in ck_ring_repair() 84 ring->p_tail = ring->p_head; in ck_ring_repair() [all …]
|
| /freebsd/contrib/bsnmp/lib/ |
| H A D | asn1.c | 2 * Copyright (c) 2001-2003 55 * is restricted to a 32-bit value. 59 asn_get_header(struct asn_buf *b, u_char *type, asn_len_t *len) in asn_get_header() argument 63 if (b->asn_len == 0) { in asn_get_header() 64 asn_error(b, "no identifier for header"); in asn_get_header() 67 *type = *b->asn_cptr; in asn_get_header() 68 if ((*type & ASN_TYPE_MASK) > 0x1e) { in asn_get_header() 69 asn_error(b, "tags > 0x1e not supported (%#x)", in asn_get_header() 70 *type & ASN_TYPE_MASK); in asn_get_header() 73 b->asn_cptr++; in asn_get_header() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEmitIntrinsics.cpp | 1 //===-- SPIRVEmitIntrinsics.cpp - emit SPIRV intrinsics ---------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // The pass emits SPIRV intrinsics keeping essential high-level information for 10 // the translation of LLVM IR to SPIR-V. 12 //===----------------------------------------------------------------------===// 29 // for the following translation to SPIR-V: 30 // - replaces direct usages of aggregate constants with target-specific 32 // - replaces aggregates-related instructions (extract/insert, ld/st, etc) 33 // with a target-specific intrinsics; [all …]
|
| /freebsd/contrib/ntp/sntp/libopts/ |
| H A D | intprops.h | 1 /* intprops.h -- properties of integer types 3 Copyright (C) 2001-2018 Free Software Foundation, Inc. 25 /* Return a value with the common real type of E and V and the value of V. */ 28 /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see 29 <https://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>. */ 30 #define _GL_INT_NEGATE_CONVERT(e, v) (0 * (e) - (v)) 35 /* True if the arithmetic type T is an integer type. bool counts as 39 /* True if the real type T is signed. */ 40 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) 43 signed or floating type. */ [all …]
|
| /freebsd/sys/crypto/openssl/aarch64/ |
| H A D | arm64cpuid.S | 1 /* Do not modify. This file is auto-generated from arm64cpuid.pl. */ 5 .arch armv8-a+crypto 9 .type _armv7_neon_probe,%function 12 orr v15.16b, v15.16b, v15.16b 14 .size _armv7_neon_probe,.-_armv7_neon_probe 17 .type _armv7_tick,%function 26 .size _armv7_tick,.-_armv7_tick 29 .type _armv8_aes_probe,%function 32 aese v0.16b, v0.16b 34 .size _armv8_aes_probe,.-_armv8_aes_probe [all …]
|
| /freebsd/contrib/file/magic/Magdir/ |
| H A D | sql | 2 #------------------------------------------------------------------------------ 9 # from https://bazaar.launchpad.net/~maria-captains/maria/5.5/view/head:/support-files/magic 13 >3 byte 0 \b, type UNKNOWN 14 >3 byte 1 \b, type DIAM_ISAM 15 >3 byte 2 \b, type HASH 16 >3 byte 3 \b, type MISAM 17 >3 byte 4 \b, type PISAM 18 >3 byte 5 \b, type RMS_ISAM 19 >3 byte 6 \b, type HEAP 20 >3 byte 7 \b, type ISAM [all …]
|
| H A D | apple | 2 #------------------------------------------------------------------------------ 14 # Type: Apple Emulator A2R format 16 # Ref: https://applesaucefdc.com/a2r2-reference/ 28 >>49 byte 01 \b, 5.25″ SS 40trk 29 >>49 byte 02 \b, 3.5″ DS 80trk 30 >>49 byte 03 \b, 5.25″ DS 80trk 31 >>49 byte 04 \b, 5.25″ DS 40trk 32 >>49 byte 05 \b, 3.5″ DS 80trk 33 >>49 byte 06 \b, 8″ DS 34 >>50 byte 01 \b, write protected [all …]
|
| /freebsd/contrib/ntp/sntp/libevent/test/ |
| H A D | tinytest_macros.h | 1 /* tinytest_macros.h -- Copyright 2009-2012 Nick Mathewson 29 /* Helpers for defining statement-like macros */ 51 /* Announce a non-failure if we're verbose. */ 89 #define tt_want_(b, msg, fail) \ argument 91 if (!(b)) { \ 100 /* Assert b, but do not stop the test if b fails. Log msg on failure. */ 101 #define tt_want_msg(b, msg) \ argument 102 tt_want_(b, msg, ); 104 /* Assert b and stop the test if b fails. Log msg on failure. */ 105 #define tt_assert_msg(b, msg) \ argument [all …]
|
| /freebsd/contrib/libevent/test/ |
| H A D | tinytest_macros.h | 1 /* tinytest_macros.h -- Copyright 2009-2012 Nick Mathewson 29 /* Helpers for defining statement-like macros */ 51 /* Announce a non-failure if we're verbose. */ 89 #define tt_want_(b, msg, fail) \ argument 91 if (!(b)) { \ 100 /* Assert b, but do not stop the test if b fails. Log msg on failure. */ 101 #define tt_want_msg(b, msg) \ argument 102 tt_want_(b, msg, ); 104 /* Assert b and stop the test if b fails. Log msg on failure. */ 105 #define tt_assert_msg(b, msg) \ argument [all …]
|
| /freebsd/crypto/openssl/doc/man7/ |
| H A D | provider-object.pod | 5 provider-object - A specification for a provider-native object abstraction 16 The provider-native object abstraction is a set of L<OSSL_PARAM(3)> keys and 17 values that can be used to pass provider-native objects to OpenSSL library 21 The intention is that certain provider-native operations can pass any sort 37 B<must> be encoded in DER for all object types except for B<OSSL_OBJECT_NAME> 70 The exact target implementation to use is determined from the I<object type> 71 and possibly the I<object data type>. 73 I<object type> B<OSSL_OBJECT_PKEY>, it will fetch a L<provider-keymgmt(7)> 74 using the I<object data type> as its key type (the second argument in 92 A provider-native object abstraction is an L<OSSL_PARAM(3)> with a selection [all …]
|
| /freebsd/crypto/openssl/doc/man1/ |
| H A D | openssl-cms.pod.in | 2 {- OpenSSL::safe::output_do_not_edit_headers(); -} 6 openssl-cms - CMS command 12 B<openssl> B<cms> 13 [B<-help>] 17 [B<-in> I<filename>] 18 [B<-out> I<filename>] 19 {- $OpenSSL::safe::opt_config_synopsis -} 23 [B<-encrypt>] 24 [B<-decrypt>] 25 [B<-sign>] [all …]
|
| /freebsd/contrib/sendmail/libsm/ |
| H A D | io.html | 9 <br> $Id: io.html,v 1.3 2001-03-17 03:22:50 gshapiro Exp $ 25 <i>sm_io_open()</i>. Whichever set of functions are specified <b>all</b> 29 are identified as <b>file types</b> (see <tt>sm_io_open()</tt>). Each function 32 set. The setting of a function set for a file type can be done for 33 a file type at any time (even after the type is open). 36 A second difference is the use of <a href="rpool.html"><b>rpools</b></a>. 37 An <b>rpool</b> is specified with the opening of a file 63 When a file is going to be opened, the file type is included with 65 A file type is either one automatically included with the <i>sm_io</i> 68 is either the builtin <i>sm_io</i> buffering or as done by the file type. [all …]
|