*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> krb5_encrypt (3)              
Title
Content
Arch
Section
 

KRB5_ENCRYPT(3)

Contents


NAME    [Toc]    [Back]

     krb5_decrypt, krb5_decrypt_EncryptedData, krb5_encrypt,
     krb5_encrypt_EncryptedData -- encrypt and decrypt data

LIBRARY    [Toc]    [Back]

     Kerberos 5 Library (libkrb5, -lkrb5)

SYNOPSIS    [Toc]    [Back]

     #include <krb5.h>

     krb5_error_code
     krb5_encrypt(krb5_context context, krb5_crypto crypto, unsigned usage,
         void *data, size_t len, krb5_data *result);

     krb5_error_code
     krb5_encrypt_EncryptedData(krb5_context context, krb5_crypto crypto,
         unsigned usage, void *data, size_t len, int kvno,
         EncryptedData *result);

     krb5_error_code
     krb5_decrypt(krb5_context context, krb5_crypto crypto, unsigned usage,
         void *data, size_t len, krb5_data *result);

     krb5_error_code
     krb5_decrypt_EncryptedData(krb5_context context, krb5_crypto crypto,
         unsigned usage, EncryptedData *e, krb5_data *result);

DESCRIPTION    [Toc]    [Back]

     These functions are used to encrypt and decrypt data.

     krb5_encrypt() puts the encrypted version of data (of size len) in
     result.  If the encryption type supports using derived keys, usage should
     be the appropriate key-usage.  krb5_encrypt_EncryptedData() does the same
     as krb5_encrypt(), but it puts the encrypted data in a EncryptedData
     structure instead. If kvno is not zero, it will be put in the kvno field
     in the EncryptedData.

     krb5_decrypt(), and krb5_decrypt_EncryptedData() works similarly.

SEE ALSO    [Toc]    [Back]

      
      
     krb5_create_checksum(3), krb5_crypto_init(3)

HEIMDAL                          April 7, 1999                         HEIMDAL
[ Back ]
 Similar pages
Name OS Title
bdes OpenBSD encrypt/decrypt using the Data Encryption Standard
bdes FreeBSD encrypt/decrypt using the Data Encryption Standard (DES)
EncryptDataP Tru64 Encrypt data with privilege (CDSA)
CSSM_DecryptData Tru64 Decrypt buffer data (CDSA)
DecryptDataP Tru64 Decrypt data with privilege (CDSA)
DecryptData Tru64 Decrypt buffer data (CDSA)
CSP_DecryptData Tru64 Decrypt buffer data (CDSA)
encrypt Linux Encrypt 64 bits messages
memfrob Linux frobnicate (encrypt) a memory area
CSSM_EncryptDataInit Tru64 Initialize the staged encrypt funciton (CDSA)
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service