/* Append eol string if desired. */
if (b64encode_chars_per_line > 0 && b64encode_eolstr != NULL) {
if (lc >= b64encode_chars_per_line) {
- for (e = b64encode_eolstr; *e; e++)
+ for (e = b64encode_eolstr; *e != '\0'; e++)
*te++ = *e;
lc = 0;
}
/* Append eol string if desired. */
if (b64encode_chars_per_line > 0 && b64encode_eolstr != NULL) {
if (lc != 0) {
- for (e = b64encode_eolstr; *e; e++)
+ for (e = b64encode_eolstr; *e != '\0'; e++)
*te++ = *e;
}
}
/* Mark whitespace characters. */
if (b64decode_whitespace) {
const char *e;
- for (e = b64decode_whitespace; *e; e++) {
+ for (e = b64decode_whitespace; *e != '\0'; e++) {
if (b64dec[ (unsigned)*e ] == 0x80)
b64dec[ (unsigned)*e ] = 0x81;
}
/* Validate input buffer */
ns = 0;
- for (t = s; *t; t++) {
+ for (t = s; *t != '\0'; t++) {
switch (b64dec[ (unsigned)*t ]) {
case 0x80: /* invalid chararcter */
return 3;
* Return the number of entropy sources available.
* @return number of entropy sources available
*/
-BEEDLLAPI
+BEEDLLAPI /*@unused@*/
int entropySourceCount(void)
/*@*/;
* @param index entropy source index
* @return entropy source pointer (or NULL)
*/
-BEEDLLAPI /*@observer@*/ /*@null@*/
+BEEDLLAPI /*@observer@*/ /*@null@*/ /*@unused@*/
const entropySource* entropySourceGet(int index)
/*@*/;
* Return the number of generators available.
* @return number of generators available
*/
-BEEDLLAPI
+BEEDLLAPI /*@unused@*/
int randomGeneratorCount(void)
/*@*/;
* @param index generator index
* @return generator pointer (or NULL)
*/
-BEEDLLAPI /*@observer@*/ /*@null@*/
+BEEDLLAPI /*@observer@*/ /*@null@*/ /*@unused@*/
const randomGenerator* randomGeneratorGet(int index)
/*@*/;
* generator. Otherwise, use "fips186prng".
* @return generator pointer
*/
-BEEDLLAPI /*@observer@*/ /*@null@*/
+BEEDLLAPI /*@observer@*/ /*@null@*/ /*@unused@*/
const randomGenerator* randomGeneratorDefault(void)
/*@*/;
/** \ingroup PRNG_m
* Initialize a randomGenerator instance.
*/
-BEEDLLAPI
+BEEDLLAPI /*@unused@*/
int randomGeneratorContextInit(randomGeneratorContext* ctxt, /*@observer@*/ /*@dependent@*/ const randomGenerator* rng)
/*@modifies ctxt->rng, ctxt->param @*/;
/** \ingroup PRNG_m
* Destroy a randomGenerator instance.
*/
-BEEDLLAPI
+BEEDLLAPI /*@unused@*/
int randomGeneratorContextFree(/*@special@*/ randomGeneratorContext* ctxt)
/*@uses ctxt->rng @*/
/*@releases ctxt->param @*/
* Return the number of hash functions available.
* @return number of hash functions available
*/
-BEEDLLAPI
+BEEDLLAPI /*@unused@*/
int hashFunctionCount(void)
/*@*/;
* @param index hash function index
* @return hash function pointer (or NULL)
*/
-BEEDLLAPI /*@observer@*/ /*@null@*/
+BEEDLLAPI /*@observer@*/ /*@null@*/ /*@unused@*/
const hashFunction* hashFunctionGet(int index)
/*@*/;
/** \ingroup HASH_m
*/
-BEEDLLAPI
+BEEDLLAPI /*@unused@*/
int hashFunctionContextUpdate(hashFunctionContext* ctxt, const byte* data, int size)
/*@modifies ctxt */;
* Return the number of keyed hash functions available.
* @return number of keyed hash functions available
*/
-BEEDLLAPI
+BEEDLLAPI /*@unused@*/
int keyedHashFunctionCount(void)
/*@*/;
* @param index keyed hash function index
* @return keyed hash function pointer (or NULL)
*/
-BEEDLLAPI /*@observer@*/ /*@null@*/
+BEEDLLAPI /*@observer@*/ /*@null@*/ /*@unused@*/
const keyedHashFunction* keyedHashFunctionGet(int index)
/*@*/;
/** \ingroup BC_m
* Block cipher modes.
*/
+/*@-enummemuse@*/
typedef enum
{
ECB,
CBC
} cipherMode;
+/*@=enummemuse@*/
/** \ingroup BC_m
* @param param blockcipher parameters
* Return the number of blockciphers available.
* @return number of blockciphers available
*/
-BEEDLLAPI
+BEEDLLAPI /*@unused@*/
int blockCipherCount(void)
/*@*/;
* @param index blockcipher index
* @return blockcipher pointer (or NULL)
*/
-BEEDLLAPI /*@observer@*/ /*@null@*/
+BEEDLLAPI /*@observer@*/ /*@null@*/ /*@unused@*/
const blockCipher* blockCipherGet(int index)
/*@*/;