Strophe 0.12
XMPP client library
|
SCRAM-SHA1 helper functions. More...
Data Structures | |
union | common_hash_ctx |
Macros | |
#define | HMAC_BLOCK_SIZE_MAX 128 |
Functions | |
static void | crypto_HMAC (const struct hash_alg *alg, const uint8_t *key, size_t key_len, const uint8_t *text, size_t len, uint8_t *digest) |
static void | SCRAM_Hi (const struct hash_alg *alg, const uint8_t *text, size_t len, const uint8_t *salt, size_t salt_len, uint32_t i, uint8_t *digest) |
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 | |
static const uint8_t | ipad = 0x36 |
static const uint8_t | opad = 0x5C |
const struct hash_alg | scram_sha1 |
const struct hash_alg | scram_sha256 |
const struct hash_alg | scram_sha512 |
SCRAM-SHA1 helper functions.
#define HMAC_BLOCK_SIZE_MAX 128 |
|
static |
|
static |
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 | ||
) |
|
static |
|
static |
const struct hash_alg scram_sha1 |
const struct hash_alg scram_sha256 |
const struct hash_alg scram_sha512 |