/external/boringssl/src/ssl/ |
H A D | ssl_asn1.c | 10 * apply to all code found in this distribution, be it the RC4, RSA, 15 * Copyright remains Eric Young's, and as such any Copyright notices in 17 * If this package is used in a product, Eric Young should be given attribution 19 * This can be in the form of a textual message at program startup or 20 * in documentation (online or textual) provided with the package. 22 * Redistribution and use in source and binary forms, with or without 27 * 2. Redistributions in binary form must reproduce the above copyright 28 * notice, this list of conditions and the following disclaimer in the 68 * No patent licenses or other rights except those expressly stated in 103 * timeout [2] INTEGER OPTIONAL, -- in second 158 SSL_SESSION_to_bytes_full(SSL_SESSION *in, uint8_t **out_data, size_t *out_len, int for_ticket) argument 331 SSL_SESSION_to_bytes(SSL_SESSION *in, uint8_t **out_data, size_t *out_len) argument 335 SSL_SESSION_to_bytes_for_ticket(SSL_SESSION *in, uint8_t **out_data, size_t *out_len) argument 340 i2d_SSL_SESSION(SSL_SESSION *in, uint8_t **pp) argument [all...] |
H A D | ssl_cert.c | 10 * apply to all code found in this distribution, be it the RC4, RSA, 15 * Copyright remains Eric Young's, and as such any Copyright notices in 17 * If this package is used in a product, Eric Young should be given attribution 19 * This can be in the form of a textual message at program startup or 20 * in documentation (online or textual) provided with the package. 22 * Redistribution and use in source and binary forms, with or without 27 * 2. Redistributions in binary form must reproduce the above copyright 28 * notice, this list of conditions and the following disclaimer in the 60 * Redistribution and use in source and binary forms, with or without 67 * 2. Redistributions in binar 585 BIO *in; local 655 BIO *in; local [all...] |
H A D | ssl_lib.c | 10 * apply to all code found in this distribution, be it the RC4, RSA, 15 * Copyright remains Eric Young's, and as such any Copyright notices in 17 * If this package is used in a product, Eric Young should be given attribution 19 * This can be in the form of a textual message at program startup or 20 * in documentation (online or textual) provided with the package. 22 * Redistribution and use in source and binary forms, with or without 27 * 2. Redistributions in binary form must reproduce the above copyright 28 * notice, this list of conditions and the following disclaimer in the 60 * Redistribution and use in source and binary forms, with or without 67 * 2. Redistributions in binar 1526 SSL_CTX_set_next_proto_select_cb( SSL_CTX *ctx, int (*cb)(SSL *s, uint8_t **out, uint8_t *outlen, const uint8_t *in, unsigned int inlen, void *arg), void *arg) argument 1560 SSL_CTX_set_alpn_select_cb(SSL_CTX *ctx, int (*cb)(SSL *ssl, const uint8_t **out, uint8_t *outlen, const uint8_t *in, unsigned int inlen, void *arg), void *arg) argument 2558 cbb_add_hex(CBB *cbb, const uint8_t *in, size_t in_len) argument [all...] |
H A D | ssl_rsa.c | 10 * apply to all code found in this distribution, be it the RC4, RSA, 15 * Copyright remains Eric Young's, and as such any Copyright notices in 17 * If this package is used in a product, Eric Young should be given attribution 19 * This can be in the form of a textual message at program startup or 20 * in documentation (online or textual) provided with the package. 22 * Redistribution and use in source and binary forms, with or without 27 * 2. Redistributions in binary form must reproduce the above copyright 28 * notice, this list of conditions and the following disclaimer in the 82 BIO *in; local 86 in 191 BIO *in; local 261 BIO *in; local 369 BIO *in; local 451 BIO *in; local 518 BIO *in; local 579 BIO *in; local [all...] |
H A D | ssl_test.cc | 5 * copyright notice and this permission notice appear in all copies. 36 // The list of expected ciphers, in order, terminated with -1. 86 // Multiple masks can be ANDed in a single rule. 164 // Exact ciphers may not be used in multi-part rules; they are treated 326 // filling in missing fields from |kOpenSSLSession|. This includes 362 static bool DecodeBase64(std::vector<uint8_t> *out, const char *in) { argument 364 if (!EVP_DecodedLength(&len, strlen(in))) { 370 if (!EVP_DecodeBase64(bssl::vector_data(out), &len, len, (const uint8_t *)in, 371 strlen(in))) {
|
/external/boringssl/src/ssl/test/ |
H A D | async_bio.cc | 5 * copyright notice and this permission notice appear in all copies. 40 static int AsyncWrite(BIO *bio, const char *in, int inl) { argument 49 return BIO_write(bio->next_bio, in, inl); 63 int ret = BIO_write(bio->next_bio, in, inl);
|
H A D | bssl_shim.cc | 5 * copyright notice and this permission notice appear in all copies. 19 #include <netinet/in.h> 84 // clock_delta is how far the clock advanced in the most recent failed 186 // Install the certificate in the early callback. 216 const uint8_t* in, unsigned inlen, void* arg) { 228 const uint8_t* in, unsigned inlen, void* arg) { 237 in, inlen) != 0)) { 383 // failures in the test runner. 519 // WriteAll writes |in_len| bytes from |in| to |ssl|, resolving any asynchronous 521 static int WriteAll(SSL *ssl, const uint8_t *in, size_ argument 215 NextProtoSelectCallback(SSL* ssl, uint8_t** out, uint8_t* outlen, const uint8_t* in, unsigned inlen, void* arg) argument 227 AlpnSelectCallback(SSL* ssl, const uint8_t** out, uint8_t* outlen, const uint8_t* in, unsigned inlen, void* arg) argument [all...] |
H A D | packeted_bio.cc | 5 * copyright notice and this permission notice appear in all copies. 51 static int PacketedWrite(BIO *bio, const char *in, int inl) { argument 72 ret = BIO_write(bio->next_bio, in, inl);
|
/external/boringssl/src/tool/ |
H A D | client.cc | 5 * copyright notice and this permission notice appear in all copies. 106 const uint8_t* in, unsigned inlen, void* arg) { 105 NextProtoSelectCallback(SSL* ssl, uint8_t** out, uint8_t* outlen, const uint8_t* in, unsigned inlen, void* arg) argument
|
H A D | speed.cc | 5 * copyright notice and this permission notice appear in all copies. 51 // num_calls is the number of function calls done in the time period. 53 // us is the number of microseconds that elapsed in the time period. 57 printf("Did %u %s operations in %uus (%.1f ops/sec)\n", num_calls, 63 printf("Did %u %s operations in %uus (%.1f ops/sec): %.1f MB/s\n", 175 static uint8_t *align(uint8_t *in, unsigned alignment) { argument 177 (reinterpret_cast<uintptr_t>(in) + alignment) & 199 uint8_t *const in = align(in_storage.get(), kAlignment); local 200 memset(in, 0, chunk_len); 213 if (!TimeFunction(&results, [chunk_len, overhead_len, nonce_len, ad_len, in, [all...] |
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/selector/ |
H A D | MSOutlookKeyIdCalculator.java | 54 * Copy constructor. We are using copy constructors in place 74 byte in) 76 xBuf[xBufOff++] = in; 88 byte[] in, 97 update(in[inOff]); 108 processWord(in, inOff); 116 // load in the remainder. 120 update(in[inOff]); 157 protected abstract void processWord(byte[] in, int inOff); argument 193 byte[] in, 73 update( byte in) argument 87 update( byte[] in, int inOff, int len) argument 192 processWord( byte[] in, int inOff) argument [all...] |
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
H A D | CMSUtils.java | 211 ASN1InputStream in) 216 return ContentInfo.getInstance(in.readObject()); 243 * converts a password to a byte array according to the scheme in 270 * converts a password to a byte array according to the scheme in 290 InputStream in) 293 return Streams.readAll(in); 297 InputStream in, 301 return Streams.readAllLimited(in, limit); 210 readContentInfo( ASN1InputStream in) argument 289 streamToByteArray( InputStream in) argument 296 streamToByteArray( InputStream in, int limit) argument
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
H A D | ASN1StreamParser.java | 17 InputStream in) 19 this(in, StreamUtil.findLimit(in)); 23 InputStream in, 26 this._in = in; 16 ASN1StreamParser( InputStream in) argument 22 ASN1StreamParser( InputStream in, int limit) argument
|
H A D | DefiniteLengthInputStream.java | 18 InputStream in, 21 super(in, length); 17 DefiniteLengthInputStream( InputStream in, int length) argument
|
H A D | IndefiniteLengthInputStream.java | 16 InputStream in, 20 super(in, limit); 22 _b1 = in.read(); 23 _b2 = in.read(); 15 IndefiniteLengthInputStream( InputStream in, int limit) argument
|
H A D | LimitedInputStream.java | 12 InputStream in, 15 this._in = in; 11 LimitedInputStream( InputStream in, int limit) argument
|
H A D | StreamUtil.java | 18 * @param in input stream of interest 21 static int findLimit(InputStream in) argument 23 if (in instanceof LimitedInputStream) 25 return ((LimitedInputStream)in).getRemaining(); 27 else if (in instanceof ASN1InputStream) 29 return ((ASN1InputStream)in).getLimit(); 31 else if (in instanceof ByteArrayInputStream) 33 return ((ByteArrayInputStream)in).available(); 35 else if (in instanceof FileInputStream) 39 FileChannel channel = ((FileInputStream)in) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/ |
H A D | AttributeTable.java | 201 Hashtable in) 204 Enumeration e = in.keys(); 210 out.put(key, in.get(key)); 217 * Return a new table with the passed in attribute added. 200 copyTable( Hashtable in) argument
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
H A D | AsymmetricBlockCipher.java | 34 * process the block of len bytes stored in in from offset inOff. 36 * @param in the input data 37 * @param inOff offset into the in array where the data starts 43 public byte[] processBlock(byte[] in, int inOff, int len) argument
|
H A D | BlockCipher.java | 29 * Return the block size for this cipher (in bytes). 31 * @return the block size for this cipher in bytes. 36 * Process one block of input from the array in and write it to 39 * @param in the array containing the input data. 40 * @param inOff offset into the in array the data starts at. 43 * @exception DataLengthException if there isn't enough data in in, or 44 * space in out. 48 public int processBlock(byte[] in, int inOff, byte[] out, int outOff) argument 52 * Reset the cipher. After resetting the cipher is in th [all...] |
H A D | BufferedBlockCipher.java | 5 * A wrapper class that allows block ciphers to be used to process data in 9 * Note: in the case where the underlying cipher is either a CFB cipher or an 146 * @param in the input byte. 150 * @exception DataLengthException if there isn't enough space in out. 154 byte in, 161 buf[bufOff++] = in; 175 * @param in the input byte array. 181 * @exception DataLengthException if there isn't enough space in out. 185 byte[] in, 213 System.arraycopy(in, inOf 153 processByte( byte in, byte[] out, int outOff) argument 184 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument [all...] |
H A D | Digest.java | 16 * return the size, in bytes, of the digest produced by this message digest. 18 * @return the size, in bytes, of the digest produced by this message digest. 25 * @param in the input byte to be entered. 27 public void update(byte in); argument 32 * @param in the byte array containing the data. 36 public void update(byte[] in, int inOff, int len); argument
|
H A D | Mac.java | 27 * Return the block size for this MAC (in bytes). 29 * @return the block size for this MAC in bytes. 36 * @param in the byte to be processed. 39 public void update(byte in) argument 43 * @param in the array containing the input. 44 * @param inOff the index in the array the data begins at. 47 * @exception DataLengthException if there isn't enough data in in. 49 public void update(byte[] in, int inOff, int len) argument 56 * doFinal leaves the MAC in th [all...] |
H A D | Signer.java | 22 * update the internal digest with the byte array in 24 public void update(byte[] in, int off, int len); argument 35 * in the passed in array.
|
H A D | StreamBlockCipher.java | 4 * A parent class for block cipher modes that do not require block aligned data to be processed, but can function in 27 public final byte returnByte(byte in) argument 29 return calculateByte(in); 32 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) argument 40 if (inOff + len > in.length) 51 out[outStart++] = calculateByte(in[inStart++]);
|