Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  NonceHasher.m   Sprache: Unknown

 

Spracherkennung für: .m vermutete Sprache: Abap {ABAP[55] Delphi[54] Lisp[52]} [Methode: maximale Elemente, drei Dimensionen]

#import "NonceHasher.h"
#import "CryptoUtils.h"

#ifdef DEBUG
static const DDLogLevel ddLogLevel = DDLogLevelVerbose;
#else
static const DDLogLevel ddLogLevel = DDLogLevelNotice;
#endif

@implementation NonceHasher

+ (NSData *)hashedNonce:(NSData *)nonce myIdentity:(nullable NSString *)myIdentity {
    /* Hash nonce with HMAC-SHA256 using the identity as the key if available.
       This serves to make it impossible to correlate the nonce DBs of users to determine whether they have been communicating. */

    NSData *identity = [myIdentity dataUsingEncoding:NSASCIIStringEncoding];
    if (identity == nil) {
        // This should never be called
        DDLogError(@"Nonces should only be processed if my identity exists");
        NSAssert(false, @"Nonces should only be processed if my identity exists");
        return nil;
    } else {
        return [CryptoUtils hmacSha256ForData:nonce key:identity];
    }
}

@end

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1104852
#Domains=417153