| /crypto/ |
| A D | array_alloc.c | 20 size_t bytes; in CRYPTO_malloc_array() local 25 return CRYPTO_malloc(bytes, file, line); in CRYPTO_malloc_array() 30 size_t bytes; in CRYPTO_calloc() local 35 return CRYPTO_zalloc(bytes, file, line); in CRYPTO_calloc() 41 size_t bytes; in CRYPTO_aligned_alloc_array() local 55 size_t bytes; in CRYPTO_realloc_array() local 60 return CRYPTO_realloc(addr, bytes, file, line); in CRYPTO_realloc_array() 66 size_t old_bytes, bytes = 0; in CRYPTO_clear_realloc_array() local 78 size_t bytes; in CRYPTO_secure_malloc_array() local 83 return CRYPTO_secure_malloc(bytes, file, line); in CRYPTO_secure_malloc_array() [all …]
|
| A D | self_test_core.c | 153 int OSSL_SELF_TEST_oncorrupt_byte(OSSL_SELF_TEST *st, unsigned char *bytes) in OSSL_SELF_TEST_oncorrupt_byte() argument 159 bytes[0] ^= 1; in OSSL_SELF_TEST_oncorrupt_byte()
|
| A D | params_dup.c | 30 size_t ossl_param_bytes_to_blocks(size_t bytes) in ossl_param_bytes_to_blocks() argument 32 return (bytes + OSSL_PARAM_ALIGN_SIZE - 1) / OSSL_PARAM_ALIGN_SIZE; in ossl_param_bytes_to_blocks()
|
| A D | params.c | 1115 size_t bytes; in OSSL_PARAM_set_BN() local 1131 bytes = (size_t)BN_num_bytes(val); in OSSL_PARAM_set_BN() 1134 bytes++; in OSSL_PARAM_set_BN() 1136 if (bytes == 0) in OSSL_PARAM_set_BN() 1137 bytes++; in OSSL_PARAM_set_BN() 1140 p->return_size = bytes; in OSSL_PARAM_set_BN() 1143 if (p->data_size >= bytes) { in OSSL_PARAM_set_BN() 1165 p->return_size = bytes; in OSSL_PARAM_set_BN()
|
| /crypto/x509/ |
| A D | x509name.c | 148 ne = X509_NAME_ENTRY_create_by_OBJ(NULL, obj, type, bytes, len); in X509_NAME_add_entry_by_OBJ() 162 ne = X509_NAME_ENTRY_create_by_NID(NULL, nid, type, bytes, len); in X509_NAME_add_entry_by_NID() 176 ne = X509_NAME_ENTRY_create_by_txt(NULL, field, type, bytes, len); in X509_NAME_add_entry_by_txt() 256 nentry = X509_NAME_ENTRY_create_by_OBJ(ne, obj, type, bytes, len); in X509_NAME_ENTRY_create_by_txt() 294 if (!X509_NAME_ENTRY_set_data(ret, type, bytes, len)) in X509_NAME_ENTRY_create_by_OBJ() 318 const unsigned char *bytes, int len) in X509_NAME_ENTRY_set_data() argument 322 if ((ne == NULL) || ((bytes == NULL) && (len != 0))) in X509_NAME_ENTRY_set_data() 325 return ASN1_STRING_set_by_NID(&ne->value, bytes, in X509_NAME_ENTRY_set_data() 329 len = (int)strlen((const char *)bytes); in X509_NAME_ENTRY_set_data() 330 i = ASN1_STRING_set(ne->value, bytes, len); in X509_NAME_ENTRY_set_data() [all …]
|
| A D | x509_att.c | 143 attr = X509_ATTRIBUTE_create_by_OBJ(NULL, obj, type, bytes, len); in STACK_OF() 154 const unsigned char *bytes, in STACK_OF() 167 return ossl_x509at_add1_attr_by_OBJ(x, obj, type, bytes, len); in STACK_OF() 178 attr = X509_ATTRIBUTE_create_by_NID(NULL, nid, type, bytes, len); in STACK_OF() 188 const unsigned char *bytes, in STACK_OF() 201 return ossl_x509at_add1_attr_by_NID(x, nid, type, bytes, len); in STACK_OF() 213 attr = X509_ATTRIBUTE_create_by_txt(NULL, attrname, type, bytes, len); in STACK_OF() 224 const unsigned char *bytes, in STACK_OF() 230 attr = X509_ATTRIBUTE_create_by_txt(NULL, attrname, type, bytes, len); in STACK_OF() 317 const unsigned char *bytes, in X509_ATTRIBUTE_create_by_txt() argument [all …]
|
| A D | x_name.c | 100 if ((ret->bytes = BUF_MEM_new()) == NULL) { in IMPLEMENT_EXTERN_ASN1() 124 BUF_MEM_free(a->bytes); in x509_name_ex_free() 180 if (!BUF_MEM_grow(nm.x->bytes, p - q)) in x509_name_ex_d2i() 182 memcpy(nm.x->bytes->data, q, p - q); in x509_name_ex_d2i() 228 ret = (int)a->bytes->length; in x509_name_ex_i2d() 230 memcpy(*out, a->bytes->data, ret); in x509_name_ex_i2d() 270 if (!BUF_MEM_grow(a->bytes, len)) { in x509_name_encode() 274 p = (unsigned char *)a->bytes->data; in x509_name_encode() 553 *pder = (unsigned char *)nm->bytes->data; in X509_NAME_get0_der() 555 *pderlen = nm->bytes->length; in X509_NAME_get0_der()
|
| A D | x509_acert.c | 226 int type, const void *bytes, int len) in X509_ACERT_add1_attr_by_OBJ() argument 230 return X509at_add1_attr_by_OBJ(attrs, obj, type, bytes, len) != NULL; in X509_ACERT_add1_attr_by_OBJ() 234 const void *bytes, int len) in X509_ACERT_add1_attr_by_NID() argument 238 return X509at_add1_attr_by_NID(attrs, nid, type, bytes, len) != NULL; in X509_ACERT_add1_attr_by_NID() 242 const unsigned char *bytes, int len) in X509_ACERT_add1_attr_by_txt() argument 246 return X509at_add1_attr_by_txt(attrs, attrname, type, bytes, len) != NULL; in X509_ACERT_add1_attr_by_txt()
|
| A D | x509_req.c | 264 const unsigned char *bytes, int len) in X509_REQ_add1_attr_by_OBJ() argument 271 type, bytes, len)) in X509_REQ_add1_attr_by_OBJ() 279 const unsigned char *bytes, int len) in X509_REQ_add1_attr_by_NID() argument 286 type, bytes, len)) in X509_REQ_add1_attr_by_NID() 294 const unsigned char *bytes, int len) in X509_REQ_add1_attr_by_txt() argument 301 type, bytes, len)) in X509_REQ_add1_attr_by_txt()
|
| /crypto/cms/ |
| A D | cms_att.c | 105 const void *bytes, int len) in CMS_signed_add1_attr_by_OBJ() argument 107 if (ossl_x509at_add1_attr_by_OBJ(&si->signedAttrs, obj, type, bytes, len)) in CMS_signed_add1_attr_by_OBJ() 113 int nid, int type, const void *bytes, int len) in CMS_signed_add1_attr_by_NID() argument 115 if (ossl_x509at_add1_attr_by_NID(&si->signedAttrs, nid, type, bytes, len)) in CMS_signed_add1_attr_by_NID() 122 const void *bytes, int len) in CMS_signed_add1_attr_by_txt() argument 124 if (ossl_x509at_add1_attr_by_txt(&si->signedAttrs, attrname, type, bytes, in CMS_signed_add1_attr_by_txt() 173 const void *bytes, int len) in CMS_unsigned_add1_attr_by_OBJ() argument 175 if (ossl_x509at_add1_attr_by_OBJ(&si->unsignedAttrs, obj, type, bytes, len)) in CMS_unsigned_add1_attr_by_OBJ() 182 const void *bytes, int len) in CMS_unsigned_add1_attr_by_NID() argument 191 const void *bytes, int len) in CMS_unsigned_add1_attr_by_txt() argument [all …]
|
| /crypto/rand/ |
| A D | randfile.c | 85 int RAND_load_file(const char *file, long bytes) in RAND_load_file() argument 103 if (bytes == 0) in RAND_load_file() 120 if (bytes < 0) { in RAND_load_file() 122 bytes = sb.st_size; in RAND_load_file() 124 bytes = RAND_DRBG_STRENGTH; in RAND_load_file() 149 if (bytes > 0) in RAND_load_file() 150 n = (bytes <= RAND_LOAD_BUF_SIZE) ? (int)bytes : RAND_BUF_SIZE; in RAND_load_file() 168 if (bytes > 0 && (bytes -= i) <= 0) in RAND_load_file()
|
| A D | rand_egd.c | 21 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) in RAND_query_egd_bytes() argument 31 int RAND_egd_bytes(const char *path, int bytes) in RAND_egd_bytes() argument 109 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) in RAND_query_egd_bytes() argument 116 if (bytes > (int)sizeof(tempbuf)) in RAND_query_egd_bytes() 178 tempbuf[1] = bytes; in RAND_query_egd_bytes() 204 int RAND_egd_bytes(const char *path, int bytes) in RAND_egd_bytes() argument 208 num = RAND_query_egd_bytes(path, NULL, bytes); in RAND_egd_bytes()
|
| /crypto/whrlpool/ |
| A D | wp_dgst.c | 71 int WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *_inp, size_t bytes) in WHIRLPOOL_Update() argument 81 while (bytes >= chunk) { in WHIRLPOOL_Update() 83 bytes -= chunk; in WHIRLPOOL_Update() 86 if (bytes) in WHIRLPOOL_Update() 87 WHIRLPOOL_BitUpdate(c, inp, bytes * 8); in WHIRLPOOL_Update() 253 unsigned char *WHIRLPOOL(const void *inp, size_t bytes, unsigned char *md) in WHIRLPOOL() argument 261 WHIRLPOOL_Update(&ctx, inp, bytes); in WHIRLPOOL()
|
| /crypto/bn/ |
| A D | bn_rand.c | 27 int b, ret = 0, bit, bytes, mask; in bnrand() local 39 bytes = (bits + 7) / 8; in bnrand() 43 buf = OPENSSL_malloc(bytes); in bnrand() 48 b = flag == NORMAL ? RAND_bytes_ex(libctx, buf, bytes, strength) in bnrand() 49 : RAND_priv_bytes_ex(libctx, buf, bytes, strength); in bnrand() 60 for (i = 0; i < bytes; i++) { in bnrand() 86 buf[bytes - 1] |= 1; in bnrand() 87 if (!BN_bin2bn(buf, bytes, rnd)) in bnrand() 91 OPENSSL_clear_free(buf, bytes); in bnrand()
|
| /crypto/pkcs12/ |
| A D | p12_attr.c | 78 const unsigned char *bytes, int len) in PKCS12_add1_attr_by_NID() argument 80 if (X509at_add1_attr_by_NID(&bag->attrib, nid, type, bytes, len) != NULL) in PKCS12_add1_attr_by_NID() 87 const unsigned char *bytes, int len) in PKCS12_add1_attr_by_txt() argument 89 if (X509at_add1_attr_by_txt(&bag->attrib, attrname, type, bytes, len) != NULL) in PKCS12_add1_attr_by_txt()
|
| /crypto/asn1/ |
| A D | p8_pkey.c | 93 const unsigned char *bytes, int len) in PKCS8_pkey_add1_attr_by_NID() argument 95 if (X509at_add1_attr_by_NID(&p8->attributes, nid, type, bytes, len) != NULL) in PKCS8_pkey_add1_attr_by_NID() 101 const unsigned char *bytes, int len) in PKCS8_pkey_add1_attr_by_OBJ() argument 103 return (X509at_add1_attr_by_OBJ(&p8->attributes, obj, type, bytes, len) != NULL); in PKCS8_pkey_add1_attr_by_OBJ()
|
| /crypto/evp/ |
| A D | evp_pkey.c | 225 const unsigned char *bytes, int len) in EVP_PKEY_add1_attr_by_OBJ() argument 227 if (X509at_add1_attr_by_OBJ(&key->attributes, obj, type, bytes, len)) in EVP_PKEY_add1_attr_by_OBJ() 234 const unsigned char *bytes, int len) in EVP_PKEY_add1_attr_by_NID() argument 236 if (X509at_add1_attr_by_NID(&key->attributes, nid, type, bytes, len)) in EVP_PKEY_add1_attr_by_NID() 243 const unsigned char *bytes, int len) in EVP_PKEY_add1_attr_by_txt() argument 245 if (X509at_add1_attr_by_txt(&key->attributes, attrname, type, bytes, len)) in EVP_PKEY_add1_attr_by_txt()
|
| /crypto/dsa/ |
| A D | dsa_key.c | 80 unsigned char bytes[512] = {0}; in dsa_keygen_knownanswer_test() local 96 if (BN_num_bytes(pub_key2) > (int)sizeof(bytes)) in dsa_keygen_knownanswer_test() 98 len = BN_bn2bin(pub_key2, bytes); in dsa_keygen_knownanswer_test() 99 OSSL_SELF_TEST_oncorrupt_byte(st, bytes); in dsa_keygen_knownanswer_test() 100 if (BN_bin2bn(bytes, len, pub_key2) != NULL) in dsa_keygen_knownanswer_test()
|
| /crypto/cmp/ |
| A D | cmp_hdr.c | 118 unsigned char *bytes = OPENSSL_malloc(len); in set_random() local 121 if (bytes == NULL || RAND_bytes_ex(ctx->libctx, bytes, len, 0) <= 0) in set_random() 124 res = ossl_cmp_asn1_octet_string_set1_bytes(tgt, bytes, len); in set_random() 125 OPENSSL_free(bytes); in set_random()
|
| A D | cmp_util.c | 267 const unsigned char *bytes, int len) in ossl_cmp_asn1_octet_string_set1_bytes() argument 275 if (bytes != NULL) { in ossl_cmp_asn1_octet_string_set1_bytes() 277 || !(ASN1_OCTET_STRING_set(new, bytes, len))) { in ossl_cmp_asn1_octet_string_set1_bytes()
|
| /crypto/lms/ |
| A D | lm_ots_params.c | 60 uint16_t bytes = (8 * params->n / params->w); in ossl_lm_ots_params_checksum() local 63 for (i = 0; i < bytes; ++i) in ossl_lm_ots_params_checksum()
|
| /crypto/dh/ |
| A D | dh_check.c | 369 unsigned char bytes[1024] = {0}; /* Max key size of 8192 bits */ in ossl_dh_check_pairwise() local 371 if (BN_num_bytes(pub_key) > (int)sizeof(bytes)) in ossl_dh_check_pairwise() 373 len = BN_bn2bin(pub_key, bytes); in ossl_dh_check_pairwise() 374 OSSL_SELF_TEST_oncorrupt_byte(st, bytes); in ossl_dh_check_pairwise() 375 if (BN_bin2bn(bytes, len, pub_key) == NULL) in ossl_dh_check_pairwise()
|
| /crypto/encode_decode/ |
| A D | encoder_lib.c | 710 int bytes; in ossl_bio_print_labeled_bignum() local 745 bytes = 0; in ossl_bio_print_labeled_bignum() 754 ++bytes; in ossl_bio_print_labeled_bignum() 759 if ((bytes % 15) == 0 && bytes > 0) { in ossl_bio_print_labeled_bignum() 768 ++bytes; in ossl_bio_print_labeled_bignum()
|
| /crypto/aes/asm/ |
| A D | vpaes-ppc.pl | 1562 my @bytes=(); 1567 push @bytes,($l>>24)&0xff,($l>>16)&0xff,($l>>8)&0xff,$l&0xff; 1573 /\?inv/ && do { @bytes=map($_^0xf,@bytes); last; }; 1574 /\?rev/ && do { @bytes=reverse(@bytes); last; }; 1579 print ".byte\t",join(',',map (sprintf("0x%02x",$_),@bytes)),"\n";
|
| /crypto/des/asm/ |
| A D | des_enc.m4 | 851 ! Loads 1 to 7 bytes little endian 852 ! Remaining bytes are zeroed. 974 ! Stores 1 to 7 bytes little endian 1430 ! If 8 or more bytes are to be encrypted after this block, 1478 add in2, 8, local1 ! bytes to load 1483 ! Loads 1 to 7 bytes little endian to global4, out4 1522 ! in2 is bytes left to be stored 1597 addcc in2, -8, in2 ! bytes missing after next block 1632 ! If 8 or more bytes are to be encrypted after this block, 1681 add in2, 8, local1 ! bytes to load [all …]
|