/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | util_seqnum.c | 42 unsigned char plain[8]; local 44 plain[4] = direction; 45 plain[5] = direction; 46 plain[6] = direction; 47 plain[7] = direction; 50 plain[0] = (seqnum>>24) & 0xff; 51 plain[1] = (seqnum>>16) & 0xff; 52 plain[2] = (seqnum>>8) & 0xff; 53 plain[3] = seqnum & 0xff; 56 &plain[ 78 unsigned char plain[8]; local [all...] |
H A D | k5seal.c | 85 unsigned char *plain; local 195 if ((plain = (unsigned char *) xmalloc(msglen ? msglen : 1)) == NULL) { 201 if ((code = kg_make_confounder(context, enc, plain))) { 202 xfree_wrap(plain, msglen ? msglen : 1); 210 (void) memcpy(plain+conflen, text->value, text->length); 211 if (pad) (void) memset(plain+conflen+text->length, pad, pad); 218 xfree_wrap(plain, msglen ? msglen : 1); 226 (void) memcpy(data_ptr+8, plain, msglen); 236 xfree_wrap(plain, msglen ? msglen : 1); 316 xfree_wrap(plain, msgle [all...] |
H A D | k5unseal.c | 82 unsigned char *plain; local 209 if ((plain = (unsigned char *) xmalloc(tmsglen)) == NULL) { 225 xfree_wrap(plain, tmsglen); 251 plain); 255 ptr+14+cksum_len, plain, tmsglen); 258 xfree_wrap(plain, tmsglen); 263 plain = ptr+14+cksum_len; 279 xfree_wrap(plain, tmsglen); 283 if (plain[tmsglen-1] > blocksize) { 285 xfree_wrap(plain, tmsgle [all...] |
H A D | k5sealv3.c | 144 krb5_data plain; local 163 plain.length = message->length + 16 + ec; 164 plain.data = MALLOC(plain.length); 165 if (plain.data == NULL) 170 ctx->enc->enctype, plain.length, &tlen))) { 171 FREE(plain.data, plain.length); 179 FREE(plain.data, plain 223 krb5_data plain; local 356 krb5_data plain; local [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | enc_helper.c | 30 krb5_encrypt_helper(krb5_context context, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *plain, krb5_enc_data *cipher) argument 35 if ((ret = krb5_c_encrypt_length(context, key->enctype, plain->length, 46 ret = krb5_c_encrypt(context, key, usage, 0, plain, cipher);
|
/illumos-gate/usr/src/common/net/wanboot/crypt/ |
H A D | aes_test.c | 32 * Encrypts plain text with the defined key and verifies that the result 34 * result is the original plain text. One test is run for each AES128, 47 char plain[AES_BLOCK_SIZE * 2]; member in struct:test_data 70 unsigned char plain[AES_BLOCK_SIZE]; local 91 getxdata(plain, td[i].plain, AES_BLOCK_SIZE); 95 bcopy(plain, work, AES_BLOCK_SIZE); 103 if (bcmp(work, plain, AES_BLOCK_SIZE) != 0) {
|
H A D | des3_test.c | 32 * Using the values for td[], encrypts plain text using the provided 34 * the cipher and compares the result against the plain value. 51 char plain[DES3_BLOCK_SIZE * 2]; member in struct:test_data 113 unsigned char plain[DES3_BLOCK_SIZE]; local 136 getxdata(plain, td[i].plain, DES3_BLOCK_SIZE); 140 bcopy(plain, work, DES3_BLOCK_SIZE); 150 if (bcmp(work, plain, DES3_BLOCK_SIZE) != 0) {
|
/illumos-gate/usr/src/lib/krb5/kdb/ |
H A D | decrypt_key.c | 82 krb5_data plain; local 93 plain.length = key_data->key_data_length[0]-2; 94 if ((plain.data = (char *) malloc(plain.length)) == NULL) 96 (void) memset(plain.data, 0, plain.length); 99 &cipher, &plain))) { 100 krb5_xfree(plain.data); 104 /* tmplen is the true length of the key. plain.data is the 110 if (tmplen > plain [all...] |
H A D | encrypt_key.c | 83 krb5_data plain; local 113 plain.length = dbkey->length; 114 plain.data = (char *)dbkey->contents; /* SUNWresync121 XXX */ 120 &plain, &cipher))) {
|
/illumos-gate/usr/src/lib/print/libpapi-ipp/common/ |
H A D | ipp-support.c | 454 char plain[BUFSIZ]; local 456 snprintf(plain, sizeof (plain), "%s:%s", user, passphrase); 457 httpEncode64(encoded, plain);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | wpa_enc.c | 27 * @plain: plaintext key to be wrapped, n * 64 bit 31 aes_wrap(uint8_t *kek, int n, uint8_t *plain, uint8_t *cipher) argument 42 (void) memcpy(r, plain, 8 * n); 79 * @plain: plaintext key, n * 64 bit 82 aes_unwrap(uint8_t *kek, int n, uint8_t *cipher, uint8_t *plain) argument 90 r = plain; 104 r = plain + (n - 1) * 8; 120 * These are already in @plain due to the location of temporary
|
/illumos-gate/usr/src/cmd/krb5/krb5kdc/ |
H A D | kdc_preauth.c | 2116 krb5_data plain; local 2119 plain.length = 8; 2120 plain.data = inputblock; 2129 /* XXX */ 0, 0, &plain, &cipher))) {
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | cryptmod.c | 1244 aes_cbc_cts_encrypt(struct tmodinfo *tmi, uchar_t *plain, size_t length) argument 1271 pt.cd_raw.iov_base = (char *)plain; 1304 xorblock(tmp, plain + blockno * DEFAULT_AES_BLOCKLEN); 1309 ct.cd_raw.iov_base = (char *)plain + 1324 bcopy(plain + blockno * DEFAULT_AES_BLOCKLEN, 1327 /* XOR cipher text from n-3 with plain text from n-2 */ 1328 xorblock(tmp, plain + (nblocks - 2) * DEFAULT_AES_BLOCKLEN); 1349 bcopy(plain + (nblocks - 1) * DEFAULT_AES_BLOCKLEN, tmp3, 1353 bcopy(tmp2, plain + (nblocks - 1) * DEFAULT_AES_BLOCKLEN, 1357 /* XOR cipher text from n-1 with plain tex [all...] |