/optee_test/host/openssl/include/openssl/ |
A D | modes.h | 17 size_t len, const void *key, 30 size_t len, const void *key, 33 size_t len, const void *key, 37 size_t len, const void *key, 49 size_t len, const void *key, 103 size_t len); 105 size_t len); 108 size_t len); 111 size_t len); 119 size_t len); [all …]
|
A D | hmac.h | 93 int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md); 94 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, 96 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len); 97 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len);
|
A D | rc4.h | 79 void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data); 80 void private_RC4_set_key(RC4_KEY *key, int len, const unsigned char *data); 81 void RC4(RC4_KEY *key, size_t len, const unsigned char *indata,
|
A D | sha.h | 112 int SHA_Update(SHA_CTX *c, const void *data, size_t len); 122 int SHA1_Update(SHA_CTX *c, const void *data, size_t len); 147 int SHA224_Update(SHA256_CTX *c, const void *data, size_t len); 151 int SHA256_Update(SHA256_CTX *c, const void *data, size_t len); 200 int SHA384_Update(SHA512_CTX *c, const void *data, size_t len); 204 int SHA512_Update(SHA512_CTX *c, const void *data, size_t len);
|
A D | seed.h | 134 void SEED_cbc_encrypt(const unsigned char *in, unsigned char *out, size_t len, 138 size_t len, const SEED_KEY_SCHEDULE *ks, 142 size_t len, const SEED_KEY_SCHEDULE *ks,
|
A D | x509.h | 660 unsigned char *md, unsigned int *len); 843 unsigned char *X509_alias_get0(X509 *x, int *len); 844 unsigned char *X509_keyid_get0(X509 *x, int *len); 881 unsigned char *md, unsigned int *len); 1013 char *buf, int len); 1035 int len); 1038 int len); 1045 int len); 1138 int len); 1142 int len); [all …]
|
A D | dh.h | 268 # define EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, len) \ argument 270 EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN, len, NULL) 272 # define EVP_PKEY_CTX_set_dh_paramgen_subprime_len(ctx, len) \ argument 274 EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN, len, NULL) 322 # define EVP_PKEY_CTX_set_dh_kdf_outlen(ctx, len) \ argument 325 EVP_PKEY_CTRL_DH_KDF_OUTLEN, len, NULL)
|
A D | asn1.h | 259 long len; /* Length of encoding */ member 807 int ASN1_STRING_set(ASN1_STRING *str, const void *data, int len); 808 void ASN1_STRING_set0(ASN1_STRING *str, void *data, int len); 871 int len); 879 int UTF8_getc(const unsigned char *str, int len, unsigned long *val); 880 int UTF8_putc(unsigned char *str, int len, unsigned long value); 956 int ASN1_check_infinite_end(unsigned char **p, long len); 957 int ASN1_const_check_infinite_end(const unsigned char **p, long len); 1057 unsigned char *data, int len); 1065 unsigned char **buf, int *len); [all …]
|
A D | buffer.h | 85 int BUF_MEM_grow(BUF_MEM *str, size_t len); 86 int BUF_MEM_grow_clean(BUF_MEM *str, size_t len);
|
A D | rc2.h | 82 void private_RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, 85 void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits);
|
A D | cast.h | 86 void private_CAST_set_key(CAST_KEY *key, int len, const unsigned char *data); 88 void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data);
|
A D | blowfish.h | 107 void private_BF_set_key(BF_KEY *key, int len, const unsigned char *data); 109 void BF_set_key(BF_KEY *key, int len, const unsigned char *data);
|
A D | bio.h | 663 int BIO_read(BIO *b, void *data, int len); 665 int BIO_write(BIO *b, const void *data, int len); 692 BIO *BIO_new_mem_buf(const void *buf, int len); 723 int BIO_dump_cb(int (*cb) (const void *data, size_t len, void *u), 724 void *u, const char *s, int len); 725 int BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u), 726 void *u, const char *s, int len, int indent); 727 int BIO_dump(BIO *b, const char *bytes, int len); 728 int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent); 730 int BIO_dump_fp(FILE *fp, const char *s, int len); [all …]
|
A D | ec.h | 287 size_t EC_GROUP_set_seed(EC_GROUP *, const unsigned char *, size_t len); 576 unsigned char *buf, size_t len, BN_CTX *ctx); 587 const unsigned char *buf, size_t len, BN_CTX *ctx); 720 EC_GROUP *d2i_ECPKParameters(EC_GROUP **, const unsigned char **in, long len); 899 EC_KEY *d2i_ECPrivateKey(EC_KEY **key, const unsigned char **in, long len); 920 EC_KEY *d2i_ECParameters(EC_KEY **key, const unsigned char **in, long len); 942 EC_KEY *o2i_ECPublicKey(EC_KEY **key, const unsigned char **in, long len); 1037 # define EVP_PKEY_CTX_set_ecdh_kdf_outlen(ctx, len) \ argument 1040 EVP_PKEY_CTRL_EC_KDF_OUTLEN, len, NULL)
|
A D | rsa.h | 244 # define EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, len) \ argument 248 len, NULL) 392 int (*cb) (char *buf, int len, const char *prompt, 395 int (*cb) (char *buf, int len, const char *prompt, 399 int (*cb) (char *buf, int len, const char *prompt, 402 int (*cb) (char *buf, int len, const char *prompt, 441 int PKCS1_MGF1(unsigned char *mask, long len, const unsigned char *seed,
|
A D | asn1t.h | 658 typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, 674 int len, int utype, char *free_cont, 861 stname *d2i_##fname(stname **a, const unsigned char **in, long len) \ 863 return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\ 881 stname *d2i_##fname(stname **a, const unsigned char **in, long len) \ 883 return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\ 935 int ASN1_template_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, 937 int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, 949 int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, 965 int asn1_enc_restore(int *len, unsigned char **out, ASN1_VALUE **pval,
|
A D | safestack.h | 201 # define SKM_ASN1_seq_pack(type, st, i2d_func, buf, len) \ argument 2264 # define ASN1_seq_pack_ASN1_OBJECT(st, i2d_func, buf, len) \ argument 2272 # define ASN1_seq_pack_ASN1_TYPE(st, i2d_func, buf, len) \ argument 2288 # define ASN1_seq_pack_DIST_POINT(st, i2d_func, buf, len) \ argument 2304 # define ASN1_seq_pack_EVP_MD(st, i2d_func, buf, len) \ argument 2344 # define ASN1_seq_pack_PKCS7(st, i2d_func, buf, len) \ argument 2368 # define ASN1_seq_pack_POLICYINFO(st, i2d_func, buf, len) \ argument 2384 # define ASN1_seq_pack_SXNETID(st, i2d_func, buf, len) \ argument 2392 # define ASN1_seq_pack_X509(st, i2d_func, buf, len) \ argument 2400 # define ASN1_seq_pack_X509_ALGOR(st, i2d_func, buf, len) \ argument [all …]
|
A D | ssl.h | 392 int len, void *arg); 445 int (*ssl_read) (SSL *s, void *buf, int len); 446 int (*ssl_peek) (SSL *s, void *buf, int len); 447 int (*ssl_write) (SSL *s, const void *buf, int len); 1286 unsigned *len); 1312 unsigned *len); 2152 char *SSL_get_shared_ciphers(const SSL *s, char *buf, int len); 2180 long len); 2232 unsigned int *len); 2274 long len); [all …]
|
A D | cms.h | 300 const void *bytes, int len); 303 const void *bytes, int len); 306 const void *bytes, int len); 320 const void *bytes, int len); 323 const void *bytes, int len); 326 const void *bytes, int len);
|
A D | mdc2.h | 86 int MDC2_Update(MDC2_CTX *c, const unsigned char *data, size_t len);
|
/optee_test/ta/crypt/ |
A D | sha2_impl.c | 341 ctx->len = 0; in sha256_init() 346 unsigned int len) in sha256_update() argument 356 rem_len = len < tmp_len ? len : tmp_len; in sha256_update() 361 if (ctx->len + len < SHA256_BLOCK_SIZE) { in sha256_update() 362 ctx->len += len; in sha256_update() 379 ctx->len = rem_len; in sha256_update() 452 ctx->len = 0; in sha224_init() 467 rem_len = len < tmp_len ? len : tmp_len; in sha224_update() 472 if (ctx->len + len < SHA224_BLOCK_SIZE) { in sha224_update() 473 ctx->len += len; in sha224_update() [all …]
|
A D | arith_taf.c | 82 size_t len = TEE_BigIntSizeInU32(params[0].value.a); in ta_entry_arith_new_var() local 83 TEE_BigInt *big_int = TEE_Malloc(len * sizeof(TEE_BigInt), 0); in ta_entry_arith_new_var() 93 TEE_BigIntInit(big_int, len); in ta_entry_arith_new_var() 102 uint32_t len = 0; in ta_entry_arith_new_fmm_ctx() local 111 len = TEE_BigIntFMMContextSizeInU32(params[0].value.a); in ta_entry_arith_new_fmm_ctx() 112 ctx = TEE_Malloc(len * sizeof(*ctx), 0); in ta_entry_arith_new_fmm_ctx() 119 TEE_BigIntInitFMMContext(ctx, len, modulus); in ta_entry_arith_new_fmm_ctx() 129 size_t len = TEE_BigIntFMMSizeInU32(params[0].value.a); in ta_entry_arith_new_fmm_var() local 130 TEE_BigIntFMM *fmm = TEE_Malloc(len * sizeof(*fmm), 0); in ta_entry_arith_new_fmm_var() 140 TEE_BigIntInitFMM(fmm, len); in ta_entry_arith_new_fmm_var()
|
/optee_test/scripts/ |
A D | rsp_to_gcm_test.py | 9 assert len(val) % 2 == 0, "Only even sized values supported" 10 if len(val) > 0: 16 b += "}, " + repr(len(val) / 2) + "," 30 if len(myvars['Tag']) / 2 < 96 / 8: 86 if len(myl) == 0: 93 if len(s) == 0: 97 if len(myvars) > 1: 102 if len(s) < 2: 107 if len(s) < 2: 111 if len(myvars) > 1:
|
/optee_test/ta/crypt/include/ |
A D | sha2_impl.h | 52 unsigned int len; member 59 unsigned int len; member 66 unsigned int len); 68 void sha224(const unsigned char *message, unsigned int len, 73 unsigned int len); 75 void sha256(const unsigned char *message, unsigned int len,
|
/optee_test/host/xtest/ |
A D | sdp_basic.c | 71 alloc_data.len = size; in allocate_ion_buffer_old_api() 139 alloc_data.len = size; in allocate_ion_buffer() 259 op.params[0].tmpref.size = len; in inject_sdp_data() 262 op.params[1].memref.size = len; in inject_sdp_data() 302 op.params[0].memref.size = len; in transform_sdp_data() 343 op.params[0].memref.size = len; in dump_sdp_data() 347 op.params[1].tmpref.size = len; in dump_sdp_data() 366 while(len--) in check_sdp_dumped() 411 while (len) { in get_random_bytes() 412 size_t t_len = (RANDOM_BUFFER_SIZE < len) ? RANDOM_BUFFER_SIZE : len; in get_random_bytes() [all …]
|