Searched refs:block_type (Results 1 - 25 of 30) sorted by relevance

12

/external/dropbear/libtomcrypt/src/pk/pkcs1/
H A Dpkcs_1_v1_5_encode.c24 * \param block_type Block type to use in padding (\sa ltc_pkcs_1_v1_5_blocks)
35 int block_type,
46 /* valid block_type? */
47 if ((block_type != LTC_PKCS_1_EMSA) &&
48 (block_type != LTC_PKCS_1_EME)) {
52 if (block_type == LTC_PKCS_1_EME) { /* encryption padding, we need a valid PRNG */
75 if (block_type == LTC_PKCS_1_EME) {
97 out[1] = (unsigned char)block_type; /* block_type 1 or 2 */
33 pkcs_1_v1_5_encode(const unsigned char *msg, unsigned long msglen, int block_type, unsigned long modulus_bitlen, prng_state *prng, int prng_idx, unsigned char *out, unsigned long *outlen) argument
H A Dpkcs_1_v1_5_decode.c24 * @param block_type Block type to use in padding (\sa ltc_pkcs_1_v1_5_blocks)
34 int block_type,
56 if ((msg[0] != 0x00) || (msg[1] != (unsigned char)block_type)) {
61 if (block_type == LTC_PKCS_1_EME) {
32 pkcs_1_v1_5_decode(const unsigned char *msg, unsigned long msglen, int block_type, unsigned long modulus_bitlen, unsigned char *out, unsigned long *outlen, int *is_valid) argument
/external/chromium/net/disk_cache/
H A Dblock_files.h38 // Creates a new entry on a block file. block_type indicates the size of block
41 bool CreateBlock(FileType block_type, int block_count, Addr* block_address);
68 MappedFile* FileForNewBlock(FileType block_type, int block_count);
74 int CreateNextBlockFile(FileType block_type);
77 void RemoveEmptyFile(FileType block_type);
H A Dblock_files.cc241 bool BlockFiles::CreateBlock(FileType block_type, int block_count, argument
244 if (block_type < RANKINGS || block_type > BLOCK_4K ||
250 MappedFile* file = FileForNewBlock(block_type, block_count);
269 Addr address(block_type, block_count, header->this_file, index);
469 MappedFile* BlockFiles::FileForNewBlock(FileType block_type, int block_count) { argument
471 MappedFile* file = block_files_[block_type - 1];
515 int BlockFiles::CreateNextBlockFile(FileType block_type) { argument
517 if (CreateBlockFile(i, block_type, false))
525 void BlockFiles::RemoveEmptyFile(FileType block_type) { argument
[all...]
H A Dbackend_impl.h109 bool CreateBlock(FileType block_type, int block_count,
/external/chromium_org/net/disk_cache/v3/
H A Dblock_bitmaps.h31 // Creates a new entry on a block file. block_type indicates the size of block
34 bool CreateBlock(FileType block_type, int block_count, Addr* block_address);
60 MappedFile* FileForNewBlock(FileType block_type, int block_count);
H A Dblock_bitmaps.cc57 bool BlockFiles::CreateBlock(FileType block_type, int block_count, argument
60 if (block_type < RANKINGS || block_type > BLOCK_4K ||
66 MappedFile* file = FileForNewBlock(block_type, block_count);
86 Addr address(block_type, block_count, header->this_file, index);
236 MappedFile* BlockFiles::FileForNewBlock(FileType block_type, int block_count) { argument
238 MappedFile* file = block_files_[block_type - 1];
/external/chromium_org/net/disk_cache/
H A Dblock_files.h86 // Creates a new entry on a block file. block_type indicates the size of block
89 bool CreateBlock(FileType block_type, int block_count, Addr* block_address);
116 MappedFile* FileForNewBlock(FileType block_type, int block_count);
122 int CreateNextBlockFile(FileType block_type);
125 bool RemoveEmptyFile(FileType block_type);
H A Dblock_files.cc279 bool BlockFiles::CreateBlock(FileType block_type, int block_count, argument
282 if (block_type < RANKINGS || block_type > BLOCK_4K ||
288 MappedFile* file = FileForNewBlock(block_type, block_count);
308 Addr address(block_type, block_count, header->this_file, index);
516 MappedFile* BlockFiles::FileForNewBlock(FileType block_type, int block_count) { argument
518 MappedFile* file = block_files_[block_type - 1];
563 int BlockFiles::CreateNextBlockFile(FileType block_type) { argument
565 if (CreateBlockFile(i, block_type, false))
573 bool BlockFiles::RemoveEmptyFile(FileType block_type) { argument
[all...]
H A Dbackend_impl.h103 bool CreateBlock(FileType block_type, int block_count,
/external/wpa_supplicant_8/hostapd/src/tls/
H A Dpkcs1.h12 int pkcs1_encrypt(int block_type, struct crypto_rsa_key *key,
H A Dpkcs1.c16 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, argument
44 *pos++ = block_type; /* BT */
46 switch (block_type) {
69 "%d", __func__, block_type);
79 int pkcs1_encrypt(int block_type, struct crypto_rsa_key *key, argument
87 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen,
/external/wpa_supplicant_8/src/tls/
H A Dpkcs1.h12 int pkcs1_encrypt(int block_type, struct crypto_rsa_key *key,
H A Dpkcs1.c16 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, argument
44 *pos++ = block_type; /* BT */
46 switch (block_type) {
69 "%d", __func__, block_type);
79 int pkcs1_encrypt(int block_type, struct crypto_rsa_key *key, argument
87 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen,
/external/wpa_supplicant_8/wpa_supplicant/src/tls/
H A Dpkcs1.h12 int pkcs1_encrypt(int block_type, struct crypto_rsa_key *key,
H A Dpkcs1.c16 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, argument
44 *pos++ = block_type; /* BT */
46 switch (block_type) {
69 "%d", __func__, block_type);
79 int pkcs1_encrypt(int block_type, struct crypto_rsa_key *key, argument
87 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen,
/external/chromium/net/base/
H A Dpem_tokenizer_unittest.cc23 EXPECT_EQ("EXPECTED-BLOCK", tokenizer.block_type());
41 EXPECT_EQ("EXPECTED-BLOCK", tokenizer.block_type());
76 EXPECT_EQ("BLOCK-ONE", tokenizer.block_type());
81 EXPECT_EQ("BLOCK-TWO", tokenizer.block_type());
101 EXPECT_EQ("MISSING-FOOTER", tokenizer.block_type());
125 EXPECT_EQ("BLOCK-ONE", tokenizer.block_type());
163 EXPECT_EQ("BLOCK-ONE", tokenizer.block_type());
H A Dpem_tokenizer.h37 const std::string& block_type() const { return block_type_; } function in class:net::PEMTokenizer
/external/chromium_org/net/cert/
H A Dpem_tokenizer_unittest.cc23 EXPECT_EQ("EXPECTED-BLOCK", tokenizer.block_type());
41 EXPECT_EQ("EXPECTED-BLOCK", tokenizer.block_type());
76 EXPECT_EQ("BLOCK-ONE", tokenizer.block_type());
81 EXPECT_EQ("BLOCK-TWO", tokenizer.block_type());
101 EXPECT_EQ("MISSING-FOOTER", tokenizer.block_type());
125 EXPECT_EQ("BLOCK-ONE", tokenizer.block_type());
163 EXPECT_EQ("BLOCK-ONE", tokenizer.block_type());
H A Dpem_tokenizer.h37 const std::string& block_type() const { return block_type_; } function in class:net::PEMTokenizer
/external/dropbear/libtomcrypt/src/headers/
H A Dtomcrypt_pkcs.h29 int block_type,
38 int block_type,
/external/grub/stage2/
H A Dgunzip.c147 static int block_type; variable
1084 block_type = (unsigned) b & 3;
1091 if (block_type == INFLATE_STORED)
1093 if (block_type == INFLATE_FIXED)
1095 if (block_type == INFLATE_DYNAMIC)
1120 if (block_type > INFLATE_DYNAMIC)
1129 if (block_type == INFLATE_STORED)
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dcrypto_libtomcrypt.c486 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, argument
514 *pos++ = block_type; /* BT */
516 switch (block_type) {
539 "%d", __func__, block_type);
549 static int crypto_rsa_encrypt_pkcs1(int block_type, rsa_key *key, int key_type, argument
558 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen,
/external/wpa_supplicant_8/src/crypto/
H A Dcrypto_libtomcrypt.c486 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, argument
514 *pos++ = block_type; /* BT */
516 switch (block_type) {
539 "%d", __func__, block_type);
549 static int crypto_rsa_encrypt_pkcs1(int block_type, rsa_key *key, int key_type, argument
558 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen,
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dcrypto_libtomcrypt.c486 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, argument
514 *pos++ = block_type; /* BT */
516 switch (block_type) {
539 "%d", __func__, block_type);
549 static int crypto_rsa_encrypt_pkcs1(int block_type, rsa_key *key, int key_type, argument
558 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen,

Completed in 779 milliseconds

12