META-INF.modules.java.base.classes.com.sun.crypto.provider.CipherWithWrappingSpi.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
???? : ?
javax/crypto/CipherSpi ()V
java/security/Key
getEncoded ()[B !java/security/InvalidKeyException /Cannot get an encoding of the key to be wrapped
(Ljava/lang/String;)V
-com/sun/crypto/provider/CipherWithWrappingSpi
engineDoFinal ([BII)[B javax/crypto/BadPaddingException
&javax/crypto/IllegalBlockSizeException
! " constructSecretKey .([BLjava/lang/String;)Ljavax/crypto/SecretKey;
$ % & constructPrivateKey 0([BLjava/lang/String;)Ljava/security/PrivateKey;
( ) * constructPublicKey /([BLjava/lang/String;)Ljava/security/PublicKey;
, - . / 0 com/sun/crypto/provider/SunJCE getInstance "()Lcom/sun/crypto/provider/SunJCE;
2 3 4 / 5 java/security/KeyFactory F(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyFactory; 7 %java/security/spec/X509EncodedKeySpec
6 9 : ([B)V
2 < = > generatePublic 7(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey; @ &java/security/NoSuchAlgorithmException
2 B / C .(Ljava/lang/String;)Ljava/security/KeyFactory; E java/lang/StringBuilder
D H /No installed providers can create keys for the
D J K L append -(Ljava/lang/String;)Ljava/lang/StringBuilder; N algorithm
D P Q R toString ()Ljava/lang/String;
? U *java/security/spec/InvalidKeySpecException W &java/security/spec/PKCS8EncodedKeySpec
V 9
2 Z [ \ generatePrivate 8(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey; ^ javax/crypto/spec/SecretKeySpec
] ` a ([BLjava/lang/String;)V Code LineNumberTable LocalVariableTable this /Lcom/sun/crypto/provider/CipherWithWrappingSpi;
engineWrap (Ljava/security/Key;)[B
encodedKey [B key Ljava/security/Key; result
StackMapTable j
Exceptions engineUnwrap *([BLjava/lang/String;I)Ljava/security/Key; ePadding "Ljavax/crypto/BadPaddingException;
eBlockSize (Ljavax/crypto/IllegalBlockSizeException;
wrappedKey wrappedKeyAlgorithm Ljava/lang/String; wrappedKeyType I } java/lang/String
keyFactory Ljava/security/KeyFactory; keySpec 'Ljava/security/spec/X509EncodedKeySpec; nsae2 (Ljava/security/NoSuchAlgorithmException; nsae encodedKeyAlgorithm Ljava/security/PublicKey; ? java/security/PublicKey (Ljava/security/spec/PKCS8EncodedKeySpec; Ljava/security/PrivateKey; ? java/security/PrivateKey
SourceFile CipherWithWrappingSpi.java! b / *? ? c <