/macosx-10.9.5/Security-55471.14.18/include/security_utilities/ |
H A D | hashing.cpp | 46 CCHashInstance::CCHashInstance(CCDigestAlg alg) argument 48 if (!(mDigest = CCDigestCreate(alg)))
|
/macosx-10.9.5/Security-55471.14.18/libsecurity_utilities/lib/ |
H A D | hashing.cpp | 46 CCHashInstance::CCHashInstance(CCDigestAlg alg) argument 48 if (!(mDigest = CCDigestCreate(alg)))
|
/macosx-10.9.5/bind9-45.100/bind9/bin/confgen/ |
H A D | keygen.h | 28 void generate_key(isc_mem_t *mctx, const char *randomfile, dns_secalg_t alg, 33 dns_secalg_t alg); 35 const char *alg_totext(dns_secalg_t alg); 37 int alg_bits(dns_secalg_t alg);
|
/macosx-10.9.5/Heimdal-323.92.1/lib/otp/ |
H A D | otptest.c | 43 OtpAlgorithm *alg) 54 if (otp_parse (key2, buf, alg)) { 69 char *alg; member in struct:test 116 for(t = tests; t->alg; ++t) { 118 OtpAlgorithm *alg = otp_find_alg (t->alg); local 121 if (alg == NULL) { 122 printf ("Could not find alg %s\n", t->alg); 125 if(alg 41 test_one(OtpKey key1, char *name, char *val, void (*print)(OtpKey,char*, size_t), OtpAlgorithm *alg) argument [all...] |
H A D | otp_parse.c | 90 OtpAlgorithm *alg = (OtpAlgorithm *)a; local 92 unsigned char *res = malloc(alg->hashsize); 96 alg->hash (s, strlen(s), res); 97 ret = (unsigned)(res[alg->hashsize - 1]) | 98 ((res[alg->hashsize - 2] & 0x03) << 8); 141 OtpAlgorithm *alg, 146 if (parse_words (wn, str, convert, alg)) 161 otp_parse_altdict (OtpKey key, const char *str, OtpAlgorithm *alg) argument 163 return otp_parse_internal (key, str, alg, get_altword); 194 otp_parse (OtpKey key, const char *s, OtpAlgorithm *alg) argument 140 otp_parse_internal(OtpKey key, const char *str, OtpAlgorithm *alg, int (*convert)(const char *, void *)) argument [all...] |
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSCore/ |
H A D | CryptoAlg.c | 51 mDNSexport mStatus CryptoAlgInit(mDNSu8 alg, AlgFuncs *func) argument 53 if (alg >= CRYPTO_ALG_MAX) 55 LogMsg("CryptoAlgInit: alg %d exceeds bounds", alg); 60 if (alg != CRYPTO_RSA_SHA1 && alg != CRYPTO_RSA_SHA256 && alg != CRYPTO_RSA_SHA512 && 61 alg != CRYPTO_DSA_NSEC3_SHA1 && alg != CRYPTO_RSA_NSEC3_SHA1) 63 LogMsg("CryptoAlgInit: alg 71 EncAlgInit(mDNSu8 alg, AlgFuncs *func) argument 91 AlgCreate(AlgType type, mDNSu8 alg) argument [all...] |
/macosx-10.9.5/CommonCrypto-60049/test/CommonCrypto/ |
H A D | CommonCryptoSymCBC.c | 47 CCAlgorithm alg; 54 alg = kCCAlgorithmAES128; 63 retval = CCCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 66 retval = CCMultiCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 73 retval = CCCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 76 retval = CCMultiCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 83 retval = CCCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 86 retval = CCMultiCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 93 retval = CCCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 96 retval = CCMultiCryptTestCase(keyStr, iv, alg, option [all...] |
H A D | CommonCryptoSymCFB.c | 42 CCAlgorithm alg; 48 alg = kCCAlgorithmAES128; 56 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 63 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 70 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 78 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 86 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 94 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 100 alg = kCCAlgorithmBlowfish; 107 retval = CCModeTestCase(keyStr, iv, mode, alg, paddin [all...] |
H A D | CommonCryptoSymOFB.c | 42 CCAlgorithm alg; 49 alg = kCCAlgorithmAES128; 57 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 64 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 71 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 79 alg = kCCAlgorithmAES128; 83 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 91 alg = kCCAlgorithmAES128; 95 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText);
|
H A D | CCCryptorTestFuncs.h | 21 CCMultiCrypt(CCOperation op, CCAlgorithm alg, CCOptions options, const void *key, size_t keyLength, const void *iv, const void *dataIn, size_t dataInLength, 28 CCCryptWithMode(CCOperation op, CCMode mode, CCAlgorithm alg, CCPadding padding, const void *iv, 35 CCMultiCryptWithMode(CCOperation op, CCMode mode, CCAlgorithm alg, CCPadding padding, const void *iv, 43 CCCryptTestCase(char *keyStr, char *ivStr, CCAlgorithm alg, CCOptions options, char *cipherText, char *plainText); 47 CCMultiCryptTestCase(char *keyStr, char *ivStr, CCAlgorithm alg, CCOptions options, char *cipherText, char *plainText); 51 CCModeTestCase(char *keyStr, char *ivStr, CCMode mode, CCAlgorithm alg, CCPadding padding, char *cipherText, char *plainText); 55 CCMultiModeTestCase(char *keyStr, char *ivStr, CCMode mode, CCAlgorithm alg, CCPadding padding, char *cipherText, char *plainText); 58 CCCryptorGCMTestCase(char *keyStr, char *ivStr, char *aDataStr, char *tagStr, CCAlgorithm alg, char *cipherText, char *plainText); 60 CCCryptorGCMDiscreetTestCase(char *keyStr, char *ivStr, char *aDataStr, char *tagStr, CCAlgorithm alg, char *cipherText, char *plainText);
|
H A D | CommonCryptoSymGCM.c | 53 CCAlgorithm alg; 56 alg = kCCAlgorithmAES128; 69 retval = CCCryptorGCMTestCase(keyStr, iv, adata, tag, alg, cipherText, plainText); 74 retval = CCCryptorGCMDiscreetTestCase(keyStr, iv, adata, tag, alg, cipherText, plainText); 88 retval = CCCryptorGCMTestCase(keyStr, iv, adata, tag, alg, cipherText, plainText); 91 retval = CCCryptorGCMDiscreetTestCase(keyStr, iv, adata, tag, alg, cipherText, plainText); 104 retval = CCCryptorGCMTestCase(keyStr, iv, adata, tag, alg, cipherText, plainText); 107 retval = CCCryptorGCMDiscreetTestCase(keyStr, iv, adata, tag, alg, cipherText, plainText); 120 retval = CCCryptorGCMTestCase(keyStr, iv, adata, tag, alg, cipherText, plainText); 123 retval = CCCryptorGCMDiscreetTestCase(keyStr, iv, adata, tag, alg, cipherTex [all...] |
H A D | CommonCryptoSymRC2.c | 53 CCAlgorithm alg; 59 alg = kCCAlgorithmRC2; 69 retval = CCCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 72 retval = CCMultiCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 81 retval = CCCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 84 retval = CCMultiCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 93 retval = CCCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 96 retval = CCMultiCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 106 retval = CCCryptTestCase(keyStr, iv, alg, options, cipherText, plainText); 109 retval = CCMultiCryptTestCase(keyStr, iv, alg, option [all...] |
H A D | CommonCryptoBlowfish.c | 44 CCAlgorithm alg; 51 alg = kCCAlgorithmBlowfish; 56 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText);
|
H A D | CommonCryptoCTSPadding.c | 47 CCAlgorithm alg; 56 alg = kCCAlgorithmAES128; 65 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 73 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 81 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 92 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 100 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 108 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 118 retval = CCModeTestCase(keyStr, iv, mode, alg, padding, cipherText, plainText); 126 retval = CCModeTestCase(keyStr, iv, mode, alg, paddin [all...] |
/macosx-10.9.5/Heimdal-323.92.1/lib/hcrypto/ |
H A D | ccdigest.c | 120 CCDigestAlg alg; member in struct:CCDigestCtx_s 125 CCDigestCreate(CCDigestAlg alg) argument 127 CCDigestRef ctx = calloc(1, sizeof(*ctx) + alg->ctx_size); 131 ctx->alg = alg; 132 ctx->alg->init((struct hc_md_ctx *)&ctx[1]); 141 ctx->alg->update((struct hc_md_ctx *)&ctx[1], data, length); 148 ctx->alg->final(output, (struct hc_md_ctx *)&ctx[1]); 155 CCDigestAlg alg = ctx->alg; local [all...] |
/macosx-10.9.5/Security-55471.14.18/include/security_cdsa_client/ |
H A D | signclient.h | 38 SigningContext(const CSP &csp, CSSM_ALGORITHMS alg, CSSM_ALGORITHMS signOnly = CSSM_ALGID_NONE) argument 39 : Context(csp, alg), mSignOnly(signOnly) { } 45 void signOnlyAlgorithm(CSSM_ALGORITHMS alg) { mSignOnly = alg; } argument 57 Sign(const CSP &csp, CSSM_ALGORITHMS alg, CSSM_ALGORITHMS signOnly = CSSM_ALGID_NONE) argument 58 : SigningContext(csp, alg, signOnly) { } 75 Verify(const CSP &csp, CSSM_ALGORITHMS alg, CSSM_ALGORITHMS verifyOnly = CSSM_ALGID_NONE) argument 76 : SigningContext(csp, alg, verifyOnly) { }
|
H A D | macclient.h | 40 MacContext(const CSP &csp, CSSM_ALGORITHMS alg) argument 41 : Context(csp, alg) { } 56 GenerateMac(const CSP &csp, CSSM_ALGORITHMS alg) : MacContext(csp, alg) { } argument 73 VerifyMac(const CSP &csp, CSSM_ALGORITHMS alg) : MacContext(csp, alg) { } argument
|
/macosx-10.9.5/Security-55471.14.18/libsecurity_cdsa_client/lib/ |
H A D | signclient.h | 38 SigningContext(const CSP &csp, CSSM_ALGORITHMS alg, CSSM_ALGORITHMS signOnly = CSSM_ALGID_NONE) argument 39 : Context(csp, alg), mSignOnly(signOnly) { } 45 void signOnlyAlgorithm(CSSM_ALGORITHMS alg) { mSignOnly = alg; } argument 57 Sign(const CSP &csp, CSSM_ALGORITHMS alg, CSSM_ALGORITHMS signOnly = CSSM_ALGID_NONE) argument 58 : SigningContext(csp, alg, signOnly) { } 75 Verify(const CSP &csp, CSSM_ALGORITHMS alg, CSSM_ALGORITHMS verifyOnly = CSSM_ALGID_NONE) argument 76 : SigningContext(csp, alg, verifyOnly) { }
|
H A D | macclient.h | 40 MacContext(const CSP &csp, CSSM_ALGORITHMS alg) argument 41 : Context(csp, alg) { } 56 GenerateMac(const CSP &csp, CSSM_ALGORITHMS alg) : MacContext(csp, alg) { } argument 73 VerifyMac(const CSP &csp, CSSM_ALGORITHMS alg) : MacContext(csp, alg) { } argument
|
/macosx-10.9.5/ruby-104/ruby/sample/openssl/ |
H A D | cipher.rb | 4 def crypt_by_password(alg, pass, salt, text) 6 puts %(cipher alg: "#{alg}") 13 enc = OpenSSL::Cipher::Cipher.new(alg) 22 dec = OpenSSL::Cipher::Cipher.new(alg) 49 alg = ARGV.shift || ciphers.first 54 crypt_by_password(alg, pass, salt, text)
|
/macosx-10.9.5/bind9-45.100/bind9/contrib/ |
H A D | check-secure-delegation.pl.in | 101 foreach $alg ( keys %dnskeyalg ) { 102 print "Missing $zone DNSKEY RRSIG for algorithm $alg\n" 103 if (!exists($dnskeygood{$alg})); 109 foreach $alg ( keys %algorithms ) { 110 if (exists($dsgood{$alg})) { 111 print "$zone algorithm $alg good " . 114 print "$zone algorithm $alg bad " .
|
/macosx-10.9.5/Heimdal-323.92.1/appl/otp/ |
H A D | otpprint.c | 69 OtpAlgorithm *alg, 84 alg->init (key, pw, seed); 88 alg->next (key); 102 OtpAlgorithm *alg = otp_find_alg (OTP_ALG_DEFAULT); local 115 alg = otp_find_alg (alg_string); 116 if (alg == NULL) 134 return print (argc, argv, count, alg, fn); 66 print(int argc, char **argv, int count, OtpAlgorithm *alg, void (*print_fn)(OtpKey, char *, size_t)) argument
|
H A D | otp.c | 76 renew (int argc, char **argv, OtpAlgorithm *alg, char *user) argument 84 newctx.alg = alg; 91 newctx.alg->name, 95 otp_parse (newctx.key, pw, alg) == 0) { 139 set (int argc, char **argv, OtpAlgorithm *alg, char *user) argument 147 ctx.alg = alg; 162 ctx.alg->init (ctx.key, pw, ctx.seed); 164 ctx.alg 293 OtpAlgorithm *alg = otp_find_alg (OTP_ALG_DEFAULT); local [all...] |
/macosx-10.9.5/text_cmds-87/md5/ |
H A D | md5.c | 226 MDString(Algorithm_t *alg, const char *string) argument 233 printf("%s\n", Digest_Data(alg->algorithm, string, len, buf)); 235 printf("%s \"%s\"\n", Digest_Data(alg->algorithm, string, len, buf), string); 237 printf("%s (\"%s\") = %s\n", alg->name, string, Digest_Data(alg->algorithm, string, len, buf)); 239 printf("%s\n", alg->Data(string, len, buf)); 241 printf("%s \"%s\"\n", alg->Data(string, len, buf), string); 243 printf("%s (\"%s\") = %s\n", alg->name, string, alg->Data(string, len, buf)); 250 MDTimeTrial(Algorithm_t *alg) argument 358 MDTestSuite(Algorithm_t *alg) argument 382 MDFilter(Algorithm_t *alg, int tee) argument 414 usage(Algorithm_t *alg) argument [all...] |
/macosx-10.9.5/CommonCrypto-60049/include/ |
H A D | CommonHMacSPI.h | 42 CCHmacCreate(CCDigestAlg alg, const void *key, size_t keyLength) 57 CCHmacOutputSize(CCDigestAlg alg)
|