/freebsd-11-stable/share/examples/tests/tests/ |
H A D | Makefile | 21 TESTS_SUBDIRS+= plain
|
/freebsd-11-stable/contrib/wpa/src/crypto/ |
H A D | des_i.h | 18 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt); 19 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain); 22 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt); 23 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain);
|
H A D | aes.h | 15 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt); 18 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
|
H A D | crypto_internal-cipher.c | 103 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument 110 if (plain != crypt) 111 os_memcpy(crypt, plain, len); 122 ctx->u.aes.cbc[j] ^= plain[j]; 126 plain += AES_BLOCK_SIZE; 136 ctx->u.des3.cbc[j] ^= plain[j]; 140 plain += 8; 150 ctx->u.des3.cbc[j] ^= plain[j]; 154 plain += 8; 167 u8 *plain, size_ 166 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument [all...] |
H A D | aes-unwrap.c | 23 * @plain: Plaintext key, n * 64 bits 27 u8 *plain) 36 r = plain; 51 r = plain + (n - 1) * 8; 71 * These are already in @plain due to the location of temporary 26 aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, u8 *plain) argument
|
H A D | aes-wrap.c | 22 * @plain: Plaintext key to be wrapped, n * 64 bits 26 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) argument 38 os_memcpy(r, plain, 8 * n);
|
H A D | crypto_libtomcrypt.c | 100 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument 103 return aes_ecb_encrypt(plain, crypt, skey) == CRYPT_OK ? 0 : -1; 129 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument 132 return aes_ecb_encrypt(plain, (u8 *) crypt, skey) == CRYPT_OK ? 0 : -1; 354 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument 360 if (plain != crypt) 361 os_memcpy(crypt, plain, len); 368 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc); 379 u8 *plain, size_t len) 384 if (plain ! 378 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument 615 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument [all...] |
H A D | aes_wrap.h | 21 int __must_check aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, 24 const u8 *cipher, u8 *plain); 54 const u8 *plain, size_t plain_len, 61 u8 *plain); 66 size_t M, const u8 *plain, size_t plain_len, 71 u8 *plain);
|
H A D | crypto_internal-rsa.c | 113 u8 *plain, size_t *plain_len) 116 crypt, crypt_len, plain, plain_len); 111 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
|
H A D | aes-ccm.c | 149 size_t M, const u8 *plain, size_t plain_len, 164 aes_ccm_auth(aes, plain, plain_len, x); 168 aes_ccm_encr(aes, L, plain, plain_len, crypt, a); 180 const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) 199 aes_ccm_encr(aes, L, crypt, crypt_len, plain, a); 202 aes_ccm_auth(aes, plain, crypt_len, x); 148 aes_ccm_ae(const u8 *key, size_t key_len, const u8 *nonce, size_t M, const u8 *plain, size_t plain_len, const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth) argument 178 aes_ccm_ad(const u8 *key, size_t key_len, const u8 *nonce, size_t M, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) argument
|
/freebsd-11-stable/sys/opencrypto/ |
H A D | skipjack.h | 20 extern void skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key); 21 extern void skipjack_backwards(u_int8_t *cipher, u_int8_t *plain, u_int8_t **key);
|
H A D | skipjack.c | 129 skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key_tables) argument 131 u_int8_t wh1 = plain[0]; u_int8_t wl1 = plain[1]; 132 u_int8_t wh2 = plain[2]; u_int8_t wl2 = plain[3]; 133 u_int8_t wh3 = plain[4]; u_int8_t wl3 = plain[5]; 134 u_int8_t wh4 = plain[6]; u_int8_t wl4 = plain[7]; 196 skipjack_backwards (u_int8_t *cipher, u_int8_t *plain, u_int8_ argument [all...] |
/freebsd-11-stable/share/examples/tests/tests/plain/ |
H A D | Makefile | 1 # $FreeBSD: stable/11/share/examples/tests/tests/plain/Makefile 321647 2017-07-28 03:32:36Z ngie $ 18 TESTSDIR= ${TESTSBASE}/share/examples/tests/plain
|
/freebsd-11-stable/targets/ |
H A D | Makefile | 74 plain := ${DIRDEPS:@d@${exists(${SRCTOP}/$d/${.MAKE.DEPENDFILE_PREFIX:T}):?$d:}@} macro 75 .if ${plain} != ${DIRDEPS} 76 qual := ${DIRDEPS:${plain:${M_ListToSkip}}:@d@${all_machine_list:O:u:@m@${exists(${SRCTOP}/$d/${.MAKE.DEPENDFILE_PREFIX:T}.$m):?$d.$m:}@}@} 77 DIRDEPS := ${plain} ${qual} 95 # this is a variant of the logic above, we want plain 97 plain := ${DIRDEPS:@d@${exists(${SRCTOP}/$d/${.MAKE.DEPENDFILE_PREFIX:T}):?$d:}@} macro 98 .if !empty(plain) && ${plain} != ${DIRDEPS} 99 qual := ${DIRDEPS:${plain:${M_ListToSkip}}:M*.${REQUESTED_MACHINE}} 103 DIRDEPS := ${plain} [all...] |
/freebsd-11-stable/crypto/heimdal/ |
H A D | krb5.conf | 10 plain = {
|
/freebsd-11-stable/crypto/openssh/ |
H A D | cipher-aes.c | 76 u_char *cprev, *cnow, *plain, *ivp; local 89 plain = (u_char *)src; 91 for (i = 0; i < blocks; i++, plain+=RIJNDAEL_BLOCKSIZE, 94 buf[j] = plain[j] ^ cprev[j]; 101 plain = dest+len-RIJNDAEL_BLOCKSIZE; 105 plain-=RIJNDAEL_BLOCKSIZE) { 106 rijndael_decrypt(&c->r_ctx, cnow, plain); 109 plain[j] ^= ivp[j];
|
/freebsd-11-stable/crypto/openssh/regress/ |
H A D | keyscan.sh | 11 KEYTYPES=`${SSH} -Q key-plain`
|
H A D | keygen-change.sh | 9 KEYTYPES=`${SSH} -Q key-plain`
|
H A D | hostkey-agent.sh | 17 for k in `${SSH} -Q key-plain` ; do 34 for k in `${SSH} -Q key-plain` ; do
|
/freebsd-11-stable/contrib/wpa/src/tls/ |
H A D | pkcs1.c | 136 u8 *plain, size_t *plain_len) 142 if (crypto_rsa_exptmod(crypt, crypt_len, plain, &len, key, 0) < 0) 157 plain[0] != 0x00 || plain[1] != 0x01) { 163 pos = plain + 3; 165 if (plain[2] != 0xff) { 170 while (pos < plain + len && *pos == 0xff) 173 if (pos - plain - 2 < 8) { 180 if (pos + 16 /* min hash len */ >= plain + len || *pos != 0x00) { 186 len -= pos - plain; 134 pkcs1_decrypt_public_key(struct crypto_rsa_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument [all...] |
H A D | pkcs1.h | 23 u8 *plain, size_t *plain_len);
|
/freebsd-11-stable/share/mk/ |
H A D | plain.test.mk | 5 # Logic to build and install plain test programs. A plain test programs it not 10 .error plain.test.mk cannot be included directly. 32 TEST_INTERFACE.${_T}= plain 43 TEST_INTERFACE.${_T}= plain 52 TEST_INTERFACE.${_T}= plain
|
/freebsd-11-stable/crypto/heimdal/lib/krb5/ |
H A D | rd_priv.c | 47 krb5_data plain; local 96 &plain); 101 ret = decode_EncKrbPrivPart (plain.data, plain.length, &part, &len); 102 krb5_data_free (&plain);
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libdes/ |
H A D | t_des.c | 291 static unsigned char plain[24] = variable 391 des_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), ks, &cfb_tmp, 393 if (memcmp(cfb_cipher, cfb_buf1, sizeof(plain)) != 0) 396 des_cfb_encrypt(cfb_buf1, cfb_buf2, bits, sizeof(plain), ks, &cfb_tmp, 398 if (memcmp(plain, cfb_buf2, sizeof(plain)) != 0) 413 des_cfb64_encrypt(plain, cfb_buf1, 12, ks, &cfb_tmp, &n, DES_ENCRYPT); 414 des_cfb64_encrypt(&(plain[12]), &(cfb_buf1[12]), sizeof(plain) [all...] |
/freebsd-11-stable/crypto/openssl/crypto/des/ |
H A D | destest.c | 306 static unsigned char plain[24] = { variable 615 for (i = 0; i < sizeof(plain); i++) 616 des_cfb_encrypt(&(plain[i]), &(cfb_buf1[i]), 618 if (memcmp(cfb_cipher8, cfb_buf1, sizeof(plain)) != 0) { 624 for (i = 0; i < sizeof(plain); i++) 627 if (memcmp(plain, cfb_buf2, sizeof(plain)) != 0) { 640 des_ofb_encrypt(plain, ofb_buf1, 64, sizeof(plain) / 8, ks, &ofb_tmp); 656 if (memcmp(plain, ofb_buf [all...] |