Commit de324aa1 authored by Ben Sartor's avatar Ben Sartor Committed by johan

zrtp crypto types are public now

Signed-off-by: johan's avatarJohan Pascal <johan.pascal@belledonne-communications.com>
parent 1f490c93
......@@ -33,9 +33,23 @@
#endif
/**
* Some defines used internally by zrtp but also needed by client to interpretate the cipher block and auth tag algorithms used by srtp */
* Define different types of crypto functions */
#define ZRTP_HASH_TYPE 0x01
#define ZRTP_CIPHERBLOCK_TYPE 0x02
#define ZRTP_AUTHTAG_TYPE 0x04
#define ZRTP_KEYAGREEMENT_TYPE 0x08
#define ZRTP_SAS_TYPE 0x10
/**
* map the differents algorithm (some may not be available) to integer */
#define ZRTP_UNSET_ALGO 0x00
#define ZRTP_HASH_S256 0x11
#define ZRTP_HASH_S384 0x12
#define ZRTP_HASH_N256 0x13
#define ZRTP_HASH_N384 0x14
#define ZRTP_CIPHER_AES1 0x21
#define ZRTP_CIPHER_AES2 0x22
#define ZRTP_CIPHER_AES3 0x23
......@@ -48,6 +62,23 @@
#define ZRTP_AUTHTAG_SK32 0x33
#define ZRTP_AUTHTAG_SK64 0x34
/**
* WARNING : it is very important to keep the key agreement defined in that order
* as it is used to easily sort them from faster(DH2k) to slower(EC52)
*/
#define ZRTP_KEYAGREEMENT_DH2k 0x41
#define ZRTP_KEYAGREEMENT_EC25 0x42
#define ZRTP_KEYAGREEMENT_DH3k 0x43
#define ZRTP_KEYAGREEMENT_EC38 0x44
#define ZRTP_KEYAGREEMENT_EC52 0x45
#define ZRTP_KEYAGREEMENT_Prsh 0x46
#define ZRTP_KEYAGREEMENT_Mult 0x47
#define ZRTP_SAS_B32 0x51
#define ZRTP_SAS_B256 0x52
/**
* Define to give client indication on which srtp secrets are valid when given
*/
......
......@@ -35,39 +35,6 @@
#include <stdint.h>
#include "bzrtp/bzrtp.h"
/* define different types of crypto functions */
#define ZRTP_HASH_TYPE 0x01
#define ZRTP_CIPHERBLOCK_TYPE 0x02
#define ZRTP_AUTHTAG_TYPE 0x04
#define ZRTP_KEYAGREEMENT_TYPE 0x08
#define ZRTP_SAS_TYPE 0x10
/* map the differents algorithm (some may not be available) to integer */
#define ZRTP_HASH_S256 0x11
#define ZRTP_HASH_S384 0x12
#define ZRTP_HASH_N256 0x13
#define ZRTP_HASH_N384 0x14
/*
* Cipher block and Auth Tag algo are used by SRTP, so the client will need their defines
* which are in bzrtp.h */
/* WARNING : it is very important to keep the key agreement defined in that order
* as it is used to easily sort them from faster(DH2k) to slower(EC52)
*/
#define ZRTP_KEYAGREEMENT_DH2k 0x41
#define ZRTP_KEYAGREEMENT_EC25 0x42
#define ZRTP_KEYAGREEMENT_DH3k 0x43
#define ZRTP_KEYAGREEMENT_EC38 0x44
#define ZRTP_KEYAGREEMENT_EC52 0x45
#define ZRTP_KEYAGREEMENT_Prsh 0x46
#define ZRTP_KEYAGREEMENT_Mult 0x47
#define ZRTP_SAS_B32 0x51
#define ZRTP_SAS_B256 0x52
/**
* @brief Get the available crypto functions
* - Hash function
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment