Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 13:29, 29 May 2008.

Libcrypt

From Forum Nokia Wiki

Introduction

libcrypt is used for encrypting/decrypting of messages,passwords and blocks of data.

Functions

The main cryptographic functions in this lib are:

  • setkey
    • An utility which adds, updates, dumps, or flushes Security Association Database (SAD) entries as well as Security Policy Database (SPD) entries in the kernel.
  • encrypt
    • encrypt() function encrypts and decrypts64-bit messages. The algorithm used to perform encryption/decryption is Data Encryption Standard (DES).
    • The encrypt and setkey functions do not return any value.
    • setkey() is invoked to set the key for the DES machine.
    • If encrypt is called without priorly invoking setkey the implementation assumes a bit vector consisting of all zeroes as the key for the DES algorithm.
#include <unistd.h>  
  void encrypt (char datablock[64], int flag);
 
#include <stdlib.h>  
  void setkey (const char *key);
  • crypt
    • The crypt function performs password hashing.
    • The crypt function returns a pointer to the encrypted value on success, and NULL on failure.
    • Currently the implementation supports Data Encryption Standard (DES) and MD5 hash algorithms
#include <unistd.h>  
  char * crypt (const char *key, const char *salt);


Links

Related Discussions
Thread Thread Starter Forum Replies Last Post
Open C FAQ Nokia Ron Open C 0 2007-03-02 18:05
Carbide C++ : ..... .pkg does not exist. Skipping... satishkatta Carbide.c++ and CodeWarrior Tools 144 2008-08-07 11:16
Open C Plugin-E90 Symbian_Neil Open C 24 2007-06-12 12:25
Problems with porting Openssl on to symbian sbalagiri General Symbian C++ 18 2008-08-28 14:32
libcrypt not found in Open C tanuja Open C 2 2007-04-12 09:00
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX