SecureBlackbox 2020 C++ Edition

Questions / Feedback?

Padding Property

The padding type to apply to the encrypted data.

Syntax

ANSI (Cross Platform)
int GetPadding();
int SetPadding(int iPadding); Unicode (Windows) INT GetPadding();
INT SetPadding(INT iPadding);

Possible Values

SCP_NONE(0), 
SCP_PKCS5(1),
SCP_ANSIX923(2)
@property (nonatomic,readwrite,assign,getter=padding,setter=setPadding:) int padding;
- (int)padding;
- (void)setPadding:(int)newPadding;

Possible Values

SCP_NONE(0), 
SCP_PKCS5(1),
SCP_ANSIX923(2)
#define PID_SYMMETRICCRYPTO_PADDING 24

SECUREBLACKBOX_EXTERNAL void* SECUREBLACKBOX_CALL SecureBlackbox_SymmetricCrypto_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
SECUREBLACKBOX_EXTERNAL int SECUREBLACKBOX_CALL SecureBlackbox_SymmetricCrypto_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

1

Remarks

Use this property to specify the padding type to use with the encrypted data. A paddingtype commonly used in modern security environments is PKCS#5.

scpNone0No padding. You might need to adjust the length of the input data to align it by the encryption block boundary.

scpPKCS51Standard PKCS5 (sometimes also referred to as PKCS7) padding

scpANSIX9232ANSI X.923 padding

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 C++ Edition - Version 20.0 [Build 8166]