NullCipher Class

Definition

The NullCipher class is a class that provides an "identity cipher" -- one that does not transform the plain text.

[Android.Runtime.Register("javax/crypto/NullCipher", DoNotGenerateAcw=true)]
public class NullCipher : Javax.Crypto.Cipher
[<Android.Runtime.Register("javax/crypto/NullCipher", DoNotGenerateAcw=true)>]
type NullCipher = class
    inherit Cipher
Inheritance
NullCipher
Attributes

Remarks

The NullCipher class is a class that provides an "identity cipher" -- one that does not transform the plain text. As a consequence, the ciphertext is identical to the plaintext. All initialization methods do nothing, while the blocksize is set to 1 byte.

Added in 1.4.

Java documentation for javax.crypto.NullCipher.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

NullCipher()

Creates a NullCipher object.

NullCipher(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

DecryptMode
Obsolete.

Constant used to initialize cipher to decryption mode.

(Inherited from Cipher)
EncryptMode
Obsolete.

Constant used to initialize cipher to encryption mode.

(Inherited from Cipher)
PrivateKey
Obsolete.

Constant used to indicate the to-be-unwrapped key is a "private key".

(Inherited from Cipher)
PublicKey
Obsolete.

Constant used to indicate the to-be-unwrapped key is a "public key".

(Inherited from Cipher)
SecretKey
Obsolete.

Constant used to indicate the to-be-unwrapped key is a "secret key".

(Inherited from Cipher)
UnwrapMode
Obsolete.

Constant used to initialize cipher to key-unwrapping mode.

(Inherited from Cipher)
WrapMode
Obsolete.

Constant used to initialize cipher to key-wrapping mode.

(Inherited from Cipher)

Properties

Algorithm

Returns the algorithm name of this Cipher object.

(Inherited from Cipher)
BlockSize

Returns the block size (in bytes).

(Inherited from Cipher)
Class

Returns the runtime class of this Object.

(Inherited from Object)
ExemptionMechanism

Returns the exemption mechanism object used with this cipher.

(Inherited from Cipher)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Parameters

Returns the parameters used with this cipher.

(Inherited from Cipher)
PeerReference (Inherited from Object)
Provider

Returns the provider of this Cipher object.

(Inherited from Cipher)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
DoFinal()

Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.

(Inherited from Cipher)
DoFinal(Byte[])

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

(Inherited from Cipher)
DoFinal(Byte[], Int32)

Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.

(Inherited from Cipher)
DoFinal(Byte[], Int32, Int32)

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

(Inherited from Cipher)
DoFinal(Byte[], Int32, Int32, Byte[])

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

(Inherited from Cipher)
DoFinal(Byte[], Int32, Int32, Byte[], Int32)

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

(Inherited from Cipher)
DoFinal(ByteBuffer, ByteBuffer)

Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

(Inherited from Cipher)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetIV()

Returns the initialization vector (IV) in a new buffer.

(Inherited from Cipher)
GetOutputSize(Int32)

Returns the length in bytes that an output buffer would need to be in order to hold the result of the next update or doFinal operation, given the input length inputLen (in bytes).

(Inherited from Cipher)
Init(CipherMode, Certificate)

Initializes this cipher with the public key from the given certificate.

(Inherited from Cipher)
Init(CipherMode, Certificate, SecureRandom)

Initializes this cipher with the public key from the given certificate and a source of randomness.

(Inherited from Cipher)
Init(CipherMode, IKey)

Initializes this cipher with a key.

(Inherited from Cipher)
Init(CipherMode, IKey, AlgorithmParameters)

Initializes this cipher with a key and a set of algorithm parameters.

(Inherited from Cipher)
Init(CipherMode, IKey, AlgorithmParameters, SecureRandom)

Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.

(Inherited from Cipher)
Init(CipherMode, IKey, IAlgorithmParameterSpec)

Initializes this cipher with a key and a set of algorithm parameters.

(Inherited from Cipher)
Init(CipherMode, IKey, IAlgorithmParameterSpec, SecureRandom)

Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.

(Inherited from Cipher)
Init(CipherMode, IKey, SecureRandom)

Initializes this cipher with a key and a source of randomness.

(Inherited from Cipher)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Unwrap(Byte[], String, KeyType)

Unwrap a previously wrapped key.

(Inherited from Cipher)
Update(Byte[])

Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.

(Inherited from Cipher)
Update(Byte[], Int32, Int32)

Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.

(Inherited from Cipher)
Update(Byte[], Int32, Int32, Byte[])

Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.

(Inherited from Cipher)
Update(Byte[], Int32, Int32, Byte[], Int32)

Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.

(Inherited from Cipher)
Update(ByteBuffer, ByteBuffer)

Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.

(Inherited from Cipher)
UpdateAAD(Byte[])

Continues a multi-part update of the Additional Authentication Data (AAD).

(Inherited from Cipher)
UpdateAAD(Byte[], Int32, Int32)

Continues a multi-part update of the Additional Authentication Data (AAD), using a subset of the provided buffer.

(Inherited from Cipher)
UpdateAAD(ByteBuffer)

Continues a multi-part update of the Additional Authentication Data (AAD).

(Inherited from Cipher)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wrap(IKey)

Wrap a key.

(Inherited from Cipher)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to