/third_party/node/deps/openssl/openssl/crypto/modes/ |
H A D | wrap128.c | 39 * @param[in] inlen Length of in. 40 * @param[out] out Ciphertext. Minimal buffer length = (inlen + 8) bytes. 44 * @return 0 if inlen does not consist of n 64-bit blocks, n >= 2. 45 * or if inlen > CRYPTO128_WRAP_MAX. 50 const unsigned char *in, size_t inlen, in CRYPTO_128_wrap() 55 if ((inlen & 0x7) || (inlen < 16) || (inlen > CRYPTO128_WRAP_MAX)) in CRYPTO_128_wrap() 59 memmove(out + 8, in, inlen); in CRYPTO_128_wrap() 67 for (i = 0; i < inlen; in CRYPTO_128_wrap() 48 CRYPTO_128_wrap(void *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block) CRYPTO_128_wrap() argument 99 crypto_128_unwrap_raw(void *key, unsigned char *iv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block) crypto_128_unwrap_raw() argument 150 CRYPTO_128_unwrap(void *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block) CRYPTO_128_unwrap() argument 183 CRYPTO_128_wrap_pad(void *key, const unsigned char *icv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block) CRYPTO_128_wrap_pad() argument 251 CRYPTO_128_unwrap_pad(void *key, const unsigned char *icv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block) CRYPTO_128_unwrap_pad() argument [all...] |
/third_party/openssl/crypto/modes/ |
H A D | wrap128.c | 39 * @param[in] inlen Length of in. 40 * @param[out] out Ciphertext. Minimal buffer length = (inlen + 8) bytes. 44 * @return 0 if inlen does not consist of n 64-bit blocks, n >= 2. 45 * or if inlen > CRYPTO128_WRAP_MAX. 50 const unsigned char *in, size_t inlen, in CRYPTO_128_wrap() 55 if ((inlen & 0x7) || (inlen < 16) || (inlen > CRYPTO128_WRAP_MAX)) in CRYPTO_128_wrap() 59 memmove(out + 8, in, inlen); in CRYPTO_128_wrap() 67 for (i = 0; i < inlen; in CRYPTO_128_wrap() 48 CRYPTO_128_wrap(void *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block) CRYPTO_128_wrap() argument 99 crypto_128_unwrap_raw(void *key, unsigned char *iv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block) crypto_128_unwrap_raw() argument 150 CRYPTO_128_unwrap(void *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block) CRYPTO_128_unwrap() argument 183 CRYPTO_128_wrap_pad(void *key, const unsigned char *icv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block) CRYPTO_128_wrap_pad() argument 251 CRYPTO_128_unwrap_pad(void *key, const unsigned char *icv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block) CRYPTO_128_unwrap_pad() argument [all...] |
/third_party/eudev/src/shared/ |
H A D | siphash24.c | 56 void siphash24(uint8_t out[8], const void *_in, size_t inlen, const uint8_t k[16]) in siphash24() argument 68 const u8 *end = in + inlen - ( inlen % sizeof( u64 ) ); in siphash24() 69 const int left = inlen & 7; in siphash24() 70 b = ( ( u64 )inlen ) << 56; in siphash24() 80 printf( "(%3d) v0 %08x %08x\n", ( int )inlen, ( u32 )( v0 >> 32 ), ( u32 )v0 ); in siphash24() 81 printf( "(%3d) v1 %08x %08x\n", ( int )inlen, ( u32 )( v1 >> 32 ), ( u32 )v1 ); in siphash24() 82 printf( "(%3d) v2 %08x %08x\n", ( int )inlen, ( u32 )( v2 >> 32 ), ( u32 )v2 ); in siphash24() 83 printf( "(%3d) v3 %08x %08x\n", ( int )inlen, ( u32 )( v3 >> 32 ), ( u32 )v3 ); in siphash24() 84 printf( "(%3d) compress %08x %08x\n", ( int )inlen, ( u3 in siphash24() [all...] |
/third_party/nghttp2/src/ |
H A D | nghttp2_gzip_test.c | 37 size_t inlen) { in deflate_data() 44 zst.avail_in = (unsigned int)inlen; in deflate_data() 68 size_t inlen = sizeof(in); in test_nghttp2_gzip_inflate() local 72 inlen = deflate_data(in, inlen, (const uint8_t *)input, sizeof(input) - 1); in test_nghttp2_gzip_inflate() 77 inproclen = inlen; in test_nghttp2_gzip_inflate() 86 inlen -= inproclen; in test_nghttp2_gzip_inflate() 87 inproclen = inlen; in test_nghttp2_gzip_inflate() 97 inlen -= inproclen; in test_nghttp2_gzip_inflate() 98 inproclen = inlen; in test_nghttp2_gzip_inflate() 36 deflate_data(uint8_t *out, size_t outlen, const uint8_t *in, size_t inlen) deflate_data() argument [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/ |
H A D | ciphercommon_block.c | 48 * inlen: amount of input data available 52 * the new location where input data should be read from, *inlen is updated with 53 * the remaining amount of data in *in. Returns the largest value <= *inlen 58 const unsigned char **in, size_t *inlen) in ossl_cipher_fillblock() 66 if (*inlen < bufremain) in ossl_cipher_fillblock() 67 bufremain = *inlen; in ossl_cipher_fillblock() 70 *inlen -= bufremain; in ossl_cipher_fillblock() 73 return *inlen & blockmask; in ossl_cipher_fillblock() 81 const unsigned char **in, size_t *inlen) in ossl_cipher_trailingdata() 83 if (*inlen in ossl_cipher_trailingdata() 56 ossl_cipher_fillblock(unsigned char *buf, size_t *buflen, size_t blocksize, const unsigned char **in, size_t *inlen) ossl_cipher_fillblock() argument 80 ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize, const unsigned char **in, size_t *inlen) ossl_cipher_trailingdata() argument [all...] |
H A D | cipher_aes_wrp.c | 30 size_t inlen, block128_f block); 163 const unsigned char *in, size_t inlen) in aes_wrap_cipher_internal() 175 if (inlen == 0) { in aes_wrap_cipher_internal() 181 if (!ctx->enc && (inlen < 16 || inlen & 0x7)) { in aes_wrap_cipher_internal() 187 if (!pad && inlen & 0x7) { in aes_wrap_cipher_internal() 196 inlen = (inlen + 7) / 8 * 8; in aes_wrap_cipher_internal() 198 return inlen + 8; in aes_wrap_cipher_internal() 205 return inlen in aes_wrap_cipher_internal() 162 aes_wrap_cipher_internal(void *vctx, unsigned char *out, const unsigned char *in, size_t inlen) aes_wrap_cipher_internal() argument [all...] |
/third_party/openssl/providers/implementations/ciphers/ |
H A D | ciphercommon_block.c | 48 * inlen: amount of input data available 52 * the new location where input data should be read from, *inlen is updated with 53 * the remaining amount of data in *in. Returns the largest value <= *inlen 58 const unsigned char **in, size_t *inlen) in ossl_cipher_fillblock() 66 if (*inlen < bufremain) in ossl_cipher_fillblock() 67 bufremain = *inlen; in ossl_cipher_fillblock() 70 *inlen -= bufremain; in ossl_cipher_fillblock() 73 return *inlen & blockmask; in ossl_cipher_fillblock() 81 const unsigned char **in, size_t *inlen) in ossl_cipher_trailingdata() 83 if (*inlen in ossl_cipher_trailingdata() 56 ossl_cipher_fillblock(unsigned char *buf, size_t *buflen, size_t blocksize, const unsigned char **in, size_t *inlen) ossl_cipher_fillblock() argument 80 ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize, const unsigned char **in, size_t *inlen) ossl_cipher_trailingdata() argument [all...] |
H A D | cipher_aes_wrp.c | 30 size_t inlen, block128_f block); 143 const unsigned char *in, size_t inlen) in aes_wrap_cipher_internal() 155 if (inlen == 0) { in aes_wrap_cipher_internal() 161 if (!ctx->enc && (inlen < 16 || inlen & 0x7)) { in aes_wrap_cipher_internal() 167 if (!pad && inlen & 0x7) { in aes_wrap_cipher_internal() 176 inlen = (inlen + 7) / 8 * 8; in aes_wrap_cipher_internal() 178 return inlen + 8; in aes_wrap_cipher_internal() 185 return inlen in aes_wrap_cipher_internal() 142 aes_wrap_cipher_internal(void *vctx, unsigned char *out, const unsigned char *in, size_t inlen) aes_wrap_cipher_internal() argument [all...] |
/third_party/toybox/toys/posix/ |
H A D | iconv.c | 38 size_t outlen, inlen = 0; in do_iconv() local 44 if (readlen && 0>(readlen = read(fd, in+inlen, 2048-inlen))) { in do_iconv() 48 inlen += readlen; in do_iconv() 49 if (!inlen) break; in do_iconv() 52 iconv(TT.ic, &in, &inlen, &out, &outlen); in do_iconv() 57 inlen--; in do_iconv() 60 memmove(toybuf, in, inlen); in do_iconv()
|
/third_party/node/deps/openssl/openssl/crypto/pkcs12/ |
H A D | p12_decr.c | 21 const unsigned char *in, int inlen, in PKCS12_pbe_crypt_ex() 46 max_out_len = inlen + EVP_CIPHER_CTX_get_block_size(ctx); in PKCS12_pbe_crypt_ex() 57 if (inlen < mac_len) { in PKCS12_pbe_crypt_ex() 61 inlen -= mac_len; in PKCS12_pbe_crypt_ex() 63 (int)mac_len, (unsigned char *)in+inlen) < 0) { in PKCS12_pbe_crypt_ex() 75 if (!EVP_CipherUpdate(ctx, out, &i, in, inlen)) { in PKCS12_pbe_crypt_ex() 117 const unsigned char *in, int inlen, in PKCS12_pbe_crypt() 120 return PKCS12_pbe_crypt_ex(algor, pass, passlen, in, inlen, data, datalen, in PKCS12_pbe_crypt() 180 int inlen; in PKCS12_item_i2d_encrypt_ex() local 186 inlen in PKCS12_item_i2d_encrypt_ex() 19 PKCS12_pbe_crypt_ex(const X509_ALGOR *algor, const char *pass, int passlen, const unsigned char *in, int inlen, unsigned char **data, int *datalen, int en_de, OSSL_LIB_CTX *libctx, const char *propq) PKCS12_pbe_crypt_ex() argument 115 PKCS12_pbe_crypt(const X509_ALGOR *algor, const char *pass, int passlen, const unsigned char *in, int inlen, unsigned char **data, int *datalen, int en_de) PKCS12_pbe_crypt() argument [all...] |
/third_party/openssl/crypto/pkcs12/ |
H A D | p12_decr.c | 21 const unsigned char *in, int inlen, in PKCS12_pbe_crypt_ex() 46 max_out_len = inlen + EVP_CIPHER_CTX_get_block_size(ctx); in PKCS12_pbe_crypt_ex() 57 if (inlen < mac_len) { in PKCS12_pbe_crypt_ex() 61 inlen -= mac_len; in PKCS12_pbe_crypt_ex() 63 (int)mac_len, (unsigned char *)in+inlen) < 0) { in PKCS12_pbe_crypt_ex() 75 if (!EVP_CipherUpdate(ctx, out, &i, in, inlen)) { in PKCS12_pbe_crypt_ex() 117 const unsigned char *in, int inlen, in PKCS12_pbe_crypt() 120 return PKCS12_pbe_crypt_ex(algor, pass, passlen, in, inlen, data, datalen, in PKCS12_pbe_crypt() 180 int inlen; in PKCS12_item_i2d_encrypt_ex() local 186 inlen in PKCS12_item_i2d_encrypt_ex() 19 PKCS12_pbe_crypt_ex(const X509_ALGOR *algor, const char *pass, int passlen, const unsigned char *in, int inlen, unsigned char **data, int *datalen, int en_de, OSSL_LIB_CTX *libctx, const char *propq) PKCS12_pbe_crypt_ex() argument 115 PKCS12_pbe_crypt(const X509_ALGOR *algor, const char *pass, int passlen, const unsigned char *in, int inlen, unsigned char **data, int *datalen, int en_de) PKCS12_pbe_crypt() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/cms/ |
H A D | cms_pwri.c | 190 const unsigned char *in, size_t inlen, in kek_unwrap_key() 196 if (inlen < 2 * blocklen) { in kek_unwrap_key() 200 if (inlen % blocklen) { in kek_unwrap_key() 204 if ((tmp = OPENSSL_malloc(inlen)) == NULL) { in kek_unwrap_key() 209 if (!EVP_DecryptUpdate(ctx, tmp + inlen - 2 * blocklen, &outl, in kek_unwrap_key() 210 in + inlen - 2 * blocklen, blocklen * 2) in kek_unwrap_key() 217 tmp + inlen - blocklen, blocklen) in kek_unwrap_key() 219 || !EVP_DecryptUpdate(ctx, tmp, &outl, in, inlen - blocklen) in kek_unwrap_key() 224 || !EVP_DecryptUpdate(ctx, tmp, &outl, tmp, inlen)) in kek_unwrap_key() 231 if (inlen < (size_ in kek_unwrap_key() 189 kek_unwrap_key(unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen, EVP_CIPHER_CTX *ctx) kek_unwrap_key() argument 244 kek_wrap_key(unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen, EVP_CIPHER_CTX *ctx, const CMS_CTX *cms_ctx) kek_wrap_key() argument [all...] |
/third_party/openssl/crypto/cms/ |
H A D | cms_pwri.c | 190 const unsigned char *in, size_t inlen, in kek_unwrap_key() 196 if (inlen < 2 * blocklen) { in kek_unwrap_key() 200 if (inlen % blocklen) { in kek_unwrap_key() 204 if ((tmp = OPENSSL_malloc(inlen)) == NULL) { in kek_unwrap_key() 209 if (!EVP_DecryptUpdate(ctx, tmp + inlen - 2 * blocklen, &outl, in kek_unwrap_key() 210 in + inlen - 2 * blocklen, blocklen * 2) in kek_unwrap_key() 217 tmp + inlen - blocklen, blocklen) in kek_unwrap_key() 219 || !EVP_DecryptUpdate(ctx, tmp, &outl, in, inlen - blocklen) in kek_unwrap_key() 224 || !EVP_DecryptUpdate(ctx, tmp, &outl, tmp, inlen)) in kek_unwrap_key() 231 if (inlen < (size_ in kek_unwrap_key() 189 kek_unwrap_key(unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen, EVP_CIPHER_CTX *ctx) kek_unwrap_key() argument 244 kek_wrap_key(unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen, EVP_CIPHER_CTX *ctx, const CMS_CTX *cms_ctx) kek_wrap_key() argument [all...] |
/third_party/nghttp2/lib/ |
H A D | nghttp2_npn.c | 30 const unsigned char *in, unsigned int inlen, in select_next_protocol() 33 for (i = 0; i + keylen <= inlen; i += (unsigned int)(in[i] + 1)) { in select_next_protocol() 47 const unsigned char *in, unsigned int inlen) { in nghttp2_select_next_protocol() 48 if (select_next_protocol(out, outlen, in, inlen, NGHTTP2_PROTO_ALPN, in nghttp2_select_next_protocol() 52 if (select_next_protocol(out, outlen, in, inlen, NGHTTP2_HTTP_1_1_ALPN, in nghttp2_select_next_protocol() 29 select_next_protocol(unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, const char *key, unsigned int keylen) select_next_protocol() argument 46 nghttp2_select_next_protocol(unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen) nghttp2_select_next_protocol() argument
|
/third_party/node/deps/nghttp2/lib/ |
H A D | nghttp2_npn.c | 30 const unsigned char *in, unsigned int inlen, in select_next_protocol() 33 for (i = 0; i + keylen <= inlen; i += (unsigned int)(in[i] + 1)) { in select_next_protocol() 47 const unsigned char *in, unsigned int inlen) { in nghttp2_select_next_protocol() 48 if (select_next_protocol(out, outlen, in, inlen, NGHTTP2_PROTO_ALPN, in nghttp2_select_next_protocol() 52 if (select_next_protocol(out, outlen, in, inlen, NGHTTP2_HTTP_1_1_ALPN, in nghttp2_select_next_protocol() 29 select_next_protocol(unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, const char *key, unsigned int keylen) select_next_protocol() argument 46 nghttp2_select_next_protocol(unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen) nghttp2_select_next_protocol() argument
|
/third_party/protobuf/src/google/protobuf/testing/ |
H A D | zcgunzip.cc | 68 int inlen; in main() local 70 ok = in.Next(&inptr, &inlen); in main() 74 if (inlen > 0) { in main() 75 int err = write(STDOUT_FILENO, inptr, inlen); in main() 76 if (err != inlen) { in main()
|
/third_party/node/deps/openssl/openssl/providers/implementations/rands/ |
H A D | drbg_ctr.c | 71 static void ctr_XOR(PROV_DRBG_CTR *ctr, const unsigned char *in, size_t inlen) in ctr_XOR() argument 75 if (in == NULL || inlen == 0) in ctr_XOR() 82 n = inlen < ctr->keylen ? inlen : ctr->keylen; in ctr_XOR() 85 if (inlen <= ctr->keylen) in ctr_XOR() 88 n = inlen - ctr->keylen; in ctr_XOR() 152 const unsigned char *in, size_t inlen) in ctr_BCC_update() 154 if (in == NULL || inlen == 0) in ctr_BCC_update() 162 if (inlen >= left) { in ctr_BCC_update() 167 inlen in ctr_BCC_update() 151 ctr_BCC_update(PROV_DRBG_CTR *ctr, const unsigned char *in, size_t inlen) ctr_BCC_update() argument 202 size_t inlen; ctr_df() local [all...] |
/third_party/openssl/providers/implementations/rands/ |
H A D | drbg_ctr.c | 71 static void ctr_XOR(PROV_DRBG_CTR *ctr, const unsigned char *in, size_t inlen) in ctr_XOR() argument 75 if (in == NULL || inlen == 0) in ctr_XOR() 82 n = inlen < ctr->keylen ? inlen : ctr->keylen; in ctr_XOR() 85 if (inlen <= ctr->keylen) in ctr_XOR() 88 n = inlen - ctr->keylen; in ctr_XOR() 152 const unsigned char *in, size_t inlen) in ctr_BCC_update() 154 if (in == NULL || inlen == 0) in ctr_BCC_update() 162 if (inlen >= left) { in ctr_BCC_update() 167 inlen in ctr_BCC_update() 151 ctr_BCC_update(PROV_DRBG_CTR *ctr, const unsigned char *in, size_t inlen) ctr_BCC_update() argument 202 size_t inlen; ctr_df() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
H A D | crypto_internal-rsa.c | 73 const u8 *in, size_t inlen, in crypto_public_key_encrypt_pkcs1_v15() 77 0, in, inlen, out, outlen); in crypto_public_key_encrypt_pkcs1_v15() 82 const u8 *in, size_t inlen, in crypto_private_key_decrypt_pkcs1_v15() 86 in, inlen, out, outlen); in crypto_private_key_decrypt_pkcs1_v15() 91 const u8 *in, size_t inlen, in crypto_private_key_sign_pkcs1() 95 1, in, inlen, out, outlen); in crypto_private_key_sign_pkcs1() 72 crypto_public_key_encrypt_pkcs1_v15(struct crypto_public_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) crypto_public_key_encrypt_pkcs1_v15() argument 81 crypto_private_key_decrypt_pkcs1_v15(struct crypto_private_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) crypto_private_key_decrypt_pkcs1_v15() argument 90 crypto_private_key_sign_pkcs1(struct crypto_private_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) crypto_private_key_sign_pkcs1() argument
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
H A D | crypto_internal-rsa.c | 73 const u8 *in, size_t inlen, in crypto_public_key_encrypt_pkcs1_v15() 77 0, in, inlen, out, outlen); in crypto_public_key_encrypt_pkcs1_v15() 82 const u8 *in, size_t inlen, in crypto_private_key_decrypt_pkcs1_v15() 86 in, inlen, out, outlen); in crypto_private_key_decrypt_pkcs1_v15() 91 const u8 *in, size_t inlen, in crypto_private_key_sign_pkcs1() 95 1, in, inlen, out, outlen); in crypto_private_key_sign_pkcs1() 72 crypto_public_key_encrypt_pkcs1_v15(struct crypto_public_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) crypto_public_key_encrypt_pkcs1_v15() argument 81 crypto_private_key_decrypt_pkcs1_v15(struct crypto_private_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) crypto_private_key_decrypt_pkcs1_v15() argument 90 crypto_private_key_sign_pkcs1(struct crypto_private_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) crypto_private_key_sign_pkcs1() argument
|
/third_party/python/Modules/_blake2/impl/ |
H A D | blake2b.c | 198 int blake2b_update( blake2b_state *S, const uint8_t *in, size_t inlen ); 200 int blake2b( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen ); 351 int blake2b_update( blake2b_state *S, const uint8_t *in, size_t inlen ) in blake2b_update() 353 while( inlen > 0 ) in blake2b_update() 358 if( inlen > fill ) in blake2b_update() 367 inlen -= fill; in blake2b_update() 369 else // inlen <= fill in blake2b_update() 371 memcpy( S->buf + left, in, inlen ); in blake2b_update() 372 S->buflen += ( uint32_t ) inlen; // Be lazy, do not compress in blake2b_update() 373 in += inlen; in blake2b_update() 403 blake2b( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen ) blake2b() argument [all...] |
H A D | blake2s.c | 184 int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen ); 186 int blake2s( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen ); 324 int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen ) in blake2s_update() 326 while( inlen > 0 ) in blake2s_update() 331 if( inlen > fill ) in blake2s_update() 340 inlen -= fill; in blake2s_update() 342 else /* inlen <= fill */ in blake2s_update() 344 memcpy( S->buf + left, in, inlen ); in blake2s_update() 345 S->buflen += inlen; // Be lazy, do not compress in blake2s_update() 346 in += inlen; in blake2s_update() 381 blake2s( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen ) blake2s() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
H A D | pkcs1.c | 19 const u8 *in, size_t inlen, in pkcs1_generate_encryption_block() 35 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block() 37 "lengths (modlen=%lu outlen=%lu inlen=%lu)", in pkcs1_generate_encryption_block() 40 (unsigned long) inlen); in pkcs1_generate_encryption_block() 47 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block() 75 os_memcpy(pos, in, inlen); /* D */ in pkcs1_generate_encryption_block() 82 int use_private, const u8 *in, size_t inlen, in pkcs1_encrypt() 89 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in pkcs1_encrypt() 98 const u8 *in, size_t inlen, in pkcs1_v15_private_key_decrypt() 104 res = crypto_rsa_exptmod(in, inlen, ou in pkcs1_v15_private_key_decrypt() 18 pkcs1_generate_encryption_block(u8 block_type, size_t modlen, const u8 *in, size_t inlen, u8 *out, size_t *outlen) pkcs1_generate_encryption_block() argument 81 pkcs1_encrypt(int block_type, struct crypto_rsa_key *key, int use_private, const u8 *in, size_t inlen, u8 *out, size_t *outlen) pkcs1_encrypt() argument 97 pkcs1_v15_private_key_decrypt(struct crypto_rsa_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) pkcs1_v15_private_key_decrypt() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
H A D | pkcs1.c | 19 const u8 *in, size_t inlen, in pkcs1_generate_encryption_block() 35 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block() 37 "lengths (modlen=%lu outlen=%lu inlen=%lu)", in pkcs1_generate_encryption_block() 40 (unsigned long) inlen); in pkcs1_generate_encryption_block() 47 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block() 75 os_memcpy(pos, in, inlen); /* D */ in pkcs1_generate_encryption_block() 82 int use_private, const u8 *in, size_t inlen, in pkcs1_encrypt() 89 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in pkcs1_encrypt() 98 const u8 *in, size_t inlen, in pkcs1_v15_private_key_decrypt() 104 res = crypto_rsa_exptmod(in, inlen, ou in pkcs1_v15_private_key_decrypt() 18 pkcs1_generate_encryption_block(u8 block_type, size_t modlen, const u8 *in, size_t inlen, u8 *out, size_t *outlen) pkcs1_generate_encryption_block() argument 81 pkcs1_encrypt(int block_type, struct crypto_rsa_key *key, int use_private, const u8 *in, size_t inlen, u8 *out, size_t *outlen) pkcs1_encrypt() argument 97 pkcs1_v15_private_key_decrypt(struct crypto_rsa_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) pkcs1_v15_private_key_decrypt() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/aes/ |
H A D | aes_wrap.c | 22 const unsigned char *in, unsigned int inlen) in AES_wrap_key() 24 return CRYPTO_128_wrap(key, iv, out, in, inlen, (block128_f) AES_encrypt); in AES_wrap_key() 29 const unsigned char *in, unsigned int inlen) in AES_unwrap_key() 31 return CRYPTO_128_unwrap(key, iv, out, in, inlen, in AES_unwrap_key() 20 AES_wrap_key(AES_KEY *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, unsigned int inlen) AES_wrap_key() argument 27 AES_unwrap_key(AES_KEY *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, unsigned int inlen) AES_unwrap_key() argument
|