/barrelfish-master/lib/openssl-1.0.0d/demos/ssltest-ecc/ |
H A D | ssltest.sh | 2 # Tests ECC cipher suites using ssltest. Requires one argument which could 60 # Anonymous cipher suites do not require key or certificate files 66 for cipher in $AECDH_CIPHER_LIST 68 echo "Testing $cipher" 69 $SSLTEST $SSL_VERSION -cert $SERVER_PEM -cipher $cipher 76 -named_curve $curve -cipher AECDH-NULL-SHA 83 -named_curve $curve -cipher AECDH-RC4-SHA 88 # Both ECDH-ECDSA and ECDHE-ECDSA cipher suites require 95 for cipher i [all...] |
/barrelfish-master/lib/openssl-1.0.0d/test/ |
H A D | testenc | 10 $cmd enc < $test > $test.cipher 11 $cmd enc < $test.cipher >$test.clear 17 /bin/rm $test.cipher $test.clear 20 $cmd enc -a -e < $test > $test.cipher 21 $cmd enc -a -d < $test.cipher >$test.clear 27 /bin/rm $test.cipher $test.clear 30 for i in `$cmd list-cipher-commands` 33 $cmd $i -bufsize 113 -e -k test < $test > $test.$i.cipher 34 $cmd $i -bufsize 157 -d -k test < $test.$i.cipher >$test.$i.clear 40 /bin/rm $test.$i.cipher [all...] |
H A D | testenc.com | 17 $ if f$search(test+"-cipher") .nes. "" then delete 'test'-cipher;* 21 $ 'cmd' enc -in 'test' -out 'test'-cipher 22 $ 'cmd' enc -in 'test'-cipher -out 'test'-clear 25 $ delete 'test'-cipher;*,'test'-clear;* 28 $ 'cmd' enc -a -e -in 'test' -out 'test'-cipher 29 $ 'cmd' enc -a -d -in 'test'-cipher -out 'test'-clear 32 $ delete 'test'-cipher;*,'test'-clear;* 34 $ define/user sys$output 'test'-cipher-commands 35 $ 'cmd' list-cipher [all...] |
H A D | evp_test.c | 146 printf("Testing cipher %s%s\n",EVP_CIPHER_name(c), 244 static int test_cipher(const char *cipher,const unsigned char *key,int kn, argument 252 c=EVP_get_cipherbyname(cipher); 359 * It'll prevent ENGINEs being ENGINE_init()ialised for cipher/digest use if 368 char *cipher; local 378 cipher=sstrsep(&p,":"); 396 if(!test_cipher(cipher,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec) 397 && !test_digest(cipher,plaintext,pn,ciphertext,cn)) 400 if (strstr(cipher, "AES") == cipher) [all...] |
/barrelfish-master/lib/openssl-1.0.0d/crypto/evp/ |
H A D | evp_enc.c | 74 /* ctx->cipher=NULL; */ 85 int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, argument 88 if (cipher) 90 return EVP_CipherInit_ex(ctx,cipher,NULL,key,iv,enc); 93 int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, argument 109 if (ctx->engine && ctx->cipher && (!cipher || 110 (cipher && (cipher->nid == ctx->cipher 254 EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) argument 260 EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) argument 266 EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) argument 272 EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) argument [all...] |
H A D | evp_lib.c | 68 if (c->cipher->set_asn1_parameters != NULL) 69 ret=c->cipher->set_asn1_parameters(c,type); 79 if (c->cipher->get_asn1_parameters != NULL) 80 ret=c->cipher->get_asn1_parameters(c,type); 118 /* Convert the various cipher NIDs and dummies to a proper OID NID */ 184 return ctx->cipher->block_size; 189 return ctx->cipher->do_cipher(ctx,out,in,inl); 194 return ctx->cipher; 197 unsigned long EVP_CIPHER_flags(const EVP_CIPHER *cipher) argument 199 return cipher 217 EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) argument 227 EVP_CIPHER_key_length(const EVP_CIPHER *cipher) argument 237 EVP_CIPHER_nid(const EVP_CIPHER *cipher) argument [all...] |
H A D | evp_test.c | 146 printf("Testing cipher %s%s\n",EVP_CIPHER_name(c), 244 static int test_cipher(const char *cipher,const unsigned char *key,int kn, argument 252 c=EVP_get_cipherbyname(cipher); 359 * It'll prevent ENGINEs being ENGINE_init()ialised for cipher/digest use if 368 char *cipher; local 378 cipher=sstrsep(&p,":"); 396 if(!test_cipher(cipher,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec) 397 && !test_digest(cipher,plaintext,pn,ciphertext,cn)) 400 if (strstr(cipher, "AES") == cipher) [all...] |
H A D | p5_crpt.c | 73 ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, 122 OPENSSL_assert(EVP_CIPHER_key_length(cipher) <= (int)sizeof(md_tmp)); 123 memcpy(key, md_tmp, EVP_CIPHER_key_length(cipher)); 124 OPENSSL_assert(EVP_CIPHER_iv_length(cipher) <= 16); 125 memcpy(iv, md_tmp + (16 - EVP_CIPHER_iv_length(cipher)), 126 EVP_CIPHER_iv_length(cipher)); 127 EVP_CipherInit_ex(cctx, cipher, NULL, key, iv, en_de); 72 PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *cctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de) argument
|
H A D | bio_enc.c | 83 EVP_CIPHER_CTX cipher; member in struct:enc_struct 92 BIO_TYPE_CIPHER,"cipher", 114 EVP_CIPHER_CTX_init(&ctx->cipher); 134 EVP_CIPHER_CTX_cleanup(&(b->cipher)); 187 i=EVP_CipherFinal_ex(&(ctx->cipher), 201 EVP_CipherUpdate(&(ctx->cipher), 260 EVP_CipherUpdate(&(ctx->cipher), 301 EVP_CipherInit_ex(&(ctx->cipher),NULL,NULL,NULL,NULL, 302 ctx->cipher.encrypt); 335 ret=EVP_CipherFinal_ex(&(ctx->cipher), [all...] |
H A D | openbsd_hw.c | 130 static int dev_crypto_init_key(EVP_CIPHER_CTX *ctx,int cipher, 138 assert(ctx->cipher->iv_len <= MAX_HW_IV); 142 CDATA(ctx)->cipher=cipher; 170 assert((inl&(ctx->cipher->block_size-1)) == 0); 174 if(ctx->cipher->iv_len) 178 memcpy(lb,&in[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len); 231 memcpy(ctx->iv,&out[cryp.len-ctx->cipher->iv_len],ctx->cipher [all...] |
H A D | e_aes.c | 104 if ((ctx->cipher->flags & EVP_CIPH_MODE) == EVP_CIPH_CFB_MODE 105 || (ctx->cipher->flags & EVP_CIPH_MODE) == EVP_CIPH_OFB_MODE
|
H A D | evp_pbe.c | 70 /* Setup a cipher context from a PBE algorithm */ 153 const EVP_CIPHER *cipher; local 175 cipher = NULL; 178 cipher = EVP_get_cipherbynid(cipher_nid); 179 if (!cipher) 198 if (!keygen(ctx, pass, passlen, param, cipher, md, en_de)) 252 int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md, argument 256 if (cipher) 257 cipher_nid = EVP_CIPHER_type(cipher);
|
/barrelfish-master/lib/openssl-1.0.0d/crypto/asn1/ |
H A D | x_pkey.c | 82 ret->cipher.cipher=EVP_get_cipherbyname( 84 if (ret->cipher.cipher == NULL) 99 memcpy(ret->cipher.iv, 103 memset(ret->cipher.iv,0,EVP_MAX_IV_LENGTH); 120 ret->cipher.cipher=NULL; 121 memset(ret->cipher.iv,0,EVP_MAX_IV_LENGTH);
|
H A D | p5_pbev2.c | 89 X509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter, 102 alg_nid = EVP_CIPHER_type(cipher); 119 if (EVP_CIPHER_iv_length(cipher)) 122 memcpy(iv, aiv, EVP_CIPHER_iv_length(cipher)); 123 else if (RAND_pseudo_bytes(iv, EVP_CIPHER_iv_length(cipher)) < 0) 130 EVP_CipherInit_ex(&ctx, cipher, NULL, NULL, iv, 0); 137 /* If prf NID unspecified see if cipher has a preference. 170 EVP_CIPHER_key_length(cipher))) goto merr; 231 X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter, 234 return PKCS5_pbe2_set_iv(cipher, ite [all...] |
/barrelfish-master/lib/openssl-1.0.0d/crypto/pkcs12/ |
H A D | p12_crpt.c | 70 ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de) 96 iter, EVP_CIPHER_key_length(cipher), key, md)) { 102 iter, EVP_CIPHER_iv_length(cipher), iv, md)) { 108 ret = EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, en_de); 69 PKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de) argument
|
H A D | p12_p8e.c | 63 X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher, argument 76 if(pbe_nid == -1) pbe = PKCS5_pbe2_set(cipher, iter, salt, saltlen);
|
/barrelfish-master/lib/openssl-1.0.0d/crypto/cms/ |
H A D | cms_enc.c | 81 enc = ec->cipher ? 1 : 0; 95 ciph = ec->cipher; 96 /* If not keeping key set cipher to NULL so subsequent calls 100 ec->cipher = NULL; 208 const EVP_CIPHER *cipher, 211 ec->cipher = cipher; 220 if (cipher) 259 if (enc->encryptedContentInfo->cipher && enc->unprotectedAttrs) 207 cms_EncryptedContent_init(CMS_EncryptedContentInfo *ec, const EVP_CIPHER *cipher, const unsigned char *key, size_t keylen) argument
|
/barrelfish-master/lib/openssl-1.0.0d/engines/ccgost/ |
H A D | gost89.h | 46 void gost_enc(gost_ctx *ctx, const byte *clear,byte *cipher, int blocks); 48 void gost_dec(gost_ctx *ctx, const byte *cipher,byte *clear, int blocks); 50 void gost_enc_cfb(gost_ctx *ctx,const byte *iv,const byte *clear,byte *cipher,int blocks); 52 void gost_dec_cfb(gost_ctx *ctx,const byte *iv,const byte *cipher,byte *clear,int blocks);
|
H A D | gost_eng.c | 21 /* Symmetric cipher and digest function registrar */ 23 static int gost_ciphers(ENGINE *e, const EVP_CIPHER **cipher, 182 static int gost_ciphers (ENGINE *e,const EVP_CIPHER **cipher, argument 186 if (!cipher) 194 *cipher = &cipher_gost; 198 *cipher = &cipher_gost_cpacnt; 203 *cipher = NULL;
|
/barrelfish-master/lib/openssl-1.0.0d/crypto/pkcs7/ |
H A D | enc.c | 77 const EVP_CIPHER *cipher=NULL; local 91 if(!(cipher = EVP_get_cipherbyname(argv[2]))) { 92 fprintf(stderr, "Unknown cipher %s\n", argv[2]); 130 if(!cipher) { 132 cipher = EVP_des_ede3_cbc(); 134 fprintf(stderr, "No cipher selected\n"); 139 if (!PKCS7_set_cipher(p7,cipher)) goto err;
|
H A D | pk7_enc.c | 71 PKCS7_cipher(PKCS7 *p7,EVP_CIPHER *cipher);
|
/barrelfish-master/lib/openssl-1.0.0d/ssl/ |
H A D | d1_enc.c | 156 else if ( EVP_CIPHER_block_size(ds->cipher) > 1) 158 if (RAND_bytes(rec->input, EVP_CIPHER_block_size(ds->cipher)) <= 0) 192 bs=EVP_CIPHER_block_size(ds->cipher); 219 ds->buf_len, ds->cipher->key_len, 221 ds->cipher->iv_len); 223 for (i=0; i<ds->cipher->iv_len; i++) printf("%02X", ds->iv[i]);
|
/barrelfish-master/lib/openssl-1.0.0d/crypto/pem/ |
H A D | pem_seal.c | 101 EVP_CIPHER_CTX_init(&ctx->cipher); 102 ret=EVP_SealInit(&ctx->cipher,type,ek,ekl,iv,pubk,npubk); 136 EVP_EncryptUpdate(&ctx->cipher,buffer,&j,in,i); 166 EVP_EncryptFinal_ex(&ctx->cipher,s,(int *)&i); 179 EVP_CIPHER_CTX_cleanup(&ctx->cipher);
|
/barrelfish-master/lib/openssl-1.0.0d/apps/ |
H A D | enc.c | 122 const EVP_CIPHER *cipher=NULL,*c; local 151 cipher=EVP_get_cipherbyname(pname); 153 if (!do_zlib && !base64 && (cipher == NULL) 156 if (!base64 && (cipher == NULL) && (strcmp(pname,"enc") != 0)) 159 BIO_printf(bio_err,"%s is an unknown cipher\n",pname); 287 cipher=c; 290 cipher=NULL; 417 if ((str == NULL) && (cipher != NULL) && (hkey == NULL)) 424 OBJ_nid2ln(EVP_CIPHER_nid(cipher)), 501 if (cipher ! [all...] |
H A D | smime.c | 98 const EVP_CIPHER *cipher = NULL; local 152 cipher = EVP_des_ede3_cbc(); 154 cipher = EVP_des_cbc(); 158 cipher = EVP_seed_cbc(); 162 cipher = EVP_rc2_40_cbc(); 164 cipher = EVP_rc2_cbc(); 166 cipher = EVP_rc2_64_cbc(); 170 cipher = EVP_aes_128_cbc(); 172 cipher = EVP_aes_192_cbc(); 174 cipher [all...] |