Strophe  0.10
XMPP client library
Data Structures | Macros | Functions | Variables
scram.h File Reference

Data Structures

struct  hash_alg
 

Macros

#define SCRAM_DIGEST_SIZE   SHA512_DIGEST_SIZE
 

Functions

void SCRAM_ClientKey (const struct hash_alg *alg, const uint8_t *password, size_t len, const uint8_t *salt, size_t salt_len, uint32_t i, uint8_t *key)
 
void SCRAM_ClientSignature (const struct hash_alg *alg, const uint8_t *ClientKey, const uint8_t *AuthMessage, size_t len, uint8_t *sign)
 
void SCRAM_ClientProof (const struct hash_alg *alg, const uint8_t *ClientKey, const uint8_t *ClientSignature, uint8_t *proof)
 

Variables

const struct hash_alg scram_sha1
 
const struct hash_alg scram_sha256
 
const struct hash_alg scram_sha512
 

Detailed Description

SCRAM helper functions.

Macro Definition Documentation

◆ SCRAM_DIGEST_SIZE

#define SCRAM_DIGEST_SIZE   SHA512_DIGEST_SIZE

Function Documentation

◆ SCRAM_ClientKey()

void SCRAM_ClientKey ( const struct hash_alg alg,
const uint8_t *  password,
size_t  len,
const uint8_t *  salt,
size_t  salt_len,
uint32_t  i,
uint8_t *  key 
)

◆ SCRAM_ClientSignature()

void SCRAM_ClientSignature ( const struct hash_alg alg,
const uint8_t *  ClientKey,
const uint8_t *  AuthMessage,
size_t  len,
uint8_t *  sign 
)

◆ SCRAM_ClientProof()

void SCRAM_ClientProof ( const struct hash_alg alg,
const uint8_t *  ClientKey,
const uint8_t *  ClientSignature,
uint8_t *  proof 
)

Variable Documentation

◆ scram_sha1

const struct hash_alg scram_sha1

◆ scram_sha256

const struct hash_alg scram_sha256

◆ scram_sha512

const struct hash_alg scram_sha512