Home
last modified time | relevance | path

Searched refs:key1 (Results 1 – 19 of 19) sorted by relevance

/openssl-master/crypto/des/
A Dstr2key.c46 void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2) in DES_string_to_2keys() argument
51 memset(key1, 0, 8); in DES_string_to_2keys()
59 (*key1)[i % 8] ^= (j << 1); in DES_string_to_2keys()
67 (*key1)[7 - (i % 8)] ^= j; in DES_string_to_2keys()
73 memcpy(key2, key1, 8); in DES_string_to_2keys()
74 DES_set_odd_parity(key1); in DES_string_to_2keys()
76 DES_set_key_unchecked(key1, &ks); in DES_string_to_2keys()
77 DES_cbc_cksum((const unsigned char *)str, key1, length, &ks, key1); in DES_string_to_2keys()
81 DES_set_odd_parity(key1); in DES_string_to_2keys()
/openssl-master/include/crypto/
A Daes_platform.h40 size_t len, const AES_KEY *key1,
43 size_t len, const AES_KEY *key1,
55 const AES_KEY *key1, const AES_KEY *key2,
58 const AES_KEY *key1, const AES_KEY *key2,
196 const AES_KEY *key1, const AES_KEY *key2,
292 size_t blocks, const AES_KEY *key1,
295 size_t blocks, const AES_KEY *key1,
298 size_t blocks, const AES_KEY *key1,
301 size_t blocks, const AES_KEY *key1,
420 size_t len, const AES_KEY *key1,
[all …]
A Dmodes.h147 void *key1, *key2; member
/openssl-master/providers/implementations/keymgmt/
A Dmac_legacy_kmgmt.c160 const MAC_KEY *key1 = keydata1; in mac_match() local
168 if ((key1->priv_key == NULL && key2->priv_key != NULL) in mac_match()
169 || (key1->priv_key != NULL && key2->priv_key == NULL) in mac_match()
170 || key1->priv_key_len != key2->priv_key_len in mac_match()
171 || (key1->cipher.cipher == NULL && key2->cipher.cipher != NULL) in mac_match()
172 || (key1->cipher.cipher != NULL && key2->cipher.cipher == NULL)) in mac_match()
175 ok = ok && (key1->priv_key == NULL /* implies key2->privkey == NULL */ in mac_match()
176 || CRYPTO_memcmp(key1->priv_key, key2->priv_key, in mac_match()
177 key1->priv_key_len) == 0); in mac_match()
178 if (key1->cipher.cipher != NULL) in mac_match()
[all …]
A Decx_kmgmt.c147 const ECX_KEY *key1 = keydata1; in ecx_match() local
155 ok = ok && key1->type == key2->type; in ecx_match()
157 if ((key1->privkey == NULL && key2->privkey != NULL) in ecx_match()
158 || (key1->privkey != NULL && key2->privkey == NULL) in ecx_match()
159 || key1->type != key2->type) in ecx_match()
163 || CRYPTO_memcmp(key1->privkey, key2->privkey, in ecx_match()
164 key1->keylen) == 0); in ecx_match()
167 if (key1->haspubkey != key2->haspubkey in ecx_match()
168 || key1->type != key2->type) in ecx_match()
172 || CRYPTO_memcmp(key1->pubkey, key2->pubkey, in ecx_match()
[all …]
/openssl-master/test/
A Digetest.c81 const unsigned char key1[32]; member
194 AES_KEY key1; in test_bi_ige_vectors() local
202 AES_set_encrypt_key(v->key1, 8 * v->keysize, &key1); in test_bi_ige_vectors()
205 AES_set_decrypt_key(v->key1, 8 * v->keysize, &key1); in test_bi_ige_vectors()
209 AES_bi_ige_encrypt(v->in, buf, v->length, &key1, &key2, v->iv, in test_bi_ige_vectors()
213 test_output_memory("key 1", v->key1, sizeof(v->key1)); in test_bi_ige_vectors()
A Drsa_test.c48 static int key1(RSA *key, unsigned char *c) in key1() function
222 clen = key1(*key, ctext); in rsa_setkey()
/openssl-master/crypto/aes/asm/
A Daesp8-ppc.pl2466 lvx v30,$x10,$key1
2467 addi $key1,$key1,0x20
2468 lvx v31,$x00,$key1
2475 lvx v30,$x10,$key1
2476 addi $key1,$key1,0x20
2479 lvx v31,$x00,$key1
2484 lvx v26,$x10,$key1
2486 lvx v27,$x20,$key1
2489 lvx v28,$x30,$key1
3119 addi $key1,$key1,0x20
[all …]
A Daesv8-armx.pl2241 ldr $rounds,[$key1,#240]
2350 add $key_,$key1,#32
2459 mov $key_,$key1
2684 mov $key_,$key1
2837 vld1.32 {$dat0},[$key1]
2918 ldr $rounds,[$key1,#240]
3038 add $key_,$key1,#32
3142 mov $key_,$key1
3377 mov $key_,$key1
3501 ldr $rounds,[$key1,#240]
[all …]
A Daes-s390x.pl1655 la %r1,0($key1) # restore $key1
1682 la %r1,0($key1) # restore pointer to $key1
1844 l %r0,240($key1)
1845 la %r1,0($key1) # $key1 is not needed anymore
1928 la $key,0($key1)
1978 la $key,0($key1)
2047 l %r0,240($key1)
2048 la %r1,0($key1) # $key1 is not needed anymore
2170 la $key,0($key1)
2229 la $key,0($key1)
[all …]
/openssl-master/crypto/modes/
A Dxts128.c55 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
100 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
138 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
149 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
/openssl-master/providers/implementations/ciphers/
A Dcipher_aes_xts.c140 if (in->xts.key1 != NULL) { in aes_xts_dupctx()
141 if (in->xts.key1 != &in->ks1) in aes_xts_dupctx()
163 || ctx->xts.key1 == NULL in aes_xts_cipher()
183 (*ctx->stream)(in, out, inl, ctx->xts.key1, ctx->xts.key2, ctx->base.iv); in aes_xts_cipher()
A Dcipher_aes_xts_hw.c33 xctx->xts.key1 = &xctx->ks1; \
96 dctx->xts.key1 = &dctx->ks1.ks; in cipher_hw_aes_xts_copyctx()
A Dcipher_aes_xts.h22 const AES_KEY *key1, const AES_KEY *key2,
/openssl-master/doc/man7/
A Ddes_modes.pod189 Encrypt with key1, decrypt with key2 and encrypt with key3 again.
224 Encrypt with key1, decrypt with key2 and then encrypt with key3.
/openssl-master/include/openssl/
A Ddes.h195 void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2);
/openssl-master/crypto/evp/
A De_aes.c70 const AES_KEY *key1, const AES_KEY *key2,
299 xctx->xts.key1 = &xctx->ks1; in aesni_xts_init_key()
654 xctx->xts.key1 = &xctx->ks1; in aes_t4_xts_init_key()
3107 if (xctx->xts.key1) { in aes_xts_ctrl()
3108 if (xctx->xts.key1 != &xctx->ks1) in aes_xts_ctrl()
3110 xctx_out->xts.key1 = &xctx_out->ks1; in aes_xts_ctrl()
3121 xctx->xts.key1 = NULL; in aes_xts_ctrl()
3187 xctx->xts.key1 = &xctx->ks1; in aes_xts_init_key()
3209 xctx->xts.key1 = &xctx->ks1; in aes_xts_init_key()
3226 xctx->xts.key1 = &xctx->ks1; in aes_xts_init_key()
[all …]
/openssl-master/doc/man3/
A DDES_random_key.pod94 void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2);
/openssl-master/crypto/perlasm/
A Dsparcv9_modes.pl925 my ($inp,$out,$len,$key1,$key2,$ivec)=map("%i$_",(0..5));

Completed in 46 milliseconds