Changeset 4673:216a48caae68 in roaraudio


Ignore:
Timestamp:
12/20/10 19:40:56 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

make use of nonce for very_weak keys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/random.c

    r4672 r4673  
    127127    memset(buffer, 0, len); 
    128128   break; 
     129  case ROAR_RANDOM_VERY_WEAK: 
     130    return roar_random_gen_nonce(buffer, len); 
     131   break; 
    129132#ifdef ROAR_HAVE_LIBGCRYPT 
    130   case ROAR_RANDOM_VERY_WEAK: 
    131133  case ROAR_RANDOM_WEAK: 
    132134    gcry_create_nonce(buffer, len); 
Note: See TracChangeset for help on using the changeset viewer.