/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | combine_keys.c | 84 size_t keybytes, keylength; in krb5int_c_combine_keys() local 111 keybytes = enc->keybytes; in krb5int_c_combine_keys() 118 if ((r1 = (unsigned char *) malloc(keybytes)) == NULL) in krb5int_c_combine_keys() 121 if ((r2 = (unsigned char *) malloc(keybytes)) == NULL) { in krb5int_c_combine_keys() 126 if ((rnd = (unsigned char *) malloc(keybytes)) == NULL) { in krb5int_c_combine_keys() 132 if ((combined = (unsigned char *) malloc(keybytes * 2)) == NULL) { in krb5int_c_combine_keys() 162 for (i = 0; i < keybytes; i++) in krb5int_c_combine_keys() 178 for (i = 0; i < keybytes; i++) in krb5int_c_combine_keys() 191 memcpy(combined, r1, keybytes); in krb5int_c_combine_keys() 192 memcpy(combined + keybytes, r2, keybytes); in krb5int_c_combine_keys() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/crypto/dk/ |
H A D | stringtokey.c | 46 size_t keybytes, keylength, concatlen; in krb5int_dk_string_to_key() local 53 keybytes = enc->keybytes; in krb5int_dk_string_to_key() 60 if ((foldstring = (unsigned char *) malloc(keybytes)) == NULL) { in krb5int_dk_string_to_key() 76 krb5_nfold(concatlen*8, concat, keybytes*8, foldstring); in krb5int_dk_string_to_key() 78 indata.length = keybytes; in krb5int_dk_string_to_key() 101 memset(foldstring, 0, keybytes); in krb5int_dk_string_to_key()
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | keylengths.c | 41 size_t *keybytes, size_t *keylength) in krb5_c_keylengths() argument 45 if (keybytes == NULL && keylength == NULL) in krb5_c_keylengths() 56 if (keybytes) in krb5_c_keylengths() 57 *keybytes = krb5_enctypes_list[i].enc->keybytes; in krb5_c_keylengths()
|
H A D | make_random_key.c | 43 size_t keybytes, keylength; in krb5_c_make_random_key() local 63 keybytes = enc->keybytes; in krb5_c_make_random_key() 66 if ((bytes = (unsigned char *) malloc(keybytes)) == NULL) in krb5_c_make_random_key() 74 random_data.length = keybytes; in krb5_c_make_random_key() 95 memset(bytes, 0, keybytes); in krb5_c_make_random_key()
|
H A D | string_to_key.c | 62 size_t keybytes, keylength; in krb5_c_string_to_key_with_params() local 87 keybytes = enc->keybytes; in krb5_c_string_to_key_with_params()
|
H A D | pkcs11slot.c | 158 keysize = krb5_enctypes_list[i].enc->keybytes; in slot_supports_krb5()
|
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/ |
H A D | derive.c | 264 size_t blocksize, keybytes, keylength, n; local 272 keybytes = enc->keybytes; 289 if ((rawkey = (unsigned char *) MALLOC(keybytes)) == NULL) { 312 while (n < keybytes) { 320 if ((keybytes - n) <= outblock.length) { 321 (void) memcpy(rawkey+n, outblock.data, (keybytes - n)); 332 inblock.length = keybytes; 341 (void) memset(rawkey, 0, keybytes); 343 FREE(rawkey, keybytes);
|
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/arcfour/ |
H A D | k5_arcfour.c | 86 size_t keybytes, blocksize, hashsize; local 90 keybytes = enc->keybytes; 99 d1.length=keybytes; 114 d2.length=keybytes; 131 d3.length=keybytes; 282 size_t keybytes, hashsize; local 285 keybytes = enc->keybytes; 300 d1.length=keybytes; 315 d2.length=keybytes; 332 d3.length=keybytes;
|
/titanic_44/usr/src/lib/crypt_modules/bsdbf/ |
H A D | blowfish.c | 435 Blowfish_expand0state(blf_ctx *c, const uint8_t *key, uint16_t keybytes) in Blowfish_expand0state() argument 447 temp = Blowfish_stream2word(key, keybytes, &j); in Blowfish_expand0state() 474 const uint8_t *key, uint16_t keybytes) in Blowfish_expandstate() argument 486 temp = Blowfish_stream2word(key, keybytes, &j); in Blowfish_expandstate()
|
/titanic_44/usr/src/uts/common/io/ |
H A D | cryptmod.c | 807 int constlen, char *dkey, int keybytes, in derive_key() argument 818 rawkey = kmem_zalloc(keybytes, KM_SLEEP); in derive_key() 846 while (n < keybytes) { in derive_key() 856 if (keybytes - n < blocklen) { in derive_key() 857 bcopy(inblock, rawkey+n, (keybytes-n)); in derive_key() 890 bcopy(rawkey, dkey, keybytes); in derive_key() 895 kmem_free(rawkey, keybytes); in derive_key() 912 int keybytes; in create_derived_keys() local 931 keybytes = 8; in create_derived_keys() 934 keybytes = CRYPT_DES3_KEYBYTES; in create_derived_keys() [all …]
|
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/include/ |
H A D | k5-int.h | 782 size_t block_size, keybytes, keylength; member
|
H A D | krb5.h | 546 size_t *keybytes, size_t *keylength);
|
/titanic_44/usr/src/lib/krb5/plugins/preauth/pkinit/ |
H A D | pkinit_crypto_openssl.c | 2091 size_t keybytes, keylength, offset; in pkinit_octetstring2key() local 2124 retval = krb5_c_keylengths(context, etype, &keybytes, &keylength); in pkinit_octetstring2key() 2135 random_data.length = keybytes; in pkinit_octetstring2key()
|