Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / src / rxkad / rxkad_convert.h
blob8fba9bfb441c23ef2e46a5b32a8b369a63364129
2 /* Conversion functions to go between the various different key types used
3 * by rxkad and supporting libraries
4 */
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;
18 static_inline char *
19 ktc_to_charptr(struct ktc_encryptionKey *key) {
20 return (char *)key;
24 static_inline DES_cblock *
25 ktc_to_cblockptr(struct ktc_encryptionKey *key) {
26 return (DES_cblock *)key;
29 #if 0
30 static_inline unsigned char *
31 cblockptr_to_cblock(DES_cblock *key) {
32 return (unsigned char *)key;
34 #endif
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;
46 #endif