Re-encrypt
    • PDF

    Re-encrypt

    • PDF

    Article Summary

    개요

    암호문을 지정된 마스터키의 가장 최신 버전으로 재암호화합니다. 암/복호화용 키 타입으로만 요청 가능합니다.

    POST https://kms.apigw.ntruss.com/keys/v1/{keyTag}/reencrypt
    POST https://kms.apigw.ntruss.com/keys/v2/{keyTag}/reencrypt
    

    요청

    요청 파라미터

    파라미터명타입설명
    keyTagString(Required)재암호화에 사용할 마스터키의 tag 값

    요청 바디

    {
      "ciphertext" : string 또는 string list,
      "context" : string
    }
    
    파라미터명타입설명
    ciphertextString(Required)- 재암호화할 데이터
    kms prefix와 Base64 Encoding된 암호문으로 구성되어야 함
    리스트는 전체 항목 합산 최대 32KB
    contextString(Optional)- 컨텍스트 데이터 (최대 50Byte)
    Base64 Encoding 필요
    수렴 암호 방식의 AES-256 키 타입인 경우에만 필수 입력

    요청 바디 예시

    {
      "ciphertext" : "ncpkms:v1:+xQZ2wyDin4vK7O4tue8QSnFB9Tu8MjiE1xTlhlGnrM=",
      "context" : "dGhpcyBpcyBhIHRlc3QgY29udGV4dA=="
    }
    또는
    {
      "ciphertext" : ["ncpkms:v1:+xQZ2wyDin4vK7O4tue8QSnFB9Tu8MjiE1xTlhlGnrM=", "ncpkms:v1:QoRYNd8LxURIEWpwMBRS0Sntv5Zx5cl78dWCTB1T2Ic=", "ncpkms:v1:wPgBmRczInROzKqvnStna9vMX7Q+tApFX8Xh4xGWPL4="],
      "context" : "dGhpcyBpcyBhIHRlc3QgY29udGV4dA=="
    }
    

    응답

    응답 바디

    {
      "newCiphertext" : string
    }
    또는
    {
      "newCiphertextList" : [string, string, string]
    }
    
    파라미터명타입설명
    newCiphertextString- 암호문 데이터
    kms prefix와 Base64 Encoding된 암호문으로 구성되어 있음
    String 타입으로 요청하는 경우 반환
    newCiphertextListString List- 암호문 데이터
    kms prefix와 Base64 Encoding된 암호문으로 구성됨
    String List타입으로 요청하는 경우 반환

    필요 권한

    Manager, Encryptor, Encryptor/Decryptor


    이 문서가 도움이 되었습니까?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.