/external/guava/guava-tests/test/com/google/common/collect/ |
D | AbstractConcurrentHashMultisetTest.java | 49 ConcurrentHashMultiset<String> cms = ConcurrentHashMultiset.create(); in testSetCount() local 50 cms.add("a", 2); in testSetCount() 51 cms.add("b", 3); in testSetCount() 54 cms.setCount("a", -1); in testSetCount() 57 assertEquals(2, cms.count("a")); in testSetCount() 59 assertEquals(2, cms.setCount("a", 0)); in testSetCount() 60 assertEquals(0, cms.count("a")); in testSetCount() 61 assertEquals(3, cms.setCount("b", 4)); in testSetCount() 62 assertEquals(4, cms.count("b")); in testSetCount() 63 assertEquals(0, cms.setCount("c", 5)); in testSetCount() [all …]
|
/external/openssl/crypto/cms/ |
D | cms_smime.c | 122 static int check_content(CMS_ContentInfo *cms) in check_content() argument 124 ASN1_OCTET_STRING **pos = CMS_get0_content(cms); in check_content() 150 int CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags) in CMS_data() argument 154 if (OBJ_obj2nid(CMS_get0_type(cms)) != NID_pkcs7_data) in CMS_data() 159 cont = CMS_dataInit(cms, NULL); in CMS_data() 169 CMS_ContentInfo *cms; in CMS_data_create() local 170 cms = cms_Data_create(); in CMS_data_create() 171 if (!cms) in CMS_data_create() 174 if ((flags & CMS_STREAM) || CMS_final(cms, in, NULL, flags)) in CMS_data_create() 175 return cms; in CMS_data_create() [all …]
|
D | cms_lib.c | 71 const ASN1_OBJECT *CMS_get0_type(CMS_ContentInfo *cms) in IMPLEMENT_ASN1_PRINT_FUNCTION() 73 return cms->contentType; in IMPLEMENT_ASN1_PRINT_FUNCTION() 78 CMS_ContentInfo *cms; in cms_Data_create() local 79 cms = CMS_ContentInfo_new(); in cms_Data_create() 80 if (cms) in cms_Data_create() 82 cms->contentType = OBJ_nid2obj(NID_pkcs7_data); in cms_Data_create() 84 CMS_set_detached(cms, 0); in cms_Data_create() 86 return cms; in cms_Data_create() 89 BIO *cms_content_bio(CMS_ContentInfo *cms) in cms_content_bio() argument 91 ASN1_OCTET_STRING **pos = CMS_get0_content(cms); in cms_content_bio() [all …]
|
D | cms_io.c | 61 int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms) in CMS_stream() argument 64 pos = CMS_get0_content(cms); in CMS_stream() 80 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) in d2i_CMS_bio() argument 82 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(CMS_ContentInfo), bp, cms); in d2i_CMS_bio() 85 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio() argument 87 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(CMS_ContentInfo), bp, cms); in i2d_CMS_bio() 92 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) in IMPLEMENT_PEM_rw_const() 94 return BIO_new_NDEF(out, (ASN1_VALUE *)cms, in IMPLEMENT_PEM_rw_const() 100 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) in i2d_CMS_bio_stream() argument 102 return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)cms, in, flags, in i2d_CMS_bio_stream() [all …]
|
D | cms.h | 116 const ASN1_OBJECT *CMS_get0_type(CMS_ContentInfo *cms); 118 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont); 119 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio); 121 ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms); 122 int CMS_is_detached(CMS_ContentInfo *cms); 123 int CMS_set_detached(CMS_ContentInfo *cms, int detached); 129 int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms); 130 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms); 131 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms); 133 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms); [all …]
|
D | cms_dd.c | 68 CMS_ContentInfo *cms; in DECLARE_ASN1_ITEM() local 70 cms = CMS_ContentInfo_new(); in DECLARE_ASN1_ITEM() 71 if (!cms) in DECLARE_ASN1_ITEM() 79 cms->contentType = OBJ_nid2obj(NID_pkcs7_digest); in DECLARE_ASN1_ITEM() 80 cms->d.digestedData = dd; in DECLARE_ASN1_ITEM() 87 return cms; in DECLARE_ASN1_ITEM() 91 if (cms) in DECLARE_ASN1_ITEM() 92 CMS_ContentInfo_free(cms); in DECLARE_ASN1_ITEM() 97 BIO *cms_DigestedData_init_bio(CMS_ContentInfo *cms) in cms_DigestedData_init_bio() argument 100 dd = cms->d.digestedData; in cms_DigestedData_init_bio() [all …]
|
D | cms_cd.c | 74 CMS_ContentInfo *cms; in DECLARE_ASN1_ITEM() local 85 cms = CMS_ContentInfo_new(); in DECLARE_ASN1_ITEM() 86 if (!cms) in DECLARE_ASN1_ITEM() 94 cms->contentType = OBJ_nid2obj(NID_id_smime_ct_compressedData); in DECLARE_ASN1_ITEM() 95 cms->d.compressedData = cd; in DECLARE_ASN1_ITEM() 105 return cms; in DECLARE_ASN1_ITEM() 109 if (cms) in DECLARE_ASN1_ITEM() 110 CMS_ContentInfo_free(cms); in DECLARE_ASN1_ITEM() 115 BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms) in cms_CompressedData_init_bio() argument 119 if (OBJ_obj2nid(cms->contentType) != NID_id_smime_ct_compressedData) in cms_CompressedData_init_bio() [all …]
|
D | cms_env.c | 74 CMS_EnvelopedData *cms_get0_enveloped(CMS_ContentInfo *cms) in DECLARE_ASN1_ITEM() 76 if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_enveloped) in DECLARE_ASN1_ITEM() 82 return cms->d.envelopedData; in DECLARE_ASN1_ITEM() 85 static CMS_EnvelopedData *cms_enveloped_data_init(CMS_ContentInfo *cms) in cms_enveloped_data_init() argument 87 if (cms->d.other == NULL) in cms_enveloped_data_init() 89 cms->d.envelopedData = M_ASN1_new_of(CMS_EnvelopedData); in cms_enveloped_data_init() 90 if (!cms->d.envelopedData) in cms_enveloped_data_init() 96 cms->d.envelopedData->version = 0; in cms_enveloped_data_init() 97 cms->d.envelopedData->encryptedContentInfo->contentType = in cms_enveloped_data_init() 99 ASN1_OBJECT_free(cms->contentType); in cms_enveloped_data_init() [all …]
|
D | cms_sd.c | 67 static CMS_SignedData *cms_get0_signed(CMS_ContentInfo *cms) in DECLARE_ASN1_ITEM() 69 if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_signed) in DECLARE_ASN1_ITEM() 74 return cms->d.signedData; in DECLARE_ASN1_ITEM() 77 static CMS_SignedData *cms_signed_data_init(CMS_ContentInfo *cms) in cms_signed_data_init() argument 79 if (cms->d.other == NULL) in cms_signed_data_init() 81 cms->d.signedData = M_ASN1_new_of(CMS_SignedData); in cms_signed_data_init() 82 if (!cms->d.signedData) in cms_signed_data_init() 87 cms->d.signedData->version = 1; in cms_signed_data_init() 88 cms->d.signedData->encapContentInfo->eContentType = in cms_signed_data_init() 90 cms->d.signedData->encapContentInfo->partial = 1; in cms_signed_data_init() [all …]
|
D | cms_enc.c | 257 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, in CMS_EncryptedData_set1_key() argument 268 cms->d.encryptedData = M_ASN1_new_of(CMS_EncryptedData); in CMS_EncryptedData_set1_key() 269 if (!cms->d.encryptedData) in CMS_EncryptedData_set1_key() 275 cms->contentType = OBJ_nid2obj(NID_pkcs7_encrypted); in CMS_EncryptedData_set1_key() 276 cms->d.encryptedData->version = 0; in CMS_EncryptedData_set1_key() 278 else if (OBJ_obj2nid(cms->contentType) != NID_pkcs7_encrypted) in CMS_EncryptedData_set1_key() 284 ec = cms->d.encryptedData->encryptedContentInfo; in CMS_EncryptedData_set1_key() 288 BIO *cms_EncryptedData_init_bio(CMS_ContentInfo *cms) in cms_EncryptedData_init_bio() argument 290 CMS_EncryptedData *enc = cms->d.encryptedData; in cms_EncryptedData_init_bio()
|
D | cms_lcl.h | 429 BIO *cms_content_bio(CMS_ContentInfo *cms); 434 BIO *cms_DigestedData_init_bio(CMS_ContentInfo *cms); 435 int cms_DigestedData_do_final(CMS_ContentInfo *cms, BIO *chain, int verify); 437 BIO *cms_SignedData_init_bio(CMS_ContentInfo *cms); 438 int cms_SignedData_final(CMS_ContentInfo *cms, BIO *chain); 446 BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms); 454 BIO *cms_EncryptedData_init_bio(CMS_ContentInfo *cms); 459 int cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms); 463 BIO *cms_EnvelopedData_init_bio(CMS_ContentInfo *cms); 464 CMS_EnvelopedData *cms_get0_enveloped(CMS_ContentInfo *cms); [all …]
|
/external/openssl/include/openssl/ |
D | cms.h | 116 const ASN1_OBJECT *CMS_get0_type(CMS_ContentInfo *cms); 118 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont); 119 int CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio); 121 ASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms); 122 int CMS_is_detached(CMS_ContentInfo *cms); 123 int CMS_set_detached(CMS_ContentInfo *cms, int detached); 129 int CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms); 130 CMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms); 131 int i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms); 133 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms); [all …]
|
/external/bouncycastle/ |
D | bouncycastle.config | 5 org/bouncycastle/asn1/cms/ecc \ 51 org/bouncycastle/asn1/cms/AuthEnvelopedData.java \ 52 org/bouncycastle/asn1/cms/AuthEnvelopedDataParser.java \ 53 org/bouncycastle/asn1/cms/AuthenticatedData.java \ 54 org/bouncycastle/asn1/cms/AuthenticatedDataParser.java \ 55 org/bouncycastle/asn1/cms/CCMParameters.java \ 56 org/bouncycastle/asn1/cms/CompressedData.java \ 57 org/bouncycastle/asn1/cms/CompressedDataParser.java \ 58 org/bouncycastle/asn1/cms/ContentInfoParser.java \ 59 org/bouncycastle/asn1/cms/DigestedData.java \ [all …]
|
/external/chromium_org/third_party/webrtc/base/ |
D | event.cc | 49 bool Event::Wait(int cms) { in Wait() argument 50 DWORD ms = (cms == kForever)? INFINITE : cms; in Wait() 81 bool Event::Wait(int cms) { 85 if (cms != kForever) { 93 ts.tv_sec = cms / 1000; 94 ts.tv_nsec = (cms % 1000) * 1000000; 99 ts.tv_sec = tv.tv_sec + (cms / 1000); 100 ts.tv_nsec = tv.tv_usec * 1000 + (cms % 1000) * 1000000;
|
D | macsocketserver.cc | 154 bool MacCFSocketServer::Wait(int cms, bool process_io) { in Wait() argument 157 if (!process_io && cms == 0) { in Wait() 169 if (kForever == cms) { in Wait() 180 CFTimeInterval seconds = cms / 1000.0; in Wait() 239 bool MacCarbonSocketServer::Wait(int cms, bool process_io) { in Wait() argument 253 (kForever == cms) ? kEventDurationForever : cms / 1000.0; in Wait() 273 ASSERT(cms != kForever); in Wait() 283 if (kForever != cms) { in Wait() 337 bool MacCarbonAppSocketServer::Wait(int cms, bool process_io) { in Wait() argument 338 if (!process_io && cms == 0) { in Wait() [all …]
|
D | macsocketserver.h | 38 virtual bool Wait(int cms, bool process_io) = 0; 71 virtual bool Wait(int cms, bool process_io); 97 virtual bool Wait(int cms, bool process_io); 120 virtual bool Wait(int cms, bool process_io);
|
D | maccocoasocketserver.mm | 80 bool MacCocoaSocketServer::Wait(int cms, bool process_io) { 82 if (!process_io && cms == 0) { 88 ASSERT(!process_io && cms == kForever); 97 if (kForever != cms) { 98 // Install a timer that fires wakeup after cms has elapsed. 100 [NSTimer scheduledTimerWithTimeInterval:cms / 1000.0
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
D | CMSSignedData.java | 1 package org.bouncycastle.cms; 20 import org.bouncycastle.asn1.cms.ContentInfo; 21 import org.bouncycastle.asn1.cms.SignedData; 22 import org.bouncycastle.asn1.cms.SignerInfo; 421 CMSSignedData cms = new CMSSignedData(signedData); in replaceSigners() local 426 cms.signerInfoStore = signerInformationStore; in replaceSigners() 461 cms.signedData = SignedData.getInstance(new BERSequence(vec)); in replaceSigners() 466 cms.contentInfo = new ContentInfo(cms.contentInfo.getContentType(), cms.signedData); in replaceSigners() 468 return cms; in replaceSigners() 492 CMSSignedData cms = new CMSSignedData(signedData); in replaceCertificatesAndCRLs() local [all …]
|
D | DefaultSignedAttributeTableGenerator.java | 1 package org.bouncycastle.cms; 11 import org.bouncycastle.asn1.cms.Attribute; 12 import org.bouncycastle.asn1.cms.AttributeTable; 13 import org.bouncycastle.asn1.cms.CMSAttributes; 14 import org.bouncycastle.asn1.cms.Time;
|
D | CMSSignedDataGenerator.java | 1 package org.bouncycastle.cms; 16 import org.bouncycastle.asn1.cms.CMSObjectIdentifiers; 17 import org.bouncycastle.asn1.cms.ContentInfo; 18 import org.bouncycastle.asn1.cms.SignedData; 19 import org.bouncycastle.asn1.cms.SignerInfo;
|
D | SignerInfoGeneratorBuilder.java | 1 package org.bouncycastle.cms; 4 import org.bouncycastle.asn1.cms.IssuerAndSerialNumber; 5 import org.bouncycastle.asn1.cms.SignerIdentifier;
|
D | SignerInformation.java | 1 package org.bouncycastle.cms; 19 import org.bouncycastle.asn1.cms.Attribute; 20 import org.bouncycastle.asn1.cms.AttributeTable; 21 import org.bouncycastle.asn1.cms.CMSAttributes; 22 import org.bouncycastle.asn1.cms.IssuerAndSerialNumber; 23 import org.bouncycastle.asn1.cms.SignerIdentifier; 24 import org.bouncycastle.asn1.cms.SignerInfo; 25 import org.bouncycastle.asn1.cms.Time;
|
/external/openssl/apps/ |
D | cms.c | 73 static void receipt_request_print(BIO *out, CMS_ContentInfo *cms); 115 CMS_ContentInfo *cms = NULL, *rcms = NULL; in MAIN() local 799 cms = SMIME_read_CMS(in, &indata); in MAIN() 801 cms = PEM_read_bio_CMS(in, NULL, NULL, NULL); in MAIN() 803 cms = d2i_CMS_bio(in, NULL); in MAIN() 810 if (!cms) in MAIN() 827 allcerts = CMS_get1_certs(cms); in MAIN() 903 cms = CMS_data_create(in, flags); in MAIN() 907 cms = CMS_digest_create(in, sign_md, flags); in MAIN() 911 cms = CMS_compress(in, -1, flags); in MAIN() [all …]
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/jcajce/ |
D | JcaSignerInfoGeneratorBuilder.java | 1 package org.bouncycastle.cms.jcajce; 8 import org.bouncycastle.cms.CMSAttributeTableGenerator; 9 import org.bouncycastle.cms.SignerInfoGenerator; 10 import org.bouncycastle.cms.SignerInfoGeneratorBuilder;
|
D | JcaSignerInfoVerifierBuilder.java | 1 package org.bouncycastle.cms.jcajce; 9 import org.bouncycastle.cms.CMSSignatureAlgorithmNameGenerator; 10 import org.bouncycastle.cms.DefaultCMSSignatureAlgorithmNameGenerator; 11 import org.bouncycastle.cms.SignerInformationVerifier;
|