HomeSort by relevance Sort by last modified time
    Searched defs:cipher (Results 1 - 25 of 49) sorted by null

1 2

  /onnv/onnv-gate/usr/src/lib/krb5/kdb/
decrypt_key.c 81 krb5_enc_data cipher; local
90 cipher.enctype = ENCTYPE_UNKNOWN;
91 cipher.ciphertext.length = key_data->key_data_length[0]-2;
92 cipher.ciphertext.data = (char *)ptr; /* SUNWresync121 XXX */
99 &cipher, &plain))) {
encrypt_key.c 84 krb5_enc_data cipher; local
116 cipher.ciphertext.length = len;
117 cipher.ciphertext.data = (char *)ptr; /* SUNWresync121 XXX */
120 &plain, &cipher))) {
  /onnv/onnv-gate/usr/src/common/net/wanboot/crypt/
aes_test.c 33 * is the expected cipher. Then decrypts the cipher and verifies that the
48 char cipher[AES_BLOCK_SIZE * 2]; member in struct:test_data
71 unsigned char cipher[AES_BLOCK_SIZE]; local
93 getxdata(cipher, td[i].cipher, AES_BLOCK_SIZE);
98 if (bcmp(work, cipher, AES_BLOCK_SIZE) != 0) {
des3_test.c 33 * key and verifies the result against the cipher value. Then decrypts
34 * the cipher and compares the result against the plain value.
52 char cipher[DES3_BLOCK_SIZE * 2]; member in struct:test_data
114 unsigned char cipher[DES3_BLOCK_SIZE]; local
138 getxdata(cipher, td[i].cipher, DES3_BLOCK_SIZE);
143 if (bcmp(work, cipher, DES3_BLOCK_SIZE) != 0) {
  /onnv/onnv-gate/usr/src/common/openssl/crypto/pkcs7/
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;
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
driver_wifi.c 196 dladm_wlan_cipher_t cipher; local
207 cipher = DLADM_WLAN_CIPHER_WEP;
211 cipher = DLADM_WLAN_CIPHER_TKIP;
215 cipher = DLADM_WLAN_CIPHER_AES_CCM;
235 status = dladm_wlan_wpa_set_key(handle, linkid, cipher, &bss, set_tx,
293 * NB: Don't need to set the freq or cipher-related state as
  /onnv/onnv-gate/usr/src/cmd/ssh/include/
cipher.h 1 /* $OpenBSD: cipher.h,v 1.33 2002/03/18 17:13:15 markus Exp $ */
49 * Cipher types for SSH-1. New types can be added, but old types should not
53 #define SSH_CIPHER_ILLEGAL -2 /* No valid cipher selected. */
68 typedef struct Cipher Cipher;
71 struct Cipher;
75 Cipher *cipher; member in struct:CipherContext
79 Cipher *cipher_by_name(const char *);
80 Cipher *cipher_by_number(int)
    [all...]
  /onnv/onnv-gate/usr/src/common/openssl/crypto/evp/
evp_pbe.c 68 /* Setup a cipher context from a PBE algorithm */
72 const EVP_CIPHER *cipher; member in struct:__anon2342
98 i = (*pbetmp->keygen)(ctx, pass, passlen, param, pbetmp->cipher,
116 int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md,
126 pbe_tmp->cipher = cipher;
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...]
p5_crpt2.c 156 const EVP_CIPHER *cipher; local
183 cipher = EVP_get_cipherbyname(
186 if(!cipher) {
192 /* Fixup cipher based on AlgorithmIdentifier */
193 EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, en_de);
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,
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...]
  /onnv/onnv-gate/usr/src/common/openssl/apps/
pkcs8.c 78 const EVP_CIPHER *cipher = NULL; local
110 cipher=EVP_get_cipherbyname(*args);
111 if (!cipher)
114 "Unknown cipher %s\n", *args);
223 BIO_printf(bio_err, "-v2 alg use PKCS#5 v2.0 and cipher \"alg\"\n");
224 BIO_printf(bio_err, "-v1 obj use PKCS#5 v1.5 and cipher \"alg\"\n");
241 if ((pbe_nid == -1) && !cipher)
324 if (!(p8 = PKCS8_encrypt(pbe_nid, cipher,
enc.c 120 const EVP_CIPHER *cipher=NULL,*c; local
145 cipher=EVP_get_cipherbyname(pname);
146 if (!base64 && (cipher == NULL) && (strcmp(pname,"enc") != 0))
148 BIO_printf(bio_err,"%s is an unknown cipher\n",pname);
267 cipher=c;
270 cipher=NULL;
293 BIO_printf(bio_err,"Cipher Types\n");
391 if ((str == NULL) && (cipher != NULL) && (hkey == NULL))
398 OBJ_nid2ln(EVP_CIPHER_nid(cipher)),
460 if (cipher != NULL
    [all...]
smime.c 94 const EVP_CIPHER *cipher = NULL; local
144 cipher = EVP_des_ede3_cbc();
146 cipher = EVP_des_cbc();
150 cipher = EVP_rc2_40_cbc();
152 cipher = EVP_rc2_cbc();
154 cipher = EVP_rc2_64_cbc();
158 cipher = EVP_aes_128_cbc();
160 cipher = EVP_aes_192_cbc();
162 cipher = EVP_aes_256_cbc();
503 if (!cipher)
    [all...]
  /onnv/onnv-gate/usr/src/common/openssl/crypto/pem/
pem_info.c 247 EVP_CIPHER_INFO cipher; local
249 if (!PEM_get_EVP_CIPHER_INFO(header,&cipher))
251 if (!PEM_do_header(&cipher,data,&len,cb,u))
351 EVP_CIPHER_nid(xi->enc_cipher.cipher));
  /onnv/onnv-gate/usr/src/cmd/ssh/libssh/common/
authfile.c 47 #include "cipher.h"
76 Cipher *cipher; local
81 * to another cipher; otherwise use SSH_AUTHFILE_CIPHER.
85 if ((cipher = cipher_by_number(cipher_num)) == NULL)
86 fatal("save_private_key_rsa: bad cipher");
121 /* Store cipher type. */
134 cipher_set_key_string(&ciphercontext, cipher, passphrase,
174 const EVP_CIPHER *cipher = (len > 0) ? EVP_des_ede3_cbc() : NULL; local
194 cipher, passphrase, len, NULL, NULL)
321 Cipher *cipher; local
    [all...]
  /onnv/onnv-gate/usr/src/common/openssl/ssl/
ssl_asn1.c 70 ASN1_OCTET_STRING cipher; member in struct:ssl_session_asn1_st
93 if ((in == NULL) || ((in->cipher == NULL) && (in->cipher_id == 0)))
111 a.cipher.type=V_ASN1_OCTET_STRING;
112 a.cipher.data=buf;
114 if (in->cipher == NULL)
117 l=in->cipher->id;
120 a.cipher.length=3;
127 a.cipher.length=2;
184 M_ASN1_I2D_len(&(a.cipher), i2d_ASN1_OCTET_STRING);
207 M_ASN1_I2D_put(&(a.cipher), i2d_ASN1_OCTET_STRING)
    [all...]
ssl_task.c 66 * SSL_CIPHER Defines a list of cipher specifications the server
140 static char *cipher=NULL; variable
223 * get the preferred cipher list and other initialization
225 if (cipher == NULL) cipher=getenv("SSL_CIPHER");
226 printf("cipher list: %s\n", cipher ? cipher : "{undefined}" );
  /onnv/onnv-gate/usr/src/lib/krb5/kadm5/srv/
chgpwd.c 62 krb5_data cipher, clear; local
83 cipher.length = 0;
84 cipher.data = NULL;
335 cipher.length = (req->data + req->length) - ptr;
336 cipher.data = ptr;
338 if (ret = krb5_rd_priv(context, auth_context, &cipher,
433 cipher.length = 0;
444 &cipher, &replay)) {
457 if (cipher.length == 0) {
494 ret = krb5_mk_error(context, &krberror, &cipher);
    [all...]
  /onnv/onnv-gate/usr/src/lib/libcrypt/common/
des_soft.c 365 * Do a cipher step
368 #define cipher(iter, inR, inL, outR, outL) { \ macro
382 cipher(0, r0, l0, r1, l1);
383 cipher(1, r1, l1, r0, l0);
384 cipher(2, r0, l0, r1, l1);
385 cipher(3, r1, l1, r0, l0);
386 cipher(4, r0, l0, r1, l1);
387 cipher(5, r1, l1, r0, l0);
388 cipher(6, r0, l0, r1, l1);
389 cipher(7, r1, l1, r0, l0)
    [all...]
  /onnv/onnv-gate/usr/src/lib/libnsl/des/
des_soft.c 400 * Do a cipher step
403 #define cipher(iter, inR, inL, outR, outL) { \ macro
417 cipher(0, r0, l0, r1, l1);
418 cipher(1, r1, l1, r0, l0);
419 cipher(2, r0, l0, r1, l1);
420 cipher(3, r1, l1, r0, l0);
421 cipher(4, r0, l0, r1, l1);
422 cipher(5, r1, l1, r0, l0);
423 cipher(6, r0, l0, r1, l1);
424 cipher(7, r1, l1, r0, l0)
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/des/
des_soft.c 325 * Do a cipher step
328 #define cipher(iter, inR, inL, outR, outL) { \ macro
342 cipher(0, r0, l0, r1, l1);
343 cipher(1, r1, l1, r0, l0);
344 cipher(2, r0, l0, r1, l1);
345 cipher(3, r1, l1, r0, l0);
346 cipher(4, r0, l0, r1, l1);
347 cipher(5, r1, l1, r0, l0);
348 cipher(6, r0, l0, r1, l1);
349 cipher(7, r1, l1, r0, l0)
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
k5sealv3.c 148 krb5_enc_data cipher; local
205 cipher.ciphertext.data = (char *)outbuf + 16;
206 cipher.ciphertext.length = bufsize - 16;
207 cipher.enctype = key->enctype;
208 err = krb5_c_encrypt(context, key, key_usage, 0, &plain, &cipher);
445 krb5_enc_data cipher; local
455 cipher.enctype = key->enctype;
456 cipher.ciphertext.length = bodysize - 16;
457 cipher.ciphertext.data = (char *)ptr + 16;
463 &cipher, &plain)
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/io/net80211/
net80211_crypto.c 55 * Table of registered cipher modules.
116 * Establish a relationship between the specified key and cipher
129 ieee80211_crypto_newkey(ieee80211com_t *ic, int cipher, int flags,
138 * Validate cipher and set reference to cipher routines.
140 if (cipher >= IEEE80211_CIPHER_MAX) {
142 "invalid cipher %u\n", cipher);
145 cip = ic->ic_ciphers[cipher];
149 "unable to load cipher %u, module %s\n"
360 uint32_t cipher; local
    [all...]
  /onnv/onnv-gate/usr/src/common/openssl/crypto/krb5/
krb5_asn.h 79 ** cipher[2] OCTET STRING -- ciphertext
86 ASN1_OCTET_STRING *cipher; member in struct:krb5_encdata_st

Completed in 1149 milliseconds

1 2