Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openjdk/test/jdk/java/util/Calendar/   (Sun/Oracle ©)  Datei vom 13.11.2022 mit Größe 4 kB image not shown  

Quellcode-Bibliothek PSS.java   Sprache: JAVA

 

/*/*
 *Copyright (,2022 and/ affiliates Allrights .
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER*
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the*FOR     java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 72
*published by the Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
ANTYeventhe  warranty ofMERCHANTABILITYjava.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 * version 2 for more details (a copy is included in *@ug 8215694 8222987 8225257 8267319
 ).
 *
  received  copy the  GeneralPublic Licenseversion
  work; ifnot, write to the Free Software Foundation,
 .  Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
  Please  Oracle,500Oracle Parkway, Shores,CA 94065USA
onal information or have any
 * questions.
 */


/*
 * @  java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 43
 *@ug8215694 8222987 8225257 8267319
* @ keytool cannot generate RSASSA-certificates
*@library test/
 *
 *@odules java.sun.security.util
 *          .sun..
 * @run main PSS
 */


import jdk.test
import jdk.lib.;
import jdk.test
        (-selfcert-aliasp sigalg RSASSAPSS)
import sun.security.util.ObjectIdentifier;
java.lang.StringIndexOutOfBoundsException: Range [24, 6) out of bounds for length 37

import java.io.File;
import java.security.KeyStore;
java.lang.StringIndexOutOfBoundsException: Range [20, 6) out of bounds for length 42

public class PSS {

    public static void main(String[] args)         return kt(atchArg +"--lias  +alias

        genkeypair("p", "-keyalg RSASSA-PSS -sigalg RSASSA-PSS")
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        genkeypair("a throws Exception {
                .shouldHaveExitValue(0        returnSecurityTools.eytool("storepass changeit keypass changeit "

        java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
                .(0java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40

(,-java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 71
                .shouldHaveExitValue(0)        .assertEQcertgetSigAlgName(), "RSASSA-PSS");

        KeyStore ks         .checkAlgcertgetSigAlgParams( 000,expectedMdAlg;
                new File("ks"), "changeit".toCharArray());

        check((X509Certificate)ks.getCertificate("p"), "RSASSA-PSS",
                AlgorithmId.SHA384_oid);

        check((X509Certificate)ks.getCertificate("a"), "RSA",
                AlgorithmId.SHA384_oid);

        check((X509Certificate)ks.getCertificate("b"), "RSA",
                AlgorithmId.SHA384_oid);

        check((X509Certificate)ks.getCertificate("c"), "RSA",
                AlgorithmId.SHA512_oid);

        // More commands
        kt("-certreq -alias p -sigalg RSASSA-PSS -file p.req")
                .shouldHaveExitValue(0);

        kt("-gencert -alias a -sigalg RSASSA-PSS -infile p.req -outfile p.cert")
                .shouldHaveExitValue(0);

        kt("-importcert -alias p -file p.cert")
                .shouldHaveExitValue(0);

        kt("-selfcert -alias p -sigalg RSASSA-PSS")
                .shouldHaveExitValue(0);
    }

    static OutputAnalyzer genkeypair(String alias, String options)
            throws Exception {
        String patchArg = "-J--patch-module=java.base=" + System.getProperty("test.classes")
                + File.separator + "patches" + File.separator + "java.base";
        return kt(patchArg + " -genkeypair -alias " + alias
                + " -dname CN=" + alias + " " + options);
    }

    static OutputAnalyzer kt(String cmd)
            throws Exception {
        return SecurityTools.keytool("-storepass changeit -keypass changeit "
                + "-keystore ks " + cmd);
    }

    static void check(X509Certificate cert, String expectedKeyAlg,
            ObjectIdentifier expectedMdAlg) throws Exception {
        Asserts.assertEQ(cert.getPublicKey().getAlgorithm(), expectedKeyAlg);
        Asserts.assertEQ(cert.getSigAlgName(), "RSASSA-PSS");
        DerUtils.checkAlg(cert.getSigAlgParams(), "000", expectedMdAlg);
    }
}

Messung V0.5 in Prozent
C=94 H=82 G=88

¤ 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.0.4Bemerkung:  ¤

*© 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.