2 /* Conversion functions to go between the various different key types used
3 * by rxkad and supporting libraries
6 #ifndef OPENAFS_RXKAD_CONVERT_H
7 #define OPENAFS_RXKAD_CONVERT_H 1
9 #include <hcrypto/des.h>
11 struct ktc_encryptionKey
;
13 static_inline DES_cblock
*
14 ktc_to_cblock(struct ktc_encryptionKey
*key
) {
15 return (DES_cblock
*)key
;
19 ktc_to_charptr(struct ktc_encryptionKey
*key
) {
24 static_inline DES_cblock
*
25 ktc_to_cblockptr(struct ktc_encryptionKey
*key
) {
26 return (DES_cblock
*)key
;
30 static_inline
unsigned char *
31 cblockptr_to_cblock(DES_cblock
*key
) {
32 return (unsigned char *)key
;
36 static_inline DES_cblock
*
37 charptr_to_cblock(char *key
) {
38 return (DES_cblock
*)key
;
41 static_inline DES_cblock
*
42 charptr_to_cblockptr(char *key
) {
43 return (DES_cblock
*)key
;