META-INF.modules.java.base.classes.sun.security.provider.KeyProtector.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java.base Show documentation
Show all versions of java.base Show documentation
Bytecoder java.base Module
???? : ?
java/lang/Object ()V "java/lang/IllegalArgumentException
password can't be null
(Ljava/lang/String;)V "sun/security/provider/KeyProtector SHA
java/security/MessageDigest getInstance 1(Ljava/lang/String;)Ljava/security/MessageDigest; md Ljava/security/MessageDigest; passwdBytes [B ! plaintext key can't be null # PKCS#8 % & ' ( ) java/security/Key getFormat ()Ljava/lang/String;
+ , - . / java/lang/String equalsIgnoreCase (Ljava/lang/String;)Z 1 java/security/KeyStoreException 3 (Cannot get key bytes, not PKCS#8 encoded
0 % 6 7 8
getEncoded ()[B : ,Cannot get key bytes, encoding not supported < java/security/SecureRandom
;
; ? @ A nextBytes ([B)V
C D A update
F G 8 digest
I J reset
L M N O P java/lang/System arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V
R S T U V java/util/Arrays fill ([BB)V X sun/security/x509/AlgorithmId Z "sun/security/util/ObjectIdentifier \ 1.3.6.1.4.1.42.2.17.1.1
Y
W _ ` '(Lsun/security/util/ObjectIdentifier;)V b )sun/security/pkcs/EncryptedPrivateKeyInfo
a d e $(Lsun/security/x509/AlgorithmId;[B)V
a 6 h java/io/IOException
g j k )
getMessage
a m n o getAlgorithm !()Lsun/security/x509/AlgorithmId;
W q r s getOID &()Lsun/security/util/ObjectIdentifier;
Y u v ) toString
+ x y z equals (Ljava/lang/Object;)Z | 'java/security/UnrecoverableKeyException ~ $Unsupported key protection algorithm
{
a ? ? 8 getEncryptedData ? Cannot recover key ? sun/security/util/DerValue
? ? A
? ? ? ? ? sun/security/pkcs/PKCS8Key parseKey 8(Lsun/security/util/DerValue;)Ljava/security/PrivateKey; SALT_LEN I
ConstantValue
DIGEST_ALG Ljava/lang/String;
DIGEST_LEN KEY_PROTECTOR_OID Code LineNumberTable LocalVariableTable this $Lsun/security/provider/KeyProtector;
passwordBytes
StackMapTable
Exceptions ? &java/security/NoSuchAlgorithmException protect (Ljava/security/Key;)[B encrAlg Lsun/security/x509/AlgorithmId; ioe Ljava/io/IOException; key Ljava/security/Key; i numRounds xorOffset
encrKeyOffset plainKey salt random Ljava/security/SecureRandom; xorKey tmpKey encrKey recover @(Lsun/security/pkcs/EncryptedPrivateKeyInfo;)Ljava/security/Key; encrInfo +Lsun/security/pkcs/EncryptedPrivateKeyInfo;
encrKeyLen protectedKey
SourceFile KeyProtector.java 0 ? ? ? ? ? ? ? ? ? ? ? ? ? ? [ A ? ~ !*? +?
? Y ? ?*? ? *+? ? ? | } ~ ? ? ? ? ! ? ? ! ? ? ? ? ? ? ? ? ? ? ?6+?
? Y ? ?"+? $ ? *?
? 0Y2? 4?+? 5 :?
? 0Y9? 4??l>?p? ??:? ;Y? =: ? >??:
=6:? W*? *? ? B*? ? B*? ? E:*? ? Hd?
?? K?
?d? K???????:=?? 3
3??T??????``?:?? K?`6?? K?`6*? *? ? B*? ? Q*? *? ? B*? ? E:*? ? H?? K? WY? YY[? ]? ^:
? aY
? c? f?:? 0Y? i? 4? l?? g ? ? - ? ? ? ? ? ) ? 1 ? 6 ? @ ? G ? P ? S ? Y ? b ? i ? p ? y ? ~ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?&