Home
last modified time | relevance | path

Searched refs:outlen (Results 1 – 25 of 157) sorted by relevance

1234567

/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/base64/
A Dbase64_decode.c79 unsigned char *out, unsigned long *outlen, in s_base64_decode_internal() argument
88 LTC_ARGCHK(outlen != NULL); in s_base64_decode_internal()
120 if (z + 3 > *outlen) return CRYPT_BUFFER_OVERFLOW; in s_base64_decode_internal()
132 if (z + y - 1 > *outlen) return CRYPT_BUFFER_OVERFLOW; in s_base64_decode_internal()
136 *outlen = z; in s_base64_decode_internal()
150 unsigned char *out, unsigned long *outlen) in base64_decode() argument
164 unsigned char *out, unsigned long *outlen) in base64_strict_decode() argument
178 unsigned char *out, unsigned long *outlen) in base64_sane_decode() argument
194 unsigned char *out, unsigned long *outlen) in base64url_decode() argument
208 unsigned char *out, unsigned long *outlen) in base64url_strict_decode() argument
[all …]
A Dbase64_encode.c34 char *out, unsigned long *outlen, in s_base64_encode_internal() argument
40 LTC_ARGCHK(outlen != NULL); in s_base64_encode_internal()
51 if (*outlen < len2 + 1) { in s_base64_encode_internal()
52 *outlen = len2 + 1; in s_base64_encode_internal()
96 *outlen = (unsigned long)(p - out); /* the length without terminating NUL */ in s_base64_encode_internal()
110 char *out, unsigned long *outlen) in base64_encode() argument
112 return s_base64_encode_internal(in, inlen, out, outlen, codes_base64, pad); in base64_encode()
126 char *out, unsigned long *outlen, in base64_encode_pem() argument
146 char *out, unsigned long *outlen) in base64url_encode() argument
152 char *out, unsigned long *outlen) in base64url_strict_encode() argument
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
A Dder_encode_sequence_ex.c39 if (*outlen < y) { in der_encode_sequence_ex()
40 *outlen = y; in der_encode_sequence_ex()
49 y = *outlen - x; in der_encode_sequence_ex()
56 *outlen -= x; in der_encode_sequence_ex()
68 z = *outlen; in der_encode_sequence_ex()
75 z = *outlen; in der_encode_sequence_ex()
82 z = *outlen; in der_encode_sequence_ex()
89 z = *outlen; in der_encode_sequence_ex()
96 z = *outlen; in der_encode_sequence_ex()
194 *outlen -= z; in der_encode_sequence_ex()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/custom_type/
A Dder_encode_custom_type.c42 if (*outlen < y) { in der_encode_custom_type()
43 *outlen = y; in der_encode_custom_type()
65 y = *outlen - x; in der_encode_custom_type()
73 *outlen -= x; in der_encode_custom_type()
89 z = *outlen; in der_encode_custom_type()
96 z = *outlen; in der_encode_custom_type()
103 z = *outlen; in der_encode_custom_type()
110 z = *outlen; in der_encode_custom_type()
117 z = *outlen; in der_encode_custom_type()
216 *outlen -= z; in der_encode_custom_type()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_misc.h7 char *out, unsigned long *outlen);
10 unsigned char *out, unsigned long *outlen);
12 unsigned char *out, unsigned long *outlen);
14 unsigned char *out, unsigned long *outlen);
24 unsigned char *out, unsigned long *outlen);
26 unsigned char *out, unsigned long *outlen);
28 unsigned char *out, unsigned long *outlen);
40 char *out, unsigned long *outlen,
43 unsigned char *out, unsigned long *outlen,
82 unsigned char *out, unsigned long outlen);
[all …]
A Dtomcrypt_pk.h285 unsigned char *out, unsigned long *outlen);
458 unsigned char *out, unsigned long *outlen,
603 #define der_encode_sequence(list, inlen, out, outlen) der_encode_sequence_ex(list, inlen, out, outl… argument
629 #define der_decode_sequence(in, inlen, list, outlen) der_decode_sequence_ex(in, inlen, list, outlen argument
630 …fine der_decode_sequence_strict(in, inlen, list, outlen) der_decode_sequence_ex(in, inlen, list, o… argument
633 unsigned long *outlen);
644 unsigned long *outlen,
648 #define der_decode_set(in, inlen, list, outlen) der_decode_sequence_ex(in, inlen, list, outlen, LTC… argument
667 int der_length_boolean(unsigned long *outlen);
669 unsigned char *out, unsigned long *outlen);
[all …]
A Dtomcrypt_pkcs.h38 unsigned long *outlen);
45 unsigned long *outlen,
53 unsigned char *out, unsigned long *outlen);
58 unsigned char *out, unsigned long *outlen,
65 unsigned char *out, unsigned long *outlen);
81 unsigned char *out, unsigned long *outlen);
89 unsigned char *out, unsigned long *outlen);
95 unsigned char *out, unsigned long *outlen);
A Dtomcrypt_prng.h103 unsigned long (*read)(unsigned char *out, unsigned long outlen, prng_state *prng);
115 int (*pexport)(unsigned char *out, unsigned long *outlen, prng_state *prng);
133 unsigned long yarrow_read(unsigned char *out, unsigned long outlen, prng_state *prng);
135 int yarrow_export(unsigned char *out, unsigned long *outlen, prng_state *prng);
148 int fortuna_export(unsigned char *out, unsigned long *outlen, prng_state *prng);
159 unsigned long rc4_read(unsigned char *out, unsigned long outlen, prng_state *prng);
161 int rc4_export(unsigned char *out, unsigned long *outlen, prng_state *prng);
185 int sprng_export(unsigned char *out, unsigned long *outlen, prng_state *prng);
197 int sober128_export(unsigned char *out, unsigned long *outlen, prng_state *prng);
214 unsigned long outlen,
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/boolean/
A Dder_encode_boolean.c21 unsigned char *out, unsigned long *outlen) in der_encode_boolean() argument
23 LTC_ARGCHK(outlen != NULL); in der_encode_boolean()
26 if (*outlen < 3) { in der_encode_boolean()
27 *outlen = 3; in der_encode_boolean()
31 *outlen = 3; in der_encode_boolean()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/object_identifier/
A Dder_decode_object_identifier.c20 unsigned long *words, unsigned long *outlen) in der_decode_object_identifier() argument
27 LTC_ARGCHK(outlen != NULL); in der_decode_object_identifier()
35 if (*outlen < 2) { in der_decode_object_identifier()
36 *outlen = 2; in der_decode_object_identifier()
64 if (y >= *outlen) { in der_decode_object_identifier()
84 if (y > *outlen) { in der_decode_object_identifier()
90 *outlen = y; in der_decode_object_identifier()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/octet/
A Dder_encode_octet_string.c22 unsigned char *out, unsigned long *outlen) in der_encode_octet_string() argument
29 LTC_ARGCHK(outlen != NULL); in der_encode_octet_string()
37 if (len > *outlen) { in der_encode_octet_string()
38 *outlen = len; in der_encode_octet_string()
45 len = *outlen - x; in der_encode_octet_string()
57 *outlen = x; in der_encode_octet_string()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/printable_string/
A Dder_encode_printable_string.c21 unsigned char *out, unsigned long *outlen) in der_encode_printable_string() argument
28 LTC_ARGCHK(outlen != NULL); in der_encode_printable_string()
36 if (len > *outlen) { in der_encode_printable_string()
37 *outlen = len; in der_encode_printable_string()
44 len = *outlen - x; in der_encode_printable_string()
56 *outlen = x; in der_encode_printable_string()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/ia5/
A Dder_encode_ia5_string.c21 unsigned char *out, unsigned long *outlen) in der_encode_ia5_string() argument
28 LTC_ARGCHK(outlen != NULL); in der_encode_ia5_string()
36 if (len > *outlen) { in der_encode_ia5_string()
37 *outlen = len; in der_encode_ia5_string()
44 len = *outlen - x; in der_encode_ia5_string()
56 *outlen = x; in der_encode_ia5_string()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/x25519/
A Dx25519_shared_secret.c22 unsigned char *out, unsigned long *outlen) in x25519_shared_secret() argument
27 LTC_ARGCHK(outlen != NULL); in x25519_shared_secret()
31 if(*outlen < 32uL) { in x25519_shared_secret()
32 *outlen = 32uL; in x25519_shared_secret()
37 *outlen = 32uL; in x25519_shared_secret()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_export_point.c8 int ltc_ecc_export_point(unsigned char *out, unsigned long *outlen, void *x, void *y, unsigned long… in ltc_ecc_export_point() argument
19 if (*outlen < (1 + size)) { in ltc_ecc_export_point()
20 *outlen = 1 + size; in ltc_ecc_export_point()
30 *outlen = 1 + size; in ltc_ecc_export_point()
33 if (*outlen < (1 + 2*size)) { in ltc_ecc_export_point()
34 *outlen = 1 + 2*size; in ltc_ecc_export_point()
48 *outlen = 1 + 2*size; in ltc_ecc_export_point()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dh/
A Ddh_export_key.c16 int dh_export_key(void *out, unsigned long *outlen, int type, const dh_key *key) in dh_export_key() argument
22 LTC_ARGCHK(outlen != NULL); in dh_export_key()
28 if (*outlen < len) { in dh_export_key()
29 *outlen = len; in dh_export_key()
32 *outlen = len; in dh_export_key()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/general/
A Dder_encode_asn1_identifier.c18 int der_encode_asn1_identifier(const ltc_asn1_list *id, unsigned char *out, unsigned long *outlen) in der_encode_asn1_identifier() argument
24 LTC_ARGCHK(outlen != NULL); in der_encode_asn1_identifier()
36 *outlen = 1; in der_encode_asn1_identifier()
50 if (*outlen < 1) { in der_encode_asn1_identifier()
61 *outlen = 1; in der_encode_asn1_identifier()
71 if (*outlen < tag_len + 1) { in der_encode_asn1_identifier()
80 *outlen = tag_len + 1; in der_encode_asn1_identifier()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_encrypt_key.c28 unsigned char *out, unsigned long *outlen, in rsa_encrypt_key_ex() argument
39 LTC_ARGCHK(outlen != NULL); in rsa_encrypt_key_ex()
65 if (modulus_bytelen > *outlen) { in rsa_encrypt_key_ex()
66 *outlen = modulus_bytelen; in rsa_encrypt_key_ex()
72 x = *outlen; in rsa_encrypt_key_ex()
80 x = *outlen; in rsa_encrypt_key_ex()
89 return ltc_mp.rsa_me(out, x, out, outlen, PK_PUBLIC, key); in rsa_encrypt_key_ex()
/optee_os-3.20.0/core/tee/
A Dtee_supp_plugin_rpc.c20 size_t *outlen) in tee_invoke_supp_plugin_rpc() argument
67 if (outlen) in tee_invoke_supp_plugin_rpc()
68 *outlen = params[2].u.value.b; in tee_invoke_supp_plugin_rpc()
70 if (len && outlen && *outlen) in tee_invoke_supp_plugin_rpc()
71 memcpy(buf, va, *outlen <= len ? *outlen : len); in tee_invoke_supp_plugin_rpc()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/bit/
A Dder_encode_bit_string.c22 unsigned char *out, unsigned long *outlen) in der_encode_bit_string() argument
30 LTC_ARGCHK(outlen != NULL); in der_encode_bit_string()
37 if (len > *outlen) { in der_encode_bit_string()
38 *outlen = len; in der_encode_bit_string()
47 len = *outlen - x; in der_encode_bit_string()
68 *outlen = x; in der_encode_bit_string()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ec25519/
A Dec25519_export.c20 int ec25519_export( unsigned char *out, unsigned long *outlen, in ec25519_export() argument
32 LTC_ARGCHK(outlen != NULL); in ec25519_export()
58 err = der_encode_sequence_multi(out, outlen, in ec25519_export()
64 if (*outlen < sizeof(key->priv)) { in ec25519_export()
70 *outlen = sizeof(key->priv); in ec25519_export()
75 …err = x509_encode_subject_public_key_info(out, outlen, key->algo, key->pub, 32uL, LTC_ASN1_EOL, NU… in ec25519_export()
77 if (*outlen < sizeof(key->pub)) { in ec25519_export()
83 *outlen = sizeof(key->pub); in ec25519_export()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/utctime/
A Dder_length_utctime.c18 int der_length_utctime(const ltc_utctime *utctime, unsigned long *outlen) in der_length_utctime() argument
20 LTC_ARGCHK(outlen != NULL); in der_length_utctime()
25 *outlen = 2 + 13; in der_length_utctime()
28 *outlen = 2 + 17; in der_length_utctime()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/pkcs5/
A Dpkcs_5_1.c36 unsigned char *out, unsigned long *outlen, in s_pkcs_5_alg1_common() argument
51 LTC_ARGCHK(outlen != NULL); in s_pkcs_5_alg1_common()
75 while(block * hash_descriptor[hash_idx]->hashsize < *outlen) { in s_pkcs_5_alg1_common()
110 if(outidx+nb > *outlen) { in s_pkcs_5_alg1_common()
111 nb = *outlen - outidx; in s_pkcs_5_alg1_common()
125 *outlen = hash_descriptor[hash_idx]->hashsize; in s_pkcs_5_alg1_common()
155 unsigned char *out, unsigned long *outlen) in pkcs_5_alg1() argument
158 hash_idx, out, outlen, 0); in pkcs_5_alg1()
179 unsigned char *out, unsigned long *outlen) in pkcs_5_alg1_openssl() argument
182 hash_idx, out, outlen, 1); in pkcs_5_alg1_openssl()
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/chacha/
A Dchacha_keystream.c20 int chacha_keystream(chacha_state *st, unsigned char *out, unsigned long outlen) in chacha_keystream() argument
22 if (outlen == 0) return CRYPT_OK; /* nothing to do */ in chacha_keystream()
24 XMEMSET(out, 0, outlen); in chacha_keystream()
25 return chacha_crypt(st, out, outlen, out); in chacha_keystream()
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/salsa20/
A Dsalsa20_keystream.c21 int salsa20_keystream(salsa20_state *st, unsigned char *out, unsigned long outlen) in salsa20_keystream() argument
23 if (outlen == 0) return CRYPT_OK; /* nothing to do */ in salsa20_keystream()
25 XMEMSET(out, 0, outlen); in salsa20_keystream()
26 return salsa20_crypt(st, out, outlen, out); in salsa20_keystream()

Completed in 22 milliseconds

1234567