/freebsd-10.0-release/lib/libutil/ |
H A D | login_crypt.c | 39 const char *cipher; local 41 cipher = login_getcapstr(lc, "passwd_format", def, NULL); 44 "passwd_format = %s\n", cipher); 45 if (cipher == NULL) 47 if (!crypt_set_format(cipher)) 49 return (cipher);
|
/freebsd-10.0-release/sys/opencrypto/ |
H A D | skipjack.h | 17 extern void skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key); 18 extern void skipjack_backwards(u_int8_t *cipher, u_int8_t *plain, u_int8_t **key);
|
/freebsd-10.0-release/crypto/openssl/crypto/evp/ |
H A D | evp_lib.c | 68 if (c->cipher->set_asn1_parameters != NULL) 69 ret=c->cipher->set_asn1_parameters(c,type); 70 else if (c->cipher->flags & EVP_CIPH_FLAG_DEFAULT_ASN1) 81 if (c->cipher->get_asn1_parameters != NULL) 82 ret=c->cipher->get_asn1_parameters(c,type); 83 else if (c->cipher->flags & EVP_CIPH_FLAG_DEFAULT_ASN1) 122 /* Convert the various cipher NIDs and dummies to a proper OID NID */ 188 return ctx->cipher->block_size; 193 return ctx->cipher->do_cipher(ctx,out,in,inl); 198 return ctx->cipher; 201 EVP_CIPHER_flags(const EVP_CIPHER *cipher) argument 221 EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) argument 231 EVP_CIPHER_key_length(const EVP_CIPHER *cipher) argument 241 EVP_CIPHER_nid(const EVP_CIPHER *cipher) argument [all...] |
H A D | evp_enc.c | 75 #define M_do_cipher(ctx, out, in, inl) ctx->cipher->do_cipher(ctx, out, in, inl) 84 /* ctx->cipher=NULL; */ 95 int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, argument 98 if (cipher) 100 return EVP_CipherInit_ex(ctx,cipher,NULL,key,iv,enc); 103 int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, argument 119 if (ctx->engine && ctx->cipher && (!cipher || 120 (cipher && (cipher 283 EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) argument 289 EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) argument 295 EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) argument 301 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_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, 129 OPENSSL_assert(EVP_CIPHER_key_length(cipher) <= (int)sizeof(md_tmp)); 130 memcpy(key, md_tmp, EVP_CIPHER_key_length(cipher)); 131 OPENSSL_assert(EVP_CIPHER_iv_length(cipher) <= 16); 132 memcpy(iv, md_tmp + (16 - EVP_CIPHER_iv_length(cipher)), 133 EVP_CIPHER_iv_length(cipher)); 134 if (!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...] |
/freebsd-10.0-release/contrib/wpa/src/crypto/ |
H A D | aes-wrap.c | 22 * @cipher: Wrapped key, (n + 1) * 64 bits 25 int aes_wrap(const u8 *kek, int n, const u8 *plain, u8 *cipher) argument 31 a = cipher; 32 r = cipher + 8; 50 r = cipher + 8; 65 * These are already in @cipher due to the location of temporary
|
H A D | aes-unwrap.c | 21 * @cipher: Wrapped key to be unwrapped, (n + 1) * 64 bits 25 int aes_unwrap(const u8 *kek, int n, const u8 *cipher, u8 *plain) argument 32 os_memcpy(a, cipher, 8); 34 os_memcpy(r, cipher + 8, 8 * n);
|
/freebsd-10.0-release/crypto/openssl/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, 100 alg_nid = EVP_CIPHER_type(cipher); 117 if (EVP_CIPHER_iv_length(cipher)) 120 memcpy(iv, aiv, EVP_CIPHER_iv_length(cipher)); 121 else if (RAND_pseudo_bytes(iv, EVP_CIPHER_iv_length(cipher)) < 0) 128 if (!EVP_CipherInit_ex(&ctx, cipher, NULL, NULL, iv, 0)) 136 /* If prf NID unspecified see if cipher has a preference. 150 keylen = EVP_CIPHER_key_length(cipher); 194 X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter, 197 return PKCS5_pbe2_set_iv(cipher, ite [all...] |
/freebsd-10.0-release/crypto/openssl/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);
|
/freebsd-10.0-release/sys/dev/random/ |
H A D | hash.h | 41 cipherInstance cipher; /* Rijndael internal */ member in struct:randomdev_key
|
H A D | hash.c | 69 rijndael_cipherInit(&context->cipher, MODE_CBC, NULL); 80 rijndael_blockEncrypt(&context->cipher, &context->key, d_in, length*8, d_out);
|
/freebsd-10.0-release/crypto/openssh/ |
H A D | cipher.c | 1 /* $OpenBSD: cipher.c,v 1.89 2013/05/17 00:13:13 djm Exp $ */ 50 #include "cipher.h" 213 debug("bad cipher %s [%s]", p, names); 217 debug3("cipher ok: %s [%s]", p, names); 226 * Parses the name of the cipher. Returns the number of the corresponding 227 * cipher, or -1 on error. 250 cipher_init(CipherContext *cc, const Cipher *cipher, argument 263 if (cipher->number == SSH_CIPHER_DES) { 272 cc->plaintext = (cipher->number == SSH_CIPHER_NONE); 275 if (keylen < cipher 396 cipher_set_key_string(CipherContext *cc, const Cipher *cipher, const char *passphrase, int do_encrypt) argument [all...] |
/freebsd-10.0-release/sys/crypto/rijndael/ |
H A D | rijndael-api-fst.c | 71 int rijndael_cipherInit(cipherInstance *cipher, BYTE mode, char *IV) { argument 73 cipher->mode = mode; 78 memcpy(cipher->IV, IV, RIJNDAEL_MAX_IV_SIZE); 80 memset(cipher->IV, 0, RIJNDAEL_MAX_IV_SIZE); 85 int rijndael_blockEncrypt(cipherInstance *cipher, keyInstance *key, argument 90 if (cipher == NULL || 101 switch (cipher->mode) { 112 memcpy(block, cipher->IV, 16); 119 ((u_int32_t*)block)[0] = ((u_int32_t*)cipher->IV)[0] ^ ((u_int32_t*)input)[0]; 120 ((u_int32_t*)block)[1] = ((u_int32_t*)cipher 200 rijndael_padEncrypt(cipherInstance *cipher, keyInstance *key, BYTE *input, int inputOctets, BYTE *outBuffer) argument 263 rijndael_blockDecrypt(cipherInstance *cipher, keyInstance *key, BYTE *input, int inputLen, BYTE *outBuffer) argument 362 rijndael_padDecrypt(cipherInstance *cipher, keyInstance *key, BYTE *input, int inputOctets, BYTE *outBuffer) argument [all...] |
/freebsd-10.0-release/crypto/openssl/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, 194 static int gost_ciphers (ENGINE *e,const EVP_CIPHER **cipher, argument 198 if (!cipher) 206 *cipher = &cipher_gost; 210 *cipher = &cipher_gost_cpacnt; 215 *cipher = NULL;
|
/freebsd-10.0-release/contrib/apr-util/crypto/ |
H A D | apr_crypto_openssl.c | 56 const EVP_CIPHER * cipher; member in struct:apr_crypto_key_t 375 /* determine the cipher to be used */ 382 key->cipher = EVP_des_ede3_cbc(); 385 key->cipher = EVP_des_ede3_ecb(); 392 key->cipher = EVP_aes_128_cbc(); 395 key->cipher = EVP_aes_128_ecb(); 402 key->cipher = EVP_aes_192_cbc(); 405 key->cipher = EVP_aes_192_ecb(); 412 key->cipher = EVP_aes_256_cbc(); 415 key->cipher [all...] |
/freebsd-10.0-release/crypto/openssl/ssl/ |
H A D | d1_enc.c | 164 else if ( EVP_CIPHER_block_size(ds->cipher) > 1) 166 if (RAND_bytes(rec->input, EVP_CIPHER_block_size(ds->cipher)) <= 0) 199 bs=EVP_CIPHER_block_size(ds->cipher); 226 ds->buf_len, ds->cipher->key_len, 228 ds->cipher->iv_len); 230 for (i=0; i<ds->cipher->iv_len; i++) printf("%02X", ds->iv[i]);
|
/freebsd-10.0-release/crypto/openssl/crypto/cmac/ |
H A D | cmac.h | 74 const EVP_CIPHER *cipher, ENGINE *impl);
|
/freebsd-10.0-release/crypto/openssl/crypto/pkcs7/ |
H A D | pk7_enc.c | 71 PKCS7_cipher(PKCS7 *p7,EVP_CIPHER *cipher);
|
/freebsd-10.0-release/sys/net80211/ |
H A D | ieee80211_crypto.c | 54 * Table of registered cipher modules. 172 * This is useful especially for the cipher test modules. 191 * Register a crypto cipher module. 197 printf("%s: cipher %s has an invalid cipher index %u\n", 202 printf("%s: cipher %s registered with a different template\n", 210 * Unregister a crypto cipher module. 216 printf("%s: cipher %s has an invalid cipher index %u\n", 221 printf("%s: cipher 231 ieee80211_crypto_available(u_int cipher) argument 263 ieee80211_crypto_newkey(struct ieee80211vap *vap, int cipher, int flags, struct ieee80211_key *key) argument [all...] |
/freebsd-10.0-release/crypto/openssl/apps/ |
H A D | enc.c | 124 const EVP_CIPHER *cipher=NULL,*c; local 154 cipher=EVP_get_cipherbyname(pname); 156 if (!do_zlib && !base64 && (cipher == NULL) 159 if (!base64 && (cipher == NULL) && (strcmp(pname,"enc") != 0)) 162 BIO_printf(bio_err,"%s is an unknown cipher\n",pname); 292 cipher=c; 295 cipher=NULL; 336 if (cipher && EVP_CIPHER_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) 342 if (cipher [all...] |