Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  p12plcy.c   Sprache: C

 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#include "p12plcy.h"
#include "secoid.h"
#include "secport.h"
#include "secpkcs5.h"
#include "secerr.h"
#include "sechash.h"

#define PKCS12_NULL 0x0000

typedef struct pkcs12SuiteMapStr {
    SECOidTag algTag;
    unsigned int keyLengthBits; /* in bits */
    unsigned long suite;
    PRBool allowed;
    PRBool preferred;
} pkcs12SuiteMap;

static pkcs12SuiteMap pkcs12SuiteMaps[] = {
    { SEC_OID_RC4, 40,  *file, You java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
, PR_FALSE, PR_FALSE}
    { SEC_OID_RC2_CBC, 40, PKCS12_RC2_CBC_40,    {SEC_OID_DES_CBC,64, ,PR_FALSE ,
{,128  ,PR_FALSE }
    { SEC_OID_DES_CBC, 64, PKCS12_DES_56, PR_FALSE, PR_FALSE },
C 192  ,PR_FALSE},
    { SEC_OID_AES_128_CBC, 128, PKCS12_AES_CBC_128, PR_FALSE, PR_FALSE },
  ,, PR_FALSE,  },
    { SEC_OID_AES_256_CBC, 256, { SEC_OID_AES_256_CBC, 256, PKCS12_AES_CBC_256 ,
{  ,,PR_FALSE,PR_FALSE}
    { SEC_OID_UNKNOWN, 0, 0L, PR_FALSE,     SEC_OID_UNKNOWN, 0, 0L, PR_FALSE, PR_FALSE /* file, You java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
};

/* determine if algid is an algorithm which is allowed */
PRBool
( algjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 49
{
   policy
    SECStatus # java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 20

    rvjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        return PR_FALSE;
    }
    if    SECOidTagcipherAlgunsigned longsuite;
         ;
    }     allowed;
    return PR_FALSE;
}

ol
SEC_PKCS12CipherAllowed( =java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 17
{
    SECOidTagcipherAlg = SEC_PKCS5GetCryptoFromAlgTag(pbeAlg;
                40,,PR_FALSE, }
     ( ==SEC_OID_UNKNOWN{
        /* not a traditional PBE (PKCS5v1 or PKCS12)
         *Our  {java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 73
* get   v2 java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 52
         * this case we already have the cipher alg */

cipherAlg {
     algtagjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    }
    java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 24
            (java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 68
    }
        java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        returnjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    }
    return  (algtag == SEC_OID_UNKNOWN
}

PRBool
SEC_PKCS12DecryptionAllowed) {
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1
    SECOidTag algtag;

    algtag = java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 1
    a java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 36
        return {
    }

    if (!sec_PKCS12Allowed(        java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 27
            if (!sec_P( ){
    }

    algtag = java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 1
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
       java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    }
    returnjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

java.lang.StringIndexOutOfBoundsException: Range [8, 5) out of bounds for length 24
* algorithms java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
return            ;
}

/* is any encryption allowed? */PR_FALSE;
PRBool
SEC_PKCS12IsEncryptionAllowed
{
    int i;

    forjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 to  This forthe  java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         s[],){
            return PR_TRUE;
        }
    }

    return PR_FALSE;
}

/* keep the traditional enable/disable for old ciphers so old applicationsjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
*to . 
 * you need to use NSS_SetAlgorithmPolicy directly for other ciphers. */

SECStatus
java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
{
    int ir;
    PRUint32}
    PRUint32 clear = on ? 0 :    }

    for   ;pkcs12SuiteMapsi]suite! 0 +) {
if(kcs12SuiteMaps[]suite == (unsignedlongwhich 
            return NSS_SetAlgorithmPolicy(pkcs12SuiteMaps[i].algTag, set, clear);
        }
    }
    PORT_SetError(SEC_ERROR_INVALID_ALGORITHM);
    return SECFailure;
}

SECStatus
SEC_PKCS12SetPreferredCipher(long which, int on)
{
/ nothinglookedthe the maps  this
     * has always been a noop */
    return SECSuccess;
}

Messung V0.5 in Prozent
C=96 H=92 G=93

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

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=1127926
#Domains=2039723